Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 统一媒体库查询范围并补齐详情媒体类型

longmeidaoc3ac7e0dcce0
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 996f49ba4..379c9c88a 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -6,6 +6,10 @@
隔离回归使用临时账本与目录,覆盖大小写和斜杠变体、个人记录保留、缺失文件、多根目录、断点配对和自动发现。真实 ledger 未用于修复演练,部署与报告者验收分别记录。
+## 媒体库查询范围与详情类型
+
+React 与应用层的 GET 入口共用 `frontend/src/core/library-scope.ts`:目录和筛选读取当前媒体库,调用方显式提供的 `library` 参数优先,空值表示全部媒体库。查询参数识别复用浏览器原生 `URLSearchParams`,不增加依赖或持久缓存。媒体库选择沿用整页导航,详情按资产 ID 查询并返回账本中的 `medium`,不从文件扩展名推断类型。两项契约随代码与构建资源替换生效,无需数据转换。
+
## 升级自动处理与更新提示
本地补修复用 `catalog_rules` 的用户识别规则、`field_owners.write_owned_fields`、r18 文字修复与复合别名拆分判据。两个维护脚本调用同一领域模块。结构迁移、SQLite 备份、文件锁和原子回执继续使用项目现有入口;后台复用 `TaskRunStore`、`FollowupRunner`、`Attempts`、来源冷却和影片处理检查点,未新增运行依赖。
diff --git a/frontend/e2e/library-scope.test.ts b/frontend/e2e/library-scope.test.ts
new file mode 100644
index 000000000..250ae5302
--- /dev/null
+++ b/frontend/e2e/library-scope.test.ts
@@ -0,0 +1,46 @@
+import assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+import type { Browser } from 'playwright-core';
+import { launch, settle, visit, VIEWPORTS } from './harness.ts';
+
+describe('媒体库目录范围', () => {
+ let browser: Browser;
+ before(async () => { browser = await launch() });
+ after(async () => { await browser?.close() });
+
+ for (const viewport of VIEWPORTS) {
+ it(`${viewport.name}:切换媒体库和返回全部时目录与筛选使用同一范围`, async () => {
+ const requests: string[] = [];
+ const opened = await visit(browser, '/', viewport, async page => {
+ await page.route('**/api/libraries', route => route.fulfill({ json: {
+ libraries: [{ id: 'first', name: '媒体库甲' }, { id: 'second', name: '媒体库乙' }],
+ } }));
+ await page.route(/\/api\/(items|facets)(\?|$)/, async route => {
+ requests.push(route.request().url());
+ await route.continue();
+ });
+ });
+ const { page } = opened;
+ try {
+ for (const [library, label] of [['first', '媒体库甲'], ['second', '媒体库乙'], ['', '全部媒体库']]) {
+ if (viewport.mobile && !await page.locator('#drawer').evaluate(node => node.classList.contains('open'))) {
+ await page.locator('#filterBtn').click();
+ }
+ await page.locator('#brandHome').click();
+ const choice = page.locator('#boardLibraryMenu').getByRole('button', { name: label, exact: true });
+ await choice.waitFor({ state: 'visible' });
+ const start = requests.length;
+ await Promise.all([page.waitForEvent('load'), choice.click()]);
+ await page.locator('#brandHome h1').filter({ hasText: label }).waitFor();
+ await page.waitForFunction(() => document.querySelector('#main [aria-busy="true"]') === null);
+ await settle(page);
+ const current = requests.slice(start).map(url => new URL(url));
+ assert.ok(current.some(url => url.pathname === '/api/items'));
+ assert.ok(current.some(url => url.pathname === '/api/facets'));
+ assert.ok(current.every(url => (url.searchParams.get('library') || '') === library), requests.slice(start).join('\n'));
+ }
+ assert.deepEqual(opened.problems, []);
+ } finally { await opened.close() }
+ });
+ }
+});
diff --git a/frontend/src/api.ts b/frontend/src/api.ts
index 32c92e5c0..26b13f83b 100644
--- a/frontend/src/api.ts
+++ b/frontend/src/api.ts
@@ -8,6 +8,7 @@
/** 服务端明确回了非 2xx。`status` 留给调用方区分 401/409/404 这类需要不同处置的情况。 */
import { requestErrorMessage } from './core/request-error';
import { registerResponseEntities } from './core/entity-links';
+import { libraryScopedPath } from './core/library-scope';
export class ApiError extends Error {
readonly status: number;
@@ -40,6 +41,7 @@ export const errorMessage = (cause: unknown): string => requestErrorMessage(caus
/** GET 一个 `/api/...` 契约端点。`signal` 中止时抛出 `AbortError`,调用方据此放弃写 DOM。 */
export async function apiGet<T>(path: string, signal?: AbortSignal): Promise<T> {
+ path = libraryScopedPath(path);
const response = await fetch(path, {
headers: { Accept: 'application/json' },
// 页面口令是 httponly cookie,取数必须带上;跨源请求不在此列。
diff --git a/frontend/src/core/index.ts b/frontend/src/core/index.ts
index 63da182a1..2b3c86172 100644
--- a/frontend/src/core/index.ts
+++ b/frontend/src/core/index.ts
@@ -6,6 +6,7 @@ import { entityLinkId, registerEntityLink, registerResponseEntities } from './en
import { SOURCE_LABELS } from './media-sources';
import { requestErrorMessage } from './request-error';
import { iconGeometry } from './icon-geometry';
+import { libraryScopedPath } from './library-scope';
export { registerEntityLink, registerResponseEntities } from './entity-links';
export { requestErrorMessage } from './request-error';
const $=(s:string)=>document.querySelector(s);
@@ -19,10 +20,7 @@ const icon=(name:string,cls='')=>{
还没读完的请求,「这个请求可被取消」得在签名上看得见。 */
/** 遗留层的取数入口:JSON 请求体,失败抛带人话原因的 Error。 */
const api=async(p:string,o?:RequestInit):Promise<unknown>=>{
- if(!o?.method||o.method==='GET'){
- const library=sessionStorage.getItem('peach.library');
- if(library&&/^\/api\/(items|facets)(\?|$)/.test(p))p+=(p.includes('?')?'&':'?')+'library='+encodeURIComponent(library);
- }
+ if(!o?.method||o.method.toUpperCase()==='GET')p=libraryScopedPath(p);
const {signal=null,...rest}=o||{};
const init:RequestInit={headers:{'Content-Type':'application/json'},...rest};
if(signal)init.signal=signal;
diff --git a/frontend/src/core/library-scope.ts b/frontend/src/core/library-scope.ts
new file mode 100644
index 000000000..6b7a38ef8
--- /dev/null
+++ b/frontend/src/core/library-scope.ts
@@ -0,0 +1,13 @@
+/** 目录与筛选查询共用当前媒体库;显式查询范围优先。 */
+export function libraryScopedPath(path: string): string {
+ if (!/^\/api\/(items|facets)([?#]|$)/.test(path)) return path;
+ const fragment = path.indexOf('#');
+ const address = fragment < 0 ? path : path.slice(0, fragment);
+ const suffix = fragment < 0 ? '' : path.slice(fragment);
+ const query = address.indexOf('?');
+ if (new URLSearchParams(query < 0 ? '' : address.slice(query + 1)).has('library')) return path;
+ const library = sessionStorage.getItem('peach.library');
+ if (!library) return path;
+ const separator = query < 0 ? '?' : address.endsWith('?') || address.endsWith('&') ? '' : '&';
+ return `${address}${separator}library=${encodeURIComponent(library)}${suffix}`;
+}
diff --git a/frontend/test/api-library.test.ts b/frontend/test/api-library.test.ts
new file mode 100644
index 000000000..bd6267fbe
--- /dev/null
+++ b/frontend/test/api-library.test.ts
@@ -0,0 +1,46 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import { apiGet, apiSend } from '../src/api';
+import { api } from '../src/core';
+
+describe('媒体库查询范围', () => {
+ const fetchMock = vi.fn(async (_url: string, _options?: RequestInit) => new Response('{}', { headers: { 'Content-Type': 'application/json' } }));
+ beforeEach(() => {
+ sessionStorage.clear();
+ fetchMock.mockClear();
+ vi.stubGlobal('fetch', fetchMock);
+ });
+ afterEach(() => { sessionStorage.clear(); vi.unstubAllGlobals() });
+
+ for (const [name, get] of [['React', apiGet], ['应用', api]] as const) {
+ it(`${name}:目录、搜索和筛选逐次读取当前媒体库`, async () => {
+ sessionStorage.setItem('peach.library', '本地 & A');
+ await get('/api/items?q=影片&offset=48#results');
+ expect(fetchMock.mock.calls.at(-1)?.[0]).toBe('/api/items?q=影片&offset=48&library=%E6%9C%AC%E5%9C%B0%20%26%20A#results');
+ sessionStorage.setItem('peach.library', 'cloud');
+ await get('/api/facets?');
+ expect(fetchMock.mock.calls.at(-1)?.[0]).toBe('/api/facets?library=cloud');
+ sessionStorage.removeItem('peach.library');
+ await get('/api/items?limit=1');
+ expect(fetchMock.mock.calls.at(-1)?.[0]).toBe('/api/items?limit=1');
+ });
+
+ it(`${name}:显式范围和其他端点保留调用方参数`, async () => {
+ sessionStorage.setItem('peach.library', 'selected');
+ for (const path of ['/api/items?library=other', '/api/items?library=', '/api/facets?%6cibrary=other',
+ '/api/item?id=1', '/api/items-extra', '/api/libraries', 'https://example.test/api/items']) {
+ await get(path);
+ expect(fetchMock.mock.calls.at(-1)?.[0]).toBe(path);
+ }
+ });
+ }
+
+ it('写操作保留调用方范围与请求体', async () => {
+ sessionStorage.setItem('peach.library', 'selected');
+ await api('/api/items', { method: 'POST', body: '{}' });
+ await apiSend('/api/items', { id: 1 });
+ expect(fetchMock.mock.calls.map(call => call[0])).toEqual(['/api/items', '/api/items']);
+ expect(fetchMock.mock.calls.map(call => [call[1]?.method, call[1]?.body])).toEqual([
+ ['POST', '{}'], ['POST', '{"id":1}'],
+ ]);
+ });
+});
diff --git a/src/peach/web_catalog.py b/src/peach/web_catalog.py
index 96a45ed50..28f57e5b9 100644
--- a/src/peach/web_catalog.py
+++ b/src/peach/web_catalog.py
@@ -947,7 +947,7 @@ def q_item(contract: WebContract, aid):
既显示错条目,又反复拉计费流量。按 id 取就按 id 取。"""
with contract.read_connection() as c:
r = c.execute(
- "SELECT id,location,path,name,catalog_title,original_title,creator,studio,code,"
+ "SELECT id,location,path,name,medium,catalog_title,original_title,creator,studio,code,"
"release_date,size,duration,width,height,field_owners,mutation_revision,"
"ctx_length,ctx_orient,snapshot_path,play_count,leave_ratio,feedback,disposal,disposal_reason,"
"rating,o_count,play_seconds,max_reached,seek_count,region,"
diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.py
index d4b1d9031..03c96025c 100644
--- a/tests/test_fastapi_api.py
+++ b/tests/test_fastapi_api.py
@@ -1926,6 +1926,16 @@ class FastApiContractTests(unittest.IsolatedAsyncioTestCase):
self.assertTrue(detail.json()["liked"])
self.assertEqual(detail.json()["like_reason"], "镜头自然")
+ async def test_item_detail_exposes_stored_medium(self):
+ for medium in ("video", "image", "archive", "audio", "other"):
+ with self.subTest(medium=medium):
+ with closing(sqlite3.connect(self.db)) as connection:
+ connection.execute("UPDATE asset SET medium=? WHERE id=1", (medium,))
+ connection.commit()
+ response = await self.client.get("/api/item?t=secret&id=1")
+ self.assertEqual(response.status_code, 200)
+ self.assertEqual(response.json()["medium"], medium)
+
async def test_item_detail_exposes_official_title_and_official_tag_marker(self):
connection = sqlite3.connect(self.db)
connection.execute(
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 5a6b0cda2..7091f9d65 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "bcec6fda-92f7-49c8-a2c8-9f6c2d4639bf", e._sentryDebugIdIdentifier = "sentry-dbid-bcec6fda-92f7-49c8-a2c8-9f6c2d4639bf");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9528fd5e-47eb-40eb-9f44-c3791270f007", e._sentryDebugIdIdentifier = "sentry-dbid-9528fd5e-47eb-40eb-9f44-c3791270f007");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
@@ -318,7 +318,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
throw e;
}
- function N(e, r, i, a, o) {
+ function te(e, r, i, a, o) {
var s = typeof e;
(s === "undefined" || s === "boolean") && (e = null);
var c = !1;
@@ -334,30 +334,30 @@ var k = /* @__PURE__ */ o(((e) => {
case n:
c = !0;
break;
- case d: return c = e._init, N(c(e._payload), r, i, a, o);
+ case d: return c = e._init, te(c(e._payload), r, i, a, o);
}
}
- if (c) return o = o(e), c = a === "" ? "." + M(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(j, "$&/") + "/"), N(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, "$&/") + "/"), te(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(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 + M(a, u), c += N(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 += N(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 += te(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 += te(a, r, i, s, o);
else if (s === "object") {
- if (typeof e.then == "function") return N(ee(e), r, i, a, o);
+ if (typeof e.then == "function") return te(ee(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 te(e, t, n) {
+ function ne(e, t, n) {
if (e == null) return e;
var r = [], i = 0;
- return N(e, r, "", "", function(e) {
+ return te(e, r, "", "", function(e) {
return t.call(n, e, i++);
}), r;
}
- function P(e) {
+ function N(e) {
if (e._status === -1) {
var t = e._result, n = t();
n.then(function(t) {
@@ -369,7 +369,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (e._status === 1) return e._result.default;
throw e._result;
}
- var ne = typeof reportError == "function" ? reportError : function(e) {
+ var re = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -384,40 +384,40 @@ var k = /* @__PURE__ */ o(((e) => {
}
console.error(e);
};
- function re(e) {
+ function ie(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, ne);
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, re);
} catch (e) {
- ne(e);
+ re(e);
} finally {
t !== null && n.types !== null && (t.types = n.types), T.T = t;
}
}
- function F(e) {
+ function P(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 re(F.bind(null, e));
+ } else ie(P.bind(null, e));
}
- var I = {
- map: te,
+ var F = {
+ map: ne,
forEach: function(e, t, n) {
- te(e, function() {
+ ne(e, function() {
t.apply(this, arguments);
}, n);
},
count: function(e) {
var t = 0;
- return te(e, function() {
+ return ne(e, function() {
t++;
}), t;
},
toArray: function(e) {
- return te(e, function(e) {
+ return ne(e, function(e) {
return e;
}) || [];
},
@@ -426,12 +426,12 @@ var k = /* @__PURE__ */ o(((e) => {
return e;
}
};
- e.Activity = f, e.Children = I, 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 = F, 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 = F, e.cache = function(e) {
+ }, e.addTransitionType = P, e.cache = function(e) {
return function() {
return e.apply(null, arguments);
};
@@ -485,7 +485,7 @@ var k = /* @__PURE__ */ o(((e) => {
_status: -1,
_result: e
},
- _init: P
+ _init: N
};
}, e.memo = function(e, t) {
return {
@@ -493,7 +493,7 @@ var k = /* @__PURE__ */ o(((e) => {
type: e,
compare: t === void 0 ? null : t
};
- }, e.startTransition = re, e.unstable_useCacheRefresh = function() {
+ }, e.startTransition = ie, e.unstable_useCacheRefresh = function() {
return T.H.useCacheRefresh();
}, e.use = function(e) {
return T.H.use(e);
@@ -863,7 +863,7 @@ var k = /* @__PURE__ */ o(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.1";
-})), N = /* @__PURE__ */ o(((e, t) => {
+})), te = /* @__PURE__ */ o(((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);
@@ -872,8 +872,8 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
n(), t.exports = ee();
-})), te = /* @__PURE__ */ o(((e) => {
- var t = M(), n = A(), r = N();
+})), ne = /* @__PURE__ */ o(((e) => {
+ var t = M(), n = A(), r = te();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -1043,58 +1043,58 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), te = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), I = 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 w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), oe = Symbol.for("react.legacy_hidden"), se = Symbol.for("react.memo_cache_sentinel"), ce = Symbol.for("react.view_transition"), le = Symbol.for("react.recoverable"), ue = Symbol.iterator;
+ function de(e) {
+ return typeof e != "object" || !e ? null : (e = ue && e[ue] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var de = Symbol.for("react.client.reference");
- function fe(e) {
+ var fe = Symbol.for("react.client.reference");
+ function pe(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === de ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === fe ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case O: return "Fragment";
case j: return "Profiler";
case k: return "StrictMode";
- case ne: return "Suspense";
- case re: return "SuspenseList";
- case ie: return "Activity";
- case se: return "ViewTransition";
+ case re: return "Suspense";
+ case ie: return "SuspenseList";
+ case ae: return "Activity";
+ case ce: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
case D: return "Portal";
- case te: return e.displayName || "Context";
+ case ne: return e.displayName || "Context";
case ee: return (e._context.displayName || "Context") + ".Consumer";
- case P:
+ case N:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case F: return t = e.displayName || null, t === null ? fe(e.type) || "Memo" : t;
- case I:
+ case P: return t = e.displayName || null, t === null ? pe(e.type) || "Memo" : t;
+ case F:
t = e._payload, e = e._init;
try {
- return fe(e(t));
+ return pe(e(t));
} catch {}
}
return null;
}
- var pe = Array.isArray, me = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, he = {
+ var me = Array.isArray, he = 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, ge = {
pending: !1,
data: null,
method: null,
action: null
- }, ge = [], _e = -1;
- function ve(e) {
+ }, _e = [], ve = -1;
+ function ye(e) {
return { current: e };
}
- function ye(e) {
- 0 > _e || (e.current = ge[_e], ge[_e] = null, _e--);
+ function be(e) {
+ 0 > ve || (e.current = _e[ve], _e[ve] = null, ve--);
}
- function be(e, t) {
- _e++, ge[_e] = e.current, e.current = t;
+ function xe(e, t) {
+ ve++, _e[ve] = e.current, e.current = t;
}
- var xe = ve(null), Se = ve(null), Ce = ve(null), we = ve(null);
- function Te(e, t) {
- switch (be(Ce, t), be(Se, e), be(xe, null), t.nodeType) {
+ var Se = ye(null), Ce = ye(null), we = ye(null), Te = ye(null);
+ function Ee(e, t) {
+ switch (xe(we, t), xe(Ce, e), xe(Se, null), t.nodeType) {
case 9:
case 11:
e = (e = t.documentElement) && (e = e.namespaceURI) ? yp(e) : 0;
@@ -1110,34 +1110,34 @@ var k = /* @__PURE__ */ o(((e) => {
default: e = 0;
}
}
- ye(xe), be(xe, e);
+ be(Se), xe(Se, e);
}
- function Ee() {
- ye(xe), ye(Se), ye(Ce);
+ function De() {
+ be(Se), be(Ce), be(we);
}
- function De(e) {
+ function Oe(e) {
var t = e.memoizedState;
- t !== null && (gh._currentValue = t.memoizedState, be(we, e)), t = xe.current;
+ t !== null && (gh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
var n = bp(t, e.type);
- t !== n && (be(Se, e), be(xe, n));
+ t !== n && (xe(Ce, e), xe(Se, n));
}
- function Oe(e) {
- Se.current === e && (ye(xe), ye(Se)), we.current === e && (ye(we), gh._currentValue = he);
+ function ke(e) {
+ Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), gh._currentValue = ge);
}
- var ke, Ae;
- function je(e) {
- if (ke === void 0) try {
+ var Ae, je;
+ function Me(e) {
+ if (Ae === 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" : "";
+ Ae = t && t[1] || "", je = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + ke + e + Ae;
+ return "\n" + Ae + e + je;
}
- var Me = !1;
- function Ne(e, t) {
- if (!e || Me) return "";
- Me = !0;
+ var Ne = !1;
+ function Pe(e, t) {
+ if (!e || Ne) return "";
+ Ne = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -1208,50 +1208,50 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
} finally {
- Me = !1, Error.prepareStackTrace = n;
+ Ne = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? je(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? Me(n) : "";
}
- function Pe(e, t) {
+ function Fe(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 Me(e.type);
+ case 16: return Me("Lazy");
+ case 13: return e.child !== t && t !== null ? Me("Suspense Fallback") : Me("Suspense");
+ case 19: return Me("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 Pe(e.type, !1);
+ case 11: return Pe(e.type.render, !1);
+ case 1: return Pe(e.type, !0);
+ case 31: return Me("Activity");
+ case 30: return Me("ViewTransition");
default: return "";
}
}
- function Fe(e) {
+ function Ie(e) {
try {
var t = "", n = null;
do
- t += Pe(e, n), n = e, e = e.return;
+ t += Fe(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 Le = Object.prototype.hasOwnProperty, Re = t.unstable_scheduleCallback, ze = t.unstable_cancelCallback, Be = t.unstable_shouldYield, Ve = t.unstable_requestPaint, He = t.unstable_now, Ue = t.unstable_getCurrentPriorityLevel, We = t.unstable_ImmediatePriority, Ge = t.unstable_UserBlockingPriority, Ke = t.unstable_NormalPriority, qe = t.unstable_LowPriority, Je = t.unstable_IdlePriority, Ye = t.log, Xe = t.unstable_setDisableYieldValue, Ze = null, Qe = null;
+ function $e(e) {
+ if (typeof Ye == "function" && Xe(e), Qe && typeof Qe.setStrictMode == "function") try {
+ Qe.setStrictMode(Ze, 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 et = Math.clz32 ? Math.clz32 : rt, tt = Math.log, nt = Math.LN2;
+ function rt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - (tt(e) / nt | 0) | 0;
}
- var rt = 256, it = 262144, at = 4194304;
- function ot(e) {
+ var it = 256, at = 262144, ot = 4194304;
+ function st(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -1289,27 +1289,27 @@ var k = /* @__PURE__ */ o(((e) => {
default: return e;
}
}
- function st(e, t, n) {
+ function ct(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 = st(n))) : i = st(o) : i = st(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = st(n))) : i = st(o)) : i = st(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 lt(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function lt(e, t) {
+ function ut(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 - et(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function ut(e, t) {
+ function dt(e, t) {
switch (e) {
case 1:
case 2:
@@ -1345,23 +1345,23 @@ var k = /* @__PURE__ */ o(((e) => {
default: return -1;
}
}
- function dt() {
- var e = at;
- return at <<= 1, !(at & 62914560) && (at = 4194304), e;
+ function ft() {
+ var e = ot;
+ return ot <<= 1, !(ot & 62914560) && (ot = 4194304), e;
}
- function ft(e) {
+ function pt(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function pt(e, t) {
+ function mt(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 ht(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 - et(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++) {
@@ -1370,25 +1370,25 @@ var k = /* @__PURE__ */ o(((e) => {
}
n &= ~d;
}
- r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && gt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function ht(e, t, n) {
+ function gt(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - $e(t);
+ var r = 31 - et(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function gt(e, t) {
+ function _t(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - $e(n), i = 1 << r;
+ var r = 31 - et(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function _t(e, t) {
+ function vt(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 : yt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function vt(e) {
+ function yt(e) {
switch (e) {
case 2:
e = 1;
@@ -1426,32 +1426,32 @@ var k = /* @__PURE__ */ o(((e) => {
}
return e;
}
- function yt(e) {
+ function bt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function bt() {
- var e = L.p;
+ function xt() {
+ var e = I.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;
}
- function xt(e, t) {
- var n = L.p;
+ function St(e, t) {
+ var n = I.p;
try {
- return L.p = e, t();
+ return I.p = e, t();
} finally {
- L.p = n;
+ I.p = n;
}
}
- var St = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + St, wt = "__reactProps$" + St, Tt = "__reactContainer$" + St, Et = "__reactEvents$" + St, Dt = "__reactListeners$" + St, Ot = "__reactHandles$" + St, kt = "__reactResources$" + St, At = "__reactMarker$" + St, jt = "__reactLoad$" + St;
- function Mt(e) {
- delete e[Ct], delete e[wt], delete e[Dt], delete e[Ot];
- }
+ var Ct = Math.random().toString(36).slice(2), wt = "__reactFiber$" + Ct, Tt = "__reactProps$" + Ct, Et = "__reactContainer$" + Ct, Dt = "__reactEvents$" + Ct, Ot = "__reactListeners$" + Ct, kt = "__reactHandles$" + Ct, At = "__reactResources$" + Ct, jt = "__reactMarker$" + Ct, Mt = "__reactLoad$" + Ct;
function Nt(e) {
+ delete e[wt], delete e[Tt], delete e[Ot], delete e[kt];
+ }
+ function Pt(e) {
var t;
- if (t = e[Ct]) return t;
+ if (t = e[wt]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[Tt] || n[Ct]) {
+ if (t = n[Et] || n[wt]) {
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = xm(e); e !== null;) {
- if (n = e[Ct]) return n;
+ if (n = e[wt]) return n;
e = xm(e);
}
return t;
@@ -1460,49 +1460,49 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- function Pt(e) {
- if (e = e[Ct] || e[Tt]) {
+ function Ft(e) {
+ if (e = e[wt] || e[Et]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function Ft(e) {
+ function It(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function It(e) {
- var t = e[kt];
- return t ||= e[kt] = {
+ function Lt(e) {
+ var t = e[At];
+ return t ||= e[At] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function Lt(e) {
- e[At] = !0;
- }
function Rt(e) {
- e[jt] = void 0;
+ e[jt] = !0;
}
- var zt = /* @__PURE__ */ new Set(), Bt = {};
- function Vt(e, t) {
- Ht(e, t), Ht(e + "Capture", t);
+ function zt(e) {
+ e[Mt] = void 0;
}
+ var Bt = /* @__PURE__ */ new Set(), Vt = {};
function Ht(e, t) {
- for (Bt[e] = t, e = 0; e < t.length; e++) zt.add(t[e]);
+ Ut(e, t), Ut(e + "Capture", t);
}
- var Ut = 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]*$"), Wt = {}, Gt = {};
- function Kt(e) {
- return Ie.call(Gt, e) ? !0 : Ie.call(Wt, e) ? !1 : Ut.test(e) ? Gt[e] = !0 : (Wt[e] = !0, !1);
+ function Ut(e, t) {
+ for (Vt[e] = t, e = 0; e < t.length; e++) Bt.add(t[e]);
}
- var qt = !1;
- function Jt() {
- var e = qt;
- return qt = !1, e;
+ var Wt = 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]*$"), Gt = {}, Kt = {};
+ function qt(e) {
+ return Le.call(Kt, e) ? !0 : Le.call(Gt, e) ? !1 : Wt.test(e) ? Kt[e] = !0 : (Gt[e] = !0, !1);
}
- function Yt(e, t, n) {
- if (Kt(t)) {
+ var Jt = !1;
+ function Yt() {
+ var e = Jt;
+ return Jt = !1, e;
+ }
+ function Xt(e, t, n) {
+ if (qt(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1522,7 +1522,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- function Xt(e, t, n) {
+ function Zt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -1536,7 +1536,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.setAttribute(t, n);
}
}
- function Zt(e, t, n, r) {
+ function Qt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -1550,7 +1550,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function Qt(e) {
+ function $t(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -1561,11 +1561,11 @@ var k = /* @__PURE__ */ o(((e) => {
default: return "";
}
}
- function $t(e) {
+ function en(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function en(e, t, n) {
+ function tn(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;
@@ -1590,48 +1590,48 @@ var k = /* @__PURE__ */ o(((e) => {
};
}
}
- function tn(e) {
+ function nn(e) {
if (!e._valueTracker) {
- var t = $t(e) ? "checked" : "value";
- e._valueTracker = en(e, t, "" + e[t]);
+ var t = en(e) ? "checked" : "value";
+ e._valueTracker = tn(e, t, "" + e[t]);
}
}
- function nn(e) {
+ function rn(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = $t(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = en(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var R = /[\n"\\]/g;
- function z(e) {
- return e.replace(R, function(e) {
+ var an = /[\n"\\]/g;
+ function L(e) {
+ return e.replace(an, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function rn(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") : on(e, Qt(n)) : o === "number" && e.value == t ? on(e, Qt(e.value)) : on(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 R(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 = "" + $t(t)) : e.value !== "" + $t(t) && (e.value = "" + $t(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : sn(e, $t(n)) : o === "number" && e.value == t ? sn(e, $t(e.value)) : sn(e, $t(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 = "" + $t(s) : e.removeAttribute("name");
}
- function an(e, t, n, r, i, a, o, s) {
+ function on(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)) {
- tn(e);
+ nn(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 ? "" : "" + $t(n), t = t == null ? n : "" + $t(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), tn(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), nn(e);
}
- function on(e, t) {
+ function sn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function sn(e, t, n, r) {
+ function cn(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 = "" + $t(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -1641,14 +1641,14 @@ var k = /* @__PURE__ */ o(((e) => {
t !== null && (t.selected = !0);
}
}
- function cn(e, t, n) {
- t != null && (t = "" + Qt(t), t !== e.value && (e.value = t), n == null) ? e.defaultValue !== t && (e.defaultValue = t) : e.defaultValue = n == null ? "" : "" + Qt(n);
+ function ln(e, t, n) {
+ t != null && (t = "" + $t(t), t !== e.value && (e.value = t), n == null) ? e.defaultValue !== t && (e.defaultValue = t) : e.defaultValue = n == null ? "" : "" + $t(n);
}
- function ln(e, t, n, r) {
+ function un(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (pe(r)) {
+ if (me(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -1656,9 +1656,9 @@ var k = /* @__PURE__ */ o(((e) => {
}
n ??= "", t = n;
}
- n = Qt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), tn(e);
+ n = $t(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), nn(e);
}
- function un(e, t) {
+ function dn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -1668,19 +1668,19 @@ var k = /* @__PURE__ */ o(((e) => {
}
e.textContent = t;
}
- var dn = 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 fn(e, t, n) {
+ var fn = 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 pn(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 || dn.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 || fn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function pn(e, t, n) {
+ function mn(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] = "", qt = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (fn(e, a, r), qt = !0);
- } else for (var o in t) t.hasOwnProperty(o) && fn(e, o, t[o]);
+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Jt = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (pn(e, a, r), Jt = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && pn(e, o, t[o]);
}
- function B(e) {
+ function hn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -1694,7 +1694,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: return !0;
}
}
- var mn = /* @__PURE__ */ new Map([
+ var z = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -1774,56 +1774,56 @@ var k = /* @__PURE__ */ o(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), hn = /^[\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 gn(e) {
- return hn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ ]), gn = /^[\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 _n(e) {
+ return gn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
- function _n() {}
- var vn = null;
- function yn(e) {
+ function vn() {}
+ var yn = null;
+ function bn(e) {
return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
}
- var bn = null, xn = null;
- function Sn(e) {
- var t = Pt(e);
+ var xn = null, Sn = null;
+ function Cn(e) {
+ var t = Ft(e);
if (t && (e = t.stateNode)) {
- var n = e[wt] || null;
+ var n = e[Tt] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if (rn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (R(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=\"" + z("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + L("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[wt] || null;
+ var a = r[Tt] || null;
if (!a) throw Error(i(90));
- rn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ R(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 && nn(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && rn(r);
}
break a;
case "textarea":
- cn(e, n.value, n.defaultValue);
+ ln(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && sn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && cn(e, !!n.multiple, t, !1);
}
}
}
- var Cn = !1;
- function wn(e, t, n) {
- if (Cn) return e(t, n);
- Cn = !0;
+ var wn = !1;
+ function Tn(e, t, n) {
+ if (wn) return e(t, n);
+ wn = !0;
try {
return e(t);
} finally {
- if (Cn = !1, (bn !== null || xn !== null) && (Gd(), bn && (t = bn, e = xn, xn = bn = null, Sn(t), e))) for (t = 0; t < e.length; t++) Sn(e[t]);
+ if (wn = !1, (xn !== null || Sn !== null) && (Gd(), xn && (t = xn, e = Sn, Sn = xn = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);
}
}
- function Tn(e, t) {
+ function En(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[wt] || null;
+ var r = n[Tt] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -1846,54 +1846,54 @@ var k = /* @__PURE__ */ o(((e) => {
if (n && typeof n != "function") throw Error(i(231, t, typeof n));
return n;
}
- var En = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Dn = !1;
- if (En) try {
- var On = {};
- Object.defineProperty(On, "passive", { get: function() {
- Dn = !0;
- } }), window.addEventListener("test", On, On), window.removeEventListener("test", On, On);
+ var Dn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, On = !1;
+ if (Dn) try {
+ var kn = {};
+ Object.defineProperty(kn, "passive", { get: function() {
+ On = !0;
+ } }), window.addEventListener("test", kn, kn), window.removeEventListener("test", kn, kn);
} catch {
- Dn = !1;
+ On = !1;
}
- var kn = null, An = null, jn = null;
- function Mn() {
- if (jn) return jn;
- var e, t = An, n = t.length, r, i = "value" in kn ? kn.value : kn.textContent, a = i.length;
+ var An = null, jn = null, Mn = null;
+ function Nn() {
+ if (Mn) return Mn;
+ var e, t = jn, n = t.length, r, i = "value" in An ? An.value : An.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 jn = i.slice(e, 1 < r ? 1 - r : void 0);
+ return Mn = i.slice(e, 1 < r ? 1 - r : void 0);
}
- function Nn(e) {
+ function Pn(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 Pn() {
+ function Fn() {
return !0;
}
- function Fn() {
+ function In() {
return !1;
}
- function In(e) {
+ function Ln(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) ? Pn : Fn, this.isPropagationStopped = Fn, this;
+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Fn : In, this.isPropagationStopped = In, this;
}
return w(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 = Pn);
+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Fn);
},
stopPropagation: function() {
var e = this.nativeEvent;
- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Pn);
+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Fn);
},
persist: function() {},
- isPersistent: Pn
+ isPersistent: Fn
}), t;
}
- var Ln = {
+ var Rn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
@@ -1902,10 +1902,10 @@ var k = /* @__PURE__ */ o(((e) => {
},
defaultPrevented: 0,
isTrusted: 0
- }, Rn = In(Ln), zn = w({}, Ln, {
+ }, zn = Ln(Rn), Bn = w({}, Rn, {
view: 0,
detail: 0
- }), Bn = In(zn), Vn, Hn, V, H = w({}, zn, {
+ }), Vn = Ln(Bn), Hn, Un, Wn, B = w({}, Bn, {
screenX: 0,
screenY: 0,
clientX: 0,
@@ -1916,25 +1916,25 @@ var k = /* @__PURE__ */ o(((e) => {
shiftKey: 0,
altKey: 0,
metaKey: 0,
- getModifierState: Qn,
+ getModifierState: $n,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
},
movementX: function(e) {
- return "movementX" in e ? e.movementX : (e !== V && (V && e.type === "mousemove" ? (Vn = e.screenX - V.screenX, Hn = e.screenY - V.screenY) : Hn = Vn = 0, V = e), Vn);
+ return "movementX" in e ? e.movementX : (e !== Wn && (Wn && e.type === "mousemove" ? (Hn = e.screenX - Wn.screenX, Un = e.screenY - Wn.screenY) : Un = Hn = 0, Wn = e), Hn);
},
movementY: function(e) {
- return "movementY" in e ? e.movementY : Hn;
+ return "movementY" in e ? e.movementY : Un;
}
- }), Un = In(H), Wn = In(w({}, H, { dataTransfer: 0 })), Gn = In(w({}, zn, { relatedTarget: 0 })), Kn = In(w({}, Ln, {
+ }), V = Ln(B), Gn = Ln(w({}, B, { dataTransfer: 0 })), Kn = Ln(w({}, Bn, { relatedTarget: 0 })), qn = Ln(w({}, Rn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), qn = In(w({}, Ln, { clipboardData: function(e) {
+ })), Jn = Ln(w({}, Rn, { clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData;
- } })), Jn = In(w({}, Ln, { data: 0 })), Yn = {
+ } })), Yn = Ln(w({}, Rn, { data: 0 })), Xn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
@@ -1947,7 +1947,7 @@ var k = /* @__PURE__ */ o(((e) => {
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
- }, Xn = {
+ }, Zn = {
8: "Backspace",
9: "Tab",
12: "Clear",
@@ -1984,26 +1984,26 @@ var k = /* @__PURE__ */ o(((e) => {
144: "NumLock",
145: "ScrollLock",
224: "Meta"
- }, U = {
+ }, Qn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
- function Zn(e) {
+ function H(e) {
var t = this.nativeEvent;
- return t.getModifierState ? t.getModifierState(e) : (e = U[e]) ? !!t[e] : !1;
+ return t.getModifierState ? t.getModifierState(e) : (e = Qn[e]) ? !!t[e] : !1;
}
- function Qn() {
- return Zn;
+ function $n() {
+ return H;
}
- var $n = In(w({}, zn, {
+ var er = Ln(w({}, Bn, {
key: function(e) {
if (e.key) {
- var t = Yn[e.key] || e.key;
+ var t = Xn[e.key] || e.key;
if (t !== "Unidentified") return t;
}
- return e.type === "keypress" ? (e = Nn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Xn[e.keyCode] || "Unidentified" : "";
+ return e.type === "keypress" ? (e = Pn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Zn[e.keyCode] || "Unidentified" : "";
},
code: 0,
location: 0,
@@ -2013,17 +2013,17 @@ var k = /* @__PURE__ */ o(((e) => {
metaKey: 0,
repeat: 0,
locale: 0,
- getModifierState: Qn,
+ getModifierState: $n,
charCode: function(e) {
- return e.type === "keypress" ? Nn(e) : 0;
+ return e.type === "keypress" ? Pn(e) : 0;
},
keyCode: function(e) {
return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
},
which: function(e) {
- return e.type === "keypress" ? Nn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
+ return e.type === "keypress" ? Pn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
}
- })), er = In(w({}, H, {
+ })), tr = Ln(w({}, B, {
pointerId: 0,
width: 0,
height: 0,
@@ -2034,7 +2034,7 @@ var k = /* @__PURE__ */ o(((e) => {
twist: 0,
pointerType: 0,
isPrimary: 0
- })), tr = In(w({}, Ln, { submitter: 0 })), nr = In(w({}, zn, {
+ })), nr = Ln(w({}, Rn, { submitter: 0 })), rr = Ln(w({}, Bn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
@@ -2042,12 +2042,12 @@ var k = /* @__PURE__ */ o(((e) => {
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
- getModifierState: Qn
- })), rr = In(w({}, Ln, {
+ getModifierState: $n
+ })), ir = Ln(w({}, Rn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
- })), ir = In(w({}, H, {
+ })), ar = Ln(w({}, B, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
},
@@ -2056,21 +2056,21 @@ var k = /* @__PURE__ */ o(((e) => {
},
deltaZ: 0,
deltaMode: 0
- })), ar = In(w({}, Ln, {
+ })), or = Ln(w({}, Rn, {
newState: 0,
oldState: 0,
source: 0
- })), or = [
+ })), sr = [
9,
13,
27,
32
- ], sr = En && "CompositionEvent" in window, cr = null;
- En && "documentMode" in document && (cr = document.documentMode);
- var lr = En && "TextEvent" in window && !cr, ur = En && (!sr || cr && 8 < cr && 11 >= cr), dr = " ", fr = !1;
- function pr(e, t) {
+ ], cr = Dn && "CompositionEvent" in window, lr = null;
+ Dn && "documentMode" in document && (lr = document.documentMode);
+ var ur = Dn && "TextEvent" in window && !lr, dr = Dn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", pr = !1;
+ function mr(e, t) {
switch (e) {
- case "keyup": return or.indexOf(t.keyCode) !== -1;
+ case "keyup": return sr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
case "keypress":
case "mousedown":
@@ -2078,20 +2078,20 @@ var k = /* @__PURE__ */ o(((e) => {
default: return !1;
}
}
- function mr(e) {
+ function hr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var hr = !1;
- function gr(e, t) {
+ var gr = !1;
+ function _r(e, t) {
switch (e) {
- case "compositionend": return mr(t);
- case "keypress": return t.which === 32 ? (fr = !0, dr) : null;
- case "textInput": return e = t.data, e === dr && fr ? null : e;
+ case "compositionend": return hr(t);
+ case "keypress": return t.which === 32 ? (pr = !0, fr) : null;
+ case "textInput": return e = t.data, e === fr && pr ? null : e;
default: return null;
}
}
- function _r(e, t) {
- if (hr) return e === "compositionend" || !sr && pr(e, t) ? (e = Mn(), jn = An = kn = null, hr = !1, e) : null;
+ function vr(e, t) {
+ if (gr) return e === "compositionend" || !cr && mr(e, t) ? (e = Nn(), Mn = jn = An = null, gr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -2100,11 +2100,11 @@ var k = /* @__PURE__ */ o(((e) => {
if (t.which) return String.fromCharCode(t.which);
}
return null;
- case "compositionend": return ur && t.locale !== "ko" ? null : t.data;
+ case "compositionend": return dr && t.locale !== "ko" ? null : t.data;
default: return null;
}
}
- var vr = {
+ var yr = {
color: !0,
date: !0,
datetime: !0,
@@ -2121,76 +2121,76 @@ var k = /* @__PURE__ */ o(((e) => {
url: !0,
week: !0
};
- function yr(e) {
+ function br(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!vr[e.type] : t === "textarea";
+ return t === "input" ? !!yr[e.type] : t === "textarea";
}
- function br(e, t, n, r) {
- bn ? xn ? xn.push(r) : xn = [r] : bn = r, t = np(t, "onChange"), 0 < t.length && (n = new Rn("onChange", "change", null, n, r), e.push({
+ function xr(e, t, n, r) {
+ xn ? Sn ? Sn.push(r) : Sn = [r] : xn = r, t = np(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var xr = null, Sr = null;
- function Cr(e) {
+ var Sr = null, Cr = null;
+ function wr(e) {
Jf(e, 0);
}
- function wr(e) {
- if (nn(Ft(e))) return e;
+ function Tr(e) {
+ if (rn(It(e))) return e;
}
- function Tr(e, t) {
+ function Er(e, t) {
if (e === "change") return t;
}
- var Er = !1;
- if (En) {
- var Dr;
- if (En) {
- var Or = "oninput" in document;
- if (!Or) {
- var kr = document.createElement("div");
- kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";
+ var Dr = !1;
+ if (Dn) {
+ var Or;
+ if (Dn) {
+ var kr = "oninput" in document;
+ if (!kr) {
+ var Ar = document.createElement("div");
+ Ar.setAttribute("oninput", "return;"), kr = typeof Ar.oninput == "function";
}
- Dr = Or;
- } else Dr = !1;
- Er = Dr && (!document.documentMode || 9 < document.documentMode);
+ Or = kr;
+ } else Or = !1;
+ Dr = Or && (!document.documentMode || 9 < document.documentMode);
}
- function Ar() {
- xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);
+ function jr() {
+ Sr && (Sr.detachEvent("onpropertychange", Mr), Cr = Sr = null);
}
- function jr(e) {
- if (e.propertyName === "value" && wr(Sr)) {
+ function Mr(e) {
+ if (e.propertyName === "value" && Tr(Cr)) {
var t = [];
- br(t, Sr, e, yn(e)), wn(Cr, t);
+ xr(t, Cr, e, bn(e)), Tn(wr, t);
}
}
- function Mr(e, t, n) {
- e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
- }
- function Nr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);
+ function Nr(e, t, n) {
+ e === "focusin" ? (jr(), Sr = t, Cr = n, Sr.attachEvent("onpropertychange", Mr)) : e === "focusout" && jr();
}
- function Pr(e, t) {
- if (e === "click") return wr(t);
+ function Pr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(Cr);
}
function Fr(e, t) {
- if (e === "input" || e === "change") return wr(t);
+ if (e === "click") return Tr(t);
}
function Ir(e, t) {
+ if (e === "input" || e === "change") return Tr(t);
+ }
+ function Lr(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 Rr(e, t) {
- if (Lr(e, t)) return !0;
+ var Rr = typeof Object.is == "function" ? Object.is : Lr;
+ function zr(e, t) {
+ if (Rr(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 (!Le.call(t, i) || !Rr(e[i], t[i])) return !1;
}
return !0;
}
- function zr(e) {
+ function Br(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -2198,12 +2198,12 @@ var k = /* @__PURE__ */ o(((e) => {
return e.body;
}
}
- function Br(e) {
+ function Vr(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Vr(e, t) {
- var n = Br(e);
+ function Hr(e, t) {
+ var n = Vr(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -2223,15 +2223,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = void 0;
}
- n = Br(n);
+ n = Vr(n);
}
}
- 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 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 Ur(e) {
+ function Wr(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = Br(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -2239,18 +2239,18 @@ var k = /* @__PURE__ */ o(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = zr(e.document);
+ t = Br(e.document);
}
return t;
}
- function Wr(e) {
+ function Gr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
- var Gr = En && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
- function Xr(e, t, n) {
+ var Kr = Dn && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;
+ function Zr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Yr || Kr == null || Kr !== zr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
+ Xr || qr == null || qr !== Br(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -2258,46 +2258,46 @@ var k = /* @__PURE__ */ o(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Jr && Rr(Jr, r) || (Jr = r, r = np(qr, "onSelect"), 0 < r.length && (t = new Rn("onSelect", "select", null, t, n), e.push({
+ }), Yr && zr(Yr, r) || (Yr = r, r = np(Jr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = Kr)));
+ }), t.target = qr)));
}
- function Zr(e, t) {
+ function Qr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var Qr = {
- animationend: Zr("Animation", "AnimationEnd"),
- animationiteration: Zr("Animation", "AnimationIteration"),
- animationstart: Zr("Animation", "AnimationStart"),
- transitionrun: Zr("Transition", "TransitionRun"),
- transitionstart: Zr("Transition", "TransitionStart"),
- transitioncancel: Zr("Transition", "TransitionCancel"),
- transitionend: Zr("Transition", "TransitionEnd")
- }, $r = {}, ei = {};
- En && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
- function ti(e) {
- if ($r[e]) return $r[e];
- if (!Qr[e]) return e;
- var t = Qr[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
+ var $r = {
+ animationend: Qr("Animation", "AnimationEnd"),
+ animationiteration: Qr("Animation", "AnimationIteration"),
+ animationstart: Qr("Animation", "AnimationStart"),
+ transitionrun: Qr("Transition", "TransitionRun"),
+ transitionstart: Qr("Transition", "TransitionStart"),
+ transitioncancel: Qr("Transition", "TransitionCancel"),
+ transitionend: Qr("Transition", "TransitionEnd")
+ }, ei = {}, ti = {};
+ Dn && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);
+ function ni(e) {
+ if (ei[e]) return ei[e];
+ if (!$r[e]) return e;
+ var t = $r[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];
return e;
}
- var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
- ui.push("scrollEnd");
- function di(e, t) {
- li.set(e, t), Vt(t, [e]);
+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ di.push("scrollEnd");
+ function fi(e, t) {
+ ui.set(e, t), Ht(t, [e]);
}
- var fi = 0;
- function pi(e, t) {
+ var pi = 0;
+ function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Ed.identifierPrefix;
- var n = fi++;
+ e = Dd.identifierPrefix;
+ var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function mi(e) {
+ function hi(e) {
if (e == null || typeof e == "string") return e;
var t = null, n = Pd;
if (n !== null) for (var r = 0; r < n.length; r++) {
@@ -2309,10 +2309,10 @@ var k = /* @__PURE__ */ o(((e) => {
}
return t ?? e.default;
}
- function hi(e, t) {
- return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function gi(e, t) {
+ return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var gi = typeof reportError == "function" ? reportError : function(e) {
+ var _i = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -2326,62 +2326,62 @@ var k = /* @__PURE__ */ o(((e) => {
return;
}
console.error(e);
- }, _i = [], vi = 0, yi = 0;
- function bi() {
- for (var e = vi, t = yi = vi = 0; t < e;) {
- var n = _i[t];
- _i[t++] = null;
- var r = _i[t];
- _i[t++] = null;
- var i = _i[t];
- _i[t++] = null;
- var a = _i[t];
- if (_i[t++] = null, r !== null && i !== null) {
+ }, vi = [], yi = 0, bi = 0;
+ function xi() {
+ for (var e = yi, t = bi = yi = 0; t < e;) {
+ var n = vi[t];
+ vi[t++] = null;
+ var r = vi[t];
+ vi[t++] = null;
+ var i = vi[t];
+ vi[t++] = null;
+ var a = vi[t];
+ if (vi[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && wi(n, i, a);
+ a !== 0 && Ti(n, i, a);
}
}
- function xi(e, t, n, r) {
- _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function Si(e, t, n, r) {
- return xi(e, t, n, r), Ti(e);
+ vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
}
- function Ci(e, t) {
- return xi(e, null, null, t), Ti(e);
+ function Ci(e, t, n, r) {
+ return Si(e, t, n, r), Ei(e);
}
- function wi(e, t, n) {
+ function wi(e, t) {
+ return Si(e, null, null, t), Ei(e);
+ }
+ function Ti(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $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 - et(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ti(e) {
+ function Ei(e) {
if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ei = {};
- function Di(e, t, n, r) {
+ var Di = {};
+ function Oi(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Oi(e, t, n, r) {
- return new Di(e, t, n, r);
+ function ki(e, t, n, r) {
+ return new Oi(e, t, n, r);
}
- function ki(e) {
+ function Ai(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Ai(e, t) {
+ function ji(e, t) {
var n = e.alternate;
- return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = ki(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function ji(e, t) {
+ function Mi(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -2389,21 +2389,21 @@ var k = /* @__PURE__ */ o(((e) => {
firstContext: t.firstContext
}), e;
}
- function Mi(e, t, n, r, a, o) {
+ function Ni(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") ki(r) && (s = 1);
- else if (typeof r == "string") s = nh(e, n, xe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") Ai(r) && (s = 1);
+ else if (typeof r == "string") s = nh(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
- case O: return Ni(n.children, a, o, t);
+ case ae: return e = ki(31, n, t, a), e.elementType = ae, e.lanes = o, e;
+ case O: return Pi(n.children, a, o, t);
case k:
s = 8, a |= 24;
break;
- case j: return e = Oi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
- case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case re: return e = Oi(19, n, t, a), e.elementType = re, e.lanes = o, e;
- case ae:
- case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
+ case j: return e = ki(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
+ case re: return e = ki(13, n, t, a), e.elementType = re, e.lanes = o, e;
+ case ie: return e = ki(19, n, t, a), e.elementType = ie, e.lanes = o, e;
+ case oe:
+ case ce: return e = a | 32, e = ki(30, n, t, e), e.elementType = ce, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -2411,92 +2411,92 @@ var k = /* @__PURE__ */ o(((e) => {
}, e;
default:
if (typeof r == "object" && r) switch (r.$$typeof) {
- case te:
+ case ne:
s = 10;
break a;
case ee:
s = 9;
break a;
- case P:
+ case N:
s = 11;
break a;
- case F:
+ case P:
s = 14;
break a;
- case I:
+ case F:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Ni(e, t, n, r) {
- return e = Oi(7, e, r, t), e.lanes = n, e;
+ function Pi(e, t, n, r) {
+ return e = ki(7, e, r, t), e.lanes = n, e;
}
- function Pi(e, t, n) {
- return e = Oi(6, e, null, t), e.lanes = n, e;
+ function Fi(e, t, n) {
+ return e = ki(6, e, null, t), e.lanes = n, e;
}
- function Fi(e) {
- var t = Oi(18, null, null, 0);
+ function Ii(e) {
+ var t = ki(18, null, null, 0);
return t.stateNode = e, t;
}
- function Ii(e, t, n) {
- return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Li(e, t, n) {
+ return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Li = /* @__PURE__ */ new WeakMap();
- function Ri(e, t) {
+ var Ri = /* @__PURE__ */ new WeakMap();
+ function zi(e, t) {
if (typeof e == "object" && e) {
- var n = Li.get(e);
+ var n = Ri.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: Fe(t)
- }, Li.set(e, t), t) : n;
+ stack: Ie(t)
+ }, Ri.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: Fe(t)
+ stack: Ie(t)
};
}
- var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
- function Ji(e, t) {
- zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
+ var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, Ji = "";
+ function Yi(e, t) {
+ Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
}
- function Yi(e, t, n) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
- var r = Ki;
- e = qi;
- var i = 32 - $e(r) - 1;
+ function Xi(e, t, n) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, Ki = e;
+ var r = qi;
+ e = Ji;
+ var i = 32 - et(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - $e(t) + i;
+ var a = 32 - et(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - $e(t) + i | n << i | r, qi = a + e;
- } else Ki = 1 << a | n << i | r, qi = e;
- }
- function Xi(e) {
- e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - et(t) + i | n << i | r, Ji = a + e;
+ } else qi = 1 << a | n << i | r, Ji = e;
}
function Zi(e) {
- for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
+ e.return !== null && (Yi(e, 1), Xi(e, 1, 0));
}
- function Qi(e, t) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
+ function Qi(e) {
+ for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;
+ for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, Ji = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
}
- var $i = null, ea = null, ta = !1, na = null, ra = !1, ia = Error(i(519));
- function aa(e) {
- throw da(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ia;
+ function $i(e, t) {
+ Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;
}
+ var ea = null, ta = null, na = !1, ra = null, ia = !1, aa = Error(i(519));
function oa(e) {
+ throw fa(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), aa;
+ }
+ function sa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[Ct] = e, t[wt] = r, n) {
+ switch (t[wt] = e, t[Tt] = r, n) {
case "dialog":
Yf("cancel", t), Yf("close", t);
break;
@@ -2521,67 +2521,67 @@ var k = /* @__PURE__ */ o(((e) => {
Yf("toggle", t);
break;
case "input":
- Yf("invalid", t), an(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Yf("invalid", t), on(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
Yf("invalid", t);
break;
- case "textarea": Yf("invalid", t), ln(t, r.value, r.defaultValue, r.children);
+ case "textarea": Yf("invalid", t), un(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 || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = _n), t = !0) : t = !1, t || aa(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = vn), t = !0) : t = !1, t || oa(e, !0);
}
- function sa(e) {
- for ($i = e.return; $i;) switch ($i.tag) {
+ function ca(e) {
+ for (ea = e.return; ea;) switch (ea.tag) {
case 5:
case 31:
case 13:
- ra = !1;
+ ia = !1;
return;
case 27:
case 3:
- ra = !0;
+ ia = !0;
return;
- default: $i = $i.return;
+ default: ea = ea.return;
}
}
- function ca(e) {
- if (e !== $i) return !1;
- if (!ta) return sa(e), ta = !0, !1;
+ function la(e) {
+ if (e !== ea) return !1;
+ if (!na) return ca(e), na = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ea && aa(e), sa(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ta && oa(e), ca(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ea = bm(e);
+ ta = bm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ea = bm(e);
- } else t === 27 ? (t = ea, jp(e.type) ? (e = ym, ym = null, ea = e) : ea = t) : ea = $i ? vm(e.stateNode.nextSibling) : null;
+ ta = bm(e);
+ } else t === 27 ? (t = ta, jp(e.type) ? (e = ym, ym = null, ta = e) : ta = t) : ta = ea ? vm(e.stateNode.nextSibling) : null;
return !0;
}
- function la() {
- ea = $i = null, ta = !1;
- }
function ua() {
- var e = na;
- return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), na = null), e;
+ ta = ea = null, na = !1;
+ }
+ function da() {
+ var e = ra;
+ return e !== null && (yd === null ? yd = e : yd.push.apply(yd, e), ra = null), e;
}
- function da(e) {
- na === null ? na = [e] : na.push(e);
+ function fa(e) {
+ ra === null ? ra = [e] : ra.push(e);
}
- var fa = ve(null), pa = null, ma = null;
- function ha(e, t, n) {
- be(fa, t._currentValue), t._currentValue = n;
+ var pa = ye(null), ma = null, ha = null;
+ function ga(e, t, n) {
+ xe(pa, t._currentValue), t._currentValue = n;
}
- function ga(e) {
- e._currentValue = fa.current, ye(fa);
+ function _a(e) {
+ e._currentValue = pa.current, be(pa);
}
- function _a(e, t, n) {
+ function va(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function va(e, t, n, r) {
+ function ya(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -2592,15 +2592,15 @@ var k = /* @__PURE__ */ o(((e) => {
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), _a(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), va(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), _a(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), _a(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), va(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), va(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -2616,7 +2616,7 @@ var k = /* @__PURE__ */ o(((e) => {
a = s;
}
}
- function ya(e, t, n, r) {
+ function ba(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -2628,48 +2628,48 @@ var k = /* @__PURE__ */ o(((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));
+ Rr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === we.current) {
+ } else if (a === Te.current) {
if (s = a.alternate, s === null) throw Error(i(387));
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [gh] : e.push(gh));
}
a = a.return;
}
- return e !== null && va(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && ya(t, e, n, r), t.flags |= 262144, e !== null;
}
- function ba(e) {
+ function xa(e) {
for (e = e.firstContext; e !== null;) {
- if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Rr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
- function xa(e) {
- pa = e, ma = null, e = e.dependencies, e !== null && (e.firstContext = null);
- }
function Sa(e) {
- return wa(pa, e);
+ ma = e, ha = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function Ca(e, t) {
- return pa === null && xa(e), wa(e, t);
+ function Ca(e) {
+ return Ta(ma, e);
}
function wa(e, t) {
+ return ma === null && Sa(e), Ta(e, t);
+ }
+ function Ta(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, ma === null) {
+ }, ha === null) {
if (e === null) throw Error(i(308));
- ma = t, e.dependencies = {
+ ha = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else ma = ma.next = t;
+ } else ha = ha.next = t;
return n;
}
- var Ta = typeof AbortController < "u" ? AbortController : function() {
+ var Ea = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -2681,27 +2681,27 @@ var k = /* @__PURE__ */ o(((e) => {
return e();
});
};
- }, Ea = t.unstable_scheduleCallback, Da = t.unstable_NormalPriority, Oa = {
- $$typeof: te,
+ }, Da = t.unstable_scheduleCallback, Oa = t.unstable_NormalPriority, ka = {
+ $$typeof: ne,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0
};
- function ka() {
+ function Aa() {
return {
- controller: new Ta(),
+ controller: new Ea(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Aa(e) {
- e.refCount--, e.refCount === 0 && Ea(Da, function() {
+ function ja(e) {
+ e.refCount--, e.refCount === 0 && Da(Oa, function() {
e.controller.abort();
});
}
- function ja(e, t) {
+ function Ma(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -2710,16 +2710,16 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- var Ma = null;
- function Na(e) {
+ var Na = null;
+ function Pa(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Pa = null, Fa = 0, Ia = 0, La = null;
- function Ra(e, t) {
- if (Pa === null) {
- var n = Pa = [];
- Fa = 0, Ia = Vf(), La = {
+ var Fa = null, Ia = 0, La = 0, Ra = null;
+ function za(e, t) {
+ if (Fa === null) {
+ var n = Fa = [];
+ Ia = 0, La = Vf(), Ra = {
status: "pending",
value: void 0,
then: function(e) {
@@ -2727,17 +2727,17 @@ var k = /* @__PURE__ */ o(((e) => {
}
};
}
- return Fa++, t.then(za, za), t;
+ return Ia++, t.then(Ba, Ba), t;
}
- function za() {
- if (--Fa === 0 && (Ma = null, Pa !== null)) {
- La !== null && (La.status = "fulfilled");
- var e = Pa;
- Pa = null, Ia = 0, La = null;
+ function Ba() {
+ if (--Ia === 0 && (Na = null, Fa !== null)) {
+ Ra !== null && (Ra.status = "fulfilled");
+ var e = Fa;
+ Fa = null, La = 0, Ra = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Ba(e, t) {
+ function Va(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -2753,48 +2753,48 @@ var k = /* @__PURE__ */ o(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Va = me.S;
- me.S = function(e, t) {
- if (xd = Ve(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Df; n !== null;) ja(n, Ma), n = n.next;
+ var Ha = he.S;
+ he.S = function(e, t) {
+ if (Sd = He(), typeof t == "object" && t && typeof t.then == "function" && za(e, t), Na !== null) for (var n = Df; n !== null;) Ma(n, Na), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Df; r !== null;) ja(r, n), r = r.next;
- if (Ia !== 0) {
- r = Ma, r === null && (r = Ma = []);
+ for (var r = Df; r !== null;) Ma(r, n), r = r.next;
+ if (La !== 0) {
+ r = Na, r === null && (r = Na = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Va !== null && Va(e, t);
+ Ha !== null && Ha(e, t);
};
- var Ha = ve(null);
- function Ua() {
- var e = Ha.current;
- return e === null ? nd.pooledCache : e;
+ var Ua = ye(null);
+ function Wa() {
+ var e = Ua.current;
+ return e === null ? rd.pooledCache : e;
}
- function Wa(e, t) {
- t === null ? be(Ha, Ha.current) : be(Ha, t.pool);
+ function Ga(e, t) {
+ t === null ? xe(Ua, Ua.current) : xe(Ua, t.pool);
}
- function Ga() {
- var e = Ua();
+ function Ka() {
+ var e = Wa();
return e === null ? null : {
- parent: Oa._currentValue,
+ parent: ka._currentValue,
pool: e
};
}
- var Ka = Error(i(460)), qa = Error(i(474)), Ja = Error(i(542)), Ya = { then: function() {} };
- function Xa(e) {
+ var qa = Error(i(460)), Ja = Error(i(474)), Ya = Error(i(542)), Xa = { then: function() {} };
+ function Za(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Za(e, t, n) {
- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(_n, _n), t = n), t.status) {
+ function Qa(e, t, n) {
+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(vn, vn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, to(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, no(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
- if (typeof t.status == "string") t.then(_n, _n);
+ if (typeof t.status == "string") t.then(vn, vn);
else {
- if (e = nd, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = rd, 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;
@@ -2809,40 +2809,40 @@ var k = /* @__PURE__ */ o(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, to(e), e;
+ case "rejected": throw e = t.reason, no(e), e;
}
- throw $a = t, Ka;
+ throw eo = t, qa;
}
}
- function Qa(e) {
+ function $a(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? ($a = e, Ka) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (eo = e, qa) : e;
}
}
- var $a = null;
- function eo() {
- if ($a === null) throw Error(i(459));
- var e = $a;
- return $a = null, e;
+ var eo = null;
+ function to() {
+ if (eo === null) throw Error(i(459));
+ var e = eo;
+ return eo = null, e;
}
- function to(e) {
- if (e === Ka || e === Ja) throw Error(i(483));
+ function no(e) {
+ if (e === qa || e === Ya) throw Error(i(483));
}
- var no = null, ro = 0;
- function io(e) {
- var t = ro;
- return ro += 1, no === null && (no = []), Za(no, e, t);
+ var ro = null, io = 0;
+ function ao(e) {
+ var t = io;
+ return io += 1, ro === null && (ro = []), Qa(ro, e, t);
}
- function ao(e, t) {
+ function oo(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function oo(e, t) {
+ function so(e, t) {
throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function so(e) {
+ function co(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -2859,7 +2859,7 @@ var k = /* @__PURE__ */ o(((e) => {
return t;
}
function a(e, t) {
- return e = Ai(e, t), e.index = 0, e.sibling = null, e;
+ return e = ji(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -2868,30 +2868,30 @@ var k = /* @__PURE__ */ o(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === O ? (e = d(e, t, n.props.children, r, n.key), ao(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && Qa(i) === t.type) ? (t = a(t, n.props), ao(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), ao(t, n), t.return = e, t);
+ return i === O ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === F && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), oo(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case E: return n = Mi(t.type, t.key, t.props, null, e.mode, n), ao(n, t), n.return = e, n;
- case D: return t = Ii(t, e.mode, n), t.return = e, t;
- case I: return t = Qa(t), f(e, t, n);
+ case E: return n = Ni(t.type, t.key, t.props, null, e.mode, n), oo(n, t), n.return = e, n;
+ case D: return t = Li(t, e.mode, n), t.return = e, t;
+ case F: return t = $a(t), f(e, t, n);
}
- if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, io(t), n);
- if (t.$$typeof === te) return f(e, Ca(e, t), n);
- oo(e, t);
+ if (me(t) || de(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, ao(t), n);
+ if (t.$$typeof === ne) return f(e, wa(e, t), n);
+ so(e, t);
}
return null;
}
@@ -2902,12 +2902,12 @@ var k = /* @__PURE__ */ o(((e) => {
switch (n.$$typeof) {
case E: return n.key === i ? l(e, t, n, r) : null;
case D: return n.key === i ? u(e, t, n, r) : null;
- case I: return n = Qa(n), p(e, t, n, r);
+ case F: return n = $a(n), p(e, t, n, r);
}
- if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, io(n), r);
- if (n.$$typeof === te) return p(e, t, Ca(e, n), r);
- oo(e, n);
+ if (me(n) || de(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, ao(n), r);
+ if (n.$$typeof === ne) return p(e, t, wa(e, n), r);
+ so(e, n);
}
return null;
}
@@ -2917,12 +2917,12 @@ var k = /* @__PURE__ */ o(((e) => {
switch (r.$$typeof) {
case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case I: return r = Qa(r), m(e, t, n, r, i);
+ case F: return r = $a(r), m(e, t, n, r, i);
}
- if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, io(r), i);
- if (r.$$typeof === te) return m(e, t, n, Ca(t, r), i);
- oo(t, r);
+ if (me(r) || de(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, ao(r), i);
+ if (r.$$typeof === ne) return m(e, t, n, wa(t, r), i);
+ so(t, r);
}
return null;
}
@@ -2936,15 +2936,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), ta && Ji(i, h), l;
+ if (h === s.length) return n(i, d), na && Yi(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return ta && Ji(i, h), l;
+ return na && Yi(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), ta && Ji(i, h), l;
+ }), na && Yi(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -2957,15 +2957,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), ta && Ji(a, g), u;
+ if (v.done) return n(a, h), na && Yi(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return ta && Ji(a, g), u;
+ return na && Yi(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), ta && Ji(a, g), u;
+ }), na && Yi(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -2976,11 +2976,11 @@ var k = /* @__PURE__ */ o(((e) => {
if (r.key === l) {
if (l = o.type, l === O) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), ao(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), oo(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && Qa(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), ao(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === F && $a(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), oo(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -2988,7 +2988,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === O ? (c = Ni(o.props.children, e.mode, c, o.key), ao(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), ao(c, o), c.return = e, e = c);
+ o.type === O ? (c = Pi(o.props.children, e.mode, c, o.key), oo(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), oo(c, o), c.return = e, e = c);
}
return s(e);
case D:
@@ -3004,36 +3004,36 @@ var k = /* @__PURE__ */ o(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Ii(o, e.mode, c), c.return = e, e = c;
+ c = Li(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case I: return o = Qa(o), _(e, r, o, c);
+ case F: return o = $a(o), _(e, r, o, c);
}
- if (pe(o)) return h(e, r, o, c);
- if (ue(o)) {
- if (l = ue(o), typeof l != "function") throw Error(i(150));
+ if (me(o)) return h(e, r, o, c);
+ if (de(o)) {
+ if (l = de(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, io(o), c);
- if (o.$$typeof === te) return _(e, r, Ca(e, o), c);
- oo(e, o);
+ if (typeof o.then == "function") return _(e, r, ao(o), c);
+ if (o.$$typeof === ne) return _(e, r, wa(e, o), c);
+ so(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- ro = 0;
+ io = 0;
var i = _(e, t, n, r);
- return no = null, i;
+ return ro = null, i;
} catch (t) {
- if (t === Ka || t === Ja) throw t;
- var a = Oi(29, t, null, e.mode);
+ if (t === qa || t === Ya) throw t;
+ var a = ki(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var co = so(!0), lo = so(!1), uo = !1;
- function fo(e) {
+ var lo = co(!0), uo = co(!1), fo = !1;
+ function po(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -3046,7 +3046,7 @@ var k = /* @__PURE__ */ o(((e) => {
callbacks: null
};
}
- function po(e, t) {
+ function mo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -3055,7 +3055,7 @@ var k = /* @__PURE__ */ o(((e) => {
callbacks: null
});
}
- function mo(e) {
+ function ho(e) {
return {
lane: e,
tag: 0,
@@ -3064,22 +3064,22 @@ var k = /* @__PURE__ */ o(((e) => {
next: null
};
}
- function ho(e, t, n) {
+ function go(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, td & 2) {
+ if (r = r.shared, nd & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
}
- return xi(e, r, t, n), Ti(e);
+ return Si(e, r, t, n), Ei(e);
}
- function go(e, t, n) {
+ function _o(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, _t(e, n);
}
}
- function _o(e, t) {
+ function vo(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -3105,17 +3105,17 @@ var k = /* @__PURE__ */ o(((e) => {
}, e.updateQueue = n;
} else e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var vo = !1;
- function yo() {
- if (vo) {
- var e = La;
+ var yo = !1;
+ function bo() {
+ if (yo) {
+ var e = Ra;
if (e !== null) throw e;
}
}
- function bo(e, t, n, r) {
- vo = !1;
+ function xo(e, t, n, r) {
+ yo = !1;
var i = e.updateQueue;
- uo = !1;
+ fo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -3129,8 +3129,8 @@ var k = /* @__PURE__ */ o(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (id & f) === f : (r & f) === f) {
- f !== 0 && f === Ia && (vo = !0), u !== null && (u = u.next = {
+ if (p ? (ad & f) === f : (r & f) === f) {
+ f !== 0 && f === La && (yo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -3154,7 +3154,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = w({}, d, f);
break a;
- case 2: uo = !0;
+ case 2: fo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -3170,52 +3170,52 @@ var k = /* @__PURE__ */ o(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), fd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), pd |= o, e.lanes = o, e.memoizedState = d;
}
}
- function xo(e, t) {
+ function So(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function So(e, t) {
+ function Co(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) xo(n[e], t);
- }
- var Co = ve(null), wo = ve(0);
- function To(e, t) {
- e = ud, be(wo, e), be(Co, t), ud = e | t.baseLanes;
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) So(n[e], t);
}
- function Eo() {
- be(wo, ud), be(Co, Co.current);
+ var wo = ye(null), To = ye(0);
+ function Eo(e, t) {
+ e = dd, xe(To, e), xe(wo, t), dd = e | t.baseLanes;
}
function Do() {
- ud = wo.current, ye(Co), ye(wo);
+ xe(To, dd), xe(wo, wo.current);
}
- var Oo = ve(null), ko = null;
- function Ao(e) {
- var t = e.alternate;
- be(Fo, Fo.current & 1), be(Oo, e), ko === null && (t === null || Co.current !== null || t.memoizedState !== null) && (ko = e);
+ function Oo() {
+ dd = To.current, be(wo), be(To);
}
+ var ko = ye(null), Ao = null;
function jo(e) {
- be(Fo, Fo.current), be(Oo, e), ko === null && (ko = e);
+ var t = e.alternate;
+ xe(Io, Io.current & 1), xe(ko, e), Ao === null && (t === null || wo.current !== null || t.memoizedState !== null) && (Ao = e);
}
function Mo(e) {
- e.tag === 22 ? (be(Fo, Fo.current), be(Oo, e), ko === null && (ko = e)) : No();
+ xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e);
}
- function No() {
- be(Fo, Fo.current), be(Oo, Oo.current);
+ function No(e) {
+ e.tag === 22 ? (xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e)) : Po();
}
- function Po(e) {
- ye(Oo), ko === e && (ko = null), ye(Fo);
+ function Po() {
+ xe(Io, Io.current), xe(ko, ko.current);
}
- var Fo = ve(0);
- function Io(e, t) {
- be(Oo, Oo.current), be(Fo, t);
+ function Fo(e) {
+ be(ko), Ao === e && (Ao = null), be(Io);
}
- function Lo(e) {
- ye(Fo), ye(Oo), ko === e && (ko = null);
+ var Io = ye(0);
+ function Lo(e, t) {
+ xe(ko, ko.current), xe(Io, t);
}
function Ro(e) {
+ be(Io), be(ko), Ao === e && (Ao = null);
+ }
+ function zo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -3235,59 +3235,59 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- var zo = 0, Bo = null, Vo = null, Ho = null, Uo = !1, Wo = !1, Go = !1, Ko = 0, qo = 0, Jo = null, Yo = 0;
- function Xo() {
+ var Bo = 0, Vo = null, Ho = null, Uo = null, Wo = !1, Go = !1, Ko = !1, qo = 0, Jo = 0, Yo = null, Xo = 0;
+ function Zo() {
throw Error(i(321));
}
- function Zo(e, t) {
+ function Qo(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 (!Rr(e[n], t[n])) return !1;
return !0;
}
- function Qo(e, t, n, r, i, a) {
- return zo = a, Bo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? hc : gc, Go = !1, a = n(r, i), Go = !1, Wo && (a = es(t, n, r, i)), $o(e), a;
+ function $o(e, t, n, r, i, a) {
+ return Bo = a, Vo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, he.H = e === null || e.memoizedState === null ? gc : _c, Ko = !1, a = n(r, i), Ko = !1, Go && (a = ts(t, n, r, i)), es(e), a;
}
- function $o(e) {
- me.H = mc;
- var t = Vo !== null && Vo.next !== null;
- if (zo = 0, Ho = Vo = Bo = null, Uo = !1, qo = 0, Jo = null, t) throw Error(i(300));
- e === null || Nc || (e = e.dependencies, e !== null && ba(e) && (Nc = !0));
+ function es(e) {
+ he.H = hc;
+ var t = Ho !== null && Ho.next !== null;
+ if (Bo = 0, Uo = Ho = Vo = null, Wo = !1, Jo = 0, Yo = null, t) throw Error(i(300));
+ e === null || Pc || (e = e.dependencies, e !== null && xa(e) && (Pc = !0));
}
- function es(e, t, n, r) {
- Bo = e;
+ function ts(e, t, n, r) {
+ Vo = e;
var a = 0;
do {
- if (Wo && (Jo = null), qo = 0, Wo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Ho = Vo = null, e.updateQueue != null) {
+ if (Go && (Yo = null), Jo = 0, Go = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Uo = Ho = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- me.H = _c, o = t(n, r);
- } while (Wo);
+ he.H = vc, o = t(n, r);
+ } while (Go);
return o;
}
- function ts() {
- var e = me.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? cs(t) : t, e = e.useState()[0], (Vo === null ? null : Vo.memoizedState) !== e && (Bo.flags |= 1024), t;
- }
function ns() {
- var e = Ko !== 0;
- return Ko = 0, e;
+ var e = he.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? ls(t) : t, e = e.useState()[0], (Ho === null ? null : Ho.memoizedState) !== e && (Vo.flags |= 1024), t;
}
- function rs(e, t, n) {
+ function rs() {
+ var e = qo !== 0;
+ return qo = 0, e;
+ }
+ function is(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function is(e) {
- if (Uo) {
+ function as(e) {
+ if (Wo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Uo = !1;
+ Wo = !1;
}
- zo = 0, Ho = Vo = Bo = null, Wo = !1, qo = Ko = 0, Jo = null;
+ Bo = 0, Uo = Ho = Vo = null, Go = !1, Jo = qo = 0, Yo = null;
}
- function as() {
+ function os() {
var e = {
memoizedState: null,
baseState: null,
@@ -3295,28 +3295,28 @@ var k = /* @__PURE__ */ o(((e) => {
queue: null,
next: null
};
- return Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e, Ho;
+ return Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e, Uo;
}
- function os() {
- if (Vo === null) {
- var e = Bo.alternate;
+ function ss() {
+ if (Ho === null) {
+ var e = Vo.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Vo.next;
- var t = Ho === null ? Bo.memoizedState : Ho.next;
- if (t !== null) Ho = t, Vo = e;
+ } else e = Ho.next;
+ var t = Uo === null ? Vo.memoizedState : Uo.next;
+ if (t !== null) Uo = t, Ho = e;
else {
- if (e === null) throw Bo.alternate === null ? Error(i(467)) : Error(i(310));
- Vo = e, e = {
- memoizedState: Vo.memoizedState,
- baseState: Vo.baseState,
- baseQueue: Vo.baseQueue,
- queue: Vo.queue,
+ if (e === null) throw Vo.alternate === null ? Error(i(467)) : Error(i(310));
+ Ho = e, e = {
+ memoizedState: Ho.memoizedState,
+ baseState: Ho.baseState,
+ baseQueue: Ho.baseQueue,
+ queue: Ho.queue,
next: null
- }, Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e;
+ }, Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e;
}
- return Ho;
+ return Uo;
}
- function ss() {
+ function cs() {
return {
lastEffect: null,
events: null,
@@ -3324,22 +3324,22 @@ var k = /* @__PURE__ */ o(((e) => {
memoCache: null
};
}
- function cs(e) {
- var t = qo;
- return qo += 1, Jo === null && (Jo = []), e = Za(Jo, e, t), t = Bo, (Ho === null ? t.memoizedState : Ho.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? hc : gc), e;
- }
function ls(e) {
+ var t = Jo;
+ return Jo += 1, Yo === null && (Yo = []), e = Qa(Yo, e, t), t = Vo, (Uo === null ? t.memoizedState : Uo.next) === null && (t = t.alternate, he.H = t === null || t.memoizedState === null ? gc : _c), e;
+ }
+ function us(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return cs(e);
- if (e.$$typeof === ce) return;
- if (e.$$typeof === te) return Sa(e);
+ if (typeof e.then == "function") return ls(e);
+ if (e.$$typeof === le) return;
+ if (e.$$typeof === ne) return Ca(e);
}
throw Error(i(438, String(e)));
}
- function us(e) {
- var t = null, n = Bo.updateQueue;
+ function ds(e) {
+ var t = null, n = Vo.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = Bo.alternate;
+ var r = Vo.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -3350,16 +3350,16 @@ var k = /* @__PURE__ */ o(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = ss(), Bo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
+ }, n === null && (n = cs(), Vo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = se;
return t.index++, n;
}
- function ds(e, t) {
+ function fs(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function fs(e) {
- return ps(os(), Vo, e);
+ function ps(e) {
+ return ms(ss(), Ho, e);
}
- function ps(e, t, n) {
+ function ms(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -3377,7 +3377,7 @@ var k = /* @__PURE__ */ o(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (zo & f) === f : (id & f) === f) {
+ if (f === u.lane ? (Bo & f) === f : (ad & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -3387,9 +3387,9 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Ia && (d = !0);
- else if ((zo & p) === p) {
- u = u.next, p === Ia && (d = !0);
+ }), f === La && (d = !0);
+ else if ((Bo & p) === p) {
+ u = u.next, p === La && (d = !0);
continue;
} else f = {
lane: 0,
@@ -3399,8 +3399,8 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, Bo.lanes |= p, fd |= p;
- f = u.action, Go && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Vo.lanes |= p, pd |= p;
+ f = u.action, Ko && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -3409,16 +3409,16 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, Bo.lanes |= f, fd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Vo.lanes |= f, pd |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Nc = !0, d && (n = La, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Rr(o, e.memoizedState) && (Pc = !0, d && (n = Ra, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function ms(e) {
- var t = os(), n = t.queue;
+ function hs(e) {
+ var t = ss(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -3428,61 +3428,61 @@ var k = /* @__PURE__ */ o(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Lr(o, t.memoizedState) || (Nc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Rr(o, t.memoizedState) || (Pc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function hs(e, t, n) {
- var r = Bo, a = os(), o = ta;
+ function gs(e, t, n) {
+ var r = Vo, a = ss(), o = na;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Lr((Vo || a).memoizedState, n);
- if (s && (a.memoizedState = n, Nc = !0), a = a.queue, Bs(vs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ho !== null && !!(Ho.memoizedState.tag & 1), Fs(e ? 9 : 8, { destroy: void 0 }, _s.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, nd === null) throw Error(i(349));
- o || zo & 127 || gs(r, t, n);
+ var s = !Rr((Ho || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Pc = !0), a = a.queue, Vs(ys.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Uo !== null && !!(Uo.memoizedState.tag & 1), Is(e ? 9 : 8, { destroy: void 0 }, vs.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, rd === null) throw Error(i(349));
+ o || Bo & 127 || _s(r, t, n);
}
return n;
}
- function gs(e, t, n) {
+ function _s(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = Bo.updateQueue, t === null ? (t = ss(), Bo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = Vo.updateQueue, t === null ? (t = cs(), Vo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function _s(e, t, n, r) {
- t.value = n, t.getSnapshot = r, ys(t) && bs(e);
+ function vs(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, bs(t) && xs(e);
}
- function vs(e, t, n) {
+ function ys(e, t, n) {
return n(function() {
- ys(t) && bs(e);
+ bs(t) && xs(e);
});
}
- function ys(e) {
+ function bs(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Lr(e, n);
+ return !Rr(e, n);
} catch {
return !0;
}
}
- function bs(e) {
- var t = Ci(e, 2);
+ function xs(e) {
+ var t = wi(e, 2);
t !== null && Bd(t, e, 2);
}
- function xs(e) {
- var t = as();
+ function Ss(e) {
+ var t = os();
if (typeof e == "function") {
var n = e;
- if (e = n(), Go) {
- Qe(!0);
+ if (e = n(), Ko) {
+ $e(!0);
try {
n();
} finally {
- Qe(!1);
+ $e(!1);
}
}
}
@@ -3490,15 +3490,15 @@ var k = /* @__PURE__ */ o(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ds,
+ lastRenderedReducer: fs,
lastRenderedState: e
}, t;
}
- function Ss(e, t, n, r) {
- return e.baseState = n, ps(e, Vo, typeof r == "function" ? r : ds);
+ function Cs(e, t, n, r) {
+ return e.baseState = n, ms(e, Ho, typeof r == "function" ? r : fs);
}
- function Cs(e, t, n, r, a) {
- if (dc(e)) throw Error(i(485));
+ function ws(e, t, n, r, a) {
+ if (fc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -3513,124 +3513,124 @@ var k = /* @__PURE__ */ o(((e) => {
o.listeners.push(e);
}
};
- me.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ws(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ he.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ts(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function ws(e, t) {
+ function Ts(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = me.T, o = {};
- o.types = a === null ? null : a.types, me.T = o;
+ var a = he.T, o = {};
+ o.types = a === null ? null : a.types, he.T = o;
try {
- var s = n(i, r), c = me.S;
- c !== null && c(o, s), Ts(e, t, s);
+ var s = n(i, r), c = he.S;
+ c !== null && c(o, s), Es(e, t, s);
} catch (n) {
- Ds(e, t, n);
+ Os(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), me.T = a;
+ a !== null && o.types !== null && (a.types = o.types), he.T = a;
}
} else try {
- a = n(i, r), Ts(e, t, a);
+ a = n(i, r), Es(e, t, a);
} catch (n) {
- Ds(e, t, n);
+ Os(e, t, n);
}
}
- function Ts(e, t, n) {
+ function Es(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Es(e, t, n);
+ Ds(e, t, n);
}, function(n) {
- return Ds(e, t, n);
- }) : Es(e, t, n);
- }
- function Es(e, t, n) {
- t.status = "fulfilled", t.value = n, Os(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ws(e, n)));
+ return Os(e, t, n);
+ }) : Ds(e, t, n);
}
function Ds(e, t, n) {
+ t.status = "fulfilled", t.value = n, ks(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ts(e, n)));
+ }
+ function Os(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, Os(t), t = t.next;
+ t.status = "rejected", t.reason = n, ks(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function Os(e) {
+ function ks(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function ks(e, t) {
+ function As(e, t) {
return t;
}
- function As(e, t) {
- if (ta) {
- var n = nd.formState;
+ function js(e, t) {
+ if (na) {
+ var n = rd.formState;
if (n !== null) {
a: {
- var r = Bo;
- if (ta) {
- if (ea) {
+ var r = Vo;
+ if (na) {
+ if (ta) {
b: {
- for (var i = ea, a = ra; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {
+ for (var i = ta, a = ia; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {
i = null;
break b;
}
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ea = vm(i.nextSibling), r = i.data === "F!";
+ ta = vm(i.nextSibling), r = i.data === "F!";
break a;
}
}
- aa(r);
+ oa(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = as(), n.memoizedState = n.baseState = t, r = {
+ return n = os(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ks,
+ lastRenderedReducer: As,
lastRenderedState: t
- }, n.queue = r, n = cc.bind(null, Bo, r), r.dispatch = n, r = xs(!1), a = uc.bind(null, Bo, !1, r.queue), r = as(), i = {
+ }, n.queue = r, n = lc.bind(null, Vo, r), r.dispatch = n, r = Ss(!1), a = dc.bind(null, Vo, !1, r.queue), r = os(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = Cs.bind(null, Bo, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = ws.bind(null, Vo, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function js(e) {
- return Ms(os(), Vo, e);
+ function Ms(e) {
+ return Ns(ss(), Ho, e);
}
- function Ms(e, t, n) {
- if (t = ps(e, t, ks)[0], e = fs(ds)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = cs(t);
+ function Ns(e, t, n) {
+ if (t = ms(e, t, As)[0], e = ps(fs)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = ls(t);
} catch (e) {
- throw e === Ka ? Ja : e;
+ throw e === qa ? Ya : e;
}
else r = t;
- t = os();
+ t = ss();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (Bo.flags |= 2048, Fs(9, { destroy: void 0 }, Ns.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (Vo.flags |= 2048, Is(9, { destroy: void 0 }, Ps.bind(null, i, n), null)), [
r,
a,
e
];
}
- function Ns(e, t) {
+ function Ps(e, t) {
e.action = t;
}
- function Ps(e) {
- var t = os(), n = Vo;
- if (n !== null) return Ms(t, n, e);
- os(), t = t.memoizedState, n = os();
+ function Fs(e) {
+ var t = ss(), n = Ho;
+ if (n !== null) return Ns(t, n, e);
+ ss(), t = t.memoizedState, n = ss();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -3638,60 +3638,60 @@ var k = /* @__PURE__ */ o(((e) => {
!1
];
}
- function Fs(e, t, n, r) {
+ function Is(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = Bo.updateQueue, t === null && (t = ss(), Bo.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 Is() {
- return os().memoizedState;
+ }, t = Vo.updateQueue, t === null && (t = cs(), Vo.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 Ls(e, t, n, r) {
- var i = as();
- Bo.flags |= e, i.memoizedState = Fs(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ function Ls() {
+ return ss().memoizedState;
}
function Rs(e, t, n, r) {
var i = os();
+ Vo.flags |= e, i.memoizedState = Is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
+ }
+ function zs(e, t, n, r) {
+ var i = ss();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Vo !== null && r !== null && Zo(r, Vo.memoizedState.deps) ? i.memoizedState = Fs(t, a, n, r) : (Bo.flags |= e, i.memoizedState = Fs(1 | t, a, n, r));
- }
- function zs(e, t) {
- Ls(8390656, 8, e, t);
+ Ho !== null && r !== null && Qo(r, Ho.memoizedState.deps) ? i.memoizedState = Is(t, a, n, r) : (Vo.flags |= e, i.memoizedState = Is(1 | t, a, n, r));
}
function Bs(e, t) {
- Rs(2048, 8, e, t);
+ Rs(8390656, 8, e, t);
}
- function Vs(e) {
- Bo.flags |= 4;
- var t = Bo.updateQueue;
- if (t === null) t = ss(), Bo.updateQueue = t, t.events = [e];
+ function Vs(e, t) {
+ zs(2048, 8, e, t);
+ }
+ function Hs(e) {
+ Vo.flags |= 4;
+ var t = Vo.updateQueue;
+ if (t === null) t = cs(), Vo.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Hs(e) {
- var t = os().memoizedState;
- return Vs({
+ function Us(e) {
+ var t = ss().memoizedState;
+ return Hs({
ref: t,
nextImpl: e
}), function() {
- if (td & 2) throw Error(i(440));
+ if (nd & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
- function Us(e, t) {
- return Rs(4, 2, e, t);
- }
function Ws(e, t) {
- return Rs(4, 4, e, t);
+ return zs(4, 2, e, t);
}
function Gs(e, t) {
+ return zs(4, 4, e, t);
+ }
+ function Ks(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -3703,76 +3703,76 @@ var k = /* @__PURE__ */ o(((e) => {
t.current = null;
};
}
- function Ks(e, t, n) {
- n = n == null ? null : n.concat([e]), Rs(4, 4, Gs.bind(null, t, e), n);
+ function qs(e, t, n) {
+ n = n == null ? null : n.concat([e]), zs(4, 4, Ks.bind(null, t, e), n);
}
- function qs() {}
- function Js(e, t) {
- var n = os();
+ function Js() {}
+ function Ys(e, t) {
+ var n = ss();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Zo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Ys(e, t) {
- var n = os();
+ function Xs(e, t) {
+ var n = ss();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Zo(t, r[1])) return r[0];
- if (r = e(), Go) {
- Qe(!0);
+ if (t !== null && Qo(t, r[1])) return r[0];
+ if (r = e(), Ko) {
+ $e(!0);
try {
e();
} finally {
- Qe(!1);
+ $e(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Xs(e, t, n) {
- return n === void 0 || zo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), Bo.lanes |= e, fd |= e, n);
+ function Zs(e, t, n) {
+ return n === void 0 || Bo & 1073741824 && !(ad & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), Vo.lanes |= e, pd |= e, n);
}
- function Zs(e, t, n, r) {
- return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(id & 261930) ? (Nc = !0, e.memoizedState = n) : (e = Rd(), Bo.lanes |= e, fd |= e, t) : (e = Xs(e, n, r), Lr(e, t) || (Nc = !0), e);
+ function Qs(e, t, n, r) {
+ return Rr(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(ad & 261930) ? (Pc = !0, e.memoizedState = n) : (e = Rd(), Vo.lanes |= e, pd |= e, t) : (e = Zs(e, n, r), Rr(e, t) || (Pc = !0), e);
}
- function Qs(e, t, n, r, i) {
- var a = L.p;
- L.p = a !== 0 && 8 > a ? a : 8;
- var o = me.T, s = {};
- s.types = o === null ? null : o.types, me.T = s, uc(e, !1, t, n);
+ function $s(e, t, n, r, i) {
+ var a = I.p;
+ I.p = a !== 0 && 8 > a ? a : 8;
+ var o = he.T, s = {};
+ s.types = o === null ? null : o.types, he.T = s, dc(e, !1, t, n);
try {
- var c = i(), l = me.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Ba(c, r), Ld(e)) : lc(e, t, r, Ld(e));
+ var c = i(), l = he.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? uc(e, t, Va(c, r), Ld(e)) : uc(e, t, r, Ld(e));
} catch (n) {
- lc(e, t, {
+ uc(e, t, {
then: function() {},
status: "rejected",
reason: n
}, Ld());
} finally {
- L.p = a, o !== null && s.types !== null && (o.types = s.types), me.T = o;
+ I.p = a, o !== null && s.types !== null && (o.types = s.types), he.T = o;
}
}
- function $s() {}
- function ec(e, t, n, r) {
+ function ec() {}
+ function tc(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = tc(e).queue;
- Qs(e, a, t, he, n === null ? $s : function() {
- return nc(e), n(r);
+ var a = nc(e).queue;
+ $s(e, a, t, ge, n === null ? ec : function() {
+ return rc(e), n(r);
});
}
- function tc(e) {
+ function nc(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: he,
- baseState: he,
+ memoizedState: ge,
+ baseState: ge,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ds,
- lastRenderedState: he
+ lastRenderedReducer: fs,
+ lastRenderedState: ge
},
next: null
};
@@ -3785,40 +3785,40 @@ var k = /* @__PURE__ */ o(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ds,
+ lastRenderedReducer: fs,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function nc(e) {
- var t = tc(e);
- t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Ld());
- }
- function rc() {
- return Sa(gh);
+ function rc(e) {
+ var t = nc(e);
+ t.next === null && (t = e.alternate.memoizedState), uc(e, t.next.queue, {}, Ld());
}
function ic() {
- return os().memoizedState;
+ return Ca(gh);
}
function ac() {
- return os().memoizedState;
+ return ss().memoizedState;
}
- function oc(e) {
+ function oc() {
+ return ss().memoizedState;
+ }
+ function sc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
var n = Ld();
- e = mo(n);
- var r = ho(t, e, n);
- r !== null && (Bd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
+ e = ho(n);
+ var r = go(t, e, n);
+ r !== null && (Bd(r, t, n), _o(r, t, n)), t = { cache: Aa() }, e.payload = t;
return;
}
t = t.return;
}
}
- function sc(e, t, n) {
+ function cc(e, t, n) {
var r = Ld();
n = {
lane: r,
@@ -3828,12 +3828,12 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, dc(e) ? fc(t, n) : (n = Si(e, t, n, r), n !== null && (Bd(n, e, r), pc(n, t, r)));
+ }, fc(e) ? pc(t, n) : (n = Ci(e, t, n, r), n !== null && (Bd(n, e, r), mc(n, t, r)));
}
- function cc(e, t, n) {
- lc(e, t, n, Ld());
+ function lc(e, t, n) {
+ uc(e, t, n, Ld());
}
- function lc(e, t, n, r) {
+ function uc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -3843,18 +3843,18 @@ var k = /* @__PURE__ */ o(((e) => {
eagerState: null,
next: null
};
- if (dc(e)) fc(t, i);
+ if (fc(e)) pc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return xi(e, t, i, 0), nd === null && bi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Rr(s, o)) return Si(e, t, i, 0), rd === null && xi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Bd(n, e, r), pc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Bd(n, e, r), mc(n, t, r), !0;
}
return !1;
}
- function uc(e, t, n, r) {
+ function dc(e, t, n, r) {
if (r = {
lane: 2,
revertLane: Vf(),
@@ -3863,91 +3863,91 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, dc(e)) {
+ }, fc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Bd(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Bd(t, e, 2);
}
- function dc(e) {
+ function fc(e) {
var t = e.alternate;
- return e === Bo || t !== null && t === Bo;
+ return e === Vo || t !== null && t === Vo;
}
- function fc(e, t) {
- Wo = Uo = !0;
+ function pc(e, t) {
+ Go = Wo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function pc(e, t, n) {
+ function mc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
- }
- }
- var mc = {
- readContext: Sa,
- use: ls,
- useCallback: Xo,
- useContext: Xo,
- useEffect: Xo,
- useImperativeHandle: Xo,
- useLayoutEffect: Xo,
- useInsertionEffect: Xo,
- useMemo: Xo,
- useReducer: Xo,
- useRef: Xo,
- useState: Xo,
- useDebugValue: Xo,
- useDeferredValue: Xo,
- useTransition: Xo,
- useSyncExternalStore: Xo,
- useId: Xo,
- useHostTransitionStatus: Xo,
- useFormState: Xo,
- useActionState: Xo,
- useOptimistic: Xo,
- useMemoCache: Xo,
- useCacheRefresh: Xo,
- useEffectEvent: Xo
- }, hc = {
- readContext: Sa,
- use: ls,
+ r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);
+ }
+ }
+ var hc = {
+ readContext: Ca,
+ use: us,
+ useCallback: Zo,
+ useContext: Zo,
+ useEffect: Zo,
+ useImperativeHandle: Zo,
+ useLayoutEffect: Zo,
+ useInsertionEffect: Zo,
+ useMemo: Zo,
+ useReducer: Zo,
+ useRef: Zo,
+ useState: Zo,
+ useDebugValue: Zo,
+ useDeferredValue: Zo,
+ useTransition: Zo,
+ useSyncExternalStore: Zo,
+ useId: Zo,
+ useHostTransitionStatus: Zo,
+ useFormState: Zo,
+ useActionState: Zo,
+ useOptimistic: Zo,
+ useMemoCache: Zo,
+ useCacheRefresh: Zo,
+ useEffectEvent: Zo
+ }, gc = {
+ readContext: Ca,
+ use: us,
useCallback: function(e, t) {
- return as().memoizedState = [e, t === void 0 ? null : t], e;
+ return os().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: Sa,
- useEffect: zs,
+ useContext: Ca,
+ useEffect: Bs,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Ls(4194308, 4, Gs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Rs(4194308, 4, Ks.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Ls(4194308, 4, e, t);
+ return Rs(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Ls(4, 2, e, t);
+ Rs(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = as();
+ var n = os();
t = t === void 0 ? null : t;
var r = e();
- if (Go) {
- Qe(!0);
+ if (Ko) {
+ $e(!0);
try {
e();
} finally {
- Qe(!1);
+ $e(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = as();
+ var r = os();
if (n !== void 0) {
var i = n(t);
- if (Go) {
- Qe(!0);
+ if (Ko) {
+ $e(!0);
try {
n(t);
} finally {
- Qe(!1);
+ $e(!1);
}
}
} else i = t;
@@ -3957,54 +3957,54 @@ var k = /* @__PURE__ */ o(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = sc.bind(null, Bo, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = cc.bind(null, Vo, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = as();
+ var t = os();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = xs(e);
- var t = e.queue, n = cc.bind(null, Bo, t);
+ e = Ss(e);
+ var t = e.queue, n = lc.bind(null, Vo, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: qs,
+ useDebugValue: Js,
useDeferredValue: function(e, t) {
- return Xs(as(), e, t);
+ return Zs(os(), e, t);
},
useTransition: function() {
- var e = xs(!1);
- return e = Qs.bind(null, Bo, e.queue, !0, !1), as().memoizedState = e, [!1, e];
+ var e = Ss(!1);
+ return e = $s.bind(null, Vo, e.queue, !0, !1), os().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = Bo, a = as();
- if (ta) {
+ var r = Vo, a = os();
+ if (na) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), nd === null) throw Error(i(349));
- id & 127 || gs(r, t, n);
+ if (n = t(), rd === null) throw Error(i(349));
+ ad & 127 || _s(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, zs(vs.bind(null, r, o, e), [e]), r.flags |= 2048, Fs(9, { destroy: void 0 }, _s.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Bs(ys.bind(null, r, o, e), [e]), r.flags |= 2048, Is(9, { destroy: void 0 }, vs.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = as(), t = nd.identifierPrefix;
- if (ta) {
- var n = qi, r = Ki;
- n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ko++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Yo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = os(), t = rd.identifierPrefix;
+ if (na) {
+ var n = Ji, r = qi;
+ n = (r & ~(1 << 32 - et(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = qo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Xo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: rc,
- useFormState: As,
- useActionState: As,
+ useHostTransitionStatus: ic,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e) {
- var t = as();
+ var t = os();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -4013,132 +4013,132 @@ var k = /* @__PURE__ */ o(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = uc.bind(null, Bo, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = dc.bind(null, Vo, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: us,
+ useMemoCache: ds,
useCacheRefresh: function() {
- return as().memoizedState = oc.bind(null, Bo);
+ return os().memoizedState = sc.bind(null, Vo);
},
useEffectEvent: function(e) {
- var t = as(), n = { impl: e };
+ var t = os(), n = { impl: e };
return t.memoizedState = n, function() {
- if (td & 2) throw Error(i(440));
+ if (nd & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, gc = {
- readContext: Sa,
- use: ls,
- useCallback: Js,
- useContext: Sa,
- useEffect: Bs,
- useImperativeHandle: Ks,
- useInsertionEffect: Us,
- useLayoutEffect: Ws,
- useMemo: Ys,
- useReducer: fs,
- useRef: Is,
+ }, _c = {
+ readContext: Ca,
+ use: us,
+ useCallback: Ys,
+ useContext: Ca,
+ useEffect: Vs,
+ useImperativeHandle: qs,
+ useInsertionEffect: Ws,
+ useLayoutEffect: Gs,
+ useMemo: Xs,
+ useReducer: ps,
+ useRef: Ls,
useState: function() {
- return fs(ds);
+ return ps(fs);
},
- useDebugValue: qs,
+ useDebugValue: Js,
useDeferredValue: function(e, t) {
- return Zs(os(), Vo.memoizedState, e, t);
+ return Qs(ss(), Ho.memoizedState, e, t);
},
useTransition: function() {
- var e = fs(ds)[0], t = os().memoizedState;
- return [typeof e == "boolean" ? e : cs(e), t];
+ var e = ps(fs)[0], t = ss().memoizedState;
+ return [typeof e == "boolean" ? e : ls(e), t];
},
- useSyncExternalStore: hs,
- useId: ic,
- useHostTransitionStatus: rc,
- useFormState: js,
- useActionState: js,
+ useSyncExternalStore: gs,
+ useId: ac,
+ useHostTransitionStatus: ic,
+ useFormState: Ms,
+ useActionState: Ms,
useOptimistic: function(e, t) {
- return Ss(os(), Vo, e, t);
+ return Cs(ss(), Ho, e, t);
},
- useMemoCache: us,
- useCacheRefresh: ac,
- useEffectEvent: Hs
- }, _c = {
- readContext: Sa,
- use: ls,
- useCallback: Js,
- useContext: Sa,
- useEffect: Bs,
- useImperativeHandle: Ks,
- useInsertionEffect: Us,
- useLayoutEffect: Ws,
- useMemo: Ys,
- useReducer: ms,
- useRef: Is,
+ useMemoCache: ds,
+ useCacheRefresh: oc,
+ useEffectEvent: Us
+ }, vc = {
+ readContext: Ca,
+ use: us,
+ useCallback: Ys,
+ useContext: Ca,
+ useEffect: Vs,
+ useImperativeHandle: qs,
+ useInsertionEffect: Ws,
+ useLayoutEffect: Gs,
+ useMemo: Xs,
+ useReducer: hs,
+ useRef: Ls,
useState: function() {
- return ms(ds);
+ return hs(fs);
},
- useDebugValue: qs,
+ useDebugValue: Js,
useDeferredValue: function(e, t) {
- var n = os();
- return Vo === null ? Xs(n, e, t) : Zs(n, Vo.memoizedState, e, t);
+ var n = ss();
+ return Ho === null ? Zs(n, e, t) : Qs(n, Ho.memoizedState, e, t);
},
useTransition: function() {
- var e = ms(ds)[0], t = os().memoizedState;
- return [typeof e == "boolean" ? e : cs(e), t];
+ var e = hs(fs)[0], t = ss().memoizedState;
+ return [typeof e == "boolean" ? e : ls(e), t];
},
- useSyncExternalStore: hs,
- useId: ic,
- useHostTransitionStatus: rc,
- useFormState: Ps,
- useActionState: Ps,
+ useSyncExternalStore: gs,
+ useId: ac,
+ useHostTransitionStatus: ic,
+ useFormState: Fs,
+ useActionState: Fs,
useOptimistic: function(e, t) {
- var n = os();
- return Vo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Ss(n, Vo, e, t);
+ var n = ss();
+ return Ho === null ? (n.baseState = e, [e, n.queue.dispatch]) : Cs(n, Ho, e, t);
},
- useMemoCache: us,
- useCacheRefresh: ac,
- useEffectEvent: Hs
+ useMemoCache: ds,
+ useCacheRefresh: oc,
+ useEffectEvent: Us
};
- function vc(e, t, n, r) {
+ function yc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var yc = {
+ var bc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Ld(), i = mo(r);
- i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
+ var r = Ld(), i = ho(r);
+ i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Bd(t, e, r), _o(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Ld(), i = mo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (Bd(t, e, r), go(t, e, r));
+ var r = Ld(), i = ho(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Bd(t, e, r), _o(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Ld(), r = mo(n);
- r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (Bd(t, e, n), go(t, e, n));
+ var n = Ld(), r = ho(n);
+ r.tag = 2, t != null && (r.callback = t), t = go(e, r, n), t !== null && (Bd(t, e, n), _o(t, e, n));
}
};
- function bc(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;
+ function xc(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;
}
- function xc(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 && yc.enqueueReplaceState(t, t.state, null);
+ function Sc(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 && bc.enqueueReplaceState(t, t.state, null);
}
- function Sc(e, t) {
+ function Cc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function Cc(e) {
- gi(e);
- }
function wc(e) {
- console.error(e);
+ _i(e);
}
function Tc(e) {
- gi(e);
+ console.error(e);
+ }
+ function Ec(e) {
+ _i(e);
}
- function Ec(e, t) {
+ function Dc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -4148,7 +4148,7 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- function Dc(e, t, n) {
+ function Oc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -4161,39 +4161,39 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- function Oc(e, t, n) {
- return n = mo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Ec(e, t);
+ function kc(e, t, n) {
+ return n = ho(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Dc(e, t);
}, n;
}
- function kc(e) {
- return e = mo(e), e.tag = 3, e;
+ function Ac(e) {
+ return e = ho(e), e.tag = 3, e;
}
- function Ac(e, t, n, r) {
+ function jc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Dc(t, n, r);
+ Oc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Dc(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));
+ Oc(t, n, r), typeof i != "function" && (Td === null ? Td = /* @__PURE__ */ new Set([this]) : Td.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function jc(e, t, n, r, a) {
+ function Mc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && ya(t, n, a, !0), n = Oo.current, n !== null) {
+ if (t = n.alternate, t !== null && ba(t, n, a, !0), n = ko.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return ko === null ? Qd() : n.alternate === null && dd === 0 && (dd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Ao === null ? Qd() : n.alternate === null && fd === 0 && (fd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
@@ -4203,15 +4203,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
return xf(e, r, a), Qd(), !1;
}
- if (ta) return t = Oo.current, t === null ? (r !== ia && (t = Error(i(423), { cause: r }), da(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Oc(e.stateNode, r, a), _o(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ia && (e = Error(i(422), { cause: r }), da(Ri(e, n)))), !1;
+ if (na) return t = ko.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), fa(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = kc(e.stateNode, r, a), vo(e, a), fd !== 4 && (fd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== aa && (e = Error(i(422), { cause: r }), fa(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Ri(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;
- r = Ri(r, n), n = t;
+ if (o = zi(o, n), vd === null ? vd = [o] : vd.push(o), fd !== 4 && (fd = 2), t === null) return !0;
+ r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Oc(n.stateNode, r, e), _o(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = kc(n.stateNode, r, e), vo(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" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), _o(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Td === null || !Td.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ac(a), jc(a, e, n, r), vo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -4219,41 +4219,41 @@ var k = /* @__PURE__ */ o(((e) => {
} while (n !== null);
return !1;
}
- var Mc = Error(i(461)), Nc = !1;
- function Pc(e, t, n, r) {
- t.child = e === null ? lo(t, null, n, r) : co(t, e.child, n, r);
+ var Nc = Error(i(461)), Pc = !1;
+ function Fc(e, t, n, r) {
+ t.child = e === null ? uo(t, null, n, r) : lo(t, e.child, n, r);
}
- function Fc(e, t, n, r, i) {
+ function Ic(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return xa(t), r = Qo(e, t, n, o, a, i), s = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && s && Xi(t), t.flags |= 1, Pc(e, t, r, i), t.child);
+ return Sa(t), r = $o(e, t, n, o, a, i), s = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && s && Zi(t), t.flags |= 1, Fc(e, t, r, i), t.child);
}
- function Ic(e, t, n, r, i) {
+ function Lc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Lc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Rc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !ul(e, i)) {
+ if (a = e.child, !dl(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return ll(e, t, i);
+ if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ul(e, t, i);
}
- return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Lc(e, t, n, r, i) {
+ function Rc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (Rr(a, r) && e.ref === t.ref) {
- if (Nc = !1, t.pendingProps = r = a, ul(e, i)) e.flags & 131072 && (Nc = !0);
- else return t.lanes = e.lanes, ll(e, t, i);
+ if (zr(a, r) && e.ref === t.ref) {
+ if (Pc = !1, t.pendingProps = r = a, dl(e, i)) e.flags & 131072 && (Pc = !0);
+ else return t.lanes = e.lanes, ul(e, t, i);
}
}
- return Gc(e, t, n, r, i);
+ return Kc(e, t, n, r, i);
}
- function Rc(e, t, n, r) {
+ function zc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -4266,17 +4266,17 @@ var k = /* @__PURE__ */ o(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Bc(e, t, a, n, r);
+ return Vc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Wa(t, a === null ? null : a.cachePool), a === null ? Eo() : To(t, a), Mo(t);
- else return r = t.lanes = 536870912, Bc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Wa(t, null), Eo(), No()) : (Wa(t, a.cachePool), To(t, a), No(), t.memoizedState = null);
- return Pc(e, t, i, n), t.child;
+ }, e !== null && Ga(t, a === null ? null : a.cachePool), a === null ? Do() : Eo(t, a), No(t);
+ else return r = t.lanes = 536870912, Vc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ga(t, null), Do(), Po()) : (Ga(t, a.cachePool), Eo(t, a), Po(), t.memoizedState = null);
+ return Fc(e, t, i, n), t.child;
}
- function zc(e, t) {
+ function Bc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -4284,68 +4284,68 @@ var k = /* @__PURE__ */ o(((e) => {
_transitions: null
}), t.sibling;
}
- function Bc(e, t, n, r, i) {
- var a = Ua();
+ function Vc(e, t, n, r, i) {
+ var a = Wa();
return a = a === null ? null : {
- parent: Oa._currentValue,
+ parent: ka._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Wa(t, null), Eo(), Mo(t), e !== null && ya(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ga(t, null), Do(), No(t), e !== null && ba(e, t, r, !0), t.childLanes = i, null;
}
- function Vc(e, t) {
- return t = el({
+ function Hc(e, t) {
+ return t = tl({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Hc(e, t, n) {
- return co(t, e.child, null, n), e = Vc(t, t.pendingProps), e.flags |= 2, Po(t), t.memoizedState = null, e;
- }
function Uc(e, t, n) {
+ return lo(t, e.child, null, n), e = Hc(t, t.pendingProps), e.flags |= 2, Fo(t), t.memoizedState = null, e;
+ }
+ function Wc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (ta) {
- if (r.mode === "hidden") return e = Vc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (na) {
+ if (r.mode === "hidden") return e = Hc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, zc(null, e);
- if (jo(t), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Bc(null, e);
+ if (Mo(t), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);
return t.lanes = 536870912, null;
}
- return Vc(t, r);
+ return Hc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (jo(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Hc(e, t, n);
+ if (Mo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Uc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (Nc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Nc || a) {
- if (Co.current === null) {
- if (r = nd, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Bd(r, e, s), Mc;
+ } else if (Pc || ba(e, t, n, !1), a = (n & e.childLanes) !== 0, Pc || a) {
+ if (wo.current === null) {
+ if (r = rd, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Bd(r, e, s), Nc;
Qd();
}
- t = Hc(e, t, n);
- } else e = o.treeContext, ea = vm(s.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = Vc(t, r), t.flags |= 134221824;
+ t = Uc(e, t, n);
+ } else e = o.treeContext, ta = vm(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Hc(t, r), t.flags |= 134221824;
return t;
}
- return e = Ai(e.child, {
+ return e = ji(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Wc(e, t) {
+ function Gc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -4353,135 +4353,135 @@ var k = /* @__PURE__ */ o(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Gc(e, t, n, r, i) {
- return xa(t), n = Qo(e, t, n, r, void 0, i), r = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, i), t.child);
+ function Kc(e, t, n, r, i) {
+ return Sa(t), n = $o(e, t, n, r, void 0, i), r = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, i), t.child);
}
- function Kc(e, t, n, r, i, a) {
- return xa(t), t.updateQueue = null, n = es(t, r, n, i), $o(e), r = ns(), e !== null && !Nc ? (rs(e, t, a), ll(e, t, a)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, a), t.child);
+ function qc(e, t, n, r, i, a) {
+ return Sa(t), t.updateQueue = null, n = ts(t, r, n, i), es(e), r = rs(), e !== null && !Pc ? (is(e, t, a), ul(e, t, a)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, a), t.child);
}
- function qc(e, t, n, r, i) {
- if (xa(t), t.stateNode === null) {
- var a = Ei, o = n.contextType;
- typeof o == "object" && o && (a = Sa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = yc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, fo(t), o = n.contextType, a.context = typeof o == "object" && o ? Sa(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (vc(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 && yc.enqueueReplaceState(a, a.state, null), bo(t, r, a, i), yo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function Jc(e, t, n, r, i) {
+ if (Sa(t), t.stateNode === null) {
+ var a = Di, o = n.contextType;
+ typeof o == "object" && o && (a = Ca(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = bc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, po(t), o = n.contextType, a.context = typeof o == "object" && o ? Ca(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (yc(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 && bc.enqueueReplaceState(a, a.state, null), xo(t, r, a, i), bo(), 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 = Sc(n, s);
+ var s = t.memoizedProps, c = Cc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ei, typeof u == "object" && u && (o = Sa(u));
+ o = Di, typeof u == "object" && u && (o = Ca(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) && xc(t, a, r, o), uo = !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) && Sc(t, a, r, o), fo = !1;
var f = t.memoizedState;
- a.state = f, bo(t, r, a, i), yo(), l = t.memoizedState, s || f !== l || uo ? (typeof d == "function" && (vc(t, n, d, r), l = t.memoizedState), (c = uo || bc(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, xo(t, r, a, i), bo(), l = t.memoizedState, s || f !== l || fo ? (typeof d == "function" && (yc(t, n, d, r), l = t.memoizedState), (c = fo || xc(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, po(e, t), o = t.memoizedProps, u = Sc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = Sa(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) && xc(t, a, r, c), uo = !1, f = t.memoizedState, a.state = f, bo(t, r, a, i), yo();
+ a = t.stateNode, mo(e, t), o = t.memoizedProps, u = Cc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = Ca(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) && Sc(t, a, r, c), fo = !1, f = t.memoizedState, a.state = f, xo(t, r, a, i), bo();
var p = t.memoizedState;
- o !== d || f !== p || uo || e !== null && e.dependencies !== null && ba(e.dependencies) ? (typeof s == "function" && (vc(t, n, s, r), p = t.memoizedState), (u = uo || bc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ba(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 || fo || e !== null && e.dependencies !== null && xa(e.dependencies) ? (typeof s == "function" && (yc(t, n, s, r), p = t.memoizedState), (u = fo || xc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && xa(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, Wc(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 = co(t, e.child, null, i), t.child = co(t, null, n, i)) : Pc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ll(e, t, i), e;
+ return a = r, Gc(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 = lo(t, e.child, null, i), t.child = lo(t, null, n, i)) : Fc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ul(e, t, i), e;
}
- function Jc(e, t, n, r) {
- return la(), t.flags |= 256, Pc(e, t, n, r), t.child;
+ function Yc(e, t, n, r) {
+ return ua(), t.flags |= 256, Fc(e, t, n, r), t.child;
}
- var Yc = {
+ var Xc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Xc(e) {
+ function Zc(e) {
return {
baseLanes: e,
- cachePool: Ga()
+ cachePool: Ka()
};
}
- function Zc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;
- }
function Qc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= gd), e;
+ }
+ function $c(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Fo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (ta) {
- if (i ? Ao(t) : No(), (e = ea) ? (e = mm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Io.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (na) {
+ if (i ? jo(t) : Po(), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: Ji
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);
+ }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);
return t.lanes = gm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = el({
+ return a = r.children, r = r.fallback, i ? (Po(), i = t.mode, a = tl({
mode: "hidden",
children: a
- }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Xc(n), r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(null, r)) : (Ao(t), $c(t, a));
+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Zc(n), r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(null, r)) : (jo(t), el(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return nl(e, t, a, o, r, c, s, n);
+ if (c !== null) return rl(e, t, a, o, r, c, s, n);
}
- return i ? (No(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
+ return i ? (Po(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, zc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Xc(n) : (a = i.cachePool, a === null ? a = Ga() : (s = Oa._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Bc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Zc(n) : (a = i.cachePool, a === null ? a = Ka() : (s = ka._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(e.child, r)) : (Ao(t), n = e.child, e = n.sibling, n = Ai(n, {
+ }), r.memoizedState = i, r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(e.child, r)) : (jo(t), n = e.child, e = n.sibling, n = ji(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function $c(e, t) {
- return t = el({
+ function el(e, t) {
+ return t = tl({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function el(e, t) {
- return e = Oi(22, e, null, t), e.lanes = 0, e;
+ function tl(e, t) {
+ return e = ki(22, e, null, t), e.lanes = 0, e;
}
- function tl(e, t, n) {
- return co(t, e.child, null, n), e = $c(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function nl(e, t, n) {
+ return lo(t, e.child, null, n), e = el(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function nl(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Ao(t), t.flags &= -257, tl(e, t, c)) : t.memoizedState === null ? (No(), o = a.fallback, s = t.mode, a = el({
+ function rl(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (jo(t), t.flags &= -257, nl(e, t, c)) : t.memoizedState === null ? (Po(), o = a.fallback, s = t.mode, a = tl({
mode: "visible",
children: a.children
- }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, co(t, e.child, null, c), a = t.child, a.memoizedState = Xc(c), a.childLanes = Zc(e, r, c), t.memoizedState = Yc, zc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);
- if (Ao(t), gm(o)) {
+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, lo(t, e.child, null, c), a = t.child, a.memoizedState = Zc(c), a.childLanes = Qc(e, r, c), t.memoizedState = Xc, Bc(null, a)) : (Po(), t.child = e.child, t.flags |= 128, null);
+ if (jo(t), gm(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, da({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, fa({
value: a,
source: null,
stack: null
- })), tl(e, t, c);
+ })), nl(e, t, c);
}
- if (Nc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Nc || r) {
- if (Co.current !== null) return tl(e, t, c);
- if (r = nd, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Bd(r, e, a), Mc;
- return hm(o) || Qd(), tl(e, t, c);
+ if (Pc || ba(e, t, c, !1), r = (c & e.childLanes) !== 0, Pc || r) {
+ if (wo.current !== null) return nl(e, t, c);
+ if (r = rd, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Bd(r, e, a), Nc;
+ return hm(o) || Qd(), nl(e, t, c);
}
- return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = vm(o.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = $c(t, a.children), t.flags |= 134221824, t);
+ return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = vm(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = el(t, a.children), t.flags |= 134221824, t);
}
- function rl(e, t, n) {
+ function il(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), _a(e.return, t, n);
+ r !== null && (r.lanes |= t), va(e.return, t, n);
}
- function il(e) {
+ function al(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Ro(n) === null && (t = e), e = e.sibling;
+ n !== null && zo(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function al(e, t, n, r, i, a) {
+ function ol(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -4493,22 +4493,22 @@ var k = /* @__PURE__ */ o(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function ol(e) {
+ function sl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function sl(e, t, n) {
+ function cl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Fo.current;
- if (t.flags & 128) return Io(t, o), null;
+ var o = Io.current;
+ if (t.flags & 128) return Lo(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Io(t, o), i === "backwards" && e !== null ? (ol(e), Pc(e, t, r, n), ol(e)) : Pc(e, t, r, n), r = ta ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && rl(e, n, t);
- else if (e.tag === 19) rl(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Lo(t, o), i === "backwards" && e !== null ? (sl(e), Fc(e, t, r, n), sl(e)) : Fc(e, t, r, n), r = na ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && il(e, n, t);
+ else if (e.tag === 19) il(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -4522,142 +4522,142 @@ var k = /* @__PURE__ */ o(((e) => {
}
switch (i) {
case "backwards":
- n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, ol(t)), al(t, !0, i, null, a, r);
+ n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, sl(t)), ol(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Ro(e) === null) {
+ if (e = i.alternate, e !== null && zo(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- al(t, !0, n, null, a, r);
+ ol(t, !0, n, null, a, r);
break;
case "together":
- al(t, !1, null, null, void 0, r);
+ ol(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), al(t, !1, i, n, a, r);
+ default: n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), ol(t, !1, i, n, a, r);
}
return t.child;
}
- function cl(e, t, n) {
+ function ll(e, t, n) {
var r = t.pendingProps;
- return ha(t, t.type, r.value), Pc(e, t, r.children, n), t.child;
+ return ga(t, t.type, r.value), Fc(e, t, r.children, n), t.child;
}
- function ll(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), fd |= t.lanes, (n & t.childLanes) === 0) {
+ function ul(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), pd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (ya(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ba(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function ul(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ba(e)));
+ function dl(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && xa(e)));
}
- function dl(e, t, n) {
+ function fl(e, t, n) {
switch (t.tag) {
case 3:
- Te(t, t.stateNode.containerInfo), ha(t, Oa, e.memoizedState.cache), la();
+ Ee(t, t.stateNode.containerInfo), ga(t, ka, e.memoizedState.cache), ua();
break;
case 27:
case 5:
- De(t);
+ Oe(t);
break;
case 4:
- Te(t, t.stateNode.containerInfo);
+ Ee(t, t.stateNode.containerInfo);
break;
case 10:
- ha(t, t.type, t.memoizedProps.value);
+ ga(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, jo(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Mo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Ao(t), t.flags |= 128, null;
- r = ya(e, t, n, !1);
+ if (r.dehydrated !== null) return jo(t), t.flags |= 128, null;
+ r = ba(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Qc(e, t, n) : (Ao(t), e = ll(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? $c(e, t, n) : (jo(t), e = ul(e, t, n), e === null ? null : e.sibling);
}
- Ao(t);
+ jo(t);
break;
case 19:
- if (t.flags & 128) return sl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ya(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return sl(e, t, n);
+ if (t.flags & 128) return cl(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ba(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return cl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Io(t, Fo.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Lo(t, Io.current), r) break;
return null;
- case 22: return t.lanes = 0, Rc(e, t, n, t.pendingProps);
- case 24: ha(t, Oa, e.memoizedState.cache);
+ case 22: return t.lanes = 0, zc(e, t, n, t.pendingProps);
+ case 24: ga(t, ka, e.memoizedState.cache);
}
- return ll(e, t, n);
+ return ul(e, t, n);
}
- function fl(e, t, n) {
+ function pl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) Nc = !0;
+ if (e.memoizedProps !== t.pendingProps) Pc = !0;
else {
- if (!ul(e, n) && !(t.flags & 128)) return Nc = !1, dl(e, t, n);
- Nc = !!(e.flags & 131072);
+ if (!dl(e, n) && !(t.flags & 128)) return Pc = !1, fl(e, t, n);
+ Pc = !!(e.flags & 131072);
}
- } else Nc = !1, ta && t.flags & 1048576 && Yi(t, Hi, t.index);
+ } else Pc = !1, na && t.flags & 1048576 && Xi(t, Ui, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Qa(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = Sc(e, r), t.tag = 1, t = qc(null, t, e, r, n)) : (t.tag = 0, t = Gc(null, t, e, r, n));
+ if (e = $a(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = Cc(e, r), t.tag = 1, t = Jc(null, t, e, r, n)) : (t.tag = 0, t = Kc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
- if (a === P) {
- t.tag = 11, t = Fc(null, t, e, r, n);
+ if (a === N) {
+ t.tag = 11, t = Ic(null, t, e, r, n);
break a;
}
- if (a === F) {
- t.tag = 14, t = Ic(null, t, e, r, n);
+ if (a === P) {
+ t.tag = 14, t = Lc(null, t, e, r, n);
break a;
}
- if (a === te) {
- t.tag = 10, t.type = e, t = cl(null, t, n);
+ if (a === ne) {
+ t.tag = 10, t.type = e, t = ll(null, t, n);
break a;
}
}
- throw t = fe(e) || e, Error(i(306, t, ""));
+ throw t = pe(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Gc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = Sc(r, t.pendingProps), qc(e, t, r, a, n);
+ case 0: return Kc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = Cc(r, t.pendingProps), Jc(e, t, r, a, n);
case 3:
a: {
- if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (Ee(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, po(e, t), bo(t, r, null, n);
+ a = o.element, mo(e, t), xo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, ha(t, Oa, r), r !== o.cache && va(t, [Oa], n, !0), yo(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ga(t, ka, r), r !== o.cache && ya(t, [ka], n, !0), bo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Jc(e, t, r, n);
+ t = Yc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Ri(Error(i(424)), t), da(a), t = Jc(e, t, r, n);
+ a = zi(Error(i(424)), t), fa(a), t = Yc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -4666,76 +4666,76 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ea = vm(e.firstChild), $i = t, ta = !0, na = null, ra = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ta = vm(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = uo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (la(), r === a) {
- t = ll(e, t, n);
+ if (ua(), r === a) {
+ t = ul(e, t, n);
break a;
}
- Pc(e, t, r, n);
+ Fc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Wc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ta || (t.stateNode = xp(t.type, t.pendingProps, Ce.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return De(t), e === null && ta && (r = t.stateNode = wm(t.type, t.pendingProps, Ce.current), $i = t, ra = !0, a = ea, jp(t.type) ? (ym = a, ea = vm(r.firstChild)) : ea = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && ta && ((a = r = ea) && (r = fm(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = vm(r.firstChild), ra = !1, a = !0)), a || aa(t)), De(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Qo(e, t, ts, null, null, n), gh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;
- case 6: return e === null && ta && ((e = n = ea) && (n = pm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || aa(t)), null;
- case 13: return Qc(e, t, n);
- case 4: return Te(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Pc(e, t, r, n), t.child;
- case 11: return Fc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Wc(e, t), Pc(e, t, r, n), t.child;
- case 8: return Pc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Pc(e, t, t.pendingProps.children, n), t.child;
- case 10: return cl(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, xa(t), a = Sa(a), r = r(a), t.flags |= 1, Pc(e, t, r, n), t.child;
- case 14: return Ic(e, t, t.type, t.pendingProps, n);
- case 15: return Lc(e, t, t.type, t.pendingProps, n);
- case 19: return sl(e, t, n);
- case 31: return Uc(e, t, n);
- case 22: return Rc(e, t, n, t.pendingProps);
- case 24: return xa(t), r = Sa(Oa), e === null ? (a = Ua(), a === null && (a = nd, o = ka(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Gc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = xp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Oe(t), e === null && na && (r = t.stateNode = wm(t.type, t.pendingProps, we.current), ea = t, ia = !0, a = ta, jp(t.type) ? (ym = a, ta = vm(r.firstChild)) : ta = a), Fc(e, t, t.pendingProps.children, n), Gc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && na && ((a = r = ta) && (r = fm(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = vm(r.firstChild), ia = !1, a = !0)), a || oa(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = $o(e, t, ns, null, null, n), gh._currentValue = a), Gc(e, t), Fc(e, t, r, n), t.child;
+ case 6: return e === null && na && ((e = n = ta) && (n = pm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || oa(t)), null;
+ case 13: return $c(e, t, n);
+ case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = lo(t, null, r, n) : Fc(e, t, r, n), t.child;
+ case 11: return Ic(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Gc(e, t), Fc(e, t, r, n), t.child;
+ case 8: return Fc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return Fc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return ll(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, Sa(t), a = Ca(a), r = r(a), t.flags |= 1, Fc(e, t, r, n), t.child;
+ case 14: return Lc(e, t, t.type, t.pendingProps, n);
+ case 15: return Rc(e, t, t.type, t.pendingProps, n);
+ case 19: return cl(e, t, n);
+ case 31: return Wc(e, t, n);
+ case 22: return zc(e, t, n, t.pendingProps);
+ case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a = rd, o = Aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, fo(t), ha(t, Oa, a)) : ((e.lanes & n) !== 0 && (po(e, t), bo(t, null, null, n), yo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ha(t, Oa, r), r !== a.cache && va(t, [Oa], n, !0)) : (a = {
+ }, po(t), ga(t, ka, a)) : ((e.lanes & n) !== 0 && (mo(e, t), xo(t, null, null, n), bo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ga(t, ka, r), r !== a.cache && ya(t, [ka], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ha(t, Oa, r))), Pc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ga(t, ka, r))), Fc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ta && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Wc(e, t), Pc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : na && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Gc(e, t), Fc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function pl(e) {
+ function ml(e) {
e.flags |= 4;
}
- function ml(e, t, n, r, i) {
+ function hl(e, t, n, r, i) {
var a;
if ((a = !!(e.mode & 32)) && (a = n === null ? rh(t, r) : rh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
else if (Yd()) e.flags |= 8192;
- else throw $a = Ya, qa;
+ else throw eo = Xa, Ja;
}
} else e.flags &= -16777217;
}
- function hl(e, t) {
+ function gl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
else if (e.flags |= 16777216, !ih(t)) {
if (Yd()) e.flags |= 8192;
- else throw $a = Ya, qa;
+ else throw eo = Xa, Ja;
}
}
- function gl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, gd |= t);
- }
function _l(e, t) {
- if (!ta) switch (e.tailMode) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, _d |= t);
+ }
+ function vl(e, t) {
+ if (!na) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -4746,15 +4746,15 @@ var k = /* @__PURE__ */ o(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function vl(e) {
+ function yl(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 yl(e, t, n) {
+ function bl(e, t, n) {
var r = t.pendingProps;
- switch (Zi(t), t.tag) {
+ switch (Qi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -4763,32 +4763,32 @@ var k = /* @__PURE__ */ o(((e) => {
case 8:
case 12:
case 9:
- case 14: return vl(t), null;
- case 1: return vl(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ga(Oa), Ee(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ca(t) ? pl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ua())), vl(t), null;
+ case 14: return yl(t), null;
+ case 1: return yl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), _a(ka), De(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (la(t) ? ml(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, da())), yl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (pl(t), o === null ? (vl(t), ml(t, a, null, r, n)) : (vl(t), hl(t, o))) : o ? o === e.memoizedState ? (vl(t), t.flags &= -16777217) : (pl(t), vl(t), hl(t, o)) : (e = e.memoizedProps, e !== r && pl(t), vl(t), ml(t, a, e, r, n)), null;
+ return e === null ? (ml(t), o === null ? (yl(t), hl(t, a, null, r, n)) : (yl(t), gl(t, o))) : o ? o === e.memoizedState ? (yl(t), t.flags &= -16777217) : (ml(t), yl(t), gl(t, o)) : (e = e.memoizedProps, e !== r && ml(t), yl(t), hl(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 && pl(t);
+ if (ke(t), n = we.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return vl(t), t.subtreeFlags &= -33554433, null;
+ return yl(t), t.subtreeFlags &= -33554433, null;
}
- e = xe.current, ca(t) ? oa(t, e) : (e = wm(a, r, n), t.stateNode = e, pl(t));
+ e = Se.current, la(t) ? sa(t, e) : (e = wm(a, r, n), t.stateNode = e, ml(t));
}
- return vl(t), t.subtreeFlags &= -33554433, null;
+ return yl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);
+ if (ke(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return vl(t), t.subtreeFlags &= -33554433, null;
+ return yl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = xe.current, ca(t)) oa(t, o);
+ if (o = Se.current, la(t)) sa(t, o);
else {
- var s = vp(Ce.current);
+ var s = vp(we.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -4812,7 +4812,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[Ct] = t, o[wt] = r;
+ o[wt] = t, o[Tt] = 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) {
@@ -4839,71 +4839,71 @@ var k = /* @__PURE__ */ o(((e) => {
break a;
default: r = !1;
}
- r && pl(t);
+ r && ml(t);
}
}
- return vl(t), t.subtreeFlags &= -33554433, ml(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return yl(t), t.subtreeFlags &= -33554433, hl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && pl(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && ml(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = Ce.current, ca(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {
+ if (e = we.current, la(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = ea, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[Ct] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || aa(t, !0);
- } else e = vp(e).createTextNode(r), e[Ct] = t, t.stateNode = e;
+ e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || oa(t, !0);
+ } else e = vp(e).createTextNode(r), e[wt] = t, t.stateNode = e;
}
- return vl(t), null;
+ return yl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = ca(t), n !== null) {
+ if (r = la(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[Ct] = t;
- } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- vl(t), e = !1;
- } else n = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
+ e[wt] = t;
+ } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ yl(t), e = !1;
+ } else n = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return vl(t), null;
+ return yl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = ca(t), r !== null && r.dehydrated !== null) {
+ if (a = la(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[Ct] = t;
- } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- vl(t), a = !1;
- } else a = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
+ a[wt] = t;
+ } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ yl(t), a = !1;
+ } else a = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
}
- return Po(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), gl(t, t.updateQueue), vl(t), null);
- case 4: return Ee(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;
- case 10: return ga(t.type), vl(t), null;
+ return Fo(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), _l(t, t.updateQueue), yl(t), null);
+ case 4: return De(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, yl(t), null;
+ case 10: return _a(t.type), yl(t), null;
case 19:
- if (Lo(t), r = t.memoizedState, r === null) return vl(t), null;
+ if (Ro(t), r = t.memoizedState, r === null) return yl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) _l(r, !1);
+ if (a) vl(r, !1);
else {
- if (dd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Ro(e), o !== null) {
- for (t.flags |= 128, _l(r, !1), e = o.updateQueue, t.updateQueue = e, gl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
- return Io(t, Fo.current & 1 | 2), ta && Ji(t, r.treeForkCount), t.child;
+ if (fd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = zo(e), o !== null) {
+ for (t.flags |= 128, vl(r, !1), e = o.updateQueue, t.updateQueue = e, _l(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
+ return Lo(t, Io.current & 1 | 2), na && Yi(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Ve() > Sd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
+ r.tail !== null && He() > Cd && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Ro(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, gl(t, e), _l(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ta) return vl(t), null;
- } else 2 * Ve() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
+ if (e = zo(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, _l(t, e), vl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !na) return yl(t), null;
+ } else 2 * He() - r.renderingStartTime > Cd && n !== 536870912 && (t.flags |= 128, a = !0, vl(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);
}
@@ -4919,79 +4919,79 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ve(), e.sibling = null, o = Fo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ta ? Io(t, o) : (n = o, be(Oo, t), be(Fo, n), ko === null && (ko = t)), ta && Ji(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = He(), e.sibling = null, o = Io.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || na ? Lo(t, o) : (n = o, xe(ko, t), xe(Io, n), Ao === null && (Ao = t)), na && Yi(t, r.treeForkCount), e;
}
- return vl(t), null;
+ return yl(t), null;
case 22:
- case 23: return Po(t), Do(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (vl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : vl(t), n = t.updateQueue, n !== null && gl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ye(Ha), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ga(Oa), vl(t), null;
+ case 23: return Fo(t), Oo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (yl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : yl(t), n = t.updateQueue, n !== null && _l(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(Ua), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), _a(ka), yl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, vl(t), null;
+ case 30: return t.flags |= 33554432, yl(t), null;
}
throw Error(i(156, t.tag));
}
- function bl(e, t) {
- switch (Zi(t), t.tag) {
+ function xl(e, t) {
+ switch (Qi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ga(Oa), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return _a(ka), De(), 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 ke(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Po(t), t.alternate === null) throw Error(i(340));
- la();
+ if (Fo(t), t.alternate === null) throw Error(i(340));
+ ua();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Po(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Fo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- la();
+ ua();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Lo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return Ee(), null;
- case 10: return ga(t.type), null;
+ case 19: return Ro(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 De(), null;
+ case 10: return _a(t.type), null;
case 22:
- case 23: return Po(t), Do(), e !== null && ye(Ha), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ga(Oa), null;
+ case 23: return Fo(t), Oo(), e !== null && be(Ua), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return _a(ka), null;
case 25: return null;
default: return null;
}
}
- function xl(e, t) {
- switch (Zi(t), t.tag) {
+ function Sl(e, t) {
+ switch (Qi(t), t.tag) {
case 3:
- ga(Oa), Ee();
+ _a(ka), De();
break;
case 26:
case 27:
case 5:
- Oe(t);
+ ke(t);
break;
case 4:
- Ee();
+ De();
break;
case 31:
- t.memoizedState !== null && Po(t);
+ t.memoizedState !== null && Fo(t);
break;
case 13:
- Po(t);
+ Fo(t);
break;
case 19:
- Lo(t);
+ Ro(t);
break;
case 10:
- ga(t.type);
+ _a(t.type);
break;
case 22:
case 23:
- Po(t), Do(), e !== null && ye(Ha);
+ Fo(t), Oo(), e !== null && be(Ua);
break;
- case 24: ga(Oa);
+ case 24: _a(ka);
}
}
- function Sl(e, t) {
+ function Cl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -5010,7 +5010,7 @@ var k = /* @__PURE__ */ o(((e) => {
bf(t, t.return, e);
}
}
- function Cl(e, t, n) {
+ function wl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -5036,26 +5036,26 @@ var k = /* @__PURE__ */ o(((e) => {
bf(t, t.return, e);
}
}
- function wl(e) {
+ function Tl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- So(t, n);
+ Co(t, n);
} catch (t) {
bf(e, e.return, t);
}
}
}
- function Tl(e, t, n) {
- n.props = Sc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function El(e, t, n) {
+ n.props = Cc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
bf(e, t, n);
}
}
- function El(e, t) {
+ function Dl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -5066,7 +5066,7 @@ var k = /* @__PURE__ */ o(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = pi(e.memoizedProps, i);
+ var i = e.stateNode, a = mi(e.memoizedProps, i);
(i.ref === null || i.ref.name !== a) && (i.ref = Up(a)), r = i.ref;
break;
case 7:
@@ -5084,7 +5084,7 @@ var k = /* @__PURE__ */ o(((e) => {
bf(e, t, n);
}
}
- function Dl(e, t) {
+ function Ol(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
@@ -5102,22 +5102,22 @@ var k = /* @__PURE__ */ o(((e) => {
else n.current = null;
}
}
- function Ol(e, t) {
+ function kl(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++) lm(e.stateNode, t[n]);
}
- function kl(e) {
- for (var t = e.return; t !== null && (Ml(t) && lm(e.stateNode, t.stateNode), !jl(t));) t = t.return;
- }
function Al(e) {
- for (var t = e.return; t !== null && (Ml(t) && um(e.stateNode, t.stateNode), !jl(t));) t = t.return;
+ for (var t = e.return; t !== null && (Nl(t) && lm(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
}
function jl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 27;
+ for (var t = e.return; t !== null && (Nl(t) && um(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
}
function Ml(e) {
- return e && e.tag === 7 && e.stateNode !== null;
+ return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
function Nl(e) {
+ return e && e.tag === 7 && e.stateNode !== null;
+ }
+ function Pl(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -5133,21 +5133,21 @@ var k = /* @__PURE__ */ o(((e) => {
bf(e, e.return, t);
}
}
- function Pl(e, t, n) {
+ function Fl(e, t, n) {
try {
var r = e.stateNode;
- pp(r, e.type, n, t), r[wt] = t;
+ pp(r, e.type, n, t), r[Tt] = t;
} catch (t) {
bf(e, e.return, t);
}
}
- function Fl(e) {
+ function Il(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && jp(e.type) || e.tag === 4;
}
- function Il(e) {
+ function Ll(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Fl(e.return)) return null;
+ if (e.return === null || Il(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;) {
@@ -5157,39 +5157,39 @@ var k = /* @__PURE__ */ o(((e) => {
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Ll(e, t, n, r) {
+ function Rl(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 = _n)), Ol(e, r), qt = !0;
- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(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 = vn)), kl(e, r), Jt = !0;
+ else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;
}
- function Rl(e, t, n, r) {
+ function zl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Ol(e, r), qt = !0;
- else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), kl(e, r), Jt = !0;
+ else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;
}
- function zl(e) {
+ function Bl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- dp(t, r, n), t[Ct] = e, t[wt] = n;
+ dp(t, r, n), t[wt] = e, t[Tt] = n;
} catch (t) {
bf(e, e.return, t);
}
}
- var Bl = !1, W = null;
- function Vl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Bl = !0);
+ var Vl = !1, Hl = null;
+ function U(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Vl = !0);
}
- var Hl = null;
- function Ul() {
- var e = Hl;
- return Hl = null, e;
- }
- var Wl = 0;
- function Gl(e, t, n, r, i) {
- return Wl = 0, Kl(e.child, t, n, r, i);
+ var Ul = null;
+ function Wl() {
+ var e = Ul;
+ return Ul = null, e;
}
+ var Gl = 0;
function Kl(e, t, n, r, i) {
+ return Gl = 0, ql(e.child, t, n, r, i);
+ }
+ function ql(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
@@ -5197,36 +5197,36 @@ var k = /* @__PURE__ */ o(((e) => {
var s = Lp(o);
r.push(s), s.view && (a = !0);
} else a || Lp(o).view && (a = !0);
- Bl = !0, Pp(o, Wl === 0 ? t : t + "_" + Wl, n), Wl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Kl(e.child, t, n, r, i) && (a = !0));
+ Vl = !0, Pp(o, Gl === 0 ? t : t + "_" + Gl, n), Gl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || ql(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function ql(e, t) {
- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || ql(e.child, t)), e = e.sibling;
+ function Jl(e, t) {
+ for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Jl(e.child, t)), e = e.sibling;
}
- function Jl(e) {
+ function Yl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Jl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Yl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = hi(t.default, t.share), t !== "none" && (Gl(e, n, t, null, !1) || ql(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (Kl(e, n, t, null, !1) || Jl(e.child, !1));
}
e = e.sibling;
}
}
- function Yl(e, t) {
+ function Xl(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Jl(e) : Gl(e, i, a, null, !1) ? (Jl(e), n.paired || t || zd(e, r.onEnter)) : ql(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e, t), e = e.sibling;
- else Jl(e);
- }
- function Xl(e) {
- if (W !== null && W.size !== 0) {
- var t = W;
+ var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Yl(e) : Kl(e, i, a, null, !1) ? (Yl(e), n.paired || t || zd(e, r.onEnter)) : Jl(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;
+ else Yl(e);
+ }
+ function Zl(e) {
+ if (Hl !== null && Hl.size !== 0) {
+ var t = Hl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -5234,59 +5234,59 @@ var k = /* @__PURE__ */ o(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = hi(n.default, n.share);
- if (a !== "none" && (Gl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : ql(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = gi(n.default, n.share);
+ if (a !== "none" && (Kl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : Jl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- Xl(e);
+ Zl(e);
}
e = e.sibling;
}
}
}
- function Zl(e) {
+ function Ql(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode), r = W === null ? void 0 : W.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Gl(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, W.delete(n), zd(e, t.onShare)) : ql(e.child, !1)), W !== null && Xl(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
- else W !== null && Xl(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Hl === null ? void 0 : Hl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Kl(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), zd(e, t.onShare)) : Jl(e.child, !1)), Hl !== null && Zl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
+ else Hl !== null && Zl(e);
}
- function Ql(e) {
+ function $l(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode);
- t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Gl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Ql(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode);
+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Kl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && $l(e);
e = e.sibling;
}
}
- function $l(e) {
+ function eu(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, ql(e.child, !1));
+ t.paired !== null && (t.paired = null, Jl(e.child, !1));
}
- $l(e);
+ eu(e);
}
e = e.sibling;
}
}
- function eu(e) {
- if (e.tag === 30) e.stateNode.paired = null, ql(e.child, !1), $l(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;
- else $l(e);
- }
function tu(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? ql(e.child, !1) : e.subtreeFlags & 33554432 && tu(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, Jl(e.child, !1), eu(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;
+ else eu(e);
}
- function nu(e, t, n, r, i, a, o) {
+ function nu(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Jl(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;
+ }
+ function ru(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Wl < a.length) {
- var l = a[Wl], u = Lp(c);
+ if (a !== null && Gl < a.length) {
+ var l = a[Gl], u = Lp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -5299,30 +5299,30 @@ var k = /* @__PURE__ */ o(((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 && Pp(c, Wl === 0 ? n : n + "_" + Wl, i), s && e.flags & 4 || (Hl === null && (Hl = []), Hl.push(c, Wl === 0 ? r : r + "_" + Wl, t.memoizedProps)), Wl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : nu(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Pp(c, Gl === 0 ? n : n + "_" + Gl, i), s && e.flags & 4 || (Ul === null && (Ul = []), Ul.push(c, Gl === 0 ? r : r + "_" + Gl, t.memoizedProps)), Gl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : ru(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function ru(e, t) {
+ function iu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
var o = r === null ? null : r.map(Rp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Wl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && ru(e, t);
+ Gl = 0, i = ru(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && iu(e, t);
e = e.sibling;
}
}
- var iu = !1, au = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;
- function mu(e, t, n) {
- if (e = e.containerInfo, gp = Th, e = Ur(e), Wr(e)) {
+ var au = !1, ou = !1, su = !1, cu = !1, lu = typeof WeakSet == "function" ? WeakSet : Set, uu = null, du = !1, fu = !1, pu = !1, mu = !1;
+ function hu(e, t, n) {
+ if (e = e.containerInfo, gp = Th, e = Wr(e), Gr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -5364,28 +5364,28 @@ var k = /* @__PURE__ */ o(((e) => {
for (_p = {
focusedElem: e,
selectionRange: r
- }, Th = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {
- if (e = lu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Zl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Vl(e), hu(n);
+ }, Th = !1, n = (n & 335544064) === n, uu = t, t = n ? 9270 : 1024; uu !== null;) {
+ if (e = uu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Ql(r[a]);
+ if (e.alternate === null && e.flags & 2) n && U(e), gu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Zl(r), hu(n);
+ r !== null && r.memoizedState === null && n && Ql(r), gu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Vl(e), hu(n);
+ n && U(e), gu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, lu = r) : (n && Ql(e), hu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, uu = r) : (n && $l(e), gu(n));
}
}
- W = null;
+ Hl = null;
}
- function hu(e) {
- for (; lu !== null;) {
- var t = lu, n = e, r = t.alternate, a = t.flags;
+ function gu(e) {
+ for (; uu !== null;) {
+ var t = uu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -5395,7 +5395,7 @@ var k = /* @__PURE__ */ o(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = Sc(t.type, a);
+ var s = Cc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
bf(t, t.return, e);
@@ -5422,34 +5422,34 @@ var k = /* @__PURE__ */ o(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Gl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Kl(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, lu = r;
+ r.return = t.return, uu = r;
break;
}
- lu = t.return;
+ uu = t.return;
}
}
- function gu(e, t, n) {
+ function _u(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Iu(e, n), r & 4 && Sl(5, n);
+ Lu(e, n), r & 4 && Cl(5, n);
break;
case 1:
- if (Iu(e, n), r & 4) {
+ if (Lu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
bf(n, n.return, e);
}
else {
- var i = Sc(n.type, t.memoizedProps);
+ var i = Cc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
@@ -5458,10 +5458,10 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- r & 64 && wl(n), r & 512 && El(n, n.return);
+ r & 64 && Tl(n), r & 512 && Dl(n, n.return);
break;
case 3:
- if (Iu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Lu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -5470,43 +5470,43 @@ var k = /* @__PURE__ */ o(((e) => {
case 1: t = n.child.stateNode;
}
try {
- So(e, t);
+ Co(e, t);
} catch (e) {
bf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && zl(n);
+ case 27: t === null && r & 4 && Bl(n);
case 26:
case 5:
- Iu(e, n), t === null && r & 4 && Nl(n), r & 512 && El(n, n.return);
+ Lu(e, n), t === null && r & 4 && Pl(n), r & 512 && Dl(n, n.return);
break;
case 12:
- Iu(e, n);
+ Lu(e, n);
break;
case 31:
- Iu(e, n), r & 4 && Tu(e, n);
+ Lu(e, n), r & 4 && Eu(e, n);
break;
case 13:
- Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), _m(e, n))));
+ Lu(e, n), r & 4 && Du(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), _m(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || iu, !r) {
- var a = t !== null && t.memoizedState !== null || au;
- t = iu, i = au, iu = r, (au = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Ru(e, n, r)) : Iu(e, n), iu = t, au = i;
+ if (r = n.memoizedState !== null || au, !r) {
+ var a = t !== null && t.memoizedState !== null || ou;
+ t = au, i = ou, au = r, (ou = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), zu(e, n, r)) : Lu(e, n), au = t, ou = i;
}
break;
case 30:
- Iu(e, n), r & 512 && El(n, n.return);
+ Lu(e, n), r & 512 && Dl(n, n.return);
break;
- case 7: r & 512 && El(n, n.return);
- default: Iu(e, n);
+ case 7: r & 512 && Dl(n, n.return);
+ default: Lu(e, n);
}
}
- function _u(e, t) {
- for (e = e.child; e !== null;) vu(e, t), e = e.sibling;
- }
function vu(e, t) {
+ for (e = e.child; e !== null;) yu(e, t), e = e.sibling;
+ }
+ function yu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -5522,11 +5522,11 @@ var k = /* @__PURE__ */ o(((e) => {
} catch (t) {
bf(e, e.return, t);
}
- yu(e, t);
+ bu(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, qt = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, Jt = !0;
} catch (t) {
bf(e, e.return, t);
}
@@ -5541,95 +5541,95 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case 22:
case 23:
- e.memoizedState === null && _u(e, t);
+ e.memoizedState === null && vu(e, t);
break;
- default: _u(e, t);
+ default: vu(e, t);
}
}
- function yu(e, t) {
+ function bu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- vu(n, r);
+ yu(n, r);
break a;
case 22:
- n.memoizedState === null && yu(n, r);
+ n.memoizedState === null && bu(n, r);
break a;
- default: yu(n, r);
+ default: bu(n, r);
}
}
e = e.sibling;
}
}
- function bu(e) {
+ function xu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Mt(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 xu = null, Su = !1;
- function Cu(e, t, n) {
- for (n = n.child; n !== null;) wu(e, t, n), n = n.sibling;
+ t !== null && (e.alternate = null, xu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Nt(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 Su = null, Cu = !1;
function wu(e, t, n) {
- if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
- Ze.onCommitFiberUnmount(Xe, n);
+ for (n = n.child; n !== null;) Tu(e, t, n), n = n.sibling;
+ }
+ function Tu(e, t, n) {
+ if (Qe && typeof Qe.onCommitFiberUnmount == "function") try {
+ Qe.onCommitFiberUnmount(Ze, n);
} catch {}
switch (n.tag) {
case 26:
- au || Dl(n, t), Cu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !au && (n = n.stateNode, n.parentNode.removeChild(n));
+ ou || Ol(n, t), wu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ou && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- au || Dl(n, t), Al(n);
- var r = xu, i = Su;
- jp(n.type) && (xu = n.stateNode, Su = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), xu = r, Su = i;
+ ou || Ol(n, t), jl(n);
+ var r = Su, i = Cu;
+ jp(n.type) && (Su = n.stateNode, Cu = !1), wu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Su = r, Cu = i;
break;
- case 5: au || Dl(n, t), Al(n);
+ case 5: ou || Ol(n, t), jl(n);
case 6:
- if (n.tag === 6 && Al(n), r = xu, i = Su, xu = null, Cu(e, t, n), xu = r, Su = i, xu !== null) {
- if (Su) try {
- (xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), qt = !0;
+ if (n.tag === 6 && jl(n), r = Su, i = Cu, Su = null, wu(e, t, n), Su = r, Cu = i, Su !== null) {
+ if (Cu) try {
+ (Su.nodeType === 9 ? Su.body : Su.nodeName === "HTML" ? Su.ownerDocument.body : Su).removeChild(n.stateNode), Jt = !0;
} catch (e) {
bf(n, t, e);
}
else try {
- xu.removeChild(n.stateNode), qt = !0;
+ Su.removeChild(n.stateNode), Jt = !0;
} catch (e) {
bf(n, t, e);
}
}
break;
case 18:
- xu !== null && (Su ? (e = xu, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(xu, n.stateNode));
+ Su !== null && (Cu ? (e = Su, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(Su, n.stateNode));
break;
case 4:
- r = xu, i = Su, xu = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), xu = r, Su = i;
+ r = Su, i = Cu, Su = n.stateNode.containerInfo, Cu = !0, wu(e, t, n), Su = r, Cu = i;
break;
case 0:
case 11:
case 14:
case 15:
- Cl(2, n, t), au || Cl(4, n, t), Cu(e, t, n);
+ wl(2, n, t), ou || wl(4, n, t), wu(e, t, n);
break;
case 1:
- au || (Dl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Tl(n, t, r)), Cu(e, t, n);
+ ou || (Ol(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && El(n, t, r)), wu(e, t, n);
break;
case 21:
- Cu(e, t, n);
+ wu(e, t, n);
break;
case 22:
- au = (r = au) || n.memoizedState !== null, Cu(e, t, n), au = r;
+ ou = (r = ou) || n.memoizedState !== null, wu(e, t, n), ou = r;
break;
case 30:
- Dl(n, t), Cu(e, t, n);
+ Ol(n, t), wu(e, t, n);
break;
case 7:
- au || Dl(n, t), Cu(e, t, n);
+ ou || Ol(n, t), wu(e, t, n);
break;
- default: Cu(e, t, n);
+ default: wu(e, t, n);
}
}
- function Tu(e, t) {
+ function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
@@ -5639,26 +5639,26 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- function Eu(e, t) {
+ function Du(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Zh(e);
} catch (e) {
bf(t, t.return, e);
}
}
- function Du(e) {
+ function Ou(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new cu()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new cu()), t;
+ return t === null && (t = e.stateNode = new lu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new lu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Ou(e, t) {
- var n = Du(e);
+ function ku(e, t) {
+ var n = Ou(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
@@ -5667,7 +5667,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
});
}
- function ku(e, t, n) {
+ function Au(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;
@@ -5675,27 +5675,27 @@ var k = /* @__PURE__ */ o(((e) => {
switch (l.tag) {
case 27:
if (jp(l.type)) {
- xu = l.stateNode, Su = !1;
+ Su = l.stateNode, Cu = !1;
break a;
}
break;
case 5:
- xu = l.stateNode, Su = !1;
+ Su = l.stateNode, Cu = !1;
break a;
case 3:
case 4:
- xu = l.stateNode.containerInfo, Su = !0;
+ Su = l.stateNode.containerInfo, Cu = !0;
break a;
}
l = l.return;
}
- if (xu === null) throw Error(i(160));
- wu(s, c, o), xu = null, Su = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (Su === null) throw Error(i(160));
+ Tu(s, c, o), Su = null, Cu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ju(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Mu(t, e, n), t = t.sibling;
}
- var Au = null;
- function ju(e, t, n) {
+ var ju = null;
+ function Mu(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -5706,23 +5706,23 @@ var k = /* @__PURE__ */ o(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- ku(t, e, n), Mu(e), a & 4 && (Cl(3, e, e.return), Sl(3, e), Cl(5, e, e.return));
+ Au(t, e, n), Nu(e), a & 4 && (wl(3, e, e.return), Cl(3, e), wl(5, e, e.return));
break;
case 1:
- ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 64 && iu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), a & 64 && au && (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 = Au, ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 4) {
+ if (o = ju, Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(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 (iu) e.stateNode = xp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (au) e.stateNode = xp(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[At] || r[Ct] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[Ct] = e, Lt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[jt] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[wt] = e, Rt(r), t = r;
break a;
case "link":
if (o = eh("link", "href", a).get(t + (n.href || ""))) {
@@ -5744,82 +5744,82 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: throw Error(i(468, t));
}
- r[Ct] = e, Lt(r), t = r;
+ r[wt] = e, Rt(r), t = r;
}
e.stateNode = t;
}
- } else iu || th(o, e.type, e.stateNode);
+ } else au || th(o, e.type, e.stateNode);
} else e.stateNode = Ym(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Pl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));
+ } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ou || t.parentNode.removeChild(t)) : a.count--, n === null ? au || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));
}
break;
case 27:
- ku(t, e, n), Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), r !== null && a & 4 && Pl(e, e.memoizedProps, r.memoizedProps);
+ Au(t, e, n), Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), r !== null && a & 4 && Fl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = ou, ou = !1, ku(t, e, n), ou = o, Mu(e), a & 512 && (au || r === null || Dl(r, r.return)), e.flags & 32) {
+ if (o = su, su = !1, Au(t, e, n), su = o, Nu(e), a & 512 && (ou || r === null || Ol(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- un(t, ""), qt = !0;
+ dn(t, ""), Jt = !0;
} catch (t) {
bf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Pl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Fl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (cu = !0);
break;
case 6:
- if (ku(t, e, n), Mu(e), a & 4) {
+ if (Au(t, e, n), Nu(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, qt = !0;
+ n.nodeValue = t, Jt = !0;
} catch (t) {
bf(e, e.return, t);
}
}
break;
case 3:
- if (qt = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (Jt = !1, $m = null, o = ju, ju = km(t.containerInfo), Au(t, e, n), ju = o, Nu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Zh(t.containerInfo);
} catch (t) {
bf(e, e.return, t);
}
- su && (su = !1, Nu(e)), qt = !1;
+ cu && (cu = !1, Pu(e)), Jt = !1;
break;
case 4:
- a = ou, ou = iu, r = Jt(), o = Au, Au = km(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, qt && du && (fu = !0), qt = r, ou = a;
+ a = su, su = au, r = Yt(), o = ju, ju = km(e.stateNode.containerInfo), Au(t, e, n), Nu(e), ju = o, Jt && fu && (pu = !0), Jt = r, su = a;
break;
case 12:
- ku(t, e, n), Mu(e);
+ Au(t, e, n), Nu(e);
break;
case 31:
- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 13:
- ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Au(t, e, n), Nu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (xd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = iu, l = au, u = ou;
- iu = c || o, ou = u || o, au = l || s, ku(t, e, n), au = l, ou = u, iu = c, Mu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || iu || au || (t = s || au, n = iu, r = au, iu = o || iu, au = t, Lu(e, 2), iu = n, au = r), !o && ou || _u(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Ou(e, n))));
+ var c = au, l = ou, u = su;
+ au = c || o, su = u || o, ou = l || s, Au(t, e, n), ou = l, su = u, au = c, Nu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || au || ou || (t = s || ou, n = au, r = ou, au = o || au, ou = t, Ru(e, 2), au = n, ou = r), !o && su || vu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, ku(e, n))));
break;
case 19:
- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Au(t, e, n), Nu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ku(e, t)));
break;
case 30:
- a & 512 && (au || r === null || Dl(r, r.return)), a = Jt(), o = du, s = (n & 335544064) === n, c = e.memoizedProps, du = s && hi(c.default, c.update) !== "none", ku(t, e, n), Mu(e), s && r !== null && qt && (e.flags |= 4), du = o, qt = a;
+ a & 512 && (ou || r === null || Ol(r, r.return)), a = Yt(), o = fu, s = (n & 335544064) === n, c = e.memoizedProps, fu = s && gi(c.default, c.update) !== "none", Au(t, e, n), Nu(e), s && r !== null && Jt && (e.flags |= 4), fu = o, Jt = a;
break;
case 21: break;
- case 7: a & 512 && (au || r === null || Dl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: ku(t, e, n), Mu(e);
+ case 7: a & 512 && (ou || r === null || Ol(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Au(t, e, n), Nu(e);
}
}
- function Mu(e) {
+ function Nu(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Fl(r)) {
+ if (Il(r)) {
n = r;
break;
}
@@ -5827,11 +5827,11 @@ var k = /* @__PURE__ */ o(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Ml(a)) {
+ if (Nl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (jl(a)) break;
+ if (Ml(a)) break;
a = a.return;
}
var s = r;
@@ -5839,16 +5839,16 @@ var k = /* @__PURE__ */ o(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Rl(e, Il(e), c, s);
+ zl(e, Ll(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (un(l, ""), n.flags &= -33), Rl(e, Il(e), l, s);
+ n.flags & 32 && (dn(l, ""), n.flags &= -33), zl(e, Ll(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Ll(e, Il(e), u, s);
+ Rl(e, Ll(e), u, s);
break;
default: throw Error(i(161));
}
@@ -5859,23 +5859,23 @@ var k = /* @__PURE__ */ o(((e) => {
}
t & 4096 && (e.flags &= -4097);
}
- function Nu(e) {
+ function Pu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;
+ Pu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;
}
}
- function Pu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Fu(t, e), t = t.sibling;
- else ru(t, !1);
- }
function Fu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Iu(t, e), t = t.sibling;
+ else iu(t, !1);
+ }
+ function Iu(e, t) {
var n = e.alternate;
- if (n === null) Yl(e, !1);
+ if (n === null) Xl(e, !1);
else switch (e.tag) {
case 3:
- if (pu = uu = !1, Ul(), Pu(t, e), !uu && !fu) {
- if (e = Hl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (mu = du = !1, Wl(), Fu(t, e), !du && !pu) {
+ if (e = Ul, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
Fp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
@@ -5901,33 +5901,33 @@ var k = /* @__PURE__ */ o(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), pu = !0;
+ })), mu = !0;
}
- Hl = null;
+ Ul = null;
break;
case 5:
- Pu(t, e);
+ Fu(t, e);
break;
case 4:
- r = uu, uu = !1, Pu(t, e), uu && (fu = !0), uu = r;
+ r = du, du = !1, Fu(t, e), du && (pu = !0), du = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Pu(t, e) : Yl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Fu(t, e) : Xl(e, !1));
break;
case 30:
- r = uu, i = Ul(), uu = !1, Pu(t, e), uu && (e.flags |= 4);
+ r = du, i = Wl(), du = !1, Fu(t, e), du && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = pi(a, o), o = pi(n.memoizedProps, o);
- var s = hi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Wl = 0, t = nu(e, n, t, o, s, a, !0), Wl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Hl = i) : i !== null && (i.push.apply(i, Hl), Hl = i), uu = e.flags & 32 ? !0 : r;
+ t = mi(a, o), o = mi(n.memoizedProps, o);
+ var s = gi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Gl = 0, t = ru(e, n, t, o, s, a, !0), Gl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Ul = i) : i !== null && (i.push.apply(i, Ul), Ul = i), du = e.flags & 32 ? !0 : r;
break;
- default: Pu(t, e);
+ default: Fu(t, e);
}
}
- function Iu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) gu(e, t.alternate, t), t = t.sibling;
- }
function Lu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) _u(e, t.alternate, t), t = t.sibling;
+ }
+ function Ru(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -5935,46 +5935,46 @@ var k = /* @__PURE__ */ o(((e) => {
case 11:
case 14:
case 15:
- Cl(4, n, n.return), Lu(n, r);
+ wl(4, n, n.return), Ru(n, r);
break;
case 1:
- Dl(n, n.return);
+ Ol(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && Tl(n, n.return, i), Lu(n, r);
+ typeof i.componentWillUnmount == "function" && El(n, n.return, i), Ru(n, r);
break;
case 27: r & 2 && Tm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Dl(n, n.return), n.tag !== 5 && n.tag !== 27 || Al(n), Lu(n, r);
+ Ol(n, n.return), n.tag !== 5 && n.tag !== 27 || jl(n), Ru(n, r);
break;
case 6:
- Al(n);
+ jl(n);
break;
case 26:
- Dl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || au || i.parentNode.removeChild(i), Lu(n, r);
+ Ol(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ou || i.parentNode.removeChild(i), Ru(n, r);
break;
case 22:
- n.memoizedState === null && Lu(n, r);
+ n.memoizedState === null && Ru(n, r);
break;
case 30:
- Dl(n, n.return), Lu(n, r);
+ Ol(n, n.return), Ru(n, r);
break;
- case 7: Dl(n, n.return);
- default: Lu(n, r);
+ case 7: Ol(n, n.return);
+ default: Ru(n, r);
}
e = e.sibling;
}
}
- function Ru(e, t, n) {
+ function zu(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:
- Ru(i, a, n), Sl(4, a);
+ zu(i, a, n), Cl(4, a);
break;
case 1:
- if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (zu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
bf(r, r.return, e);
@@ -5983,170 +5983,170 @@ var k = /* @__PURE__ */ o(((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++) xo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) So(l[i], c);
} catch (e) {
bf(r, r.return, e);
}
}
- s && o & 64 && wl(a), El(a, a.return);
+ s && o & 64 && Tl(a), Dl(a, a.return);
break;
- case 27: n & 2 && zl(a);
+ case 27: n & 2 && Bl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || kl(a), Ru(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || Al(a), zu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
break;
case 6:
- kl(a);
+ Al(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || iu || th(km(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || au || th(km(c.ownerDocument), a.type, c), zu(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
break;
case 12:
- Ru(i, a, n);
+ zu(i, a, n);
break;
case 31:
- Ru(i, a, n), s && o & 4 && Tu(i, a);
+ zu(i, a, n), s && o & 4 && Eu(i, a);
break;
case 13:
- Ru(i, a, n), s && o & 4 && Eu(i, a);
+ zu(i, a, n), s && o & 4 && Du(i, a);
break;
case 22:
- a.memoizedState === null && Ru(i, a, n), El(a, a.return);
+ a.memoizedState === null && zu(i, a, n), Dl(a, a.return);
break;
case 30:
- Ru(i, a, n), El(a, a.return);
+ zu(i, a, n), Dl(a, a.return);
break;
- case 7: El(a, a.return);
- default: Ru(i, a, n);
+ case 7: Dl(a, a.return);
+ default: zu(i, a, n);
}
t = t.sibling;
}
}
- function zu(e, t) {
+ function Bu(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 && Aa(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 && ja(n));
}
- function Bu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Aa(e));
+ function Vu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ja(e));
}
- function Vu(e, t, n, r) {
+ function Hu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Hu(e, t, n, r), t = t.sibling;
- else i && tu(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Uu(e, t, n, r), t = t.sibling;
+ else i && nu(t);
}
- function Hu(e, t, n, r) {
+ function Uu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && eu(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && tu(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Vu(e, t, n, r), a & 2048 && Sl(9, t);
+ Hu(e, t, n, r), a & 2048 && Cl(9, t);
break;
case 1:
- Vu(e, t, n, r);
+ Hu(e, t, n, r);
break;
case 3:
- Vu(e, t, n, r), i && pu && (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 && Aa(a)));
+ Hu(e, t, n, r), i && mu && (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 && ja(a)));
break;
case 12:
if (a & 2048) {
- Vu(e, t, n, r), a = t.stateNode;
+ Hu(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) {
bf(t, t.return, e);
}
- } else Vu(e, t, n, r);
+ } else Hu(e, t, n, r);
break;
case 31:
- Vu(e, t, n, r);
+ Hu(e, t, n, r);
break;
case 13:
- Vu(e, t, n, r);
+ Hu(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 && eu(t), o._visibility & 2 ? Vu(e, t, n, r) : (o._visibility |= 2, Uu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && eu(s), o._visibility & 2 ? Vu(e, t, n, r) : Wu(e, t)), a & 2048 && zu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && tu(t), o._visibility & 2 ? Hu(e, t, n, r) : (o._visibility |= 2, Wu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && tu(s), o._visibility & 2 ? Hu(e, t, n, r) : Gu(e, t)), a & 2048 && Bu(s, t);
break;
case 24:
- Vu(e, t, n, r), a & 2048 && Bu(t.alternate, t);
+ Hu(e, t, n, r), a & 2048 && Vu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (ql(a.child, !0), ql(t.child, !0))), Vu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Jl(a.child, !0), Jl(t.child, !0))), Hu(e, t, n, r);
break;
- default: Vu(e, t, n, r);
+ default: Hu(e, t, n, r);
}
}
- function Uu(e, t, n, r, i) {
+ function Wu(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:
- Uu(a, o, s, c, i), Sl(8, o);
+ Wu(a, o, s, c, i), Cl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Uu(a, o, s, c, i)) : u._visibility & 2 ? Uu(a, o, s, c, i) : Wu(a, o), i && l & 2048 && zu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Wu(a, o, s, c, i)) : u._visibility & 2 ? Wu(a, o, s, c, i) : Gu(a, o), i && l & 2048 && Bu(o.alternate, o);
break;
case 24:
- Uu(a, o, s, c, i), i && l & 2048 && Bu(o.alternate, o);
+ Wu(a, o, s, c, i), i && l & 2048 && Vu(o.alternate, o);
break;
- default: Uu(a, o, s, c, i);
+ default: Wu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Wu(e, t) {
+ function Gu(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:
- Wu(n, r), i & 2048 && zu(r.alternate, r);
+ Gu(n, r), i & 2048 && Bu(r.alternate, r);
break;
case 24:
- Wu(n, r), i & 2048 && Bu(r.alternate, r);
+ Gu(n, r), i & 2048 && Vu(r.alternate, r);
break;
- default: Wu(n, r);
+ default: Gu(n, r);
}
t = t.sibling;
}
}
- var Gu = 8192;
- function Ku(e, t, n) {
- if (e.subtreeFlags & Gu) for (e = e.child; e !== null;) qu(e, t, n), e = e.sibling;
- }
+ var Ku = 8192;
function qu(e, t, n) {
+ if (e.subtreeFlags & Ku) for (e = e.child; e !== null;) Ju(e, t, n), e = e.sibling;
+ }
+ function Ju(e, t, n) {
switch (e.tag) {
case 26:
- Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, Au, e.memoizedState, e.memoizedProps));
+ qu(e, t, n), e.flags & Ku && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, ju, e.memoizedState, e.memoizedProps));
break;
case 5:
- Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && oh(n, e));
+ qu(e, t, n), e.flags & Ku && (e = e.stateNode, (t & 335544128) === t && oh(n, e));
break;
case 3:
case 4:
- var r = Au;
- Au = km(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
+ var r = ju;
+ ju = km(e.stateNode.containerInfo), qu(e, t, n), ju = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Ku, Ku = 16777216, qu(e, t, n), Ku = r) : qu(e, t, n));
break;
case 30:
- if ((e.flags & Gu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Ku) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, W === null && (W = /* @__PURE__ */ new Map()), W.set(r, i);
+ i.paired = null, Hl === null && (Hl = /* @__PURE__ */ new Map()), Hl.set(r, i);
}
- Ku(e, t, n);
+ qu(e, t, n);
break;
- default: Ku(e, t, n);
+ default: qu(e, t, n);
}
}
- function Ju(e) {
+ function Yu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -6155,69 +6155,69 @@ var k = /* @__PURE__ */ o(((e) => {
while (e !== null);
}
}
- function Yu(e) {
+ function Xu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- lu = r, Qu(r, e);
+ uu = r, $u(r, e);
}
- Ju(e);
+ Yu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Xu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Zu(e), e = e.sibling;
}
- function Xu(e) {
+ function Zu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Yu(e), e.flags & 2048 && Cl(9, e, e.return);
+ Xu(e), e.flags & 2048 && wl(9, e, e.return);
break;
case 3:
- Yu(e);
+ Xu(e);
break;
case 12:
- Yu(e);
+ Xu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Zu(e)) : Yu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Qu(e)) : Xu(e);
break;
- default: Yu(e);
+ default: Xu(e);
}
}
- function Zu(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];
- lu = r, Qu(r, e);
+ uu = r, $u(r, e);
}
- Ju(e);
+ Yu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- Cl(8, t, t.return), Zu(t);
+ wl(8, t, t.return), Qu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Zu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Qu(t));
break;
- default: Zu(t);
+ default: Qu(t);
}
e = e.sibling;
}
}
- function Qu(e, t) {
- for (; lu !== null;) {
- var n = lu;
+ function $u(e, t) {
+ for (; uu !== null;) {
+ var n = uu;
switch (n.tag) {
case 0:
case 11:
case 15:
- Cl(8, n, t);
+ wl(8, n, t);
break;
case 23:
case 22:
@@ -6226,60 +6226,60 @@ var k = /* @__PURE__ */ o(((e) => {
r != null && r.refCount++;
}
break;
- case 24: Aa(n.memoizedState.cache);
+ case 24: ja(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, lu = r;
- else a: for (n = e; lu !== null;) {
- r = lu;
+ if (r = n.child, r !== null) r.return = n, uu = r;
+ else a: for (n = e; uu !== null;) {
+ r = uu;
var i = r.sibling, a = r.return;
- if (bu(r), r === n) {
- lu = null;
+ if (xu(r), r === n) {
+ uu = null;
break a;
}
if (i !== null) {
- i.return = a, lu = i;
+ i.return = a, uu = i;
break a;
}
- lu = a;
+ uu = a;
}
}
}
- var $u = {
+ var ed = {
getCacheForType: function(e) {
- var t = Sa(Oa), n = t.data.get(e);
+ var t = Ca(ka), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return Sa(Oa).controller.signal;
+ return Ca(ka).controller.signal;
}
- }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, rd = null, id = 0, ad = 0, od = null, sd = !1, cd = !1, ld = !1, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = null, vd = null, yd = !1, bd = 0, xd = 0, Sd = Infinity, Cd = null, wd = null, Td = 0, Ed = null, Dd = null, Od = 0, kd = 0, Ad = null, jd = null, Md = null, Nd = null, Pd = null, Fd = 0, Id = null;
+ }, td = typeof WeakMap == "function" ? WeakMap : Map, nd = 0, rd = null, id = null, ad = 0, od = 0, sd = null, cd = !1, ld = !1, ud = !1, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = null, yd = null, bd = !1, xd = 0, Sd = 0, Cd = Infinity, wd = null, Td = null, Ed = 0, Dd = null, Od = null, kd = 0, Ad = 0, jd = null, Md = null, W = null, Nd = null, Pd = null, Fd = 0, Id = null;
function Ld() {
- return td & 2 && id !== 0 ? id & -id : me.T === null ? bt() : Vf();
+ return nd & 2 && ad !== 0 ? ad & -ad : he.T === null ? xt() : Vf();
}
function Rd() {
- if (hd === 0) {
- if (!(id & 536870912) || ta) {
- var e = it;
- it <<= 1, !(it & 3932160) && (it = 262144), hd = e;
- } else hd = 536870912;
+ if (gd === 0) {
+ if (!(ad & 536870912) || na) {
+ var e = at;
+ at <<= 1, !(at & 3932160) && (at = 262144), gd = e;
+ } else gd = 536870912;
}
- return e = Oo.current, e !== null && (e.flags |= 32), hd;
+ return e = ko.current, e !== null && (e.flags |= 32), gd;
}
function zd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Up(pi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
+ r === null && (r = n.ref = Up(mi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
}
}
function Bd(e, t, n) {
- (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), pt(e, n), (!(td & 2) || e !== nd) && (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Nf(e));
+ (e === rd && (od === 2 || od === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, ad, gd, !1)), mt(e, n), (!(nd & 2) || e !== rd) && (e === rd && (!(nd & 2) && (md |= n), fd === 4 && Wd(e, ad, gd, !1)), Nf(e));
}
function Vd(e, t, n) {
- if (td & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
+ if (nd & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
do {
if (a === 0) {
- cd && !r && Wd(e, t, 0, !1);
+ ld && !r && Wd(e, t, 0, !1);
break;
}
if (n = e.current.alternate, o && !Ud(n)) a = $d(e, t, !1), o = !1;
@@ -6291,14 +6291,14 @@ var k = /* @__PURE__ */ o(((e) => {
t = s;
a: {
var c = e;
- a = _d;
+ a = vd;
var l = c.current.memoizedState.isDehydrated;
if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {
- if (ld && !l) {
- c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;
+ if (ud && !l) {
+ c.errorRecoveryDisabledLanes |= o, md |= o, a = 4;
break a;
}
- o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));
+ o = yd, yd = a, o !== null && (yd === null ? yd = o : yd.push.apply(yd, o));
}
a = s;
}
@@ -6315,21 +6315,21 @@ var k = /* @__PURE__ */ o(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Wd(r, t, hd, !sd);
+ Wd(r, t, gd, !cd);
break a;
case 2:
- vd = null;
+ yd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = bd + 300 - Ve(), 10 < a)) {
- if (Wd(r, t, hd, !sd), st(r, 0, !0) !== 0) break a;
- Od = t, r.timeoutHandle = Tp(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = xd + 300 - He(), 10 < a)) {
+ if (Wd(r, t, gd, !cd), ct(r, 0, !0) !== 0) break a;
+ kd = t, r.timeoutHandle = Tp(Hd.bind(null, r, n, yd, wd, bd, t, gd, md, _d, cd, o, "Throttled", -0, 0), a);
break a;
}
- Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);
+ Hd(r, n, yd, wd, bd, t, gd, md, _d, cd, o, null, -0, 0);
}
break;
}
@@ -6347,8 +6347,8 @@ var k = /* @__PURE__ */ o(((e) => {
suspenseyImages: [],
waitingForImages: !0,
waitingForViewTransition: !1,
- unsuspend: _n
- }, W = null, qu(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 = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - Ve() : (a & 4194048) === a ? xd - Ve() : 0, m = lh(d, m), m !== null) ? (Od = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l)) : lf(e, t, a, n, r, i, o, s, c, l, u, d);
+ unsuspend: vn
+ }, Hl = null, Ju(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 = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? xd - He() : (a & 4194048) === a ? Sd - He() : 0, m = lh(d, m), m !== null) ? (kd = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l)) : lf(e, t, a, n, r, i, o, s, c, l, u, d);
}
function Ud(e) {
for (var t = e;;) {
@@ -6357,7 +6357,7 @@ var k = /* @__PURE__ */ o(((e) => {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Lr(a(), i)) return !1;
+ if (!Rr(a(), i)) return !1;
} catch {
return !1;
}
@@ -6375,57 +6375,57 @@ var k = /* @__PURE__ */ o(((e) => {
return !0;
}
function Wd(e, t, n, r) {
- t = lt(e, t), t &= ~md, t &= ~pd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ t = ut(e, t), t &= ~hd, t &= ~md, 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 - et(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && ht(e, n, t);
+ n !== 0 && gt(e, n, t);
}
function Gd() {
- return td & 6 ? !0 : (Pf(0, !1), !1);
+ return nd & 6 ? !0 : (Pf(0, !1), !1);
}
function Kd() {
- if (rd !== null) {
- if (ad === 0) var e = rd.return;
- else e = rd, ma = pa = null, is(e), no = null, ro = 0, e = rd;
- for (; e !== null;) xl(e.alternate, e), e = e.return;
- rd = null;
+ if (id !== null) {
+ if (od === 0) var e = id.return;
+ else e = id, ha = ma = null, as(e), ro = null, io = 0, e = id;
+ for (; e !== null;) Sl(e.alternate, e), e = e.return;
+ id = null;
}
}
function qd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = Ai(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = ct(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = lt(e, t), bi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), kd = 0, Kd(), rd = e, id = n = ji(e.current, null), ad = t, od = 0, sd = null, cd = !1, ld = lt(e, t), ud = !1, _d = gd = hd = md = pd = fd = 0, yd = vd = null, bd = !1, dd = ut(e, t), xi(), n;
}
function Jd(e, t) {
- Bo = null, me.H = mc, t === Ka || t === Ja ? (t = eo(), ad = 3) : t === qa ? (t = eo(), ad = 4) : ad = t === Mc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Ec(e, Ri(t, e.current)));
+ Vo = null, he.H = hc, t === qa || t === Ya ? (t = to(), od = 3) : t === Ja ? (t = to(), od = 4) : od = t === Nc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, sd = t, id === null && (fd = 1, Dc(e, zi(t, e.current)));
}
function Yd() {
- var e = Oo.current;
- return e === null ? !0 : (id & 4194048) === id ? ko === null : (id & 62914560) === id || id & 536870912 ? e === ko : !1;
+ var e = ko.current;
+ return e === null ? !0 : (ad & 4194048) === ad ? Ao === null : (ad & 62914560) === ad || ad & 536870912 ? e === Ao : !1;
}
function Xd() {
- var e = me.H;
- return me.H = mc, e === null ? mc : e;
+ var e = he.H;
+ return he.H = hc, e === null ? hc : e;
}
function Zd() {
- var e = me.A;
- return me.A = $u, e;
+ var e = he.A;
+ return he.A = ed, e;
}
function Qd() {
- dd = 4, sd || (id & 4194048) !== id && Oo.current !== null || (cd = !0), !(fd & 134217727) && !(pd & 134217727) || nd === null || Wd(nd, id, hd, !1);
+ fd = 4, cd || (ad & 4194048) !== ad && ko.current !== null || (ld = !0), !(pd & 134217727) && !(md & 134217727) || rd === null || Wd(rd, ad, gd, !1);
}
function $d(e, t, n) {
- var r = td;
- td |= 2;
+ var r = nd;
+ nd |= 2;
var i = Xd(), a = Zd();
- (nd !== e || id !== t) && (Cd = null, qd(e, t)), t = !1;
- var o = dd;
+ (rd !== e || ad !== t) && (wd = null, qd(e, t)), t = !1;
+ var o = fd;
a: do
try {
- if (ad !== 0 && rd !== null) {
- var s = rd, c = od;
- switch (ad) {
+ if (od !== 0 && id !== null) {
+ var s = id, c = sd;
+ switch (od) {
case 8:
Kd(), o = 6;
break a;
@@ -6433,85 +6433,85 @@ var k = /* @__PURE__ */ o(((e) => {
case 2:
case 9:
case 6:
- Oo.current === null && (t = !0);
- var l = ad;
- if (ad = 0, od = null, of(e, s, c, l), n && cd) {
+ ko.current === null && (t = !0);
+ var l = od;
+ if (od = 0, sd = null, of(e, s, c, l), n && ld) {
o = 0;
break a;
}
break;
- default: l = ad, ad = 0, od = null, of(e, s, c, l);
+ default: l = od, od = 0, sd = null, of(e, s, c, l);
}
}
- ef(), o = dd;
+ ef(), o = fd;
break;
} catch (t) {
Jd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ma = pa = null, td = r, me.H = i, me.A = a, rd === null && (nd = null, id = 0, bi()), o;
+ return t && e.shellSuspendCounter++, ha = ma = null, nd = r, he.H = i, he.A = a, id === null && (rd = null, ad = 0, xi()), o;
}
function ef() {
- for (; rd !== null;) rf(rd);
+ for (; id !== null;) rf(id);
}
function tf(e, t) {
- var n = td;
- td |= 2;
+ var n = nd;
+ nd |= 2;
var r = Xd(), a = Zd();
- nd !== e || id !== t ? (Cd = null, Sd = Ve() + 500, qd(e, t)) : cd = ct(e, t);
+ rd !== e || ad !== t ? (wd = null, Cd = He() + 500, qd(e, t)) : ld = lt(e, t);
a: do
try {
- if (ad !== 0 && rd !== null) {
- t = rd;
- var o = od;
- b: switch (ad) {
+ if (od !== 0 && id !== null) {
+ t = id;
+ var o = sd;
+ b: switch (od) {
case 1:
- ad = 0, od = null, of(e, t, o, 1);
+ od = 0, sd = null, of(e, t, o, 1);
break;
case 2:
case 9:
- if (Xa(o)) {
- ad = 0, od = null, af(t);
+ if (Za(o)) {
+ od = 0, sd = null, af(t);
break;
}
t = function() {
- ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Nf(e);
+ od !== 2 && od !== 9 || rd !== e || (od = 7), Nf(e);
}, o.then(t, t);
break a;
case 3:
- ad = 7;
+ od = 7;
break a;
case 4:
- ad = 5;
+ od = 5;
break a;
case 7:
- Xa(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));
+ Za(o) ? (od = 0, sd = null, af(t)) : (od = 0, sd = null, of(e, t, o, 7));
break;
case 5:
var s = null;
- switch (rd.tag) {
- case 26: s = rd.memoizedState;
+ switch (id.tag) {
+ case 26: s = id.memoizedState;
case 5:
case 27:
- var c = rd;
+ var c = id;
if (s ? ih(s) : c.stateNode.complete) {
- ad = 0, od = null;
+ od = 0, sd = null;
var l = c.sibling;
- if (l !== null) rd = l;
+ if (l !== null) id = l;
else {
var u = c.return;
- u === null ? rd = null : (rd = u, sf(u));
+ u === null ? id = null : (id = u, sf(u));
}
break b;
}
}
- ad = 0, od = null, of(e, t, o, 5);
+ od = 0, sd = null, of(e, t, o, 5);
break;
case 6:
- ad = 0, od = null, of(e, t, o, 6);
+ od = 0, sd = null, of(e, t, o, 6);
break;
case 8:
- Kd(), dd = 6;
+ Kd(), fd = 6;
break a;
default: throw Error(i(462));
}
@@ -6522,133 +6522,133 @@ var k = /* @__PURE__ */ o(((e) => {
Jd(e, t);
}
while (1);
- return ma = pa = null, me.H = r, me.A = a, td = n, rd === null ? (nd = null, id = 0, bi(), dd) : 0;
+ return ha = ma = null, he.H = r, he.A = a, nd = n, id === null ? (rd = null, ad = 0, xi(), fd) : 0;
}
function nf() {
- for (; rd !== null && !ze();) rf(rd);
+ for (; id !== null && !Be();) rf(id);
}
function rf(e) {
- var t = fl(e.alternate, e, ud);
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ var t = pl(e.alternate, e, dd);
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : id = t;
}
function af(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Kc(n, t, t.pendingProps, t.type, void 0, id);
+ t = qc(n, t, t.pendingProps, t.type, void 0, ad);
break;
case 11:
- t = Kc(n, t, t.pendingProps, t.type.render, t.ref, id);
+ t = qc(n, t, t.pendingProps, t.type.render, t.ref, ad);
break;
case 5:
- is(t);
+ as(t);
var r = t;
- r === $i && (ta ? (sa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (sa(r), ta = !0));
- default: xl(n, t), t = rd = ji(t, ud), t = fl(n, t, ud);
+ r === ea && (na ? (ca(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (ca(r), na = !0));
+ default: Sl(n, t), t = id = Mi(t, dd), t = pl(n, t, dd);
}
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ e.memoizedProps = e.pendingProps, t === null ? sf(e) : id = t;
}
function of(e, t, n, r) {
- ma = pa = null, is(t), no = null, ro = 0;
+ ha = ma = null, as(t), ro = null, io = 0;
var i = t.return;
try {
- if (jc(e, i, t, n, id)) {
- dd = 1, Ec(e, Ri(n, e.current)), rd = null;
+ if (Mc(e, i, t, n, ad)) {
+ fd = 1, Dc(e, zi(n, e.current)), id = null;
return;
}
} catch (t) {
- if (i !== null) throw rd = i, t;
- dd = 1, Ec(e, Ri(n, e.current)), rd = null;
+ if (i !== null) throw id = i, t;
+ fd = 1, Dc(e, zi(n, e.current)), id = null;
return;
}
- t.flags & 32768 ? (ta || r === 1 ? e = !0 : cd || id & 536870912 ? e = !1 : (sd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);
+ t.flags & 32768 ? (na || r === 1 ? e = !0 : ld || ad & 536870912 ? e = !1 : (cd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = ko.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);
}
function sf(e) {
var t = e;
do {
if (t.flags & 32768) {
- cf(t, sd);
+ cf(t, cd);
return;
}
e = t.return;
- var n = yl(t.alternate, t, ud);
+ var n = bl(t.alternate, t, dd);
if (n !== null) {
- rd = n;
+ id = n;
return;
}
if (t = t.sibling, t !== null) {
- rd = t;
+ id = t;
return;
}
- rd = t = e;
+ id = t = e;
} while (t !== null);
- dd === 0 && (dd = 5);
+ fd === 0 && (fd = 5);
}
function cf(e, t) {
do {
- var n = bl(e.alternate, e);
+ var n = xl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, rd = n;
+ n.flags &= 32767, id = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- rd = e;
+ id = e;
return;
}
- rd = e = n;
+ id = e = n;
} while (e !== null);
- dd = 6, rd = null;
+ fd = 6, id = null;
}
function lf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
_f();
- while (Td !== 0);
- if (td & 6) throw Error(i(327));
+ while (Ed !== 0);
+ if (nd & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === nd && (rd = nd = null, id = 0), Dd = t, Ed = e, Od = n, Ad = a, jd = r, uf(e, t, n, s, c, l, f);
+ e === rd && (id = rd = null, ad = 0), Od = t, Dd = e, kd = n, jd = a, Md = r, uf(e, t, n, s, c, l, f);
}
}
function uf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (kd = s, s |= yi, mt(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Na(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Ef(Ge, function() {
+ if (Ad = s, s |= bi, ht(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Pa(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Ef(Ke, function() {
return vf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Bl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = me.T, me.T = null, i = L.p, L.p = 2, a = td, td |= 4;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Vl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = he.T, he.T = null, i = I.p, I.p = 2, a = nd, nd |= 4;
try {
- mu(e, t, n);
+ hu(e, t, n);
} finally {
- td = a, L.p = i, me.T = r;
+ nd = a, I.p = i, he.T = r;
}
}
- Td = 1, Bl ? Md = Vp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
+ Ed = 1, Vl ? W = Vp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
}
function df(e) {
- if (Td !== 0) {
- var t = Ed.onRecoverableError;
+ if (Ed !== 0) {
+ var t = Dd.onRecoverableError;
t(e, { componentStack: null });
}
}
function ff() {
- Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);
+ Ed === 3 && (Ed = 0, Iu(Od, Dd), Ed = 4);
}
function pf() {
- if (Td === 1) {
- Td = 0;
- var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);
+ if (Ed === 1) {
+ Ed = 0;
+ var e = Dd, t = Od, n = kd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = me.T, me.T = null;
- var i = L.p;
- L.p = 2;
- var a = td;
- td |= 4;
+ r = he.T, he.T = null;
+ var i = I.p;
+ I.p = 2;
+ var a = nd;
+ nd |= 4;
try {
- du = fu = !1, ju(t, e, n), n = _p;
- 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)) {
+ fu = pu = !1, Mu(t, e, n), n = _p;
+ 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)) {
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 {
@@ -6656,7 +6656,7 @@ var k = /* @__PURE__ */ o(((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 _ = Vr(s, h), v = Vr(s, g);
+ var _ = Hr(s, h), v = Hr(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));
@@ -6676,81 +6676,81 @@ var k = /* @__PURE__ */ o(((e) => {
}
Th = !!gp, _p = gp = null;
} finally {
- td = a, L.p = i, me.T = r;
+ nd = a, I.p = i, he.T = r;
}
}
- e.current = t, Td = 2;
+ e.current = t, Ed = 2;
}
}
function mf() {
- if (Td === 2) {
- Td = 0;
- var e = Ed, t = Dd, n = !!(t.flags & 8772);
+ if (Ed === 2) {
+ Ed = 0;
+ var e = Dd, t = Od, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = me.T, me.T = null;
- var r = L.p;
- L.p = 2;
- var i = td;
- td |= 4;
+ n = he.T, he.T = null;
+ var r = I.p;
+ I.p = 2;
+ var i = nd;
+ nd |= 4;
try {
- gu(e, t.alternate, t);
+ _u(e, t.alternate, t);
} finally {
- td = i, L.p = r, me.T = n;
+ nd = i, I.p = r, he.T = n;
}
}
- Td = 3;
+ Ed = 3;
}
}
function hf() {
- if (Td === 4 || Td === 3) {
- Td = 0;
- var e = Md;
- Md = null, Be();
- var t = Ed, n = Dd, r = Od, i = jd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Td = 5 : (Td = 0, Dd = Ed = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (wd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
- Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
+ if (Ed === 4 || Ed === 3) {
+ Ed = 0;
+ var e = W;
+ W = null, Ve();
+ var t = Dd, n = Od, r = kd, i = Md, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Ed = 5 : (Ed = 0, Od = Dd = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Td = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
+ Qe.onCommitFiberRoot(Ze, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = me.T, a = L.p, L.p = 2, me.T = null;
+ n = he.T, a = I.p, I.p = 2, he.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 {
- me.T = n, L.p = a;
+ he.T = n, I.p = a;
}
}
if (i = Nd, o = Pd, Pd = null, i !== null && (Nd = 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);
- Od & 3 && _f(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Pf(0, !1);
+ kd & 3 && _f(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Pf(0, !1);
}
}
function gf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ja(t)));
}
function _f() {
- return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();
+ return W !== null && (W.skipTransition(), W = null), pf(), mf(), hf(), vf();
}
function vf() {
- if (Td !== 5) return !1;
- var e = Ed, t = kd;
- kd = 0;
- var n = yt(Od), r = me.T, a = L.p;
+ if (Ed !== 5) return !1;
+ var e = Dd, t = Ad;
+ Ad = 0;
+ var n = bt(kd), r = he.T, a = I.p;
try {
- L.p = 32 > n ? 32 : n, me.T = null, n = Ad, Ad = null;
- var o = Ed, s = Od;
- if (Td = 0, Dd = Ed = null, Od = 0, td & 6) throw Error(i(331));
- var c = td;
- if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Pf(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
- Ze.onPostCommitFiberRoot(Xe, o);
+ I.p = 32 > n ? 32 : n, he.T = null, n = jd, jd = null;
+ var o = Dd, s = kd;
+ if (Ed = 0, Od = Dd = null, kd = 0, nd & 6) throw Error(i(331));
+ var c = nd;
+ if (nd |= 4, Zu(o.current), Uu(o, o.current, s, n), nd = c, Pf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
+ Qe.onPostCommitFiberRoot(Ze, o);
} catch {}
return !0;
} finally {
- L.p = a, me.T = r, gf(e, t);
+ I.p = a, he.T = r, gf(e, t);
}
}
function yf(e, t, n) {
- t = Ri(n, t), t = Oc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (pt(e, 2), Nf(e));
+ t = zi(n, t), t = kc(e.stateNode, t, 2), e = go(e, t, 2), e !== null && (mt(e, 2), Nf(e));
}
function bf(e, t, n) {
if (e.tag === 3) yf(e, e, n);
@@ -6761,8 +6761,8 @@ var k = /* @__PURE__ */ o(((e) => {
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {
- e = Ri(n, e), n = kc(2), r = ho(t, n, 2), r !== null && (Ac(n, r, t, e), pt(r, 2), Nf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Td === null || !Td.has(r))) {
+ e = zi(n, e), n = Ac(2), r = go(t, n, 2), r !== null && (jc(n, r, t, e), mt(r, 2), Nf(r));
break;
}
}
@@ -6772,18 +6772,18 @@ var k = /* @__PURE__ */ o(((e) => {
function xf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new ed();
+ r = e.pingCache = new td();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ud = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
}
function Sf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (id & n) === n && (dd === 4 || dd === 3 && (id & 62914560) === id && 300 > Ve() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Nf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, rd === e && (ad & n) === n && (fd === 4 || fd === 3 && (ad & 62914560) === ad && 300 > He() - xd ? nd & 2 ? hd |= n : qd(e, 0) : hd |= n, _d === ad && (_d = 0)), Nf(e);
}
function Cf(e, t) {
- t === 0 && (t = dt()), e = Ci(e, t), e !== null && (pt(e, t), Nf(e));
+ t === 0 && (t = ft()), e = wi(e, t), e !== null && (mt(e, t), Nf(e));
}
function wf(e) {
var t = e.memoizedState, n = 0;
@@ -6808,7 +6808,7 @@ var k = /* @__PURE__ */ o(((e) => {
r !== null && r.delete(t), Cf(e, n);
}
function Ef(e, t) {
- return Le(e, t);
+ return Re(e, t);
}
var Df = null, Of = null, kf = !1, Af = !1, jf = !1, Mf = 0;
function Nf(e) {
@@ -6825,10 +6825,10 @@ var k = /* @__PURE__ */ o(((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 - et(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
a !== 0 && (n = !0, zf(r, a));
- } else a = id, a = st(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, zf(r, a));
+ } else a = ad, a = ct(r, r === rd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, zf(r, a));
}
r = r.next;
}
@@ -6843,43 +6843,43 @@ var k = /* @__PURE__ */ o(((e) => {
Af = kf = !1;
var e = 0;
Mf !== 0 && wp() && (e = Mf);
- for (var t = Ve(), n = null, r = Df; r !== null;) {
+ for (var t = He(), n = null, r = Df; r !== null;) {
var i = r.next, a = Lf(r, t);
a === 0 ? (r.next = null, n === null ? Df = i : n.next = i, i === null && (Of = n)) : (n = r, (e !== 0 || a & 3) && (Af = !0)), r = i;
}
- Td !== 0 && Td !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);
+ Ed !== 0 && Ed !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);
}
function Lf(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 - et(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = dt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = nd, n = id, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ad === 2 || ad === 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 = rd, n = ad, n = ct(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (od === 2 || od === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || lt(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Re(r), yt(n)) {
+ switch (r !== null && ze(r), bt(n)) {
case 2:
case 8:
- n = We;
+ n = Ge;
break;
case 32:
- n = Ge;
+ n = Ke;
break;
case 268435456:
- n = qe;
+ n = Je;
break;
- default: n = Ge;
+ default: n = Ke;
}
- return r = Rf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Rf.bind(null, e), n = Re(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 && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
function Rf(e, t) {
- if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ if (Ed !== 0 && Ed !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
if (_f() && e.callbackNode !== n) return null;
- var r = id;
- return r = st(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Lf(e, Ve()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);
+ var r = ad;
+ return r = ct(e, e === rd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Lf(e, He()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);
}
function zf(e, t) {
if (_f()) return null;
@@ -6887,24 +6887,24 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Bf() {
kp(function() {
- td & 6 ? Le(Ue, Ff) : If();
+ nd & 6 ? Re(We, Ff) : If();
});
}
function Vf() {
if (Mf === 0) {
- var e = Ia;
- e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), Mf = e;
+ var e = La;
+ e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), Mf = e;
}
return Mf;
}
function Hf(e) {
- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : gn(e);
+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : _n(e);
}
function Uf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Hf((i[wt] || null).action), o = r.submitter;
- o && (t = (t = o[wt] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
- var s = new Rn("action", "action", null, r, i);
+ var a = Hf((i[Tt] || null).action), o = r.submitter;
+ o && (t = (t = o[Tt] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var s = new zn("action", "action", null, r, i);
e.push({
event: s,
listeners: [{
@@ -6913,14 +6913,14 @@ var k = /* @__PURE__ */ o(((e) => {
if (r.defaultPrevented) {
if (Mf !== 0) {
var e = new FormData(i, o);
- ec(n, {
+ tc(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), ec(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), tc(n, {
pending: !0,
data: e,
method: i.method,
@@ -6932,16 +6932,16 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- for (var Wf = 0; Wf < ui.length; Wf++) {
- var Gf = ui[Wf];
- di(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));
+ for (var Wf = 0; Wf < di.length; Wf++) {
+ var Gf = di[Wf];
+ fi(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));
}
- di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Ht("onMouseEnter", ["mouseout", "mouseover"]), Ht("onMouseLeave", ["mouseout", "mouseover"]), Ht("onPointerEnter", ["pointerout", "pointerover"]), Ht("onPointerLeave", ["pointerout", "pointerover"]), Vt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Vt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Vt("onBeforeInput", [
+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), Ut("onMouseEnter", ["mouseout", "mouseover"]), Ut("onMouseLeave", ["mouseout", "mouseover"]), Ut("onPointerEnter", ["pointerout", "pointerover"]), Ut("onPointerLeave", ["pointerout", "pointerover"]), Ht("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ht("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ht("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Vt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Vt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Vt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ ]), Ht("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var Kf = "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(" "), qf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));
function Jf(e, t) {
t = !!(t & 4);
@@ -6957,7 +6957,7 @@ var k = /* @__PURE__ */ o(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -6967,7 +6967,7 @@ var k = /* @__PURE__ */ o(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -6975,8 +6975,8 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
function Yf(e, t) {
- var n = t[Et];
- n === void 0 && (n = t[Et] = /* @__PURE__ */ new Set());
+ var n = t[Dt];
+ n === void 0 && (n = t[Dt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
n.has(r) || ($f(t, e, 2, !1), n.add(r));
}
@@ -6987,7 +6987,7 @@ var k = /* @__PURE__ */ o(((e) => {
var Zf = "_reactListening" + Math.random().toString(36).slice(2);
function Qf(e) {
if (!e[Zf]) {
- e[Zf] = !0, zt.forEach(function(t) {
+ e[Zf] = !0, Bt.forEach(function(t) {
t !== "selectionchange" && (qf.has(t) || Xf(t, !1, e), Xf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -7004,7 +7004,7 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: i = Oh;
}
- n = i.bind(null, t, n, e), i = void 0, !Dn || 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, !On || 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 });
@@ -7023,7 +7023,7 @@ var k = /* @__PURE__ */ o(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = Nt(c), s === null) return;
+ if (s = Pt(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -7033,27 +7033,27 @@ var k = /* @__PURE__ */ o(((e) => {
}
r = r.return;
}
- wn(function() {
- var r = a, i = yn(n), s = [];
+ Tn(function() {
+ var r = a, i = bn(n), s = [];
a: {
- var c = li.get(e);
+ var c = ui.get(e);
if (c !== void 0) {
- var l = Rn, u = e;
+ var l = zn, u = e;
switch (e) {
- case "keypress": if (Nn(n) === 0) break a;
+ case "keypress": if (Pn(n) === 0) break a;
case "keydown":
case "keyup":
- l = $n;
+ l = er;
break;
case "focusin":
- u = "focus", l = Gn;
+ u = "focus", l = Kn;
break;
case "focusout":
- u = "blur", l = Gn;
+ u = "blur", l = Kn;
break;
case "beforeblur":
case "afterblur":
- l = Gn;
+ l = Kn;
break;
case "click": if (n.button === 2) break a;
case "auxclick":
@@ -7064,7 +7064,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "mouseout":
case "mouseover":
case "contextmenu":
- l = Un;
+ l = V;
break;
case "drag":
case "dragend":
@@ -7074,33 +7074,33 @@ var k = /* @__PURE__ */ o(((e) => {
case "dragover":
case "dragstart":
case "drop":
- l = Wn;
+ l = Gn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
- l = nr;
+ l = rr;
break;
- case ni:
case ri:
case ii:
- l = Kn;
+ case ai:
+ l = qn;
break;
- case ci:
- l = rr;
+ case li:
+ l = ir;
break;
case "scroll":
case "scrollend":
- l = Bn;
+ l = Vn;
break;
case "wheel":
- l = ir;
+ l = ar;
break;
case "copy":
case "cut":
case "paste":
- l = qn;
+ l = Jn;
break;
case "gotpointercapture":
case "lostpointercapture":
@@ -7110,19 +7110,19 @@ var k = /* @__PURE__ */ o(((e) => {
case "pointerout":
case "pointerover":
case "pointerup":
- l = er;
+ l = tr;
break;
case "submit":
- l = tr;
+ l = nr;
break;
case "toggle":
- case "beforetoggle": l = ar;
+ case "beforetoggle": l = or;
}
var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Tn(m, p), g != null && d.push(tp(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = En(m, p), g != null && d.push(tp(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -7133,45 +7133,45 @@ var k = /* @__PURE__ */ o(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== vn && (u = n.relatedTarget || n.fromElement) && (Nt(u) || u[Tt])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Nt(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 = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Ft(c), h = l == null ? u : Ft(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Nt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (Pt(u) || u[Et])) 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 ? Pt(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 = V, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(s, f, l, d, !0)));
}
a: {
- if (c = r ? Ft(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 ? It(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Er;
+ else if (br(c)) {
+ if (Dr) _ = Ir;
else {
- _ = Nr;
- var v = Mr;
+ _ = Pr;
+ var v = Nr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && B(r.elementType) && (_ = Tr) : _ = Pr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && hn(r.elementType) && (_ = Er) : _ = Fr;
if (_ &&= _(e, r)) {
- br(s, _, n, i);
+ xr(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? Ft(r) : window, e) {
+ switch (v = r ? It(r) : window, e) {
case "focusin":
- (yr(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
+ (br(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
break;
case "focusout":
- Jr = qr = Kr = null;
+ Yr = Jr = qr = null;
break;
case "mousedown":
- Yr = !0;
+ Xr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Yr = !1, Xr(s, n, i);
+ Xr = !1, Zr(s, n, i);
break;
- case "selectionchange": if (Gr) break;
+ case "selectionchange": if (Kr) break;
case "keydown":
- case "keyup": Xr(s, n, i);
+ case "keyup": Zr(s, n, i);
}
var y;
- if (sr) b: {
+ if (cr) b: {
switch (e) {
case "compositionstart":
var b = "onCompositionStart";
@@ -7185,11 +7185,11 @@ var k = /* @__PURE__ */ o(((e) => {
}
b = void 0;
}
- else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = Mn()) : (kn = i, An = "value" in kn ? kn.value : kn.textContent, hr = !0)), v = np(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
+ else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = Nn()) : (An = i, jn = "value" in An ? An.value : An.textContent, gr = !0)), v = np(r, b), 0 < v.length && (b = new Yn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new Yn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), Uf(s, e, r, n, i);
@@ -7207,7 +7207,7 @@ var k = /* @__PURE__ */ o(((e) => {
function np(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 = Tn(e, n), i != null && r.unshift(tp(e, i, a)), i = Tn(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = En(e, n), i != null && r.unshift(tp(e, i, a)), i = En(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
@@ -7223,7 +7223,7 @@ var k = /* @__PURE__ */ o(((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 = Tn(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = Tn(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = En(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = En(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
@@ -7240,28 +7240,28 @@ var k = /* @__PURE__ */ o(((e) => {
function lp(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && un(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || dn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && dn(e, "" + r);
else return;
break;
case "className":
- Xt(e, "class", r);
+ Zt(e, "class", r);
break;
case "tabIndex":
- Xt(e, "tabindex", r);
+ Zt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Xt(e, n, r);
+ Zt(e, n, r);
break;
case "style":
- pn(e, r, o);
+ mn(e, r, o);
return;
case "data": if (t !== "object") {
- Xt(e, "data", r);
+ Zt(e, "data", r);
break;
}
case "src":
@@ -7270,7 +7270,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.removeAttribute(n);
break;
}
- r = gn(r), e.setAttribute(n, r);
+ r = _n(r), e.setAttribute(n, r);
break;
case "action":
case "formAction":
@@ -7282,10 +7282,10 @@ var k = /* @__PURE__ */ o(((e) => {
e.removeAttribute(n);
break;
}
- r = gn(r), e.setAttribute(n, r);
+ r = _n(r), e.setAttribute(n, r);
break;
case "onClick":
- r != null && (e.onclick = _n);
+ r != null && (e.onclick = vn);
return;
case "onScroll":
r != null && Yf("scroll", e);
@@ -7320,7 +7320,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.removeAttribute("xlink:href");
break;
}
- n = gn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
+ n = _n(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);
break;
case "contentEditable":
case "spellCheck":
@@ -7373,49 +7373,49 @@ var k = /* @__PURE__ */ o(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Yf("beforetoggle", e), Yf("toggle", e), Yt(e, "popover", r);
+ Yf("beforetoggle", e), Yf("toggle", e), Xt(e, "popover", r);
break;
case "xlinkActuate":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Zt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Zt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Yt(e, "is", r);
+ Xt(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 = mn.get(n) || n, Yt(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = z.get(n) || n, Xt(e, n, r);
else return;
}
- qt = !0;
+ Jt = !0;
}
function up(e, t, n, r, a, o) {
switch (n) {
case "style":
- pn(e, r, o);
+ mn(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7427,8 +7427,8 @@ var k = /* @__PURE__ */ o(((e) => {
}
break;
case "children":
- if (typeof r == "string") un(e, r);
- else if (typeof r == "number" || typeof r == "bigint") un(e, "" + r);
+ if (typeof r == "string") dn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") dn(e, "" + r);
else return;
break;
case "onScroll":
@@ -7438,7 +7438,7 @@ var k = /* @__PURE__ */ o(((e) => {
r != null && Yf("scrollend", e);
return;
case "onClick":
- r != null && (e.onclick = _n);
+ r != null && (e.onclick = vn);
return;
case "suppressContentEditableWarning":
case "suppressHydrationWarning":
@@ -7447,16 +7447,16 @@ var k = /* @__PURE__ */ o(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!Bt.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[wt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!Vt.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[Tt] || 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;
}
- qt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Yt(e, n, r);
+ Jt = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Xt(e, n, r);
}
return;
}
- qt = !0;
+ Jt = !0;
}
function dp(e, t, n) {
switch (t) {
@@ -7518,7 +7518,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: lp(e, t, r, d, n, null);
}
}
- an(e, o, c, l, u, s, a, !1);
+ on(e, o, c, l, u, s, a, !1);
return;
case "select":
for (a in Yf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
@@ -7531,7 +7531,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "multiple": r = c;
default: lp(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && sn(e, !!r, n, !0) : sn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && cn(e, !!r, n, !0) : cn(e, !!r, t, !1);
return;
case "textarea":
for (s in Yf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
@@ -7549,7 +7549,7 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: lp(e, t, s, c, n, null);
}
- ln(e, r, a, o);
+ un(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
@@ -7596,7 +7596,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: lp(e, t, u, r, n, null);
}
return;
- default: if (B(t)) {
+ default: if (hn(t)) {
for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && up(e, t, d, r, n, void 0));
return;
}
@@ -7629,22 +7629,22 @@ var k = /* @__PURE__ */ o(((e) => {
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (qt = !0), o = m;
+ m !== f && (Jt = !0), o = m;
break;
case "name":
- m !== f && (qt = !0), a = m;
+ m !== f && (Jt = !0), a = m;
break;
case "checked":
- m !== f && (qt = !0), u = m;
+ m !== f && (Jt = !0), u = m;
break;
case "defaultChecked":
- m !== f && (qt = !0), d = m;
+ m !== f && (Jt = !0), d = m;
break;
case "value":
- m !== f && (qt = !0), s = m;
+ m !== f && (Jt = !0), s = m;
break;
case "defaultValue":
- m !== f && (qt = !0), c = m;
+ m !== f && (Jt = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
@@ -7653,7 +7653,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: m !== f && lp(e, t, p, m, r, f);
}
}
- rn(e, s, c, l, u, d, o, a);
+ R(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) {
@@ -7663,15 +7663,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (qt = !0), p = o;
+ o !== l && (Jt = !0), p = o;
break;
case "defaultValue":
- o !== l && (qt = !0), c = o;
+ o !== l && (Jt = !0), c = o;
break;
- case "multiple": o !== l && (qt = !0), s = o;
+ case "multiple": o !== l && (Jt = !0), s = o;
default: o !== l && lp(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? sn(e, !!n, n ? [] : "", !1) : sn(e, !!n, t, !0)) : sn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? cn(e, !!n, n ? [] : "", !1) : cn(e, !!n, t, !0)) : cn(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) {
@@ -7681,10 +7681,10 @@ var k = /* @__PURE__ */ o(((e) => {
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (qt = !0), p = a;
+ a !== o && (Jt = !0), p = a;
break;
case "defaultValue":
- a !== o && (qt = !0), m = a;
+ a !== o && (Jt = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
@@ -7692,7 +7692,7 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: a !== o && lp(e, t, s, a, r, o);
}
- cn(e, p, m);
+ ln(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) {
@@ -7703,7 +7703,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
- p !== m && (qt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
+ p !== m && (Jt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
default: lp(e, t, l, p, r, m);
}
@@ -7732,7 +7732,7 @@ var k = /* @__PURE__ */ o(((e) => {
default: lp(e, t, u, p, r, m);
}
return;
- default: if (B(t)) {
+ default: if (hn(t)) {
for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && up(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 || up(e, t, d, p, r, m);
return;
@@ -7791,7 +7791,7 @@ var k = /* @__PURE__ */ o(((e) => {
return e === 1 && t === "foreignObject" ? 0 : e;
}
function xp(e, t, n, r) {
- return n = vp(n).createElement(e), n[Ct] = r, n[wt] = t, dp(n, e, t), Lt(n), n;
+ return n = vp(n).createElement(e), n[wt] = r, n[Tt] = t, dp(n, e, t), Rt(n), n;
}
function Sp(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;
@@ -7829,7 +7829,7 @@ var k = /* @__PURE__ */ o(((e) => {
n = e.ownerDocument.head, Em(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[At] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[jt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
} else n === "body" && Em(e.ownerDocument.body);
}
@@ -8160,7 +8160,7 @@ var k = /* @__PURE__ */ o(((e) => {
return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || am(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
function am(e, t, n, r, i) {
- var a = Nt(i);
+ var a = Pt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -8257,7 +8257,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- dm(n), Mt(n);
+ dm(n), Nt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8276,7 +8276,7 @@ var k = /* @__PURE__ */ o(((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[At]) switch (t) {
+ } else if (!e[jt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -8400,11 +8400,11 @@ var k = /* @__PURE__ */ o(((e) => {
var i = n[r];
n.hasOwnProperty(r) && i != null && lp(e, t, r, null, fp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === _n && (e.onclick = null), Mt(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), Nt(e);
}
function Em(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- Mt(e);
+ Nt(e);
}
var Dm = /* @__PURE__ */ new Map(), Om = /* @__PURE__ */ new Set();
function km(e) {
@@ -8414,8 +8414,8 @@ var k = /* @__PURE__ */ o(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Am = L.d;
- L.d = {
+ var Am = I.d;
+ I.d = {
f: jm,
r: Mm,
D: Fm,
@@ -8431,19 +8431,19 @@ var k = /* @__PURE__ */ o(((e) => {
return e || t;
}
function Mm(e) {
- var t = Pt(e);
- t !== null && t.tag === 5 && t.type === "form" ? nc(t) : Am.r(e);
+ var t = Ft(e);
+ t !== null && t.tag === 5 && t.type === "form" ? rc(t) : Am.r(e);
}
var Nm = typeof document > "u" ? null : document;
function Pm(e, t, n) {
var r = Nm;
if (r && typeof t == "string" && t) {
- var i = z(t);
+ var i = L(t);
i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Om.has(i) || (Om.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), dp(t, "link", e), Lt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), dp(t, "link", e), Rt(t), r.head.appendChild(t)));
}
}
function Fm(e) {
@@ -8456,8 +8456,8 @@ var k = /* @__PURE__ */ o(((e) => {
Am.L(e, t, n);
var r = Nm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + z(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + z(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + z(n.imageSizes) + "\"]")) : i += "[href=\"" + z(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + L(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + L(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + L(n.imageSizes) + "\"]")) : i += "[href=\"" + L(e) + "\"]";
var a = i;
switch (t) {
case "style":
@@ -8471,9 +8471,9 @@ var k = /* @__PURE__ */ o(((e) => {
as: t
}, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Wm(a)) || t === "script" && r.querySelector(Jm(a))))) {
var o = r.createElement("link");
- dp(o, "link", e), t === "style" && (o[jt] = !0, o.onload = o.onerror = function() {
- Rt(o);
- }), Lt(o), r.head.appendChild(o);
+ dp(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {
+ zt(o);
+ }), Rt(o), r.head.appendChild(o);
}
}
}
@@ -8481,7 +8481,7 @@ var k = /* @__PURE__ */ o(((e) => {
Am.m(e, t);
var n = Nm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + z(r) + "\"][href=\"" + z(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + L(r) + "\"][href=\"" + L(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
@@ -8502,7 +8502,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "worker":
case "script": if (n.querySelector(Jm(a))) return;
}
- r = n.createElement("link"), dp(r, "link", e), Lt(r), n.head.appendChild(r);
+ r = n.createElement("link"), dp(r, "link", e), Rt(r), n.head.appendChild(r);
}
}
}
@@ -8510,7 +8510,7 @@ var k = /* @__PURE__ */ o(((e) => {
Am.S(e, t, n);
var r = Nm;
if (r && e) {
- var i = It(r).hoistableStyles, a = Um(e);
+ var i = Lt(r).hoistableStyles, a = Um(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8526,7 +8526,7 @@ var k = /* @__PURE__ */ o(((e) => {
"data-precedence": t
}, n), (n = Dm.get(a)) && Zm(e, n);
var c = o = r.createElement("link");
- Lt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {
+ Rt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
@@ -8547,11 +8547,11 @@ var k = /* @__PURE__ */ o(((e) => {
Am.X(e, t);
var n = Nm;
if (n && e) {
- var r = It(n).hoistableScripts, i = qm(e), a = r.get(i);
+ var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
a || (a = n.querySelector(Jm(i)), a || (e = w({
src: e,
async: !0
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Lt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8563,12 +8563,12 @@ var k = /* @__PURE__ */ o(((e) => {
Am.M(e, t);
var n = Nm;
if (n && e) {
- var r = It(n).hoistableScripts, i = qm(e), a = r.get(i);
+ var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
a || (a = n.querySelector(Jm(i)), a || (e = w({
src: e,
async: !0,
type: "module"
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Lt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8577,12 +8577,12 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
function Hm(e, t, n, r) {
- var a = (a = Ce.current) ? km(a) : null;
+ var a = (a = we.current) ? km(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 = Um(n.href), t = It(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Um(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8596,7 +8596,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Um(n.href);
- var o = It(a).hoistableStyles, s = o.get(e);
+ var o = Lt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -8619,7 +8619,7 @@ var k = /* @__PURE__ */ o(((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 = qm(n), t = It(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 = qm(n), t = Lt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8634,7 +8634,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
function Um(e) {
- return "href=\"" + z(e) + "\"";
+ return "href=\"" + L(e) + "\"";
}
function Wm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -8647,11 +8647,11 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Km(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[jt]) {
+ if (!0 !== t[Mt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[jt] = !0, t.onload = t.onerror = Rt.bind(null, t), dp(t, "link", n), Lt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), dp(t, "link", n), Rt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -8659,7 +8659,7 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
function qm(e) {
- return "[src=\"" + z(e) + "\"]";
+ return "[src=\"" + L(e) + "\"]";
}
function Jm(e) {
return "script[async]" + e;
@@ -8667,25 +8667,25 @@ var k = /* @__PURE__ */ o(((e) => {
function Ym(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + z(n.href) + "\"]");
- if (r) return t.instance = r, Lt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + L(n.href) + "\"]");
+ if (r) return t.instance = r, Rt(r), r;
var a = w({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Lt(r), dp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Rt(r), dp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;
case "stylesheet":
a = Um(n.href);
var o = e.querySelector(Wm(a));
- if (o) return t.state.loading |= 4, t.instance = o, Lt(o), o;
- r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Lt(o);
+ if (o) return t.state.loading |= 4, t.instance = o, Rt(o), o;
+ r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
}), dp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;
- case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Lt(a), a) : (r = n, (a = Dm.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Lt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);
+ case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Dm.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -8715,7 +8715,7 @@ var k = /* @__PURE__ */ o(((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[At] || a[Ct] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[jt] || a[wt] || 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);
@@ -8762,10 +8762,10 @@ var k = /* @__PURE__ */ o(((e) => {
if (n.instance === null) {
var i = Um(r.href), a = t.querySelector(Wm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Lt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);
return;
}
- a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Lt(a);
+ a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Rt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
@@ -8830,28 +8830,28 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
var gh = {
- $$typeof: te,
+ $$typeof: ne,
Provider: null,
Consumer: null,
- _currentValue: he,
- _currentValue2: he,
+ _currentValue: ge,
+ _currentValue2: ge,
_threadCount: 0
};
function _h(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 = pt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = pt(0), this.hiddenUpdates = pt(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 vh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new _h(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 = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ return e = new _h(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 = Aa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, fo(a), e;
+ }, po(a), e;
}
function yh(e) {
- return e ? (e = Ei, e) : Ei;
+ return e ? (e = Di, e) : Di;
}
function bh(e, t, n, r, i, a) {
- i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (Bd(n, e, t), go(n, e, t));
+ i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = ho(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = go(e, r, t), n !== null && (Bd(n, e, t), _o(n, e, t));
}
function xh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -8864,37 +8864,37 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Ch(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ci(e, 67108864);
+ var t = wi(e, 67108864);
t !== null && Bd(t, e, 67108864), Sh(e, 67108864);
}
}
function wh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = Ld();
- t = vt(t);
- var n = Ci(e, t);
+ t = yt(t);
+ var n = wi(e, t);
n !== null && Bd(n, e, t), Sh(e, t);
}
}
var Th = !0;
function Eh(e, t, n, r) {
- var i = me.T;
- me.T = null;
- var a = L.p;
+ var i = he.T;
+ he.T = null;
+ var a = I.p;
try {
- L.p = 2, Oh(e, t, n, r);
+ I.p = 2, Oh(e, t, n, r);
} finally {
- L.p = a, me.T = i;
+ I.p = a, he.T = i;
}
}
function Dh(e, t, n, r) {
- var i = me.T;
- me.T = null;
- var a = L.p;
+ var i = he.T;
+ he.T = null;
+ var a = I.p;
try {
- L.p = 8, Oh(e, t, n, r);
+ I.p = 8, Oh(e, t, n, r);
} finally {
- L.p = a, me.T = i;
+ I.p = a, he.T = i;
}
}
function Oh(e, t, n, r) {
@@ -8904,23 +8904,23 @@ var k = /* @__PURE__ */ o(((e) => {
else if (Uh(i, e, t, n, r)) r.stopPropagation();
else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {
for (; i !== null;) {
- var a = Pt(i);
+ var a = Ft(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = ot(a.pendingLanes);
+ var o = st(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 - et(o);
s.entanglements[1] |= c, o &= ~c;
}
- Nf(a), !(td & 6) && (Sd = Ve() + 500, Pf(0, !1));
+ Nf(a), !(nd & 6) && (Cd = He() + 500, Pf(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Bd(s, a, 2), Gd(), Sh(a, 2);
+ case 13: s = wi(a, 2), s !== null && Bd(s, a, 2), Gd(), Sh(a, 2);
}
if (a = kh(r), a === null && ep(e, t, r, Ah, n), a === i) break;
i = a;
@@ -8930,11 +8930,11 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
function kh(e) {
- return e = yn(e), jh(e);
+ return e = bn(e), jh(e);
}
var Ah = null;
function jh(e) {
- if (Ah = null, e = Nt(e), e !== null) {
+ if (Ah = null, e = Pt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -9027,12 +9027,12 @@ var k = /* @__PURE__ */ o(((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 (Ue()) {
+ case We: return 2;
+ case Ge: return 8;
+ case Ke:
+ case qe: return 32;
+ case Je: return 268435456;
default: return 32;
}
default: return 32;
@@ -9068,7 +9068,7 @@ var k = /* @__PURE__ */ o(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Pt(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Ft(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
function Uh(e, t, n, r, i) {
switch (t) {
@@ -9083,20 +9083,20 @@ var k = /* @__PURE__ */ o(((e) => {
return !1;
}
function Wh(e) {
- var t = Nt(e.target);
+ var t = Pt(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, xt(e.priority, function() {
+ e.blockedOn = t, St(e.priority, function() {
wh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, xt(e.priority, function() {
+ e.blockedOn = t, St(e.priority, function() {
wh(n);
});
return;
@@ -9116,8 +9116,8 @@ var k = /* @__PURE__ */ o(((e) => {
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
- vn = r, n.target.dispatchEvent(r), vn = null;
- } else return t = Pt(n), t !== null && Ch(t), e.blockedOn = n, !1;
+ yn = r, n.target.dispatchEvent(r), yn = null;
+ } else return t = Ft(n), t !== null && Ch(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -9141,8 +9141,8 @@ var k = /* @__PURE__ */ o(((e) => {
if (jh(r || n) === null) continue;
break;
}
- var a = Pt(n);
- a !== null && (e.splice(t, 3), t -= 3, ec(a, {
+ var a = Ft(n);
+ a !== null && (e.splice(t, 3), t -= 3, tc(a, {
pending: !0,
data: i,
method: n.method,
@@ -9162,12 +9162,12 @@ var k = /* @__PURE__ */ o(((e) => {
}
for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.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[wt] || null;
+ var i = n[r], a = n[r + 1], o = i[Tt] || null;
if (typeof a == "function") o || Xh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[wt] || null) s = o.formAction;
+ if (i = a, o = a[Tt] || null) s = o.formAction;
else if (jh(i) !== null) continue;
} else s = o.action;
typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);
@@ -9219,7 +9219,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- bh(e.current, 2, null, e, null, null), Gd(), t[Tt] = null;
+ bh(e.current, 2, null, e, null, null), Gd(), t[Et] = null;
}
};
function eg(e) {
@@ -9227,7 +9227,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
eg.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = bt();
+ var t = xt();
e = {
blockedOn: null,
target: e,
@@ -9239,7 +9239,7 @@ var k = /* @__PURE__ */ o(((e) => {
};
var tg = n.version;
if (tg !== "19.3.1") throw Error(i(527, tg, "19.3.1"));
- L.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;
@@ -9248,21 +9248,21 @@ var k = /* @__PURE__ */ o(((e) => {
bundleType: 0,
version: "19.3.1",
rendererPackageName: "react-dom",
- currentDispatcherRef: me,
+ currentDispatcherRef: he,
reconcilerVersion: "19.3.1"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!rg.isDisabled && rg.supportsFiber) try {
- Xe = rg.inject(ng), Ze = rg;
+ Ze = rg.inject(ng), Qe = rg;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = Cc, s = wc, c = Tc;
- 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 = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Tt] = t.current, Qf(e), new $h(t);
+ var n = !1, r = "", o = wc, s = Tc, c = Ec;
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Et] = t.current, Qf(e), new $h(t);
};
-})), P = /* @__PURE__ */ o(((e, t) => {
+})), N = /* @__PURE__ */ o(((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);
@@ -9270,8 +9270,8 @@ var k = /* @__PURE__ */ o(((e) => {
console.error(e);
}
}
- n(), t.exports = te();
-})), ne = /* @__PURE__ */ o(((e) => {
+ n(), t.exports = ne();
+})), re = /* @__PURE__ */ o(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
function r(e, n, r) {
var i = null;
@@ -9286,25 +9286,25 @@ var k = /* @__PURE__ */ o(((e) => {
};
}
e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), re = /* @__PURE__ */ o(((e, t) => {
- t.exports = ne();
-})), F = /* @__PURE__ */ l(A(), 1), I = re(), ie = F.createContext(void 0), ae = (e) => {
- let t = F.useContext(ie);
+})), ie = /* @__PURE__ */ o(((e, t) => {
+ t.exports = re();
+})), P = /* @__PURE__ */ l(A(), 1), F = ie(), ae = P.createContext(void 0), oe = (e) => {
+ let t = P.useContext(ae);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, oe = ({ client: e, children: t }) => (F.useEffect(() => (e.mount(), () => {
+}, se = ({ client: e, children: t }) => (P.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, I.jsx)(ie.Provider, {
+}), [e]), /* @__PURE__ */ (0, F.jsx)(ae.Provider, {
value: e,
children: t
-})), se = {
+})), ce = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
-}, ce = new class {
- #e = se;
+}, le = new class {
+ #e = ce;
setTimeoutProvider(e) {
this.#e = e;
}
@@ -9321,31 +9321,31 @@ var k = /* @__PURE__ */ o(((e) => {
this.#e.clearInterval(e);
}
}();
-function le(e) {
+function ue(e) {
setTimeout(e, 0);
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/utils.js
-var ue = typeof window > "u" || "Deno" in globalThis;
-function de() {}
-function fe(e, t) {
+var de = typeof window > "u" || "Deno" in globalThis;
+function fe() {}
+function pe(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function pe(e) {
+function me(e) {
return typeof e == "number" && e >= 0 && e !== Infinity;
}
-function me(e, t) {
+function he(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
-function L(e, t) {
+function I(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function he(e, t) {
+function ge(e, t) {
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
if (o) {
if (r) {
- if (t.queryHash !== _e(o, t.options)) return !1;
- } else if (!ye(t.queryKey, o)) return !1;
+ if (t.queryHash !== ve(o, t.options)) return !1;
+ } else if (!be(t.queryKey, o)) return !1;
}
if (n !== "all") {
let e = t.isActive();
@@ -9353,105 +9353,105 @@ function he(e, t) {
}
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
}
-function ge(e, t) {
+function _e(e, t) {
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
if (a) {
if (!t.options.mutationKey) return !1;
if (n) {
- if (ve(t.options.mutationKey) !== ve(a)) return !1;
- } else if (!ye(t.options.mutationKey, a)) return !1;
+ if (ye(t.options.mutationKey) !== ye(a)) return !1;
+ } else if (!be(t.options.mutationKey, a)) return !1;
}
return !(r && t.state.status !== r || i && !i(t));
}
-function _e(e, t) {
- return (t?.queryKeyHashFn || ve)(e);
+function ve(e, t) {
+ return (t?.queryKeyHashFn || ye)(e);
}
-function ve(e) {
- return JSON.stringify(e, (e, t) => we(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+function ye(e) {
+ return JSON.stringify(e, (e, t) => Te(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
}
-function ye(e, t) {
+function be(e, t) {
if (e === t) return !0;
if (typeof e != typeof t) return !1;
if (e && t && typeof e == "object" && typeof t == "object") {
if (Array.isArray(e) && Array.isArray(t)) {
if (t.length > e.length) return !1;
- for (let n = 0; n < t.length; n++) if (!ye(e[n], t[n])) return !1;
+ for (let n = 0; n < t.length; n++) if (!be(e[n], t[n])) return !1;
return !0;
}
let n = Object.keys(t);
- for (let r of n) if (!ye(e[r], t[r])) return !1;
+ for (let r of n) if (!be(e[r], t[r])) return !1;
return !0;
}
return !1;
}
-var be = Object.prototype.hasOwnProperty;
-function xe(e, t, n = 0) {
+var xe = Object.prototype.hasOwnProperty;
+function Se(e, t, n = 0) {
if (e === t) return e;
if (n > 500) return t;
- let r = Ce(e) && Ce(t);
- if (!r && !(we(e) && we(t))) return t;
+ let r = we(e) && we(t);
+ if (!r && !(Te(e) && Te(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 : be.call(e, o)) && c++;
+ s[o] = u, (r ? l < i : xe.call(e, o)) && c++;
continue;
}
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
s[o] = d;
continue;
}
- let f = xe(u, d, n + 1);
+ let f = Se(u, d, n + 1);
s[o] = f, f === u && c++;
}
return i === o && c === i ? e : s;
}
-function Se(e, t) {
+function Ce(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (let n in e) if (e[n] !== t[n]) return !1;
return !0;
}
-function Ce(e) {
+function we(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
-function we(e) {
- if (!Te(e)) return !1;
+function Te(e) {
+ if (!Ee(e)) return !1;
let t = Object.getPrototypeOf(e), n = t?.constructor;
if (n === void 0) return !0;
if (typeof n != "function") return !1;
let r = n.prototype;
- return !(!Te(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
+ return !(!Ee(r) || !r.hasOwnProperty("isPrototypeOf") || t !== Object.prototype);
}
-function Te(e) {
+function Ee(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-function Ee(e) {
+function De(e) {
return new Promise((t) => {
- ce.setTimeout(t, e);
+ le.setTimeout(t, e);
});
}
-function De(e, t, n) {
- return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : xe(e, t);
+function Oe(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : Se(e, t);
}
-function Oe(e) {
+function ke(e) {
return e;
}
-function ke(e, t, n = 0) {
+function Ae(e, t, n = 0) {
let r = [...e, t];
return n && r.length > n ? r.slice(1) : r;
}
-function Ae(e, t, n = 0) {
+function je(e, t, n = 0) {
let r = [t, ...e];
return n && r.length > n ? r.slice(0, -1) : r;
}
-var je = Symbol();
-function Me(e, t) {
- return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === je ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
-}
+var Me = Symbol();
function Ne(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Me ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function Pe(e, t) {
return typeof e == "function" ? e(...t) : !!e;
}
-function Pe(e, t, n) {
+function Fe(e, t, n) {
let r = !1, i;
return Object.defineProperty(e, "signal", {
enumerable: !0,
@@ -9460,7 +9460,7 @@ function Pe(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
-var Fe = () => ue, Ie = () => Fe(), Le = class {
+var Ie = () => de, Le = () => Ie(), Re = class {
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
@@ -9474,7 +9474,7 @@ var Fe = () => ue, Ie = () => Fe(), Le = class {
}
onSubscribe() {}
onUnsubscribe() {}
-}, Re = new class extends Le {
+}, ze = new class extends Re {
#e;
#t;
#n;
@@ -9511,13 +9511,13 @@ var Fe = () => ue, Ie = () => Fe(), Le = class {
isFocused() {
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
}
-}(), ze = le;
-function Be() {
+}(), Be = ue;
+function Ve() {
let e = [], t = 0, n = (e) => {
e();
}, r = (e) => {
e();
- }, i = ze, a = (r) => {
+ }, i = Be, a = (r) => {
t ? e.push(r) : i(() => {
n(r);
});
@@ -9559,7 +9559,7 @@ function Be() {
}
};
}
-var Ve = Be(), He = new class extends Le {
+var He = Ve(), Ue = new class extends Re {
#e = !0;
#t;
#n;
@@ -9593,35 +9593,35 @@ var Ve = Be(), He = new class extends Le {
}();
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
-function Ue(e) {
+function We(e) {
return Math.min(1e3 * 2 ** e, 3e4);
}
-function We(e) {
- return (e ?? "online") !== "online" || He.isOnline();
+function Ge(e) {
+ return (e ?? "online") !== "online" || Ue.isOnline();
}
-var Ge = class extends Error {
+var Ke = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
}
};
-function Ke(e) {
- return e instanceof Ge;
-}
function qe(e) {
+ return e instanceof Ke;
+}
+function Je(e) {
let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
a = e, o = t;
});
- s.catch(de);
+ s.catch(fe);
let c = () => i !== "pending", l = (t) => {
if (!c()) {
- let n = new Ge(t);
+ let n = new Ke(t);
h(n), e.onCancel?.(n);
}
}, u = () => {
t = !0;
}, d = () => {
t = !1;
- }, f = () => Re.isFocused() && (e.networkMode === "always" || He.isOnline()) && e.canRun(), p = () => We(e.networkMode) && e.canRun(), m = (e) => {
+ }, f = () => ze.isFocused() && (e.networkMode === "always" || Ue.isOnline()) && e.canRun(), p = () => Ge(e.networkMode) && e.canRun(), m = (e) => {
c() || (r?.(), i = "resolved", a(e));
}, h = (e) => {
c() || (r?.(), i = "rejected", o(e));
@@ -9641,8 +9641,8 @@ function qe(e) {
}
Promise.resolve(r).then(m).catch((r) => {
if (c()) return;
- let i = e.retry ?? (Ie() ? 0 : 3), a = e.retryDelay ?? Ue, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
- t || !s ? h(r) : (n++, e.onFail?.(n, r), Ee(o).then(() => f() ? void 0 : g(f)).then(() => {
+ let i = e.retry ?? (Le() ? 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);
+ t || !s ? h(r) : (n++, e.onFail?.(n, r), De(o).then(() => f() ? void 0 : g(f)).then(() => {
t ? h(r) : _();
}));
});
@@ -9660,34 +9660,34 @@ function qe(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/removable.js
-var Je = class {
+var Ye = class {
#e;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
- this.clearGcTimeout(), pe(this.gcTime) && (this.#e = ce.setTimeout(() => {
+ this.clearGcTimeout(), me(this.gcTime) && (this.#e = le.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
- this.gcTime = Math.max(this.gcTime || 0, e ?? (Ie() ? Infinity : 3e5));
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Le() ? Infinity : 3e5));
}
clearGcTimeout() {
- this.#e !== void 0 && (ce.clearTimeout(this.#e), this.#e = void 0);
+ this.#e !== void 0 && (le.clearTimeout(this.#e), this.#e = void 0);
}
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
-function Ye(e) {
+function Xe(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) => {
- Pe(e, () => t.signal, () => n = !0);
- }, u = Me(t.options, t.fetchOptions), d = async (e, r, i) => {
+ Fe(e, () => t.signal, () => n = !0);
+ }, u = Ne(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 = (() => {
@@ -9699,14 +9699,14 @@ function Ye(e) {
meta: t.options.meta
};
return l(e), e;
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? Ae : ke;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? je : Ae;
return {
pages: c(e.pages, o, s),
pageParams: c(e.pageParams, r, s)
};
};
if (i && a.length) {
- let e = i === "backward", t = e ? Ze : Xe, n = {
+ let e = i === "backward", t = e ? Qe : Ze, n = {
pages: a,
pageParams: o
};
@@ -9714,7 +9714,7 @@ function Ye(e) {
} else {
let t = e ?? a.length;
do {
- let e = c === 0 ? o[0] ?? r.initialPageParam : Xe(r, s);
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ze(r, s);
if (c > 0 && e == null) break;
s = await d(s, e), c++;
} while (c < t);
@@ -9729,22 +9729,22 @@ function Ye(e) {
}, n) : l;
} };
}
-function Xe(e, { pages: t, pageParams: n }) {
+function Ze(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 Ze(e, { pages: t, pageParams: n }) {
+function Qe(e, { pages: t, pageParams: n }) {
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
}
-function Qe(e, t) {
- return t ? Xe(e, t) != null : !1;
-}
function $e(e, t) {
- return !t || !e.getPreviousPageParam ? !1 : Ze(e, t) != null;
+ return t ? Ze(e, t) != null : !1;
+}
+function et(e, t) {
+ return !t || !e.getPreviousPageParam ? !1 : Qe(e, t) != null;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/query.js
-var et = class extends Je {
+var tt = class extends Ye {
#e;
#t;
#n;
@@ -9754,7 +9754,7 @@ var et = class extends Je {
#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 = rt(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 = it(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
}
get meta() {
return this.options.meta;
@@ -9770,15 +9770,15 @@ var et = class extends Je {
...this.#o,
...e
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
- let e = rt(this.options);
- e.data !== void 0 && (this.setState(nt(e.data, e.dataUpdatedAt)), this.#t = e);
+ let e = it(this.options);
+ e.data !== void 0 && (this.setState(rt(e.data, e.dataUpdatedAt)), this.#t = e);
}
}
optionalRemove() {
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
}
setData(e, t) {
- let n = De(this.state.data, e, this.options);
+ let n = Oe(this.state.data, e, this.options);
return this.#c({
data: n,
type: "success",
@@ -9794,7 +9794,7 @@ var et = class extends Je {
}
cancel(e) {
let t = this.#a?.promise;
- return this.#a?.cancel(e), t ? t.then(de).catch(de) : Promise.resolve();
+ return this.#a?.cancel(e), t ? t.then(fe).catch(fe) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
@@ -9806,22 +9806,22 @@ var et = class extends Je {
this.destroy(), this.setState(this.resetState);
}
isActive() {
- return this.observers.some((e) => L(e.options.enabled, this) !== !1);
+ return this.observers.some((e) => I(e.options.enabled, this) !== !1);
}
isDisabled() {
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === je || !this.isFetched();
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Me || !this.isFetched();
}
isFetched() {
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
}
isStatic() {
- return this.getObserversCount() > 0 && this.observers.some((e) => L(e.options.staleTime, this) === "static");
+ return this.getObserversCount() > 0 && this.observers.some((e) => I(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 : !me(this.state.dataUpdatedAt, e);
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !he(this.state.dataUpdatedAt, e);
}
onFocus() {
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -9865,7 +9865,7 @@ var et = class extends Je {
get: () => (this.#s = !0, n.signal)
});
}, i = () => {
- let e = Me(this.options, t), n = (() => {
+ let e = Ne(this.options, t), n = (() => {
let e = {
client: this.#i,
queryKey: this.queryKey,
@@ -9885,15 +9885,15 @@ var et = class extends Je {
};
return r(e), e;
})();
- (this.#e === "infinite" ? Ye(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" ? Xe(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 = qe({
+ let o = this.#a = Je({
initialPromise: t?.initialPromise,
fn: a.fetchFn,
onCancel: (e) => {
- e instanceof Ge && e.revert && this.setState({
+ e instanceof Ke && e.revert && this.setState({
...this.#n,
fetchStatus: "idle"
}), n.abort();
@@ -9921,7 +9921,7 @@ var et = class extends Je {
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 Ge) {
+ if (e instanceof Ke) {
if (e.silent) return this.#a.promise;
if (e.revert) {
if (this.state.data === void 0) throw e;
@@ -9954,13 +9954,13 @@ var et = class extends Je {
};
case "fetch": return {
...t,
- ...tt(t.data, this.options),
+ ...nt(t.data, this.options),
fetchMeta: e.meta ?? null
};
case "success":
let n = {
...t,
- ...nt(e.data, e.dataUpdatedAt),
+ ...rt(e.data, e.dataUpdatedAt),
dataUpdateCount: t.dataUpdateCount + 1,
...!e.manual && {
fetchStatus: "idle",
@@ -9992,7 +9992,7 @@ var et = class extends Je {
};
}
};
- this.state = t(this.state), Ve.batch(() => {
+ this.state = t(this.state), He.batch(() => {
this.observers.slice().forEach((e) => {
e.onQueryUpdate();
}), this.#r.notify({
@@ -10003,18 +10003,18 @@ var et = class extends Je {
});
}
};
-function tt(e, t) {
+function nt(e, t) {
return {
fetchFailureCount: 0,
fetchFailureReason: null,
- fetchStatus: We(t.networkMode) ? "fetching" : "paused",
+ fetchStatus: Ge(t.networkMode) ? "fetching" : "paused",
...e === void 0 && {
error: null,
status: "pending"
}
};
}
-function nt(e, t) {
+function rt(e, t) {
return {
data: e,
dataUpdatedAt: t ?? Date.now(),
@@ -10023,7 +10023,7 @@ function nt(e, t) {
status: "success"
};
}
-function rt(e) {
+function it(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,
@@ -10042,7 +10042,7 @@ function rt(e) {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
-var it = class extends Le {
+var at = class extends Re {
#e;
#t = void 0;
#n = void 0;
@@ -10064,36 +10064,36 @@ var it = class extends Le {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
- this.listeners.size === 1 && (this.#t.addObserver(this), ot(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ this.listeners.size === 1 && (this.#t.addObserver(this), st(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
- return st(this.#t, this.options, this.options.refetchOnReconnect);
+ return ct(this.#t, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
- return st(this.#t, this.options, this.options.refetchOnWindowFocus);
+ return ct(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 L(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
- this.#S(), this.#t.setOptions(this.options), t._defaulted && !Se(this.options, t) && this.#e.getQueryCache().notify({
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof I(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 && !Ce(this.options, t) && this.#e.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#t,
observer: this
});
let r = this.hasListeners();
- r && ct(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || L(this.options.staleTime, this.#t) !== L(t.staleTime, this.#t)) && this.#g();
+ r && lt(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || I(this.options.enabled, this.#t) !== I(t.enabled, this.#t) || I(this.options.staleTime, this.#t) !== I(t.staleTime, this.#t)) && this.#g();
let i = this.#_();
- r && (this.#t !== n || L(this.options.enabled, this.#t) !== L(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ r && (this.#t !== n || I(this.options.enabled, this.#t) !== I(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
}
getOptimisticResult(e) {
let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
- return Se(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ return Ce(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
}
getCurrentResult() {
return this.#r;
@@ -10132,44 +10132,44 @@ var it = class extends Le {
#m(e) {
this.#S();
let t = this.#t.fetch(this.options, e);
- return e?.throwOnError || (t = t.catch(de)), t;
+ return e?.throwOnError || (t = t.catch(fe)), t;
}
#h(e) {
- return !Ie() && L(this.options.enabled, this.#t) !== !1 && pe(e);
+ return !Le() && I(this.options.enabled, this.#t) !== !1 && me(e);
}
#g() {
this.#b();
- let e = L(this.options.staleTime, this.#t);
+ let e = I(this.options.staleTime, this.#t);
if (this.#r.isStale || !this.#h(e)) return;
- let t = me(this.#r.dataUpdatedAt, e) + 1;
- this.#u = ce.setTimeout(() => {
+ let t = he(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = le.setTimeout(() => {
this.#r.isStale || this.updateResult();
}, t);
}
#_() {
- return L(this.options.refetchInterval, this.#t) ?? !1;
+ return I(this.options.refetchInterval, this.#t) ?? !1;
}
#v(e) {
- this.#x(), this.#f = e, this.#f !== 0 && this.#h(this.#f) && (this.#d = ce.setInterval(() => {
- (this.options.refetchIntervalInBackground || Re.isFocused()) && this.#m();
+ this.#x(), this.#f = e, this.#f !== 0 && this.#h(this.#f) && (this.#d = le.setInterval(() => {
+ (this.options.refetchIntervalInBackground || ze.isFocused()) && this.#m();
}, this.#f));
}
#y() {
this.#g(), this.#v(this.#_());
}
#b() {
- this.#u !== void 0 && (ce.clearTimeout(this.#u), this.#u = void 0);
+ this.#u !== void 0 && (le.clearTimeout(this.#u), this.#u = void 0);
}
#x() {
- this.#d !== void 0 && (ce.clearInterval(this.#d), this.#d = void 0);
+ this.#d !== void 0 && (le.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 && ot(e, t), o = i && ct(e, n, t, r);
+ let i = this.hasListeners(), a = !i && st(e, t), o = i && lt(e, n, t, r);
(a || o) && (l = {
...l,
- ...tt(c.data, e.options)
+ ...nt(c.data, e.options)
}), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
}
let { error: f, errorUpdatedAt: p, status: m } = l;
@@ -10177,12 +10177,12 @@ var it = class extends Le {
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 = De(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 = Oe(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 = De(i?.data, d, t), this.#c = d, this.#o = null;
+ this.#s = t.select, d = t.select(d), d = Oe(i?.data, d, t), this.#c = d, this.#o = null;
} catch (e) {
this.#o = e;
}
@@ -10212,14 +10212,14 @@ var it = class extends Le {
isPaused: l.fetchStatus === "paused",
isPlaceholderData: u,
isRefetchError: v && b,
- isStale: lt(e, t),
+ isStale: ut(e, t),
refetch: this.refetch,
- isEnabled: L(t.enabled, e) !== !1
+ isEnabled: I(t.enabled, e) !== !1
};
}
updateResult() {
let e = this.#r, t = this.createResult(this.#t, this.options);
- if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Se(t, e)) return;
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), Ce(t, e)) return;
this.#r = t;
let n = (() => {
if (!e) return !0;
@@ -10231,7 +10231,7 @@ var it = class extends Le {
return this.#r[n] !== e[n] && r.has(n);
});
})();
- Ve.batch(() => {
+ He.batch(() => {
n && this.listeners.forEach((e) => {
e(this.#r);
}), this.#e.getQueryCache().notify({
@@ -10250,28 +10250,28 @@ var it = class extends Le {
this.updateResult(), this.hasListeners() && this.#y();
}
};
-function at(e, t) {
- return L(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || L(t.retryOnMount, e) !== !1);
-}
function ot(e, t) {
- return at(e, t) || e.state.data !== void 0 && st(e, t, t.refetchOnMount);
+ return I(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || I(t.retryOnMount, e) !== !1);
}
-function st(e, t, n) {
- if (L(t.enabled, e) !== !1 && L(t.staleTime, e) !== "static") {
- let r = L(n, e);
- return r === "always" || r !== !1 && lt(e, t);
+function st(e, t) {
+ return ot(e, t) || e.state.data !== void 0 && ct(e, t, t.refetchOnMount);
+}
+function ct(e, t, n) {
+ if (I(t.enabled, e) !== !1 && I(t.staleTime, e) !== "static") {
+ let r = I(n, e);
+ return r === "always" || r !== !1 && ut(e, t);
}
return !1;
}
-function ct(e, t, n, r) {
- return (e !== t || L(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && lt(e, n);
+function lt(e, t, n, r) {
+ return (e !== t || I(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ut(e, n);
}
-function lt(e, t) {
- return L(t.enabled, e) !== !1 && e.isStaleByTime(L(t.staleTime, e));
+function ut(e, t) {
+ return I(t.enabled, e) !== !1 && e.isStaleByTime(I(t.staleTime, e));
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js
-var ut = class extends it {
+var dt = class extends at {
constructor(e, t) {
super(e, t);
}
@@ -10302,8 +10302,8 @@ var ut = class extends it {
...r,
fetchNextPage: this.fetchNextPage,
fetchPreviousPage: this.fetchPreviousPage,
- hasNextPage: Qe(t, n.data),
- hasPreviousPage: $e(t, n.data),
+ hasNextPage: $e(t, n.data),
+ hasPreviousPage: et(t, n.data),
isFetchNextPageError: l,
isFetchingNextPage: u,
isFetchPreviousPageError: d,
@@ -10312,13 +10312,13 @@ var ut = class extends it {
isRefetching: a && !u && !f
};
}
-}, dt = class extends Je {
+}, ft = class extends Ye {
#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 || ft(), 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 || pt(), this.setOptions(e.options), this.scheduleGc();
}
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
@@ -10353,7 +10353,7 @@ var ut = class extends it {
client: this.#e,
meta: this.options.meta,
mutationKey: this.options.mutationKey
- }, r = this.#r = qe({
+ }, r = this.#r = Je({
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
onFail: (e, t) => {
this.#i({
@@ -10469,7 +10469,7 @@ var ut = class extends it {
};
}
};
- this.state = t(this.state), Ve.batch(() => {
+ this.state = t(this.state), He.batch(() => {
this.#t.forEach((t) => {
t.onMutationUpdate(e);
}), this.#n.notify({
@@ -10480,7 +10480,7 @@ var ut = class extends it {
});
}
};
-function ft() {
+function pt() {
return {
context: void 0,
data: void 0,
@@ -10495,7 +10495,7 @@ function ft() {
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
-var pt = class extends Le {
+var mt = class extends Re {
#e;
#t;
#n;
@@ -10503,7 +10503,7 @@ var pt = class extends Le {
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
}
build(e, t, n) {
- let r = new dt({
+ let r = new ft({
client: e,
mutationCache: this,
mutationId: ++this.#n,
@@ -10514,7 +10514,7 @@ var pt = class extends Le {
}
add(e) {
this.#e.add(e);
- let t = mt(e);
+ let t = ht(e);
if (typeof t == "string") {
let n = this.#t.get(t);
n ? n.push(e) : this.#t.set(t, [e]);
@@ -10526,7 +10526,7 @@ var pt = class extends Le {
}
remove(e) {
if (this.#e.delete(e)) {
- let t = mt(e);
+ let t = ht(e);
if (typeof t == "string") {
let n = this.#t.get(t);
if (n) {
@@ -10543,7 +10543,7 @@ var pt = class extends Le {
});
}
canRun(e) {
- let t = mt(e);
+ let t = ht(e);
if (typeof t == "string") {
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
return !n || n === e;
@@ -10551,11 +10551,11 @@ var pt = class extends Le {
return !0;
}
runNext(e) {
- let t = mt(e);
+ let t = ht(e);
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
}
clear() {
- Ve.batch(() => {
+ He.batch(() => {
this.#e.forEach((e) => {
this.notify({
type: "removed",
@@ -10572,13 +10572,13 @@ var pt = class extends Le {
exact: !0,
...e
};
- return this.getAll().find((e) => ge(t, e));
+ return this.getAll().find((e) => _e(t, e));
}
findAll(e = {}) {
- return this.getAll().filter((t) => ge(e, t));
+ return this.getAll().filter((t) => _e(e, t));
}
notify(e) {
- Ve.batch(() => {
+ He.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
@@ -10586,15 +10586,15 @@ var pt = class extends Le {
}
resumePausedMutations() {
let e = this.getAll().filter((e) => e.state.isPaused);
- return Ve.batch(() => Promise.all(e.map((e) => e.continue().catch(de))));
+ return He.batch(() => Promise.all(e.map((e) => e.continue().catch(fe))));
}
};
-function mt(e) {
+function ht(e) {
return e.options.scope?.id;
}
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/mutationObserver.js
-var ht = class extends Le {
+var gt = class extends Re {
#e;
#t = void 0;
#n;
@@ -10607,11 +10607,11 @@ var ht = class extends Le {
}
setOptions(e) {
let t = this.options;
- this.options = this.#e.defaultMutationOptions(e), Se(this.options, t) || this.#e.getMutationCache().notify({
+ this.options = this.#e.defaultMutationOptions(e), Ce(this.options, t) || this.#e.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#n,
observer: this
- }), t?.mutationKey && this.options.mutationKey && ve(t.mutationKey) !== ve(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
+ }), t?.mutationKey && this.options.mutationKey && ye(t.mutationKey) !== ye(this.options.mutationKey) ? this.reset() : this.#n?.state.status === "pending" && this.#n.setOptions(this.options);
}
onSubscribe() {
this.listeners.size === 1 && this.#n && (this.#n.addObserver(this), this.#i());
@@ -10632,7 +10632,7 @@ var ht = class extends Le {
return this.#r = t, this.#n?.removeObserver(this), this.#n = this.#e.getMutationCache().build(this.#e, this.options), this.#n.addObserver(this), this.#n.execute(e);
}
#i() {
- let e = this.#n?.state ?? ft();
+ let e = this.#n?.state ?? pt();
this.#t = {
...e,
isPending: e.status === "pending",
@@ -10644,7 +10644,7 @@ var ht = class extends Le {
};
}
#a(e) {
- Ve.batch(() => {
+ He.batch(() => {
let t = this.#r;
if (t && this.hasListeners()) {
let n = this.#t.variables, r = this.#t.context, i = {
@@ -10684,11 +10684,11 @@ var ht = class extends Le {
};
//#endregion
//#region node_modules/@tanstack/query-core/build/modern/queriesObserver.js
-function gt(e, t) {
+function _t(e, t) {
let n = new Set(t);
return e.filter((e) => !n.has(e));
}
-var _t = class extends Le {
+var vt = class extends Re {
#e;
#t;
#n;
@@ -10718,16 +10718,16 @@ var _t = class extends Le {
});
}
setQueries(e, t) {
- this.#n = e, this.#r = t, Ve.batch(() => {
+ this.#n = e, this.#r = t, He.batch(() => {
let e = this.#i, t = this.#p(this.#n);
t.forEach((e) => e.observer.setOptions(e.defaultedQueryOptions));
let n = t.map((e) => e.observer), r = n.map((e) => e.getCurrentResult()), i = e.length !== n.length, a = n.some((t, n) => t !== e[n]), o = i || a, s = o ? !0 : r.some((e, t) => {
let n = this.#t[t];
- return !n || !Se(e, n);
+ return !n || !Ce(e, n);
});
- (o || s) && (o && (this.#l = t, this.#i = n), this.#t = r, this.hasListeners() && (o && (gt(e, n).forEach((e) => {
+ (o || s) && (o && (this.#l = t, this.#i = n), this.#t = r, this.hasListeners() && (o && (_t(e, n).forEach((e) => {
e.destroy();
- }), gt(n, e).forEach((e) => {
+ }), _t(n, e).forEach((e) => {
e.subscribe((t) => {
this.#m(e, t);
});
@@ -10765,7 +10765,7 @@ var _t = class extends Le {
#d(e, t, n) {
if (t) {
let r = this.#c, i = n !== void 0 && r !== void 0 && (r.length !== n.length || n.some((e, t) => e !== r[t]));
- return (this.#t !== this.#s || i || t !== this.#o) && (this.#o = t, this.#s = this.#t, n !== void 0 && (this.#c = n), this.#a = xe(this.#a, t(e))), this.#a;
+ return (this.#t !== this.#s || i || t !== this.#o) && (this.#o = t, this.#s = this.#t, n !== void 0 && (this.#c = n), this.#a = Se(this.#a, t(e))), this.#a;
}
return e;
}
@@ -10782,7 +10782,7 @@ var _t = class extends Le {
});
let n = [];
return e.forEach((e) => {
- let r = this.#e.defaultQueryOptions(e), i = t.get(r.queryHash)?.shift() ?? new it(this.#e, r);
+ let r = this.#e.defaultQueryOptions(e), i = t.get(r.queryHash)?.shift() ?? new at(this.#e, r);
n.push({
defaultedQueryOptions: r,
observer: i
@@ -10796,21 +10796,21 @@ var _t = class extends Le {
#h() {
if (this.hasListeners()) {
let e = this.#f(), t = this.#a, n = e ? t : this.#d(this.#u(this.#t, this.#l), this.#r?.combine);
- (e || t !== n) && Ve.batch(() => {
+ (e || t !== n) && He.batch(() => {
this.listeners.forEach((e) => {
e(this.#t);
});
});
}
}
-}, vt = class extends Le {
+}, yt = class extends Re {
#e;
constructor(e = {}) {
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
}
build(e, t, n) {
- let r = t.queryKey, i = t.queryHash ?? _e(r, t), a = this.get(i);
- return a || (a = new et({
+ let r = t.queryKey, i = t.queryHash ?? ve(r, t), a = this.get(i);
+ return a || (a = new tt({
client: e,
queryKey: r,
queryHash: i,
@@ -10832,7 +10832,7 @@ var _t = class extends Le {
}));
}
clear() {
- Ve.batch(() => {
+ He.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
@@ -10849,34 +10849,34 @@ var _t = class extends Le {
exact: !0,
...e
};
- return this.getAll().find((e) => he(t, e));
+ return this.getAll().find((e) => ge(t, e));
}
findAll(e = {}) {
let t = this.getAll();
- return Object.keys(e).length > 0 ? t.filter((t) => he(e, t)) : t;
+ return Object.keys(e).length > 0 ? t.filter((t) => ge(e, t)) : t;
}
notify(e) {
- Ve.batch(() => {
+ He.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
- Ve.batch(() => {
+ He.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
- Ve.batch(() => {
+ He.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
-}, yt = class {
+}, bt = class {
#e;
#t;
#n;
@@ -10886,12 +10886,12 @@ var _t = class extends Le {
#o;
#s;
constructor(e = {}) {
- this.#e = e.queryCache || new vt(), this.#t = e.mutationCache || new pt(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ this.#e = e.queryCache || new yt(), this.#t = e.mutationCache || new mt(), 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 = Re.subscribe(async (e) => {
+ this.#a++, this.#a === 1 && (this.#o = ze.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onFocus());
- }), this.#s = He.subscribe(async (e) => {
+ }), this.#s = Ue.subscribe(async (e) => {
e && (await this.resumePausedMutations(), this.#e.onOnline());
}));
}
@@ -10916,20 +10916,20 @@ var _t = class extends Le {
}
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(L(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(I(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 = fe(t, i);
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = pe(t, i);
if (a !== void 0) return this.#e.build(this, r).setData(a, {
...n,
manual: !0
});
}
setQueriesData(e, t, n) {
- return Ve.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ return He.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
let t = this.defaultQueryOptions({ queryKey: e });
@@ -10937,7 +10937,7 @@ var _t = class extends Le {
}
removeQueries(e) {
let t = this.#e;
- Ve.batch(() => {
+ He.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
@@ -10945,7 +10945,7 @@ var _t = class extends Le {
}
resetQueries(e, t) {
let n = this.#e;
- return Ve.batch(() => {
+ return He.batch(() => {
let r = n.findAll(e), i = new Set(r);
return r.forEach((e) => {
e.reset();
@@ -10959,11 +10959,11 @@ var _t = class extends Le {
let n = {
revert: !0,
...t
- }, r = Ve.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
- return Promise.all(r).then(de).catch(de);
+ }, r = He.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(fe).catch(fe);
}
invalidateQueries(e, t = {}) {
- return Ve.batch(() => (this.#e.findAll(e).forEach((e) => {
+ return He.batch(() => (this.#e.findAll(e).forEach((e) => {
e.invalidate();
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
...e,
@@ -10974,26 +10974,26 @@ var _t = class extends Le {
let n = {
...t,
cancelRefetch: t.cancelRefetch ?? !0
- }, r = Ve.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ }, r = He.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(de)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ return n.throwOnError || (t = t.catch(fe)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
}));
- return Promise.all(r).then(de);
+ return Promise.all(r).then(fe);
}
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(L(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ let n = this.#e.build(this, t), r = n.isStaleByTime(I(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(L(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ return n.isStaleByTime(I(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
}
prefetchQuery(e) {
- return this.fetchQuery(e).then(de).catch(de);
+ return this.fetchQuery(e).then(fe).catch(fe);
}
infiniteQuery(e) {
return e._type = "infinite", this.query(e);
@@ -11002,13 +11002,13 @@ var _t = class extends Le {
return e._type = "infinite", this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
- return this.fetchInfiniteQuery(e).then(de).catch(de);
+ return this.fetchInfiniteQuery(e).then(fe).catch(fe);
}
ensureInfiniteQueryData(e) {
return e._type = "infinite", this.ensureQueryData(e);
}
resumePausedMutations() {
- return He.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ return Ue.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return this.#e;
@@ -11023,7 +11023,7 @@ var _t = class extends Le {
this.#n = e;
}
setQueryDefaults(e, t) {
- this.#r.set(ve(e), {
+ this.#r.set(ye(e), {
queryKey: e,
defaultOptions: t
});
@@ -11031,11 +11031,11 @@ var _t = class extends Le {
getQueryDefaults(e) {
let t = [...this.#r.values()], n = {};
return t.forEach((t) => {
- ye(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ be(e, t.queryKey) && Object.assign(n, t.defaultOptions);
}), n;
}
setMutationDefaults(e, t) {
- this.#i.set(ve(e), {
+ this.#i.set(ye(e), {
mutationKey: e,
defaultOptions: t
});
@@ -11043,7 +11043,7 @@ var _t = class extends Le {
getMutationDefaults(e) {
let t = [...this.#i.values()], n = {};
return t.forEach((t) => {
- ye(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ be(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
}), n;
}
defaultQueryOptions(e) {
@@ -11054,7 +11054,7 @@ var _t = class extends Le {
...e,
_defaulted: !0
};
- return t.queryHash ||= _e(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 === je && (t.enabled = !1), t;
+ return t.queryHash ||= ve(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 === Me && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return e?._defaulted ? e : {
@@ -11067,11 +11067,11 @@ var _t = class extends Le {
clear() {
this.#e.clear(), this.#t.clear();
}
-}, bt = F.createContext(!1), xt = () => F.useContext(bt);
-bt.Provider;
+}, xt = P.createContext(!1), St = () => P.useContext(xt);
+xt.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function St() {
+function Ct() {
let e = !1;
return {
clearReset: () => {
@@ -11083,25 +11083,25 @@ function St() {
isReset: () => e
};
}
-var Ct = F.createContext(St()), wt = () => F.useContext(Ct), Tt = (e, t, n) => {
- let r = n?.state.error && typeof e.throwOnError == "function" ? Ne(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+var wt = P.createContext(Ct()), Tt = () => P.useContext(wt), Et = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? Pe(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, Et = (e) => {
- F.useEffect(() => {
+}, Dt = (e) => {
+ P.useEffect(() => {
e.clearReset();
}, [e]);
-}, Dt = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Ne(n, [e.error, r])), Ot = (e) => {
+}, Ot = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || Pe(n, [e.error, r])), kt = (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));
}
-}, kt = (e, t) => e?.suspense && t.isPending, At = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, At = (e, t) => e?.suspense && t.isPending, jt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function jt({ queries: e, ...t }, n) {
- let r = ae(n), i = xt(), a = wt(), o = t.subscribed !== !1, s = F.useMemo(() => e.map((e) => {
+function Mt({ queries: e, ...t }, n) {
+ let r = oe(n), i = St(), a = Tt(), o = t.subscribed !== !1, s = P.useMemo(() => e.map((e) => {
let t = r.defaultQueryOptions(e);
return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;
}), [
@@ -11111,26 +11111,26 @@ function jt({ queries: e, ...t }, n) {
o
]);
s.forEach((e) => {
- Ot(e);
+ kt(e);
let t = r.getQueryCache().get(e.queryHash);
- Tt(e, a, t);
- }), Et(a);
- let [c] = F.useState(() => new _t(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;
- F.useSyncExternalStore(F.useCallback((e) => f ? c.subscribe(Ve.batchCalls(e)) : de, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), F.useEffect(() => {
+ Et(e, a, t);
+ }), Dt(a);
+ let [c] = P.useState(() => new vt(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;
+ P.useSyncExternalStore(P.useCallback((e) => f ? c.subscribe(He.batchCalls(e)) : fe, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), P.useEffect(() => {
c.setQueries(s, t);
}, [
s,
t,
c
]);
- let p = l.some((e, t) => kt(s[t], e)) ? l.flatMap((e, t) => {
+ let p = l.some((e, t) => At(s[t], e)) ? l.flatMap((e, t) => {
let n = s[t];
- return n && kt(n, e) ? At(n, new it(r, n), a) : [];
+ return n && At(n, e) ? jt(n, new at(r, n), a) : [];
}) : [];
if (p.length > 0) throw Promise.all(p);
let m = l.find((e, t) => {
let n = s[t];
- return n && Dt({
+ return n && Ot({
result: e,
errorResetBoundary: a,
throwOnError: n.throwOnError,
@@ -11143,17 +11143,17 @@ function jt({ queries: e, ...t }, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function Mt(e, t, n) {
- let r = xt(), i = wt(), a = ae(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, Ot(o), Tt(o, i, s), Et(i);
- let [l] = F.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
- if (F.useSyncExternalStore(F.useCallback((e) => {
- let t = d ? l.subscribe(Ve.batchCalls(e)) : de;
+function Nt(e, t, n) {
+ let r = St(), i = Tt(), a = oe(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, kt(o), Et(o, i, s), Dt(i);
+ let [l] = P.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (P.useSyncExternalStore(P.useCallback((e) => {
+ let t = d ? l.subscribe(He.batchCalls(e)) : fe;
return l.updateResult(), t;
- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), F.useEffect(() => {
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), P.useEffect(() => {
l.setOptions(o);
- }, [o, l]), kt(o, u)) throw At(o, l, i);
- if (Dt({
+ }, [o, l]), At(o, u)) throw jt(o, l, i);
+ if (Ot({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -11164,20 +11164,20 @@ function Mt(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function Nt(e, t) {
- return Mt(e, it, t);
+function Pt(e, t) {
+ return Nt(e, at, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function Pt(e, t) {
- let n = ae(t), [r] = F.useState(() => new ht(n, e));
- F.useEffect(() => {
+function Ft(e, t) {
+ let n = oe(t), [r] = P.useState(() => new gt(n, e));
+ P.useEffect(() => {
r.setOptions(e);
}, [r, e]);
- let i = F.useSyncExternalStore(F.useCallback((e) => r.subscribe(Ve.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = F.useCallback((...e) => {
- r.mutate(e[0], e[1]).catch(de);
+ let i = P.useSyncExternalStore(P.useCallback((e) => r.subscribe(He.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = P.useCallback((...e) => {
+ r.mutate(e[0], e[1]).catch(fe);
}, [r]);
- if (i.error && Ne(r.options.throwOnError, [i.error])) throw i.error;
+ if (i.error && Pe(r.options.throwOnError, [i.error])) throw i.error;
return {
...i,
mutate: a,
@@ -11186,12 +11186,12 @@ function Pt(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function Ft(e, t) {
- return Mt(e, ut, t);
+function It(e, t) {
+ return Nt(e, dt, t);
}
//#endregion
//#region src/core/entity-links.ts
-var It = /* @__PURE__ */ l(N(), 1), Lt = P(), Rt = /* @__PURE__ */ new Map(), zt = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new Map(), Vt = {
+var Lt = /* @__PURE__ */ l(te(), 1), Rt = N(), zt = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), Ht = {
performers: "performer",
studios: "studio",
creators: "creator",
@@ -11199,22 +11199,22 @@ var It = /* @__PURE__ */ l(N(), 1), Lt = P(), Rt = /* @__PURE__ */ new Map(), zt
tags: "tag",
series: "series"
};
-function Ht(e, t, n) {
- typeof n == "number" && Number.isSafeInteger(n) && n > 0 && t && (Rt.set(`${e}/${t}`, n), Bt.set(`${e}/${n}`, t));
+function Ut(e, t, n) {
+ typeof n == "number" && Number.isSafeInteger(n) && n > 0 && t && (zt.set(`${e}/${t}`, n), Vt.set(`${e}/${n}`, t));
}
-var Ut = (e, t) => Bt.get(`${e}/${t}`);
-function Wt(e, t) {
- let n = `${e}/${t}`, r = Rt.get(n);
+var Wt = (e, t) => Vt.get(`${e}/${t}`);
+function Gt(e, t) {
+ let n = `${e}/${t}`, r = zt.get(n);
if (r) return r;
- let i = zt.get(n);
+ let i = Bt.get(n);
return i?.size === 1 ? [...i][0] : void 0;
}
-function Gt(e, t, n) {
+function Kt(e, t, n) {
if (typeof n != "number" || !Number.isSafeInteger(n) || n <= 0 || !t) return;
- let r = `${e}/${t}`, i = zt.get(r) || /* @__PURE__ */ new Set();
- i.add(n), zt.set(r, i);
+ let r = `${e}/${t}`, i = Bt.get(r) || /* @__PURE__ */ new Set();
+ i.add(n), Bt.set(r, i);
}
-function Kt(e, t) {
+function qt(e, t) {
if (!t || typeof t != "object") return;
let n = t, r = new URL(e, "https://peach.invalid");
if (![
@@ -11225,22 +11225,22 @@ function Kt(e, t) {
"/api/facets",
"/api/suggest"
].includes(r.pathname)) return;
- let i = r.searchParams.get("kind") || r.pathname.slice(5), a = Vt[i] || i;
+ let i = r.searchParams.get("kind") || r.pathname.slice(5), a = Ht[i] || i;
if (n.canonical_name && n.id) {
- for (let e of Array.isArray(n.aliases) ? n.aliases : []) Gt(n.kind || a, e, n.id);
- Ht(n.kind || a, n.canonical_name, n.id);
+ for (let e of Array.isArray(n.aliases) ? n.aliases : []) Kt(n.kind || a, e, n.id);
+ Ut(n.kind || a, n.canonical_name, n.id);
}
for (let e of Array.isArray(n.entities) ? n.entities : []) {
- for (let t of (e.names || []).slice(1)) Gt(e.kind, t, e.id);
- Ht(e.kind, e.names?.[0], e.id);
+ for (let t of (e.names || []).slice(1)) Kt(e.kind, t, e.id);
+ Ut(e.kind, e.names?.[0], e.id);
}
- for (let e of Array.isArray(n.items) ? n.items : []) a && Ht(e.entity_kind || a, e.k || e.name, e.entity_id);
- if (["/api/tops", "/api/facets"].includes(r.pathname)) for (let [e, t] of Object.entries(Vt)) for (let r of Array.isArray(n[e]) ? n[e] : []) Ht(t, r.k || r.name, r.entity_id || r.id);
- if (r.pathname === "/api/suggest") for (let e of Array.isArray(n.groups) ? n.groups : []) for (let t of Array.isArray(e.items) ? e.items : []) Ht(e.kind, t.value, t.entity_id);
+ for (let e of Array.isArray(n.items) ? n.items : []) a && Ut(e.entity_kind || a, e.k || e.name, e.entity_id);
+ if (["/api/tops", "/api/facets"].includes(r.pathname)) for (let [e, t] of Object.entries(Ht)) for (let r of Array.isArray(n[e]) ? n[e] : []) Ut(t, r.k || r.name, r.entity_id || r.id);
+ if (r.pathname === "/api/suggest") for (let e of Array.isArray(n.groups) ? n.groups : []) for (let t of Array.isArray(e.items) ? e.items : []) Ut(e.kind, t.value, t.entity_id);
}
//#endregion
//#region ../resources/media-sources.json
-var qt = [
+var Jt = [
{
id: "local",
name: "本地磁盘",
@@ -11289,10 +11289,10 @@ var qt = [
cloud: !0,
icon: "database"
}
-], Jt = qt, Yt = qt.map((e) => [e.id, e.label]), Xt = qt.map((e) => e.id), Zt = qt.filter((e) => e.cloud).map((e) => e.id), Qt = Object.fromEntries(qt.map((e) => [e.id, e.name])), $t = (e) => qt.find((t) => t.id === e)?.default_cost === "free" ? "free" : "metered";
+], Yt = Jt, Xt = Jt.map((e) => [e.id, e.label]), Zt = Jt.map((e) => e.id), Qt = Jt.filter((e) => e.cloud).map((e) => e.id), $t = Object.fromEntries(Jt.map((e) => [e.id, e.name])), en = (e) => Jt.find((t) => t.id === e)?.default_cost === "free" ? "free" : "metered";
//#endregion
//#region src/core/request-error.ts
-function en(e, t = 0) {
+function tn(e, t = 0) {
let n = String(e?.message ?? e ?? ""), r = Number(t || e?.status || n.match(/\b(400|401|403|404|408|409|413|429|500|502|503|504)\b/)?.[1]), i = {
400: "提交内容有误,请检查输入后重试。",
401: "登录已失效,请刷新页面重新登录。",
@@ -11311,27 +11311,33 @@ function en(e, t = 0) {
}
//#endregion
//#region src/core/icon-geometry.ts
-var tn = {
+var nn = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function nn(e) {
- let t = tn[e];
+function rn(e) {
+ let t = nn[e];
return {
wide: !!t,
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24"
};
}
//#endregion
+//#region src/core/library-scope.ts
+function an(e) {
+ if (!/^\/api\/(items|facets)([?#]|$)/.test(e)) return e;
+ let t = e.indexOf("#"), n = t < 0 ? e : e.slice(0, t), r = t < 0 ? "" : e.slice(t), i = n.indexOf("?");
+ if (new URLSearchParams(i < 0 ? "" : n.slice(i + 1)).has("library")) return e;
+ let a = sessionStorage.getItem("peach.library");
+ return a ? `${n}${i < 0 ? "?" : n.endsWith("?") || n.endsWith("&") ? "" : "&"}library=${encodeURIComponent(a)}${r}` : e;
+}
+//#endregion
//#region src/core/index.ts
-var R = (e) => document.querySelector(e), z = (e, t = "") => {
- let { wide: n, viewBox: r } = nn(e), i = [n ? "iconwide" : "", t].filter(Boolean).join(" ");
+var L = (e) => document.querySelector(e), R = (e, t = "") => {
+ let { wide: n, viewBox: r } = rn(e), i = [n ? "iconwide" : "", t].filter(Boolean).join(" ");
return `<svg${i ? ` class="${i}"` : ""} viewBox="${r}" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-}, rn = async (e, t) => {
- if (!t?.method || t.method === "GET") {
- let t = sessionStorage.getItem("peach.library");
- t && /^\/api\/(items|facets)(\?|$)/.test(e) && (e += (e.includes("?") ? "&" : "?") + "library=" + encodeURIComponent(t));
- }
+}, on = async (e, t) => {
+ (!t?.method || t.method.toUpperCase() === "GET") && (e = an(e));
let { signal: n = null, ...r } = t || {}, i = {
headers: { "Content-Type": "application/json" },
...r
@@ -11341,7 +11347,7 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
try {
a = await fetch(e, i);
} catch (e) {
- throw e?.name === "AbortError" ? e : Error(en(e), { cause: e });
+ throw e?.name === "AbortError" ? e : Error(tn(e), { cause: e });
}
let o = null;
try {
@@ -11349,10 +11355,10 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
} catch {}
if (!a.ok) {
let e = o && (o.message || o.detail || o.error);
- throw Error(en(e, a.status));
+ throw Error(tn(e, a.status));
}
- return Kt(e, o), o;
-}, an = (e) => e?.name === "AbortError", on = async (e, t, n) => {
+ return qt(e, o), o;
+}, sn = (e) => e?.name === "AbortError", cn = async (e, t, n) => {
let r = [...e], i = Array(r.length), a = 0, o = async () => {
for (; a < r.length;) {
let e = a++;
@@ -11370,41 +11376,41 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
}
}, s = Math.min(Math.max(1, t), r.length);
return await Promise.all(Array.from({ length: s }, o)), i;
-}, sn = {
+}, ln = {
fresh: "/unseen",
later: "/watch-later",
flagged: "/flagged",
ads: "/junk-files"
-}, cn = Object.fromEntries(Object.entries(sn).map(([e, t]) => [t, e])), ln = {
+}, un = Object.fromEntries(Object.entries(ln).map(([e, t]) => [t, e])), dn = {
fresh: "没看过",
later: "稍后看",
flagged: "已标记",
ads: "垃圾文件"
-}, un = (e) => e === "/" || e === "/wall" || Object.prototype.hasOwnProperty.call(cn, e), dn = {
+}, fn = (e) => e === "/" || e === "/wall" || Object.prototype.hasOwnProperty.call(un, e), pn = {
performer: "performers",
studio: "studios",
creator: "creators",
series: "series",
agency: "agencies",
tag: "tags"
-}, fn = {
+}, mn = {
performers: "performer",
studios: "studio",
creators: "creator",
series: "series",
agencies: "agency",
tags: "tag"
-}, pn = (e, t, n) => {
- n && Ht(e, t, n);
- let r = n || Wt(e, t);
- return `/${dn[e] || e}/${r || encodeURIComponent(t)}`;
-}, B = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
+}, hn = (e, t, n) => {
+ n && Ut(e, t, n);
+ let r = n || Gt(e, t);
+ return `/${pn[e] || e}/${r || encodeURIComponent(t)}`;
+}, z = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), mn = [
+})[e]), gn = [
["nax-pro.com", "NAX"],
["t-powers.co.jp", "T-POWERS"],
["dmm.co.jp", "DMM"],
@@ -11442,16 +11448,16 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
["naturalhigh.co.jp", "Natural High"],
["bangbros.com", "BangBros"],
["dorcelclub.com", "Dorcel"]
-], hn = (e) => String(e).replace(/^www\./, "").toLowerCase(), gn = (e) => {
+], _n = (e) => String(e).replace(/^www\./, "").toLowerCase(), vn = (e) => {
try {
- return hn(new URL(e).hostname);
+ return _n(new URL(e).hostname);
} catch {
return "";
}
-}, _n = (e) => {
- let t = gn(e);
- return t && mn.find(([e]) => t === e || t.endsWith("." + e))?.[1] || "";
-}, vn = (e) => `/link-mark?id=${encodeURIComponent(e.link_id ?? "")}`, yn = (e) => `/site-mark?${new URLSearchParams(e)}`, bn = [
+}, yn = (e) => {
+ let t = vn(e);
+ return t && gn.find(([e]) => t === e || t.endsWith("." + e))?.[1] || "";
+}, bn = (e) => `/link-mark?id=${encodeURIComponent(e.link_id ?? "")}`, xn = (e) => `/site-mark?${new URLSearchParams(e)}`, Sn = [
[["x.com", "twitter.com"], "brand-x"],
[["instagram.com"], "brand-instagram"],
[["threads.com", "threads.net"], "brand-threads"],
@@ -11459,65 +11465,65 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
[["youtube.com", "youtu.be"], "brand-youtube"],
[["facebook.com", "fb.com"], "brand-facebook"],
[["linktr.ee", "linktree.com"], "brand-linktree"]
-], xn = (e) => {
- let t = gn(e);
- return t && bn.find(([e]) => e.some((e) => t === e || t.endsWith("." + e)))?.[1] || "";
-}, Sn = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase(), Cn = ["web.archive.org"], wn = (e) => Cn.includes(gn(e)), Tn = (e, t, n = []) => {
- let r = _n(e.url) || e.label || "";
- if (t !== "studio" && t !== "agency" || wn(e.url)) return r;
- let i = [r, e.label].map(Sn).filter(Boolean);
- return !i.length || i.includes("官方网站") || i.some((t) => hn(t) === gn(e.url) || n.some((e) => {
- let n = Sn(e);
+], Cn = (e) => {
+ let t = vn(e);
+ return t && Sn.find(([e]) => e.some((e) => t === e || t.endsWith("." + e)))?.[1] || "";
+}, wn = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase(), Tn = ["web.archive.org"], En = (e) => Tn.includes(vn(e)), Dn = (e, t, n = []) => {
+ let r = yn(e.url) || e.label || "";
+ if (t !== "studio" && t !== "agency" || En(e.url)) return r;
+ let i = [r, e.label].map(wn).filter(Boolean);
+ return !i.length || i.includes("官方网站") || i.some((t) => _n(t) === vn(e.url) || n.some((e) => {
+ let n = wn(e);
return !!n && (n.includes(t) || t.includes(n));
})) ? "官方网站" : r;
-}, En = (e) => {
+}, On = (e) => {
let t = Number(e);
return Number.isFinite(t) && t > 0 ? t : 0;
-}, Dn = (e) => {
- if (e = En(e), !e) return "—";
+}, kn = (e) => {
+ if (e = On(e), !e) return "—";
if (e = Math.round(e), e >= 172800) {
let t = Math.floor(e / 86400), n = Math.floor(e % 86400 / 3600);
return n ? `${t} 天 ${n} 小时` : `${t} 天`;
}
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = e % 60;
return t ? `${t}:${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${n}:${String(r).padStart(2, "0")}`;
-}, On = (e) => {
+}, An = (e) => {
e = Math.max(0, Math.floor(Number(e) || 0));
let t = e / 3600 | 0, n = e % 3600 / 60 | 0, r = e % 60;
return t ? `${t}:${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${n}:${String(r).padStart(2, "0")}`;
-}, kn = (e) => {
+}, jn = (e) => {
if (e == null || e === "") return "大小未知";
let t = Number(e);
return !Number.isFinite(t) || t < 0 ? "大小未知" : t === 0 ? "0 B" : t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : t >= 0x4000000000000 ? (t / 0x4000000000000).toFixed(2) + " PB" : t >= 1099511627776 ? (t / 1099511627776).toFixed(2) + " TB" : t >= 1073741824 ? (t / 1073741824).toFixed(1) + " GB" : Math.floor(t / 1048576) + " MB";
-}, An = typeof Intl < "u" && typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, jn = (e) => An ? Array.from(An.segment(e), (e) => e.segment) : Array.from(e), Mn = (e, t) => {
+}, Mn = typeof Intl < "u" && typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, Nn = (e) => Mn ? Array.from(Mn.segment(e), (e) => e.segment) : Array.from(e), Pn = (e, t) => {
let n = String(e ?? "").trim(), r = [];
if (!n || t <= 0) return "";
- if (!An) return Array.from(n).slice(0, t).join("");
- for (let e of An.segment(n)) if (r.push(e.segment), r.length >= t) break;
+ if (!Mn) return Array.from(n).slice(0, t).join("");
+ for (let e of Mn.segment(n)) if (r.push(e.segment), r.length >= t) break;
return r.join("");
-}, Nn = (e, t = "?") => Mn(e, 1) || t, Pn = (e, t) => {
- let n = jn(String(e ?? ""));
+}, Fn = (e, t = "?") => Pn(e, 1) || t, In = (e, t) => {
+ let n = Nn(String(e ?? ""));
return n.length > t ? `${n.slice(0, Math.max(0, t - 1)).join("")}…` : n.join("");
-}, Fn = {
- ...Qt,
+}, Ln = {
+ ...$t,
local: "本地",
online: "在线"
-}, In = (e, t) => {
+}, Rn = (e, t) => {
let n = 2166136261;
for (let r of `${e}\u0000${t}`) n ^= r.codePointAt(0), n = Math.imul(n, 16777619) >>> 0;
return n;
-}, Ln = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991), Rn = /* @__PURE__ */ new Set([
+}, zn = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991), Bn = /* @__PURE__ */ new Set([
"短片-2分内",
"中片-10分内",
"长片-30分内",
"超长片-30分上"
-]), zn = (e) => String(e || "").split(",").filter((e) => e && !Rn.has(e)).join(","), Bn = class extends Error {
+]), Vn = (e) => String(e || "").split(",").filter((e) => e && !Bn.has(e)).join(","), Hn = class extends Error {
status;
body;
constructor(e, t, n = null) {
- super(en(e, t)), this.name = "ApiError", this.status = t, this.body = n;
+ super(tn(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Vn = (e) => {
+}, Un = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -11529,8 +11535,9 @@ var R = (e) => document.querySelector(e), z = (e, t = "") => {
if (typeof n == "string" && n) return n;
}
return "";
-}, Hn = (e) => en(e);
-async function V(e, t) {
+}, Wn = (e) => tn(e);
+async function B(e, t) {
+ e = an(e);
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -11539,10 +11546,10 @@ async function V(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new Bn(Vn(r) || `请求失败(${n.status})`, n.status);
- return Kt(e, r), r;
+ if (!n.ok) throw new Hn(Un(r) || `请求失败(${n.status})`, n.status);
+ return qt(e, r), r;
}
-async function H(e, t, n = "POST", r) {
+async function V(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -11556,12 +11563,12 @@ async function H(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new Bn(Vn(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Hn(Un(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/follow-sort.ts
-var Un = [
+var Gn = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -11569,7 +11576,7 @@ var Un = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Wn = "checked", Gn = {
+], Kn = "checked", qn = {
checked: "desc",
added: "desc",
name: "asc",
@@ -11577,15 +11584,15 @@ var Un = [
source: "asc",
provider: "asc",
status: "asc"
-}, Kn = (e) => Un.some(([t]) => t === e);
-function qn(e, t) {
- let n = Kn(e) ? e : Wn;
+}, Jn = (e) => Gn.some(([t]) => t === e);
+function Yn(e, t) {
+ let n = Jn(e) ? e : Kn;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : Gn[n]
+ dir: t === "asc" || t === "desc" ? t : qn[n]
};
}
-function Jn(e, t, n = 1) {
+function Xn(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;
@@ -11605,38 +11612,38 @@ function Jn(e, t, n = 1) {
t
];
}
-function Yn(e, t) {
+function Zn(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Xn(e, t) {
+function Qn(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/query/client.ts
-var U = new yt({ defaultOptions: { queries: {
+var H = new bt({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), Zn = "/api/sources", Qn = ["media-sources"], $n = (e) => V(Zn, e), er = (e) => e?.name === "AbortError" || Ke(e);
-async function tr(e) {
+} } }), $n = "/api/sources", er = ["media-sources"], tr = (e) => B($n, e), nr = (e) => e?.name === "AbortError" || qe(e);
+async function rr(e) {
e?.throwIfAborted();
- let t = () => U.fetchQuery({
- queryKey: Qn,
- queryFn: () => $n(e)
+ let t = () => H.fetchQuery({
+ queryKey: er,
+ queryFn: () => tr(e)
});
try {
let n = await t();
return e?.throwIfAborted(), n;
} catch (n) {
- if (e?.throwIfAborted(), !er(n)) throw n;
+ if (e?.throwIfAborted(), !nr(n)) throw n;
return await t();
}
}
//#endregion
//#region src/react/time.ts
-function nr(e) {
+function ir(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -11645,22 +11652,22 @@ function nr(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var rr = "/api/follow", ir = "/api/follow/credentials", ar = "/api/follow/check", or = "/api/follow/source", sr = "/api/follow/resolve", cr = "/api/follow/suggest", lr = "/api/follow/author-alias", ur = "/api/follow/credential", dr = "/api/follow/status", fr = "/api/feeds", pr = "/api/feeds/source", mr = "/api/feeds/check", hr = "/api/feeds/lookup", gr = ["follow-manage"], _r = ["follow-manage", "credentials"], vr = ["follow-manage", "check"], yr = ["follow-manage", "resolve"], br = ["follow-manage", "feeds"], xr = (e) => [
+var ar = "/api/follow", or = "/api/follow/credentials", sr = "/api/follow/check", cr = "/api/follow/source", lr = "/api/follow/resolve", ur = "/api/follow/suggest", dr = "/api/follow/author-alias", fr = "/api/follow/credential", pr = "/api/follow/status", mr = "/api/feeds", hr = "/api/feeds/source", gr = "/api/feeds/check", _r = "/api/feeds/lookup", vr = ["follow-manage"], yr = ["follow-manage", "credentials"], br = ["follow-manage", "check"], xr = ["follow-manage", "resolve"], Sr = ["follow-manage", "feeds"], Cr = (e) => [
"follow-manage",
"suggest",
e
-], Sr = [["default", "默认视图"], ["table", "表格视图"]], Cr = [
+], wr = [["default", "默认视图"], ["table", "表格视图"]], Tr = [
10,
20,
50,
100
-], wr = Object.fromEntries(Un), Tr = {
+], Er = Object.fromEntries(Gn), Dr = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Er = (e) => Sr.some(([t]) => t === e), Dr = (e) => Cr.includes(Number(e)) ? Number(e) : 20, Or = {
+}, Or = (e) => wr.some(([t]) => t === e), kr = (e) => Tr.includes(Number(e)) ? Number(e) : 20, Ar = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -11668,34 +11675,34 @@ var rr = "/api/follow", ir = "/api/follow/credentials", ar = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, kr = (e, t) => `按${wr[e]}${Or[e][t === "asc" ? 0 : 1]}排序`;
-function Ar(e) {
+}, jr = (e, t) => `按${Er[e]}${Ar[e][t === "asc" ? 0 : 1]}排序`;
+function Mr(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function jr(e) {
+function Nr(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var Mr = (e) => e.last_status === "error" || e.last_status === "unauthorized";
-function Nr(e) {
+var Pr = (e) => e.last_status === "error" || e.last_status === "unauthorized";
+function Fr(e) {
let t = Number(e) || 0;
return t >= 2880 ? `每 ${Math.round(t / 1440).toLocaleString()} 天` : t >= 60 ? `每 ${Math.round(t / 60)} 小时` : `每 ${t} 分钟`;
}
-function Pr(e) {
+function Ir(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-var Fr = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Ir = {
- source: Fr,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Fr(e, t),
- status: (e, t) => Ar(e) - Ar(t) || Fr(e, t)
-}, Lr = (e) => Date.parse(e || "") || 0, Rr = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function zr(e, t = []) {
+var Lr = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Rr = {
+ source: Lr,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Lr(e, t),
+ status: (e, t) => Mr(e) - Mr(t) || Lr(e, t)
+}, zr = (e) => Date.parse(e || "") || 0, Br = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function Vr(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || Rr(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || Br(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return Rr(i.canonical_name);
+ if (i) return Br(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -11703,18 +11710,18 @@ function zr(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function Br(e) {
+function Hr(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function Vr(e) {
+function Ur(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function Hr(e) {
+function Wr(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -11722,32 +11729,32 @@ function Hr(e) {
}
return t.map((e) => n.get(e));
}
-function Ur(e, t, n, r = []) {
- let i = Hr(e), a = n === Gn[t] ? 1 : -1, o = (e) => zr(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Ir[t];
+function Gr(e, t, n, r = []) {
+ let i = Wr(e), a = n === qn[t] ? 1 : -1, o = (e) => Vr(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Rr[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => Lr(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => Lr(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => zr(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => zr(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function Wr(e, t, n, r = []) {
+function Kr(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = zr(e, r);
+ let t = Vr(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = Ir[t];
+ }), a = Rr[t];
if (a) {
- let e = n === Gn[t] ? 1 : -1;
+ let e = n === qn[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function Gr(e, t, n) {
- let r = Yn(e, t), i = Xn(n, r), a = (i - 1) * t;
+function qr(e, t, n) {
+ let r = Zn(e, t), i = Qn(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -11756,95 +11763,95 @@ function Gr(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Kr(e, t) {
+function Jr(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function qr(e, t) {
+function Yr(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function Jr(e, t, n) {
+function Xr(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var Yr = (e) => V(`${rr}?summary=1`, e), Xr = (e) => V(ir, e), Zr = (e) => V(ar, e), Qr = (e) => V(sr, e), $r = (e, t) => V(`${cr}?q=${encodeURIComponent(e)}`, t), ei = (e) => H(ar, {
+var Zr = (e) => B(`${ar}?summary=1`, e), Qr = (e) => B(or, e), $r = (e) => B(sr, e), ei = (e) => B(lr, e), ti = (e, t) => B(`${ur}?q=${encodeURIComponent(e)}`, t), ni = (e) => V(sr, {
...e?.length ? { sources: e } : {},
background: !0
-}), ti = (e) => H(sr, {
+}), ri = (e) => V(lr, {
lines: e,
background: !0
-}), ni = (e, t) => H(or, {
+}), ii = (e, t) => V(cr, {
action: "enabled",
id: e,
enabled: t
-}), ri = (e) => H(or, {
+}), ai = (e) => V(cr, {
action: "remove",
id: e
-}), ii = (e) => H(or, {
+}), oi = (e) => V(cr, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), ai = (e, t) => H(lr, {
+}), si = (e, t) => V(dr, {
action: "add",
canonical: e,
alias: t
-}), oi = (e) => H(lr, {
+}), ci = (e) => V(dr, {
action: "remove",
alias: e
-}), si = (e, t, n) => H(lr, {
+}), li = (e, t, n) => V(dr, {
action: "rename",
canonical_key: e,
canonical: t
-}, "POST", n), ci = (e, t) => H(ur, {
+}, "POST", n), ui = (e, t) => V(fr, {
provider: e,
values: t
-}), li = (e, t) => H(dr, {
+}), di = (e, t) => V(pr, {
item: e,
to: t
-}), ui = () => V(`${rr}?status=new&limit=1000`);
-async function di(e) {
- let t = await V(fr, e);
+}), fi = () => B(`${ar}?status=new&limit=1000`);
+async function pi(e) {
+ let t = await B(mr, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var fi = (e, t, n) => H(pr, {
+var mi = (e, t, n) => V(hr, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), pi = (e, t) => H(pr, {
+}, "POST", n), hi = (e, t) => V(hr, {
action: "remove",
id: e
-}, "POST", t), mi = (e, t) => H(mr, t?.length ? { sources: t } : { all: !0 }, "POST", e), hi = (e, t) => V(`${hr}?q=${encodeURIComponent(e)}`, t), gi = (e, t, n) => H(pr, {
+}, "POST", t), gi = (e, t) => V(gr, t?.length ? { sources: t } : { all: !0 }, "POST", e), _i = (e, t) => B(`${_r}?q=${encodeURIComponent(e)}`, t), vi = (e, t, n) => V(hr, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function _i(e) {
+async function yi(e) {
await Promise.all([
- U.fetchQuery({
- queryKey: gr,
- queryFn: () => Yr(e)
+ H.fetchQuery({
+ queryKey: vr,
+ queryFn: () => Zr(e)
}),
- U.fetchQuery({
- queryKey: _r,
- queryFn: () => Xr(e)
+ H.fetchQuery({
+ queryKey: yr,
+ queryFn: () => Qr(e)
}),
- U.fetchQuery({
- queryKey: br,
- queryFn: () => di(e)
+ H.fetchQuery({
+ queryKey: Sr,
+ queryFn: () => pi(e)
})
]);
}
-function vi(e, t) {
- U.setQueryData(gr, (n) => n && {
+function bi(e, t) {
+ H.setQueryData(vr, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -11852,28 +11859,28 @@ function vi(e, t) {
} : n)
});
}
-function yi(e) {
+function xi(e) {
let t = new Set(e);
- U.setQueryData(gr, (e) => e && {
+ H.setQueryData(vr, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var bi = () => U.invalidateQueries({
- queryKey: gr,
+var Si = () => H.invalidateQueries({
+ queryKey: vr,
exact: !0
});
-function xi(e) {
+function Ci(e) {
let t = e.results || [], n = t.reduce((e, t) => e + (t.added || 0), 0), r = t.reduce((e, t) => e + (t.updated || 0), 0), i = t.filter((e) => !e.ok).length, a = [];
return n && a.push(`新增 ${n} 条`), r && a.push(`更新 ${r} 条`), !a.length && i < t.length && a.push("没有更新"), i && a.push(`${i} 个失败`), a.length || a.push("没有更新"), `已检查 ${t.length} 个来源:${a.join(" · ")}`;
}
-function Si(e) {
+function wi(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Ci = (e) => (e?.results || []).filter((e) => !e.ok), wi = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Ti = (e) => e.last_checked_at ? nr(e.last_checked_at) : "未检查", Ei = /* @__PURE__ */ new Set([
+var Ti = (e) => (e?.results || []).filter((e) => !e.ok), Ei = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Di = (e) => e.last_checked_at ? ir(e.last_checked_at) : "未检查", Oi = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -11887,53 +11894,53 @@ var Ci = (e) => (e?.results || []).filter((e) => !e.ok), wi = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), Di = (e) => Ei.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Oi = {
+]), ki = (e) => Oi.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Ai = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "暂时无法连接"
-}, ki = (e) => !!e.present && !e.missing.length, Ai = [
+}, ji = (e) => !!e.present && !e.missing.length, Mi = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], ji = [
+], Ni = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], Mi = {
+], Pi = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
-}, Ni = "rand";
-function Pi(e, t) {
+}, Fi = "rand";
+function Ii(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=100&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-var Fi = 18e5;
-function Ii(e, t) {
+var Li = 18e5;
+function Ri(e, t) {
return {
queryKey: [
"follow-feed",
- Pi(e, 0),
+ Ii(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => V(Pi(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => B(Ii(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 100 : void 0,
- placeholderData: Oe,
- gcTime: Fi
+ placeholderData: ke,
+ gcTime: Li
};
}
-var Li = ["follow-feed", "credentials"], Ri = (e) => V(ir, e).catch(() => ({ providers: [] }));
-async function zi(e, t) {
- let n = Ii(e.view, e.revision);
- U.removeQueries({
- queryKey: Li,
+var zi = ["follow-feed", "credentials"], Bi = (e) => B(or, e).catch(() => ({ providers: [] }));
+async function Vi(e, t) {
+ let n = Ri(e.view, e.revision);
+ H.removeQueries({
+ queryKey: zi,
exact: !0
});
- let r = U.getQueryData(n.queryKey) !== void 0;
- await Promise.all([r ? null : U.fetchInfiniteQuery({
+ let r = H.getQueryData(n.queryKey) !== void 0;
+ await Promise.all([r ? null : H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -11941,13 +11948,13 @@ async function zi(e, t) {
}),
initialPageParam: 0,
getNextPageParam: n.getNextPageParam,
- gcTime: Fi
- }), U.fetchQuery({
- queryKey: Li,
- queryFn: () => Ri(t)
+ gcTime: Li
+ }), H.fetchQuery({
+ queryKey: zi,
+ queryFn: () => Bi(t)
})]);
}
-function Bi(e) {
+function Hi(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -11956,10 +11963,10 @@ function Bi(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function Vi(e, t, n) {
- return [...e].sort((e, r) => In(n, t(e)) - In(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
+function Ui(e, t, n) {
+ return [...e].sort((e, r) => Rn(n, t(e)) - Rn(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function Hi(e) {
+function Wi(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -11967,14 +11974,14 @@ function Hi(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function Ui(e) {
- let t = U.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
+function Gi(e) {
+ let t = H.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = Hi(t).find((t) => t.id === e);
+ let n = Wi(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -11985,8 +11992,8 @@ function Ui(e) {
}
return null;
}
-function Wi(e) {
- U.setQueriesData({
+function Ki(e) {
+ H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (t) => t && {
@@ -11995,7 +12002,7 @@ function Wi(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return Hi(t).some((t) => t.id === e.id) ? {
+ return Wi(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -12005,30 +12012,30 @@ function Wi(e) {
}))
});
}
-function Gi(e, t) {
- U.setQueriesData({
+function qi(e, t) {
+ H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && ra(n, null, e, t));
+ }, (n) => n && aa(n, null, e, t));
}
-function Ki(e) {
- return Hi(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function Ji(e) {
+ return Wi(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function qi(e) {
+function Yi(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function Ji(e) {
+function Xi(e) {
let t = /* @__PURE__ */ new Set();
- return Hi(e).forEach((e) => qi(e).forEach((e) => t.add(e))), t;
+ return Wi(e).forEach((e) => Yi(e).forEach((e) => t.add(e))), t;
}
-function Yi(e, t) {
+function Zi(e, t) {
let n = t === "images" ? "image" : "video";
- return Ki(e).find((e) => qi(e).has(n)) || e.primary;
+ return Ji(e).find((e) => Yi(e).has(n)) || e.primary;
}
-function Xi(e) {
+function Qi(e) {
return {
status: "",
media: "videos",
@@ -12043,16 +12050,16 @@ function Xi(e) {
seed: 0
};
}
-function Zi(e) {
- return Ki(e).filter((e) => e.playable && e.media_kind === "video");
+function $i(e) {
+ return Ji(e).filter((e) => e.playable && e.media_kind === "video");
}
-var Qi = {
+var ea = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function $i({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${Qi[s] || Qi.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function ta({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${ea[s] || ea.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || t.thumb_url && t.thumb_url !== e && !u.has(t.face) && (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -12061,14 +12068,14 @@ function $i({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function ea(e) {
+function na(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function ta(e, t, n) {
- return e === t ? Mi[e] ? {
+function ra(e, t, n) {
+ return e === t ? Pi[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -12076,13 +12083,13 @@ function ta(e, t, n) {
dir: "desc"
};
}
-function na(e, t, n, r) {
- let i = ta(e, n, r);
+function ia(e, t, n, r) {
+ let i = ra(e, n, r);
if (!i) return "";
- let a = Mi[i.sort];
+ let a = Pi[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function ra(e, t, n, r) {
+function aa(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -12112,7 +12119,7 @@ function ra(e, t, n, r) {
})
};
}
-function ia(e, t) {
+function oa(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -12132,7 +12139,7 @@ function ia(e, t) {
label: e
})), n;
}
-function aa(e, t) {
+function sa(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -12147,7 +12154,7 @@ function aa(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function oa(e, t) {
+function ca(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -12156,13 +12163,13 @@ function oa(e, t) {
}
//#endregion
//#region src/react/follow-feed/follow-view.ts
-function sa(e, t, n) {
+function la(e, t, n) {
let r = new URLSearchParams(e), i = (e) => [...new Set((r.get(e) || "").split(",").filter(Boolean))], a = (e) => {
let t = Number(r.get(e));
return t > 0 ? t : 0;
}, o = r.get("status"), s = r.get("sort");
return {
- status: Ai.find(([e]) => e && e === o)?.[0] || "",
+ status: Mi.find(([e]) => e && e === o)?.[0] || "",
media: r.get("media") === "images" ? "images" : "videos",
author: i("author")[0] || "",
provider: i("provider")[0] || "",
@@ -12170,16 +12177,16 @@ function sa(e, t, n) {
tags: i("tag"),
durMin: a("dur_min"),
durMax: a("dur_max"),
- sort: s === "rand" ? s : ji.find(([e]) => e === s)?.[0] || "new",
+ sort: s === "rand" ? s : Ni.find(([e]) => e === s)?.[0] || "new",
seed: Number(r.get("seed")) >>> 0 || t || n(),
dir: r.get("dir") === "asc" ? "asc" : "desc"
};
}
-function ca(e) {
+function ua(e) {
let t = new URLSearchParams();
return e.author && t.set("author", e.author), e.provider && t.set("provider", e.provider), e.tags.length && t.set("tag", e.tags.join(",")), e.work && t.set("work", e.work), e.durMin && t.set("dur_min", String(e.durMin)), e.durMax && t.set("dur_max", String(e.durMax)), e.status && t.set("status", e.status), e.media === "images" && t.set("media", e.media), e.sort !== "new" && t.set("sort", e.sort), e.sort === "rand" && t.set("seed", String(e.seed)), e.dir !== "desc" && t.set("dir", e.dir), "/follow" + (t.size ? `?${t}` : "");
}
-function la(e, t) {
+function da(e, t) {
return {
...e,
author: t,
@@ -12192,7 +12199,7 @@ function la(e, t) {
status: ""
};
}
-function ua(e, t) {
+function fa(e, t) {
return {
...e,
author: "",
@@ -12206,24 +12213,24 @@ function ua(e, t) {
}
//#endregion
//#region src/react/follow-feed/follow-controller.ts
-function da(e, t, n) {
+function pa(e, t, n) {
let r = () => {
- let t = sa(e.location().search, e.view().seed, e.rollSeed);
+ let t = la(e.location().search, e.view().seed, e.rollSeed);
return e.adoptView(t), t;
}, i = (t) => {
e.live() && e.push(t);
}, a = (t, n = {}) => {
- let r = Pi(e.view(), 0);
- e.adoptView(t), e.route(ca(t)), i({
+ let r = Ii(e.view(), 0);
+ e.adoptView(t), e.route(ua(t)), i({
...n,
view: e.view()
- }), e.syncPhotoWalls(), Pi(e.view(), 0) !== r && e.scrollTop();
+ }), e.syncPhotoWalls(), Ii(e.view(), 0) !== r && e.scrollTop();
}, o = () => {
let t = e.rollSeed();
e.writeSession({ discoverySeed: t }), a({
...e.view(),
seed: t,
- sort: Ni
+ sort: Fi
}, { seed: e.session().discoverySeed });
}, s = {
...n,
@@ -12260,26 +12267,26 @@ function da(e, t, n) {
discoverySeed: e.enterSeed(),
scrollY: 0,
...e.live() ? {} : { revision: e.session().revision + 1 }
- }), e.openPage("/follow")) : e.openPage(ca(e.view()));
+ }), e.openPage("/follow")) : e.openPage(ua(e.view()));
}
};
}
//#endregion
//#region src/card-art/face-frame.ts
-var fa = .32, pa = .6;
-function ma(e) {
+var ma = .32, ha = .6;
+function ga(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function ha(e, t, n = 1, r = fa, i = pa) {
- if (!ma(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function _a(e, t, n = 1, r = ma, i = ha) {
+ if (!ga(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function ga(e, t, n = 1, r = fa, i = pa) {
- let a = ha(e, t, n, r, i);
- if (a <= 1 || !ma(e) || !t) return null;
+function va(e, t, n = 1, r = ma, i = ha) {
+ let a = _a(e, t, n, r, i);
+ if (a <= 1 || !ga(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -12291,49 +12298,49 @@ function ga(e, t, n = 1, r = fa, i = pa) {
}
//#endregion
//#region src/card-art/image-fallback.ts
-var _a = "|", va = "closest:";
-function ya(e) {
- return String(e ?? "").split(_a).map((e) => e.trim()).filter(Boolean);
+var ya = "|", ba = "closest:";
+function xa(e) {
+ return String(e ?? "").split(ya).map((e) => e.trim()).filter(Boolean);
}
-function ba({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
+function Sa({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
let a = (Array.isArray(t) ? t : [t]).filter(Boolean);
return [
- `data-drop="${B(e)}"`,
- a.length ? `data-fallbacks="${B(a.join(_a))}"` : "",
- n ? `data-initial="${B(n)}"` : "",
- r ? `data-drop-class="${B(r)}"` : "",
+ `data-drop="${z(e)}"`,
+ a.length ? `data-fallbacks="${z(a.join(ya))}"` : "",
+ n ? `data-initial="${z(n)}"` : "",
+ r ? `data-drop-class="${z(r)}"` : "",
i ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function xa(e) {
+function Ca(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = ya(e.dataset.fallbacks);
+ let t = xa(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(_a) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(ya) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(va)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(ba)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-var Sa = /* @__PURE__ */ new WeakSet();
-function Ca(e) {
- Sa.has(e) || (Sa.add(e), e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && xa(e.target);
+var wa = /* @__PURE__ */ new WeakSet();
+function Ta(e) {
+ wa.has(e) || (wa.add(e), e.addEventListener("error", (e) => {
+ e.target instanceof HTMLImageElement && Ca(e.target);
}, !0));
}
//#endregion
//#region src/card-art/native-image.ts
-function wa(e, t, n, r) {
+function Ea(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function Ta(e, t, n, r, i = 1) {
+function Da(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -12348,15 +12355,15 @@ function Ta(e, t, n, r, i = 1) {
height: t * c
};
}
-var Ea = .1;
-function Da(e, t, n, r) {
+var Oa = .1;
+function ka(e, t, n, r) {
if (![
e,
t,
n,
r
].every((e) => Number.isFinite(e) && e > 0)) return null;
- let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Ea;
+ let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Oa;
return Math.min(a, o) >= s ? null : o < a ? {
width: a,
height: s
@@ -12367,38 +12374,38 @@ function Da(e, t, n, r) {
}
//#endregion
//#region src/card-art/representatives.ts
-var Oa = /* @__PURE__ */ new Map();
-function ka(e) {
+var Aa = /* @__PURE__ */ new Map();
+function ja(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && Oa.set(e.k, e.rep);
+ e.rep && e.has_avatar && Aa.set(e.k, e.rep);
});
}
-function Aa(e) {
- return Oa.get(e);
+function Ma(e) {
+ return Aa.get(e);
}
//#endregion
//#region src/jav-artwork.ts
-function ja(e) {
+function Na(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Ma(e) {
+function Pa(e) {
return {
- javLayout: ja(e.javLayout),
- javImage: Na(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: Na(e.javLayout),
+ javImage: Fa(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function Na(e) {
+function Fa(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Pa(e, t) {
- return e.is_jav && e.code && e.has_cover && (Na(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Ia(e, t) {
+ return e.is_jav && e.code && e.has_cover && (Fa(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var Fa = .704, Ia = .85;
-function La(e, t, n = !1) {
+var La = .704, Ra = .85;
+function za(e, t, n = !1) {
let r = Number(e?.px?.[0]), i = Number(e?.px?.[1]), a = Number(e?.x0);
if (!(r > 0 && i > 0 && t > 0) || !Number.isFinite(a)) return null;
let o = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), s = o(a, 0, r), c = Math.max(s, o(e?.x1, r, r)), l = o(e?.y0, 0, i), u = Math.max(l, o(e?.y1, i, i)), d = c - s, f = u - l;
@@ -12418,13 +12425,13 @@ function La(e, t, n = !1) {
height: g(i / f * m)
};
}
-function Ra(e, t) {
+function Ba(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || Na(t) !== "cover" && r), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || Fa(t) !== "cover" && r), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
-function za(e, t) {
+function Va(e, t) {
let n = [];
return e.querySelectorAll("img[data-jav-image]").forEach((e) => {
e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));
@@ -12432,25 +12439,25 @@ function za(e, t) {
}
//#endregion
//#region src/card-art/markup.ts
-var Ba = "代表作画面,非本人", Va = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Ha = (e, t = !1) => {
+var Ha = "代表作画面,非本人", Ua = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, Wa = (e, t = !1) => {
let n = t === !0 ? 1 : t || 0;
- return Va(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
-}, Ua = (e) => Ha(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), Wa = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, Ga = (e, t, n) => Va(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Ka = (e) => e && typeof e == "object" ? e : null;
-function qa(e) {
+ return Ua(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
+}, Ga = (e) => Wa(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), Ka = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, qa = (e, t, n) => Ua(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Ja = (e) => e && typeof e == "object" ? e : null;
+function Ya(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function Ja({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
- let g = !!(t && n), _ = g ? Va(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? Ga(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
+function Xa({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
+ let g = !!(t && n), _ = g ? Ua(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? qa(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
if (!b) return "";
- let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? $a(p) : "", w = d || Qa(p);
- return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${Ba}" aria-label="${Ba}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${B(v)}" data-fallback-note="${Ba}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${ba({
+ let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? to(p) : "", w = d || eo(p);
+ return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${Ha}" aria-label="${Ha}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${Ha}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Sa({
dropStyle: (f || !!C || !!w) && S,
fallbacks: x
})}>`;
}
-function Ya(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
- let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${B(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${ba({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
- return `<span class="ini">${B(Nn(e))}</span>` + (u || Ja({
+function Za(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
+ let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Sa({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
+ return `<span class="ini">${z(Fn(e))}</span>` + (u || Xa({
kind: r,
id: t && t.id,
hasImage: !!(t && t.has_image),
@@ -12465,19 +12472,19 @@ function Ya(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0,
standIn: !!(t && t.avatar_stand_in)
}));
}
-function Xa(e, t, n) {
- return Ya(e, t, n ? Aa(e) : null, n || "performer");
+function Qa(e, t, n) {
+ return Za(e, t, n ? Ma(e) : null, n || "performer");
}
-function Za(e) {
- let t = Ka(e);
+function $a(e) {
+ let t = Ja(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function Qa(e) {
- let t = Za(e);
+function eo(e) {
+ let t = $a(e);
return t ? ` style="object-position:${t}"` : "";
}
-function $a(e) {
- let t = Ka(e)?.box;
+function to(e) {
+ let t = Ja(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -12486,8 +12493,8 @@ function $a(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function eo(e, t, n = !1) {
- let r = Ua(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
+function no(e, t, n = !1) {
+ let r = Ga(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
l.x0,
(l.px || [])[0],
(l.px || [])[1],
@@ -12496,47 +12503,47 @@ function eo(e, t, n = !1) {
l.y1
].map(Number).join(" ")}"` : "";
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
- width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${B(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;
+ width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${z(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;
}
-var to = {
+var ro = {
kind: "",
html: ""
};
-function no(e, t, n, r) {
- let i = Pa(e, r);
- if (!i) return to;
- let a = e.has_cover && e.code ? Ua(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = eo(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
+function io(e, t, n, r) {
+ let i = Ia(e, r);
+ if (!i) return ro;
+ let a = e.has_cover && e.code ? Ga(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = no(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
return {
kind: i === "cover" ? "cover" : "thumb",
- html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${B(a)}" data-jav-thumb="${B(o)}" data-jav-image-layout="${t}" `)
+ html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${z(a)}" data-jav-thumb="${z(o)}" data-jav-image-layout="${t}" `)
};
}
-function ro(e, t, n, r) {
- return e.is_jav ? no(e, t, n, r) : e.follow_thumb_url ? {
+function ao(e, t, n, r) {
+ return e.is_jav ? io(e, t, n, r) : e.follow_thumb_url ? {
kind: "thumb",
- html: `<img class="poster" src="${B(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`
- } : io(e, t, n, r);
+ html: `<img class="poster" src="${z(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`
+ } : oo(e, t, n, r);
}
-function io(e, t, n, r) {
- return e.is_jav ? no(e, t, n, r) : e.has_cover && e.cover_key ? {
+function oo(e, t, n, r) {
+ return e.is_jav ? io(e, t, n, r) : e.has_cover && e.cover_key ? {
kind: "cover",
- html: eo(e, t, n)
- } : ao(e, n);
+ html: no(e, t, n)
+ } : so(e, n);
}
-function ao(e, t) {
- return !e.has_thumb && !e.has_local_poster ? to : {
+function so(e, t) {
+ return !e.has_thumb && !e.has_local_poster ? ro : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="${t ? "eager" : "lazy"}" decoding="async">`
};
}
-function oo(e, t) {
- return io(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+function co(e, t) {
+ return oo(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
}
-function so(e, t) {
+function lo(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav ? Pa(e, t) === "cover" ? Ha(e) : n : e.has_cover && e.cover_key ? Ha(e) : n;
+ return e.is_jav ? Ia(e, t) === "cover" ? Wa(e) : n : e.has_cover && e.cover_key ? Wa(e) : n;
}
-function co(e) {
+function uo(e) {
let t = e.performers || [], n = e.performer_entities ?? e.entity_refs?.performer ?? [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -12547,31 +12554,31 @@ function co(e) {
total: e.performer_total || t.length
};
}
-function lo(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = co(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${Ya(e, a[t], Aa(e))}</span>`).join("")}</div>` : `<span class="mav">${Ya(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Aa(n) : null, t || "performer")}</span>`;
+function fo(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = uo(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${Za(e, a[t], Ma(e))}</span>`).join("")}</div>` : `<span class="mav">${Za(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Ma(n) : null, t || "performer")}</span>`;
}
-function uo(e, t) {
+function po(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
//#endregion
//#region src/ui-kit/overlay-scrollbar.ts
-var fo = /* @__PURE__ */ new Map();
-function po(e) {
- fo.get(e)?.destroy();
+var mo = /* @__PURE__ */ new Map();
+function ho(e) {
+ mo.get(e)?.destroy();
}
-function mo() {
- for (let [e, t] of fo) e.isConnected ? t.repair() : t.destroy();
+function go() {
+ for (let [e, t] of mo) e.isConnected ? t.repair() : t.destroy();
}
-function ho(e) {
- for (let [t, n] of fo) (t === e || e.contains(t)) && n.destroy();
+function _o(e) {
+ for (let [t, n] of mo) (t === e || e.contains(t)) && n.destroy();
}
-function go(e, { variant: t = "", axes: n } = {}) {
+function vo(e, { variant: t = "", axes: n } = {}) {
if (!e) return null;
if (e.dataset.overlayScrollbar) {
if (!n || e.dataset.overlayAxes === n.join("")) return null;
- po(e);
+ ho(e);
}
let r = e === document.documentElement, i = r ? ["y"] : n ?? ["y", "x"], a = getComputedStyle(e), o = !r && (a.position === "absolute" || a.position === "fixed" || e.matches("dialog,[popover]")), s = r ? document.body : o ? e : e.parentElement;
if (!s) return null;
@@ -12707,56 +12714,56 @@ function go(e, { variant: t = "", axes: n } = {}) {
e && T();
},
destroy() {
- fo.get(e) === O && (h = !0, fo.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...fo.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
+ mo.get(e) === O && (h = !0, mo.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...mo.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
}
});
- return fo.set(e, O), O;
+ return mo.set(e, O), O;
}
//#endregion
//#region src/ui-kit/collapse.ts
-var _o = /* @__PURE__ */ new WeakMap();
-function vo(e, t, n) {
- bo(t, n, () => e.open, (t) => {
+var yo = /* @__PURE__ */ new WeakMap();
+function bo(e, t, n) {
+ So(t, n, () => e.open, (t) => {
e.open = t;
});
}
-function yo(e, t) {
- bo(e, t, () => !e.hidden, (t) => {
+function xo(e, t) {
+ So(e, t, () => !e.hidden, (t) => {
e.hidden = !t;
});
}
-function bo(e, t, n, r) {
+function So(e, t, n, r) {
e.classList.add("ui-fcollapse");
- let i = (_o.get(e) || 0) + 1;
- _o.set(e, i);
- let a = () => _o.get(e) === i;
+ let i = (yo.get(e) || 0) + 1;
+ yo.set(e, i);
+ let a = () => yo.get(e) === i;
if (t) {
e.inert = !1;
let t = n() ? e.getBoundingClientRect().height : 0;
- r(!0), So(e, t, a);
- } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", xo(e, () => {
+ r(!0), wo(e, t, a);
+ } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Co(e, () => {
a() && (r(!1), e.style.height = "");
});
}
-function xo(e, t) {
+function Co(e, t) {
let n = !1, r, i = (a) => {
a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());
};
e.addEventListener("transitionend", i), r = setTimeout(i, 260);
}
-function So(e, t, n = () => !0) {
- e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", xo(e, () => {
+function wo(e, t, n = () => !0) {
+ e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Co(e, () => {
n() && (e.style.height = "auto", e.classList.add("ui-fcollapse-settled"));
});
}
//#endregion
//#region src/ui-kit/sounds.ts
-var Co = null, wo = !1;
-function To() {
+var To = null, Eo = !1;
+function Do() {
let e = globalThis.AudioContext || globalThis.webkitAudioContext;
- return e ? (Co ||= new e(), Co.state === "suspended" && Co.resume()?.catch?.(() => {}), Co) : null;
+ return e ? (To ||= new e(), To.state === "suspended" && To.resume()?.catch?.(() => {}), To) : null;
}
-function Eo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
+function Oo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
let u = t + c, d = e.createOscillator(), f = e.createGain();
d.type = n, d.frequency.setValueAtTime(r, u), i !== r && d.frequency.exponentialRampToValueAtTime(i, u + a), s ? (f.gain.setValueAtTime(.001, u), f.gain.exponentialRampToValueAtTime(o, u + s)) : f.gain.setValueAtTime(o, u), f.gain.exponentialRampToValueAtTime(.001, u + a);
let p = d;
@@ -12766,7 +12773,7 @@ function Eo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o
}
p.connect(f), f.connect(e.destination), d.start(u), d.stop(u + a + .01);
}
-function Do(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
+function ko(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
let s = Math.max(1, Math.round(e.sampleRate * n)), c = e.createBuffer(1, s, e.sampleRate), l = c.getChannelData(0);
for (let e = 0; e < s; e++) l[e] = Math.random() * 2 - 1;
let u = e.createBufferSource();
@@ -12778,8 +12785,8 @@ function Do(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack
u.disconnect(), d.disconnect(), f.disconnect();
}, u.start(t);
}
-var Oo = {
- click: (e, t) => Do(e, t, {
+var Ao = {
+ click: (e, t) => ko(e, t, {
duration: .06,
volume: .12,
filter: {
@@ -12787,24 +12794,24 @@ var Oo = {
Q: 1
}
}),
- "toggle-on": (e, t) => Eo(e, t, {
+ "toggle-on": (e, t) => Oo(e, t, {
from: 550,
to: 650,
duration: .08,
volume: .15
}),
- "toggle-off": (e, t) => Eo(e, t, {
+ "toggle-off": (e, t) => Oo(e, t, {
from: 650,
to: 550,
duration: .08,
volume: .15
}),
success: (e, t) => {
- Eo(e, t, {
+ Oo(e, t, {
from: 523,
duration: .12,
volume: .18
- }), Eo(e, t, {
+ }), Oo(e, t, {
from: 653.75,
duration: .12,
volume: .18,
@@ -12812,12 +12819,12 @@ var Oo = {
});
},
warning: (e, t) => {
- Eo(e, t, {
+ Oo(e, t, {
type: "triangle",
from: 600,
duration: .08,
volume: .15
- }), Eo(e, t, {
+ }), Oo(e, t, {
type: "triangle",
from: 600,
duration: .08,
@@ -12825,7 +12832,7 @@ var Oo = {
start: .16
});
},
- error: (e, t) => Eo(e, t, {
+ error: (e, t) => Oo(e, t, {
type: "sawtooth",
from: 400,
to: 200,
@@ -12837,7 +12844,7 @@ var Oo = {
Q: 1
}
}),
- whoosh: (e, t) => Do(e, t, {
+ whoosh: (e, t) => ko(e, t, {
duration: .12,
volume: .08,
attack: .036,
@@ -12847,67 +12854,67 @@ var Oo = {
},
sweepTo: 6e3
}),
- pop: (e, t) => Eo(e, t, {
+ pop: (e, t) => Oo(e, t, {
from: 1500,
to: 500,
duration: .04,
volume: .15
})
};
-Object.freeze(Object.keys(Oo));
-function ko(e) {
- wo = e === !0;
+Object.freeze(Object.keys(Ao));
+function jo(e) {
+ Eo = e === !0;
}
-function Ao(e) {
- let t = Oo[e];
+function Mo(e) {
+ let t = Ao[e];
if (!t) throw Error(`没有「${e}」这种界面音效`);
- if (!wo) return !1;
- let n = To();
+ if (!Eo) return !1;
+ let n = Do();
return n ? (t(n, n.currentTime), !0) : !1;
}
-var jo = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", Mo = "input[type=\"checkbox\"][role=\"switch\"]";
-function No(e) {
+var No = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", Po = "input[type=\"checkbox\"][role=\"switch\"]";
+function Fo(e) {
return e.disabled === !0 || e.getAttribute("aria-disabled") === "true";
}
-var Po = /* @__PURE__ */ new WeakSet();
-function Fo(e = document) {
- Po.has(e) || (Po.add(e), e.addEventListener("click", (e) => {
- let t = e.target?.closest?.(jo);
- t && !No(t) && Ao("click");
+var Io = /* @__PURE__ */ new WeakSet();
+function Lo(e = document) {
+ Io.has(e) || (Io.add(e), e.addEventListener("click", (e) => {
+ let t = e.target?.closest?.(No);
+ t && !Fo(t) && Mo("click");
}, { capture: !0 }), e.addEventListener("change", (e) => {
let t = e.target;
- t?.matches?.(Mo) && !No(t) && Ao(t.checked ? "toggle-on" : "toggle-off");
+ t?.matches?.(Po) && !Fo(t) && Mo(t.checked ? "toggle-on" : "toggle-off");
}, { capture: !0 }));
}
//#endregion
//#region src/ui-kit/anchored-menu.ts
-var Io = null, Lo = globalThis;
-Lo.__peachMenuCloser || (Lo.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
- if (!Io) return;
+var Ro = null, zo = globalThis;
+zo.__peachMenuCloser || (zo.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
+ if (!Ro) return;
let t = e.target;
- Io.menu.contains(t) || Io.toggle.contains(t) || (!Io.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && Io.setOpen(!1);
+ Ro.menu.contains(t) || Ro.toggle.contains(t) || (!Ro.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && Ro.setOpen(!1);
}, !0));
-function Ro() {
- Io && Io.setOpen(!1);
+function Bo() {
+ Ro && Ro.setOpen(!1);
}
-var zo = /* @__PURE__ */ new WeakMap();
-function Bo(e) {
- zo.delete(e), e.classList.remove("leaving"), e.hidden && Ao("whoosh"), e.hidden = !1;
+var Vo = /* @__PURE__ */ new WeakMap();
+function Ho(e) {
+ Vo.delete(e), e.classList.remove("leaving"), e.hidden && Mo("whoosh"), e.hidden = !1;
}
-function Vo(e, t) {
- if (e.hidden || zo.has(e)) return;
+function Uo(e, t) {
+ if (e.hidden || Vo.has(e)) return;
let n = () => {
- zo.get(e) === n && (zo.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
+ Vo.get(e) === n && (Vo.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
};
- zo.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
+ Vo.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
t.target === e && n();
}, { once: !0 }), setTimeout(n, 240));
}
-var Ho = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
-function Uo(e, t) {
+var Wo = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
+function Go(e, t) {
return e.target instanceof Node && e.target.contains(t);
}
-function Wo(e, t, n, { side: r = !1, align: i = "end" } = {}) {
+function Ko(e, t, n, { side: r = !1, align: i = "end" } = {}) {
let a = null, o = () => {
let e = t.getBoundingClientRect(), o = n.offsetWidth;
if (a = {
@@ -12917,26 +12924,26 @@ function Wo(e, t, n, { side: r = !1, align: i = "end" } = {}) {
n.dataset.placement = "right", n.style.maxHeight = Math.max(0, innerHeight - 32) + "px", n.style.left = Math.max(16, Math.min(e.right + 8, innerWidth - o - 16)) + "px", n.style.top = Math.max(16, Math.min(e.top, innerHeight - n.offsetHeight - 16)) + "px";
return;
}
- let s = Ho(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
+ let s = Wo(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
n.dataset.placement = d ? "bottom" : "top", n.style.maxHeight = f + "px";
let p = i === "start" || n.classList.contains("context-card") ? e.left : e.right - o;
n.style.left = Math.max(8, Math.min(p, innerWidth - o - 8)) + "px", n.style.top = (d ? e.bottom + 8 : e.top - 8 - f) + "px";
}, s = (e) => {
- if (!Uo(e, t) || !a) return;
+ if (!Go(e, t) || !a) return;
let n = t.getBoundingClientRect();
(e.target === document || e.target === window || Math.abs(n.left - a.left) > .5 || Math.abs(n.top - a.top) > .5) && d(!1);
}, c = n.hasAttribute("popover"), l = !1, u = !1, d = (r) => {
- u || (r ? (Io && Io.mount !== e && Io.setOpen(!1), l = !0, Bo(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
+ u || (r ? (Ro && Ro.mount !== e && Ro.setOpen(!1), l = !0, Ho(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
capture: !0,
passive: !0
- })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), Vo(n, () => {
+ })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), Uo(n, () => {
n.style.left = "", n.style.top = "", n.style.maxHeight = "", c && n.matches(":popover-open") && n.hidePopover();
- })), t.setAttribute("aria-expanded", String(r)), Io = r ? {
+ })), t.setAttribute("aria-expanded", String(r)), Ro = r ? {
mount: e,
menu: n,
toggle: t,
setOpen: d
- } : Io && Io.mount === e ? null : Io);
+ } : Ro && Ro.mount === e ? null : Ro);
}, f = (e) => {
e.stopPropagation(), d(!l);
}, p = (e) => {
@@ -12946,34 +12953,34 @@ function Wo(e, t, n, { side: r = !1, align: i = "end" } = {}) {
setOpen: d,
isOpen: () => l,
dispose: () => {
- u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), Io?.menu === n && (Io = null), zo.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
+ u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), Ro?.menu === n && (Ro = null), Vo.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
}
};
}
//#endregion
//#region src/ui-kit/select-field.ts
-function Go(e) {
- return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${B(e)}" alt="" width="16" height="16">` : z(e, "gselectmark") : "";
+function qo(e) {
+ return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${z(e)}" alt="" width="16" height="16">` : R(e, "gselectmark") : "";
}
-function Ko(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
- let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${Go(t)}${B(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${B(e)}"
+function Jo(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
+ let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${qo(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"
aria-selected="${String(e) === String(a[0])}" tabindex="-1"><span data-select-content>${o([
e,
t,
n
])}</span></button>`).join("");
- return `<div class="ui-gselect${i ? ` ${B(i)}` : ""}" ${r}>
+ return `<div class="ui-gselect${i ? ` ${z(i)}` : ""}" ${r}>
<button type="button" class="gselectfield" data-select-trigger aria-haspopup="listbox"
- aria-expanded="false" aria-label="${B(n)}"><span data-select-label>${o(a)}</span>${z("chevron-down")}</button>
- <div class="popmenu gselectmenu" role="listbox" aria-label="${B(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;
+ aria-expanded="false" aria-label="${z(n)}"><span data-select-label>${o(a)}</span>${R("chevron-down")}</button>
+ <div class="popmenu gselectmenu" role="listbox" aria-label="${z(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;
}
-function qo(e) {
+function Yo(e) {
let t = e.querySelector("[data-select-trigger]"), n = e.querySelector("[data-select-menu]"), r = e.querySelector("[data-select-label]"), i = () => [...n.querySelectorAll("[data-select-option]")], a = () => n.querySelector("[aria-selected=\"true\"]");
t.addEventListener("click", () => {
let r = `${t.getBoundingClientRect().width}px`;
n.style.minWidth = r, e.hasAttribute("data-fixed-width") && (n.style.width = r);
});
- let o = Wo(e, t, n);
+ let o = Ko(e, t, n);
t.addEventListener("click", () => {
o.isOpen() && a()?.focus();
});
@@ -13007,44 +13014,44 @@ function qo(e) {
}
//#endregion
//#region src/ui-kit/media-source-icons.ts
-var Jo = {
+var Xo = {
local: "hard-drive",
guangya: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEWUlEQVR42sWXT2hcVRTGf/fNYCZdNNPGTaHaSUXFVQZSLLowoe3GdpEERHFhYqTQRBATcWlpSly56YQu4ipNZivYxCK46Z9EsBGkHdwItdhXrLixzaASo2bucXHve/feNzOagqQXHnPf/XPOd77z3XPfKLwmkxTZit4lkiEiykQK8wA5+5v0c5i5nNj3ZJ03nwPyKpmvEekFpGNZvV6PE58qdT7BEIoLRKqYOo0g6PtOogQEDkDWeS4DVgQ0MVpNqbGNpRSATDCEcLHJYcAAzWz4QHIqZCcdswwloWr7iBpWJzeWlIxTAq4CJSK7MNmQOhXrSGXeWzj205AGAiiLQAAt0JA6HZ09eRRDCKV0UmGoUsq8SzJoKRS7DgFJxpQxmjhRXsRg5pU4AAKIKvL7xmQeGPVWerJIHBACSX9TQw5EAlB75lLnnm1t18NgHqHsAPjGvCj8KHN27rEuONgPnV3w96/wVx3urZrotefMj0n5DABalfME59CjUXwGPGDlEegbgZ5+mtpmHW5fgusz8NtdF30AwKZCa9AKJeNIYERZ4anM0esuwWvzJurttK8+hLUZY1B5gaUpMIHlW+8Wh0YL7O2BU5dhb4lttxc/sEBmnE3lmba6yrf0re1RE7vj7RbOf1iBWhXqdw1D+3rh8DtQLIUgNuvwzXmaUm3T25yCJA3Kgjg+DS+fcXMPYvjkLYhXw1Ql/YHT0H861MXcs7C5bo+2BCzkpg8x3ZpDZTa8cQE6i274XB/8/K0TVt8oPDcI67FxFq9AYQ/sP2zm8wXIdcDWn7D7AOwuGdZsRWzNQFJMegfh1EU3tjoLy+85oR4agVfnzdydFZg/ZuY6izD1PRSKzXbjFageS2tF1FZEIvD0QDj29aKt41bJHV0Z7YiZ31iH7z5rbfdmFRruTsj/q5K7D4TvP9Ys9fZofXkeuntgz5Nw6X1jNDn363FzjbgyAzeqnhCzKXhmAKauuk2LY7C2YAWJExyJ6CyQ5LL5aMvtvVE1YlWZtBIexTAF9zOonyg7tCn1Ht2JohsCPS+Fe3+quas3eRpi6G9o82hpAWCj7t5fGIVdxRCE9mt5ereb0+C3ezWnCS1eXweAmkW4tuj6nUU4fiZTQPCMmijY1wvPj4a14vaKi1pjhScOsG6VAoArlZCFo5NwIgvCA/JUP5z8NLTxxVnn2Hx8uPUND1TbOnB0El45R1N6Ls8aagEeL5kUZY/qgximD3riU5n7Jbz62xeikQXj4GHa/RhmjxgQqkV5F3sSRKfA2hei6pvw+dntO791DSpH4Jc7nuCyAhT3NWTT0Z6BtBiV4MR0ezZuXTPCvb7Q8jpJo/aveNyF9N8AkrarCPvL7lr+o270kK0dD9mUTHAz/C7cwSbUIoRlHlWLWIwoUEGoPwL3McJSpCrUiRjbcfeKKfUxcQSg5lhCMQzEO5D3OophNcdS8O8YQMYpoRkix+j/LkxFDWGZAhVVcSn/Bw2n+w/oK+fWAAAAAElFTkSuQmCC",
115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",
pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII=",
onedrive: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAL30lEQVR42u2aa4xd11XHf2ufez2v6/GMY2dix4nHbRw7tI5TmyZgFToKtCKokitoigT9kAopFEFFGqkSAUrDowiJD614SEj5EEG/VUXllQgQLbQVCNqIokoVQmmVKKiNgELcUGfuPXuvtfiw9z73zPUjduxAC3dJW/uc0Zk7Z/3Xf/3XWvsOzG1uc5vb3OY2t7nNbW5z+/9o8r/xR898Kp1txb7fAriABcTFRAKhafwfhkv6x39/YvSv/2cAuO9J3z92e1cc2E+qcDQFRwNYY1gAGkcChMYhgDQOyLPi/tTyYPArnz2x8MVvSwDuf9L3fyPZB2LgvSpOCpCCowLWOCaONo402WkJEIJDAxKcEEDEIfEUxgc+f3r0Z982ANz3CX+oEf/lFnZHcRIQmwyCBScVELxxJDgyyE5Lk0GQUAABwPKLTvyJke7+iU+dka9+ywJw/5O+P415DOfsRCCKE4EY8m6hx4QGpLEc7WaaCtJAECeII5JZIBgAnnheUvPg586s/Om3HAD3P+n7mwl/m+C21iAaRIGJOFGK00BqsgZ4yfnQGDQZhBp5AgxwRAzBwcm7OO42aV5s3vt3b1l97FrfeXAtv7z5I184mybtXTHGtYWF8Eb5z8mpZrSwlAzcQB1UwUSw4JjJFATL6AfAEYJkB90F3AkGLpLLhIBgeOYA4izYUvqtu//iha9/7q3rn/gfZcDr3/P0Vrvd/kxs49tTG9E2kdrI6fvuYOPIPsYKrcHYYKIwcUgCLZDEu+hbcJpmmvcEp6l6UGkvjpDpL57dF3EcA3FwWraHP/rUD+z+g1edAXc99PxmGp9/PLZxS9XwskyV4/dscui12Xl1SJojnAzUIDrZaYGEYOY0jeA4UiIuQTCdpkEXHvfMBBwozgP5R7bLPf4u8IoBCFfy0KmHn3tA4/YzqrplxWlVRdVYWVvk+OmDRKVbybPjavk6ASlBVMETeBIsgUTBk+MRPDqSBItAufeJl+ctP9M6HgWiY9GxCI7uO/Hx/3jiVQPg1MPPfTi1+rgmRZNiKWFJu3X6rcew0GTBU4gJ2lSA0KwBqmAKnkCTgIJEsOhQQCDle0ngE6AtDreOTwogKe/WgrfgEayFZpf+4Os+9uKbrnsKnHr4Xx5NMT2kMdGtpGjK+8Hb97N6w4hxglaL4zZlQSwMUPLPTMg3ASxkGps6TdEECY4nx7w0QFKoXkpiTQME3Ot9ThPS5HeAk9dNBE89/NwDqdXHNSZScT61CY2R1CaaAdz7rruxpmGSyEszEBOF1qdlMBUg3PILh07ocimQxgjBaapDQQl4LgBiU/HbJcRRwIZCGoVcEsWRVmlaVxo5+/T37nnimgG466HnNy1ufyHFtKYxRzw7n0gxK//xrds5dPsG0XLkdzhveSUvouiQ3EvAHHHPJTA4BMtgBCO4IyEr/hQgx3Y3pBuHxJUGD56X5J6A4ITGGTS5irjxtVab33j2+PJHXrEGxPH5R+MkrqU2kmIktTFHvji/sm+FA0c3mCiMe863Wmjfy301SOqIgpgjmlHxZFhrOd/HuW7aWLGxYxPDJoZHJx1aIt6yTFoa4A5mZTkognnuFays0HBwZSl9+NhXXvzy4S+fv++qGfD69zy9Fdv0V1pErsv7mgYx8YYfOs3u/atoiXasANT8L12gaol86eRwz2Wt7GK9Oi+KeE4HdyesNsjRZXShQcVzIyV5UVkQcq/QlOg3hQ1NGaoEJufHwwefObb0+1csgu1LkwdUFU2l3M0AcPCuwyztXWWSprU+zjifDDSBVmcB8RI29253c0yNxi3X+CJ0zXpgeHyFtgkZM8lR93p+UD4GL52kg5nkaJaOEoQQfGG01P7ekX/e9meOLX30ygCI8WwucZYZkCoASjMUDty5Sau9Gm895S+1XxXMHbMaecsCWJx3s5IOmc+mhRFiNHsDiydHpOK8Ghi5glhxFMkfa5BHZ8tOm+QHpbTM7oIHWNqVHtv8p/G/PXvH4p9fFoDNd3x+K43jmqlianRpkBIalcNvvhMLTaZ26fVrxCsYSXPkO+etPFgTWJ1gjpti5ohqBsCMZhcsn9iND0J21ovzLtNr8XyIUhAwkTw8dYhkyriDhPxnRVgYDNJvAscuK4Jtm7ZSG0mT3ir3owPr7DlyICt8EbtYrqvjnfNaXqgIXq7Tlmt8SSdvDW8TNlG8VaxVll63Qlgdds5Xn1JpsWt36SYkLcJXRdEENcE07911WUG4/dCXxj99WQakNm5qUlwN1ZoCiptx8Lu/IzczpbGpL5WqIpd7M3bkuVh+c1PLlI+V9oZnlcTVWLh5yOJrl0hd1NnJAhNUsg6YFRaY9JTcqwDkHsKliORUG4Zi7wd++5IMGO4dnUiTSJxE0qQltRE3Y+P0bTRroxzxWaX3aTpY763FnGB1IMjC4Mnw0k57zJHXmAiNsX5mT3aUndGv9xXoVKNvsiPyeYF6ibpNo1+vHW7d+OLkxCUBWLp5Yzu1mfamuQNbXF/mhpO35T6/p/qxl/dqWfTEneBO8BxlT1URM1peBgSfGD5J3Qct3znClwc7I06vaFBZJ5l5VgGYgtAtFdTzdQUg9XYxfuySACwc2L96wxuOTu/Xljl473eSpEHNy0Q3zXfX3OR4ysIm6rj6VCBUy6BTqJ4SFhVXxZOirSLBGN2x0jmts9TvpUMqDKiptiPy/Yj3Iz+z3LnlkhrgItujY69h9fhrsrKWipqid9N4fUEtNA21wdGS70WVxLw4bx31iRmM2gWaKnvfsh8fNt1nzgKhfiEIoevfSt57J/54KGcl3SCV9+lvyPFLAiDOE2Z2twbp+nb3DIJJPuaqL9edURj5tKbU90x9R1JWTFfFa+ub8rWWfrnZHVg6OppqyGWiX++dUglKqXMvDZI7Ich0rwDQ2ylHzJdshIRPJvVfysdPUp6u0S/1uNdDS2ly8EL/Uu5ELQtipX6sjZV1OWSq7Nu6EdNpb2/9qPvMz8t1NaueBceLw15HbIHQj/7Ohv/SAHzpfcO/ue1D2980kVH2DlQyG6yjXBYOoUMFJ+e+mGUNKEXbk2OqeOdlLn+WjMVDCyzcskKK03ZBZ5y/GBCznjhCCNM2WQoILl1V7FIBwE0+fdlWOLl90k3OulNg7P1V6VXckiL9eu/JwUtnp9MSWFPAUzlLNGPvvQfQeBHq9523HiPs4sOM1zMWkY4BlQVysTSw8JXLAjAc2iOTl+Ssi2SnKnouID4VE+eCwUaKc7W5ccszgJdGyC0/t+e79iGLA1KaOthh5jPOXyL6s9alpshF6d/tA/7yZQ9Ebv3g+T9xs7d1LdTMVukv3i/UiueWLQteYYAnRaOXBkhpRg03veNwd1DSHZjYzuvovRnjCgC46Kxf1V+69/5Meqe8+WXPBIcj+/H2BXvGYXkHfJUMdebwPM/XMLrV4/J8b2ln5N1g/U03llF5GuHZ6z4DZsXvasx3JjA4H7ziM8HDv/hfPxwn6eNS4KuFIXQlM0deyFG30giZaQEgA2Epa4InY/XkGit3rO8QvB1TZe++32m+Qv9n7dO8W7au6puhm3/h3CO2rb/WTwWRWv58WgatnNJqzf06AOWx19XYtW+B9e85uDPnZ6jfP2Pog3Ed7BsM2OTdcu6qvxq7+WfP/byO4696EZjy/WRHsGCemxGtYpjTAM2nPWbOrj1D9p65CRtMO74+3S/GgrpfF+cbtnhQ/vEVfzd468+d+772m/Fjbra3+6V61GW5AfKy14R2Myw5u9Z2sX7PBtY0OxqdPgizAFQmmF8H5wNb/NTFnb+qL0cPf+jfD0xekF/3l9I73XyRrgvMYEzPAUrumzNcHbL3jTfhPeeNndHvpmW/cL9G+yPgAd53Ie2v6dvhw4+eO9Weiw+mcXq7tWmjdoOUbtDdkUZYvnUPK0fWulbBekPNLAAXsMCu2fGP8H7561f9HyQ2H/n6PZOxnrSJv01dgyBhsDxYWdwYHQnLC0ojLyAyrpOjWk6cVHXSp31TaRhJhvvVAVAdfZZF/vDlIj63uc1tbnOb29zmNre5zW1ucwP+G1ME77lSc/kUAAAAAElFTkSuQmCC"
-}, Yo = {
- ...Object.fromEntries(Jt.map((e) => [e.id, Jo[e.id] || e.icon])),
+}, Zo = {
+ ...Object.fromEntries(Yt.map((e) => [e.id, Xo[e.id] || e.icon])),
online: "rss",
smb: "network"
-}, Xo = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", Zo = {
+}, Qo = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", $o = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, Qo = {
- medium: Zo.medium,
+}, es = {
+ medium: $o.medium,
small: "size-8 rounded-lg p-0 text-body-medium"
-}, $o = {
+}, ts = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, es = "size-(--icon-inline) shrink-0", ts = {
+}, ns = "size-(--icon-inline) shrink-0", rs = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, ns = {
+}, is = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, rs = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function is(e = "compact") {
- return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${rs("star", "size-4")}</button></span>`;
+}, as = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function os(e = "compact") {
+ return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${as("star", "size-4")}</button></span>`;
}
-function as(e, t = "", n = e) {
- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${rs("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${B(n)}" value="${B(t)}" placeholder="${B(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
+function ss(e, t = "", n = e) {
+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${as("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
}
-function os({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? Zo[t] : Qo[t], s = n ? rs(n, r ? es : $o[t]) : "", c = r ? `<span class="${ts[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${Xo} ${o} ${ns[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+function cs({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? $o[t] : es[t], s = n ? as(n, r ? ns : ts[t]) : "", c = r ? `<span class="${rs[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${Qo} ${o} ${is[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var ss = {
+var ls = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -13056,68 +13063,68 @@ var ss = {
chevron: "size-3.5"
}
};
-function cs(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
- let a = ss[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${rs("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
+function us(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
+ let a = ls[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${as("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
}
-var ls = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", us = "flex min-w-0 flex-col gap-2", ds = "text-body-regular text-text-secondary", fs = "text-display-4-medium tabular-nums text-text-primary", ps = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function ms(e) {
- return `<div data-collection-summary="" class="${ls}"><div class="${us}"><span class="${ds}">${e}</span><strong class="${fs}"><span data-skeleton="count" aria-hidden="true" class="${ps}"></span></strong></div></div>`;
+var ds = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", fs = "flex min-w-0 flex-col gap-2", ps = "text-body-regular text-text-secondary", ms = "text-display-4-medium tabular-nums text-text-primary", hs = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function gs(e) {
+ return `<div data-collection-summary="" class="${ds}"><div class="${fs}"><span class="${ps}">${e}</span><strong class="${ms}"><span data-skeleton="count" aria-hidden="true" class="${hs}"></span></strong></div></div>`;
}
//#endregion
//#region src/ui-kit/markup.ts
-var hs = /* @__PURE__ */ new Set([
+var _s = /* @__PURE__ */ new Set([
"secondary",
"warning",
"error",
"success"
]);
-function gs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
- return `<details class="geist-note-details"><summary>${B(e)}</summary>
- <ul>${t.map((e) => `<li>${e.href ? `<a href="${B(e.href)}">${B(e.label || "")}</a>` : `<b>${B(e.label || "")}</b>`}<span>${B(e.note || "")}</span>${e.hint ? `<code>${B(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${B(n)}</p>` : ""}</details>`;
+function vs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
+ return `<details class="geist-note-details"><summary>${z(e)}</summary>
+ <ul>${t.map((e) => `<li>${e.href ? `<a href="${z(e.href)}">${z(e.label || "")}</a>` : `<b>${z(e.label || "")}</b>`}<span>${z(e.note || "")}</span>${e.hint ? `<code>${z(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${z(n)}</p>` : ""}</details>`;
}
-function _s(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
- let l = hs.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${B(s)}" data-note-action>${B(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${B(o)}</button>` : "";
- return `<div class="geist-note geist-note-${l}${r ? ` ${B(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>
- ${z(u)}<p>${n ? `<b>${B(n)}</b>` : ""}<span>${B(l === "error" ? en(e) : e)}</span></p>${f}${c ? gs(c) : ""}</div>`;
+function ys(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
+ let l = _s.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";
+ return `<div class="geist-note geist-note-${l}${r ? ` ${z(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>
+ ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? tn(e) : e)}</span></p>${f}${c ? vs(c) : ""}</div>`;
}
-function vs(e = "加载中") {
+function bs(e = "加载中") {
let t = Array.from({ length: 10 }, (e, t) => `<i aria-hidden="true" style="--spinner-angle:${t * 36}deg;--spinner-delay:${t * 100 - 900}ms"></i>`).join("");
- return `<span class="ui-geist-spinner" role="status" aria-label="${B(e)}">${t}</span>`;
+ return `<span class="ui-geist-spinner" role="status" aria-label="${z(e)}">${t}</span>`;
}
-var ys = "载入中";
-function bs(e = "正在处理", { className: t = "" } = {}) {
- return `<span class="ui-geist-loading${t ? ` ${B(t)}` : ""}" role="status">
+var xs = "载入中";
+function Ss(e = "正在处理", { className: t = "" } = {}) {
+ return `<span class="ui-geist-loading${t ? ` ${z(t)}` : ""}" role="status">
<span class="ui-geist-loading-dots" aria-hidden="true"><i></i><i></i><i></i></span>
- <span>${B(e)}</span></span>`;
+ <span>${z(e)}</span></span>`;
}
-function xs(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
+function Cs(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
let o = e.map(({ value: e, label: r, count: i, symbol: o }) => {
- let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${B(Number(i).toLocaleString())}</span>`;
- return `<button type="button" role="tab" ${n}="${B(e)}" aria-selected="${s}"${a ? ` aria-controls="${B(a)}"` : ""}>${o ? z(o) : ""}${B(r)}${c}</button>`;
+ let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${z(Number(i).toLocaleString())}</span>`;
+ return `<button type="button" role="tab" ${n}="${z(e)}" aria-selected="${s}"${a ? ` aria-controls="${z(a)}"` : ""}>${o ? R(o) : ""}${z(r)}${c}</button>`;
}).join("");
- return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${B(i)}` : ""}" role="tablist" aria-label="${B(r)}">${o}</div>`;
+ return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${z(i)}` : ""}" role="tablist" aria-label="${z(r)}">${o}</div>`;
}
-function Ss(e, t, n, { className: r = "", actions: i = "" } = {}) {
- return `<div class="ui-emptystate${r ? ` ${B(r)}` : ""}" data-geist-empty-state role="status">
- <div class="ui-es-icon" aria-hidden="true">${z(e)}</div>
- <div class="ui-es-copy"><h3>${B(t)}</h3><p>${B(n)}</p></div>
+function ws(e, t, n, { className: r = "", actions: i = "" } = {}) {
+ return `<div class="ui-emptystate${r ? ` ${z(r)}` : ""}" data-geist-empty-state role="status">
+ <div class="ui-es-icon" aria-hidden="true">${R(e)}</div>
+ <div class="ui-es-copy"><h3>${z(t)}</h3><p>${z(n)}</p></div>
${i ? `<div class="ui-es-actions">${i}</div>` : ""}
</div>`;
}
-function Cs(e = "") {
- return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${z("check")}</span></span>`;
+function Ts(e = "") {
+ return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${R("check")}</span></span>`;
}
//#endregion
//#region src/ui-kit/motion.ts
-function ws(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
- return `<span class="iconswap${r ? " " + B(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${B(a)}"` : ""}><span data-icon="a">${z(e, i)}</span><span data-icon="b">${z(t, i)}</span></span>`;
+function Es(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
+ return `<span class="iconswap${r ? " " + z(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${z(a)}"` : ""}><span data-icon="a">${R(e, i)}</span><span data-icon="b">${R(t, i)}</span></span>`;
}
-function Ts(e, t) {
+function Ds(e, t) {
let n = e && (e.matches?.("[data-icon-swap]") ? e : e.querySelector?.("[data-icon-swap]"));
return n && (n.dataset.iconState = t === "b" || t === !0 ? "b" : "a"), n;
}
-function Es(e, t, { html: n = !1 } = {}) {
+function Os(e, t, { html: n = !1 } = {}) {
if (!e) return;
let r = String(t ?? ""), i = () => {
n ? e.innerHTML = r : e.textContent = r;
@@ -13137,17 +13144,17 @@ function Es(e, t, { html: n = !1 } = {}) {
e.classList.contains("leaving") && (e.removeEventListener("transitionend", s), o());
}, 400);
}
-function Ds(e, t) {
+function ks(e, t) {
if (!e) return;
let n = String(t ?? ""), r = e.dataset.popCount;
if (r === n && e.firstElementChild) return;
e.dataset.popCount = n;
let i = -1;
- if (e.innerHTML = `<span class="digits">${[...n].map((e) => (/\d/.test(e) && (i += 1), `<span style="--digit-at:${Math.max(i, 0)}">${B(e)}</span>`)).join("")}</span>`, r === void 0 || r === n) return;
+ if (e.innerHTML = `<span class="digits">${[...n].map((e) => (/\d/.test(e) && (i += 1), `<span style="--digit-at:${Math.max(i, 0)}">${z(e)}</span>`)).join("")}</span>`, r === void 0 || r === n) return;
let a = e.firstElementChild;
a.getBoundingClientRect(), a.classList.add("popping");
}
-function Os(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
+function As(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
if (!e || !t || (t.querySelectorAll(":scope > .cleardissolve").forEach((e) => e.remove()), e.classList.remove("dissolving"), e.value = "", !n || !e.isConnected)) return () => {};
let i = e.getBoundingClientRect(), a = t.getBoundingClientRect();
if (!i.width) return () => {};
@@ -13174,14 +13181,14 @@ function Os(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r
};
return o.addEventListener("animationend", d), u = setTimeout(d, 1e3), d;
}
-var ks = /* @__PURE__ */ new Map();
-function As(e, t = "") {
+var js = /* @__PURE__ */ new Map();
+function Ms(e, t = "") {
e && e.querySelectorAll("[data-count-badge]").forEach((e) => {
- let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = ks.get(n);
- ks.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
+ let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = js.get(n);
+ js.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
});
}
-function js(e, t = "[data-reveal-line]") {
+function Ns(e, t = "[data-reveal-line]") {
if (!e) return;
let n = [...e.querySelectorAll(t)];
if (!n.length) return;
@@ -13197,12 +13204,12 @@ function js(e, t = "[data-reveal-line]") {
i.classList.contains("revealline") && (i.removeEventListener("transitionend", a), r());
}, 1200);
}
-var Ms = [
+var Ps = [
50,
100,
200
];
-function Ns({ mode: e = "cloud", pageSize: t = 100 } = {}) {
+function Fs({ mode: e = "cloud", pageSize: t = 100 } = {}) {
let n = Math.max(1, Math.min(200, Math.floor(t))), r = Array.from({ length: n }, (e, t) => `<span data-tag-skeleton-cell class="skeleton block rounded-lg" style="height:34px;width:${58 + (Math.imul(t + 1, 2654435761) >>> 0) % 153}px;max-width:100%"></span>`).join(""), i = Array.from({ length: Math.min(2, n) }, (e, t) => {
let r = Math.floor(n / 2) + (t === 0 ? n % 2 : 0);
return `<section class="min-w-0 bg-background-secondary-default rounded-2xl px-5 pt-4 pb-3"><span class="skeleton mb-2 block w-20" style="height:24px"></span><div class="index-tag-list gap-x-4 gap-y-0.5">${Array.from({ length: r }, () => "<span data-tag-skeleton-cell class=\"flex h-9 min-w-0 items-center gap-3 px-2.5\"><span class=\"skeleton w-32 max-w-full rounded-md\" style=\"height:16px\"></span><span class=\"skeleton ml-auto w-8 rounded-md\" style=\"height:12px\"></span></span>").join("")}</div></section>`;
@@ -13211,7 +13218,7 @@ function Ns({ mode: e = "cloud", pageSize: t = 100 } = {}) {
}
//#endregion
//#region src/ui-kit/skeleton.ts
-function Ps(e, t) {
+function Is(e, t) {
if (!e) return;
if (e.querySelector(".skeleton-awaiting") || !e.querySelector(".skeleton,[data-skeleton],.skeletoncard,.countskeleton") || !e.firstChild) {
t();
@@ -13229,7 +13236,7 @@ function Ps(e, t) {
n.isConnected && (n.removeEventListener("transitionend", i), r());
}, 1e3);
}
-function Fs(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
+function Ls(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
let c = (/* @__PURE__ */ new Set([
"panel",
"cards",
@@ -13238,23 +13245,23 @@ function Fs(e = "正在读取内容", { className: t = "", variant: n = "panel",
<span class="ui-skeletondashhero"><i></i><b></b></span>
<span class="ui-skeletondashpanel"><i></i><b></b><em></em></span>
<span class="ui-skeletondashpanel"><i></i><b></b><em></em></span>` : "<span class=\"skeleton\" style=\"width:38%\"></span>\n <span class=\"skeleton\" style=\"width:100%\"></span>\n <span class=\"skeleton\" style=\"width:100%\"></span>\n <span class=\"skeleton\" style=\"width:72%\"></span>";
- return `<div class="skeletonpanel skeleton-${c}${t ? ` ${B(t)}` : ""}"
- data-skeleton="${B(c)}${t ? `/${B(t)}` : ""}"${c === "cards" && i ? " data-fill=\"\"" : ""}
- role="status" aria-label="${B(e)}"><span class="sr-only">${B(e)}</span>
- <div${a ? ` class="${B(a)}"` : ""}${o ? ` data-size="${B(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;
-}
-function Is({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
- if (e === "tags") return Ns({ mode: n });
- let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" ? "company" : "people"}" data-layout="${B(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\">&nbsp;</span><span class=\"n skeleton\">&nbsp;</span></span>".repeat(12)}</div>`, i = "正在读取索引";
- return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${B(e)}/${B(t)}/${B(n)}" data-fill=""
+ return `<div class="skeletonpanel skeleton-${c}${t ? ` ${z(t)}` : ""}"
+ data-skeleton="${z(c)}${t ? `/${z(t)}` : ""}"${c === "cards" && i ? " data-fill=\"\"" : ""}
+ role="status" aria-label="${z(e)}"><span class="sr-only">${z(e)}</span>
+ <div${a ? ` class="${z(a)}"` : ""}${o ? ` data-size="${z(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;
+}
+function Rs({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
+ if (e === "tags") return Fs({ mode: n });
+ let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" ? "company" : "people"}" data-layout="${z(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\">&nbsp;</span><span class=\"n skeleton\">&nbsp;</span></span>".repeat(12)}</div>`, i = "正在读取索引";
+ return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${z(e)}/${z(t)}/${z(n)}" data-fill=""
role="status" aria-label="${i}"><span class="sr-only">${i}</span><section aria-hidden="true">${r}</section></div>`;
}
-var Ls = {
+var zs = {
av: () => "<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>",
brandpill: (e) => `<span class="brandpill brandskeleton" style="width:${e}px"><span class="mk"></span></span>`,
pill: (e) => `<span class="pill tagskeleton" style="width:${e}px"></span>`,
"filter-pill": (e) => `<span class="skeleton" style="width:${e}px;height:var(--control-h-compact);border-radius:8px;flex:none"></span>`
-}, Rs = {
+}, Bs = {
av: [0],
brandpill: [
132,
@@ -13297,41 +13304,41 @@ var Ls = {
76,
84
]
-}, zs = "[data-skeleton],[data-skeleton-tier],.countskeleton";
-function Bs(e) {
+}, Vs = "[data-skeleton],[data-skeleton-tier],.countskeleton";
+function Hs(e) {
if (!e) return;
- let t = [...e.matches?.(zs) ? [e] : [], ...e.querySelectorAll(zs)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
+ let t = [...e.matches?.(Vs) ? [e] : [], ...e.querySelectorAll(Vs)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
for (let e of n) e.dataset.skeletonReveal || (e.dataset.skeletonReveal = "pending", e.classList.add("skeleton-awaiting"), setTimeout(() => {
e.isConnected && e.dataset.skeletonReveal === "pending" && (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting"));
}, 180));
}
-var Vs = 64;
-function Hs(e) {
- e = e.filter((e) => e.row && Ls[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
+var Us = 64;
+function Ws(e) {
+ e = e.filter((e) => e.row && zs[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
...e,
start: e.row.children.length,
added: 0
}));
let t = (e, t) => {
- let n = Ls[e.kind], r = Rs[e.kind], i = "";
- for (let a = Math.min(Vs, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
+ let n = zs[e.kind], r = Bs[e.kind], i = "";
+ for (let a = Math.min(Us, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
e.row.insertAdjacentHTML("beforeend", i);
};
- for (let n of e) t(n, Rs[n.kind].length);
+ for (let n of e) t(n, Bs[n.kind].length);
for (let n = 0; n < 4; n++) {
- let n = e.filter((e) => e.added < Vs && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
+ let n = e.filter((e) => e.added < Us && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
let t = e.row.children[e.start].getBoundingClientRect(), n = e.row.lastElementChild.getBoundingClientRect(), r = Math.max(1, (n.right - t.left) / e.added);
return [e, Math.ceil((e.row.getBoundingClientRect().right - n.right) / r) + 1];
});
if (!n.length) break;
for (let [e, r] of n) t(e, Math.max(1, r));
}
- for (let t of e) Bs(t.row);
+ for (let t of e) Hs(t.row);
}
-function Us(e) {
+function Gs(e) {
if (!e) return;
let t = (t) => [...e.matches?.(t) ? [e] : [], ...e.querySelectorAll(t)];
- Hs(t("[data-skeleton-tier]").map((e) => ({
+ Ws(t("[data-skeleton-tier]").map((e) => ({
row: e,
kind: e.dataset.skeletonTier
})));
@@ -13344,38 +13351,38 @@ function Us(e) {
for (; e.children.length > s;) e.lastElementChild.remove();
for (; e.children.length < s;) e.appendChild(t.cloneNode(!0));
}
- Bs(e);
+ Hs(e);
}
//#endregion
//#region src/ui-kit/sweep-gate.ts
-var Ws = 1e4, Gs = /* @__PURE__ */ new WeakMap(), Ks = null;
-function qs() {
- return Ks || typeof IntersectionObserver != "function" || (Ks = new IntersectionObserver((e) => {
+var Ks = 1e4, qs = /* @__PURE__ */ new WeakMap(), Js = null;
+function Ys() {
+ return Js || typeof IntersectionObserver != "function" || (Js = new IntersectionObserver((e) => {
for (let { target: t, isIntersecting: n } of e) {
if (!t.isConnected) {
- Ys(t);
+ Zs(t);
continue;
}
let e = t;
- e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, Gs.has(e) || Gs.set(e, setTimeout(() => {
- Gs.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
- }, Ws))) : (e.dataset.sweep = "idle", clearTimeout(Gs.get(e)), Gs.delete(e)));
+ e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, qs.has(e) || qs.set(e, setTimeout(() => {
+ qs.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
+ }, Ks))) : (e.dataset.sweep = "idle", clearTimeout(qs.get(e)), qs.delete(e)));
}
- })), Ks;
+ })), Js;
}
-function Js(e) {
- qs()?.observe(e);
+function Xs(e) {
+ Ys()?.observe(e);
}
-function Ys(e) {
- Ks?.unobserve(e), clearTimeout(Gs.get(e)), Gs.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
+function Zs(e) {
+ Js?.unobserve(e), clearTimeout(qs.get(e)), qs.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
}
//#endregion
//#region src/ui-kit/scroll.ts
-var Xs = /* @__PURE__ */ new Map(), Zs, Qs = 240, $s = 50, ec = 70, tc = .55, nc = .35, rc = 480;
-function ic(e, t) {
- return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * tc / t + 1)) * t;
+var Qs = /* @__PURE__ */ new Map(), $s, ec = 240, tc = 50, nc = 70, rc = .55, ic = .35, ac = 480;
+function oc(e, t) {
+ return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * rc / t + 1)) * t;
}
-function ac(e) {
+function sc(e) {
let t = null, n = 0, r = () => typeof e.animate != "function" || matchMedia("(prefers-reduced-motion:reduce)").matches, i = () => {
t = null, n || e.classList.remove("edgepull");
}, a = (n, r) => {
@@ -13383,11 +13390,11 @@ function ac(e) {
};
return {
drag(i) {
- r() || (t?.cancel(), t = null, n = -ic(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
+ r() || (t?.cancel(), t = null, n = -oc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
},
release() {
if (!n) return;
- let t = n, r = yc();
+ let t = n, r = xc();
n = 0, e.style.removeProperty("--edge-pull"), a([{
"--edge-pull": `${t}px`,
easing: r.easing
@@ -13395,9 +13402,9 @@ function ac(e) {
},
kick(t) {
if (r() || n) return;
- let i = -ic(t * nc, Math.min(e.clientWidth, rc));
+ let i = -oc(t * ic, Math.min(e.clientWidth, ac));
if (!i) return;
- let o = yc();
+ let o = xc();
a([
{
"--edge-pull": "0px",
@@ -13413,10 +13420,10 @@ function ac(e) {
}
};
}
-function oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
+function cc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
if (!e) return;
n && (e.dataset.scrollGesture = "");
- let o = Xs.get(e);
+ let o = Qs.get(e);
if (o) return o.options.drag ||= t, o.options.fade ||= n, o.update(), o;
let s = {
drag: t,
@@ -13424,7 +13431,7 @@ function oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
wheel: r,
elastic: i,
dragIgnore: a
- }, c = new AbortController(), l = ac(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
+ }, c = new AbortController(), l = sc(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
e.dataset[t] !== n && (e.dataset[t] = n);
}, b = "", x = () => (b ||= getComputedStyle(e).overflowX, [
"auto",
@@ -13450,7 +13457,7 @@ function oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
cancelAnimationFrame(h), h = 0, v = 0;
}, O = (t) => {
let n = Math.min(Math.max(t - g, 0), 64);
- if (g = t, _ += (p - _) * (1 - Math.exp(-n / ec)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
+ if (g = t, _ += (p - _) * (1 - Math.exp(-n / nc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
else if (h = 0, v) {
let e = v;
v = 0, E(e);
@@ -13462,11 +13469,11 @@ function oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
if (t.defaultPrevented || !t.cancelable || Math.abs(t.deltaY) <= Math.abs(t.deltaX) || n <= 0 || !x()) return;
t.preventDefault();
let r = performance.now(), i = Math.abs(t.deltaY);
- r > f && (m = !1), f = r + Qs;
+ r > f && (m = !1), f = r + ec;
let a = h ? p : e.scrollLeft, o = a + t.deltaY;
p = Math.min(n, Math.max(0, o));
let c = o === p ? 0 : t.deltaY;
- i < $s || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
+ i < tc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
}, { passive: !1 }), T(e, "mousedown", (t) => {
d = 0, !(!s.drag || t.button !== 0 || e.scrollWidth - e.clientWidth <= 1) && (s.dragIgnore && (t.shiftKey || t.ctrlKey || t.metaKey || t.altKey || t.target.closest?.(s.dragIgnore)) || (t.stopPropagation(), D(), u = {
x: t.pageX,
@@ -13504,18 +13511,18 @@ function oc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
b = "", S();
},
destroy() {
- c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), Xs.delete(e), delete e.dataset.scrollGesture, e.style.cursor = "", Xs.size || (Zs?.disconnect(), Zs = null);
+ c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), Qs.delete(e), delete e.dataset.scrollGesture, e.style.cursor = "", Qs.size || ($s?.disconnect(), $s = null);
}
};
- return Xs.set(e, ee), Zs || (Zs = new MutationObserver(() => {
- for (let [e, t] of Xs) e.isConnected || t.destroy();
- }), Zs.observe(document.body, {
+ return Qs.set(e, ee), $s || ($s = new MutationObserver(() => {
+ for (let [e, t] of Qs) e.isConnected || t.destroy();
+ }), $s.observe(document.body, {
childList: !0,
subtree: !0
})), ee;
}
-function sc(e) {
- return oc(e, {
+function lc(e) {
+ return cc(e, {
drag: !0,
fade: !1,
wheel: !1,
@@ -13523,9 +13530,9 @@ function sc(e) {
dragIgnore: "a,button,input,select,textarea,label,[role=\"button\"],[role=\"checkbox\"],[role=\"slider\"],.react-aria-ColumnResizer"
});
}
-var cc = 24, lc = 2e3, uc = 3e3, dc = /* @__PURE__ */ new Map(), fc = /* @__PURE__ */ new Set(), pc = null, mc = null, hc = /* @__PURE__ */ new Map();
-function gc(e) {
- if (!e || dc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
+var uc = 24, dc = 2e3, fc = 3e3, pc = /* @__PURE__ */ new Map(), mc = /* @__PURE__ */ new Set(), hc = null, gc = null, _c = /* @__PURE__ */ new Map();
+function vc(e) {
+ if (!e || pc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let t = new AbortController(), n = e.scrollLeft, r = 1, i = 0, a = 0, o = !1, s = !1, c = !0, l = 0, u = -1, d = !1, f = (e, n, r) => e.addEventListener(n, r, {
passive: !0,
signal: t.signal
@@ -13537,11 +13544,11 @@ function gc(e) {
if (!m()) return;
a = requestAnimationFrame(h);
let o = i ? Math.min(t - i, 64) : 0;
- i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * cc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + lc)));
+ i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * uc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + dc)));
}, g = () => {
e.isConnected ? !a && m() && (i = 0, a = requestAnimationFrame(h)) : b();
}, _ = () => {
- l = performance.now() + uc;
+ l = performance.now() + fc;
};
f(e, "pointerenter", () => {
o = !0;
@@ -13561,41 +13568,41 @@ function gc(e) {
});
y.observe(e, { childList: !0 }), f(document, "visibilitychange", g), g();
function b() {
- cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), dc.delete(e), fc.delete(g), mc?.unobserve(e), hc.delete(e), dc.size || (pc?.disconnect(), pc = null, mc?.disconnect(), mc = null);
+ cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), pc.delete(e), mc.delete(g), gc?.unobserve(e), _c.delete(e), pc.size || (hc?.disconnect(), hc = null, gc?.disconnect(), gc = null);
}
- dc.set(e, b), fc.add(g), pc || (pc = new MutationObserver(() => fc.forEach((e) => e())), pc.observe(document.body, {
+ pc.set(e, b), mc.add(g), hc || (hc = new MutationObserver(() => mc.forEach((e) => e())), hc.observe(document.body, {
attributes: !0,
attributeFilter: ["data-detail-open", "data-wall-open"]
- })), typeof IntersectionObserver == "function" && (mc ??= new IntersectionObserver((e) => {
- for (let t of e) hc.get(t.target)?.(t.isIntersecting);
- }), hc.set(e, (e) => {
+ })), typeof IntersectionObserver == "function" && (gc ??= new IntersectionObserver((e) => {
+ for (let t of e) _c.get(t.target)?.(t.isIntersecting);
+ }), _c.set(e, (e) => {
c = e, g();
- }), mc.observe(e));
+ }), gc.observe(e));
}
-function _c(e) {
- dc.get(e)?.();
+function yc(e) {
+ pc.get(e)?.();
}
-var vc = null;
-function yc() {
- if (!vc) {
+var bc = null;
+function xc() {
+ if (!bc) {
let e = getComputedStyle(document.documentElement);
- vc = {
+ bc = {
easing: e.getPropertyValue("--spring-pane").trim() || "ease",
duration: parseFloat(e.getPropertyValue("--spring-pane-ms")) || 300
};
}
- return vc;
+ return bc;
}
-function bc(e, t, n, r = "x") {
- Sc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
+function Sc(e, t, n, r = "x") {
+ wc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
let i = r === "y" ? "h" : "w", a = r === "y" ? "y" : "x", o = `${n.x}px ${n.y}px`;
if (t && t[a] !== n[a] && !matchMedia("(prefers-reduced-motion:reduce)").matches) {
- let s = yc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
+ let s = xc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
duration: s.duration,
easing: s.easing,
fill: "none"
})];
- xc.set(e, c);
+ Cc.set(e, c);
let l = 1 + Math.min(Math.abs(n[a] - t[a]) / n[i], 1.5) * .12;
c.push(e.animate([
{
@@ -13618,15 +13625,15 @@ function bc(e, t, n, r = "x") {
}
e.style.translate = o;
}
-var xc = /* @__PURE__ */ new WeakMap();
-function Sc(e) {
- e && (xc.get(e)?.forEach((e) => e.cancel()), xc.delete(e));
+var Cc = /* @__PURE__ */ new WeakMap();
+function wc(e) {
+ e && (Cc.get(e)?.forEach((e) => e.cancel()), Cc.delete(e));
}
-var Cc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
-function wc(e = document, t = !0) {
+var Tc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
+function Ec(e = document, t = !0) {
let n = [...e instanceof HTMLElement ? [e] : [], ...t ? e.querySelectorAll("*") : []];
- n.filter((e) => e instanceof HTMLElement && e.matches(Cc)).forEach((e) => oc(e));
- let r = (e) => e.hasAttribute("data-horizontal-scroll") || Xs.has(e) && Xs.get(e).options.fade !== !1;
+ n.filter((e) => e instanceof HTMLElement && e.matches(Tc)).forEach((e) => cc(e));
+ let r = (e) => e.hasAttribute("data-horizontal-scroll") || Qs.has(e) && Qs.get(e).options.fade !== !1;
n.flatMap((e) => {
if (!(e instanceof HTMLElement) || e === document.body || e === document.documentElement || e.closest(".ovtrack,.ui-ov-edges,[data-skeleton],[inert]")) return [];
let t = r(e), n = t ? ["y"] : ["y", "x"];
@@ -13639,15 +13646,15 @@ function wc(e = document, t = !0) {
el: e,
axes: []
}] : [];
- }).forEach(({ el: e, axes: t }) => t.length ? go(e, { axes: t }) : po(e));
+ }).forEach(({ el: e, axes: t }) => t.length ? vo(e, { axes: t }) : ho(e));
}
-function Tc(e = document.body) {
+function Dc(e = document.body) {
let t = 0, n = /* @__PURE__ */ new Map(), r = (e) => !!e.closest(".ovtrack,.ui-ov-edges"), i = () => {
t = 0;
let e = [...n].filter(([e]) => e.isConnected);
n.clear();
- for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || wc(t, n);
- mo();
+ for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Ec(t, n);
+ go();
}, a = (e, a = !0) => {
r(e) || (n.set(e, (n.get(e) ?? !1) || a), t ||= requestAnimationFrame(i));
}, o = new MutationObserver((e) => {
@@ -13673,46 +13680,46 @@ function Tc(e = document.body) {
});
let s = () => a(e);
return window.addEventListener("resize", s, { passive: !0 }), a(e), () => {
- o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), ho(e), mo();
+ o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), _o(e), go();
};
}
//#endregion
//#region src/ui-kit/controls.ts
-function Ec(e, t = !0) {
+function Oc(e, t = !0) {
e && (t ? (e.setAttribute("aria-busy", "true"), e.setAttribute("aria-disabled", "true")) : (e.removeAttribute("aria-busy"), e.removeAttribute("aria-disabled")));
}
-var Dc = /* @__PURE__ */ new WeakSet();
-function Oc(e = document) {
- Dc.has(e) || (Dc.add(e), e.addEventListener("click", (t) => {
+var kc = /* @__PURE__ */ new WeakSet();
+function Ac(e = document) {
+ kc.has(e) || (kc.add(e), e.addEventListener("click", (t) => {
let n = t.target.closest?.("button[aria-busy=\"true\"],[role=\"button\"][aria-busy=\"true\"]");
n && e.contains(n) && (t.preventDefault(), t.stopImmediatePropagation());
}, !0));
}
-function kc(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
- let s = n.map(([t, n, a]) => `<label title="${B(n)}"><input type="radio" name="${B(e)}" value="${B(t)}" ${i}
- ${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? z(a) : "") + B(n) : z(a)}</span><span class="sr-only">${B(n)}</span></label>`).join("");
- return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${B(a)}` : ""}"><legend class="sr-only">${B(t)}</legend>${s}</fieldset>`;
+function jc(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
+ let s = n.map(([t, n, a]) => `<label title="${z(n)}"><input type="radio" name="${z(e)}" value="${z(t)}" ${i}
+ ${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? R(a) : "") + z(n) : R(a)}</span><span class="sr-only">${z(n)}</span></label>`).join("");
+ return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${z(a)}` : ""}"><legend class="sr-only">${z(t)}</legend>${s}</fieldset>`;
}
-function Ac(e, t, n) {
+function Mc(e, t, n) {
e?.querySelectorAll(`[${t}]`).forEach((e) => {
e.onchange = () => {
e.checked && n(e.value);
};
});
}
-var jc = 9;
-function Mc({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
+var Nc = 9;
+function Pc({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
let c = n > t ? (e - t) / (n - t) * 100 : 0, l = `${e}${a}`;
- return `<div class="ui-dial${s ? ` ${B(s)}` : ""}" ${o}>
- <div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${B(i)}"
- aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${B(l)}"
+ return `<div class="ui-dial${s ? ` ${z(s)}` : ""}" ${o}>
+ <div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${z(i)}"
+ aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${z(l)}"
data-dial-step="${r}" style="--dial-at:${c}%">
<span class="ui-dial-track" aria-hidden="true"><span class="ui-dial-fill"></span></span>
- <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(jc)}</span>
+ <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(Nc)}</span>
<span class="ui-dial-handle" aria-hidden="true"></span>
- </div><b class="ui-dial-value mono" data-dial-value>${B(l)}</b></div>`;
+ </div><b class="ui-dial-value mono" data-dial-value>${z(l)}</b></div>`;
}
-function Nc(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
+function Fc(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
let i = e.querySelector("[data-dial-slider]"), a = e.querySelector("[data-dial-value]"), o = e.querySelector(".ui-dial-track"), s = +i.getAttribute("aria-valuemin"), c = +i.getAttribute("aria-valuemax"), l = +i.dataset.dialStep || 1, u = +i.getAttribute("aria-valuenow"), d = (e) => Math.min(c, Math.max(s, Math.round(e / l) * l)), f = () => {
let e = `${u}${r}`;
i.style.setProperty("--dial-at", `${c > s ? (u - s) / (c - s) * 100 : 0}%`), i.setAttribute("aria-valuenow", String(u)), i.setAttribute("aria-valuetext", e), a && (a.textContent = e);
@@ -13760,9 +13767,9 @@ function Nc(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%"
}
};
}
-function Pc(e, t, n) {
+function Ic(e, t, n) {
n.classList.add("context-card"), n.setAttribute("popover", "manual"), n.setAttribute("role", "dialog"), n.tabIndex = -1, t.setAttribute("aria-haspopup", "dialog"), t.setAttribute("aria-controls", n.id);
- let r = Wo(e, t, n), i, a = () => {
+ let r = Ko(e, t, n), i, a = () => {
clearTimeout(i), r.setOpen(!1);
}, o = () => {
clearTimeout(i), i = setTimeout(() => {
@@ -13782,7 +13789,7 @@ function Pc(e, t, n) {
hide: a
};
}
-function Fc(e, { selector: t, attribute: n, onMove: r } = {}) {
+function Lc(e, { selector: t, attribute: n, onMove: r } = {}) {
let i = () => [...e.querySelectorAll(t)], a = () => i().forEach((e) => e.classList.remove("dragging", "drop-before", "drop-after")), o = null;
i().forEach((e) => {
let t = e.getAttribute(n);
@@ -13804,11 +13811,11 @@ function Fc(e, { selector: t, attribute: n, onMove: r } = {}) {
}
//#endregion
//#region src/ui-kit/modal.ts
-var Ic = 0;
-function Lc({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
+var Rc = 0;
+function zc({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-form-title-${++Ic}`;
+ let l = `geist-form-title-${++Rc}`;
c.setAttribute("aria-labelledby", l), c.innerHTML = `<form class="ui-geist-modal-form" novalidate>
<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">${t ? "<p></p>" : ""}
@@ -13832,31 +13839,31 @@ function Lc({ title: e, description: t = "", body: n = "", confirmLabel: r, canc
if (e.preventDefault(), !(m || d.disabled)) {
if (!a) p = { confirmed: !0 }, c.close();
else {
- f.innerHTML = "", m = !0, Ec(d);
+ f.innerHTML = "", m = !0, Oc(d);
try {
p = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- f.innerHTML = _s(e.message || "操作未完成", { variant: "error" }), Ec(d, !1);
+ f.innerHTML = ys(e.message || "操作未完成", { variant: "error" }), Oc(d, !1);
} finally {
m = !1;
}
}
}
- }, c.showModal(), go(c.querySelector(".ui-geist-modal-body")), Ao("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
+ }, c.showModal(), vo(c.querySelector(".ui-geist-modal-body")), Mo("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
dialog: c,
confirmButton: d,
done: h,
close: () => c.close()
};
}
-var Rc = 0;
-function zc({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
+var Bc = 0;
+function Vc({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-modal-title-${++Rc}`;
+ let l = `geist-modal-title-${++Bc}`;
c.setAttribute("aria-labelledby", l), c.innerHTML = `<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">
<p></p><div data-modal-error></div></div></div>
@@ -13891,56 +13898,56 @@ function zc({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i
if (!n) {
if (!a) t = { confirmed: !0 }, c.close();
else {
- p.innerHTML = "", n = !0, Ec(f);
+ p.innerHTML = "", n = !0, Oc(f);
try {
t = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- p.innerHTML = _s(e.message || "操作未完成", { variant: "error" }), Ec(f, !1);
+ p.innerHTML = ys(e.message || "操作未完成", { variant: "error" }), Oc(f, !1);
} finally {
n = !1;
}
}
}
- }, c.showModal(), go(c.querySelector(".ui-geist-modal-body")), go(u), Ao("pop"), (o ? d : f).focus();
+ }, c.showModal(), vo(c.querySelector(".ui-geist-modal-body")), vo(u), Mo("pop"), (o ? d : f).focus();
});
}
//#endregion
//#region src/onboarding/post-setup-tutorial.ts
-var Bc = "peach.post-setup-tutorial.v1", Vc = "peach.post-setup-tutorial-collapsed.v1", Hc = "peach.post-setup-tutorial-skipped.v1", Uc = (e) => {
+var Hc = "peach.post-setup-tutorial.v1", Uc = "peach.post-setup-tutorial-collapsed.v1", Wc = "peach.post-setup-tutorial-skipped.v1", Gc = (e) => {
try {
return localStorage.getItem(e);
} catch {
return null;
}
-}, Wc = (e, t) => {
+}, Kc = (e, t) => {
try {
localStorage.setItem(e, t);
} catch {}
-}, Gc = () => Uc("peach.post-setup-tutorial.v1") || "", Kc = (e) => Wc(Bc, e), qc = () => Uc(Vc) === "1", Jc = (e) => Wc(Vc, e ? "1" : "0"), Yc = () => {
+}, qc = () => Gc("peach.post-setup-tutorial.v1") || "", Jc = (e) => Kc(Hc, e), Yc = () => Gc(Uc) === "1", Xc = (e) => Kc(Uc, e ? "1" : "0"), Zc = () => {
try {
- let e = JSON.parse(Uc("peach.post-setup-tutorial-skipped.v1") || "[]");
+ let e = JSON.parse(Gc("peach.post-setup-tutorial-skipped.v1") || "[]");
return new Set(Array.isArray(e) ? e.filter((e) => typeof e == "string") : []);
} catch {
return /* @__PURE__ */ new Set();
}
-}, Xc = (e) => Wc(Hc, JSON.stringify([...e])), Zc = (e) => JSON.stringify(e.map((e) => [
+}, Qc = (e) => Kc(Wc, JSON.stringify([...e])), $c = (e) => JSON.stringify(e.map((e) => [
e.key,
e.done,
e.label,
e.description,
e.href
-])), Qc = 0, $c = () => ++Qc, el = (e) => e === Qc;
-function tl() {
- Xc(/* @__PURE__ */ new Set()), Jc(!1), Kc("pending");
+])), el = 0, tl = () => ++el, nl = (e) => e === el;
+function rl() {
+ Qc(/* @__PURE__ */ new Set()), Xc(!1), Jc("pending");
}
-var nl = (e) => `<article class="post-setup-notification post-setup-error">${e}
+var il = (e) => `<article class="post-setup-notification post-setup-error">${e}
<div><h2>暂时无法检查安装进度</h2><p>切换页面或重新打开后会再检查一次。</p>
<div class="post-setup-error-actions"><button class="geist-button" type="button" data-tutorial-dismiss>关闭</button>
- <button class="geist-button" type="button" data-tutorial-retry>立即重试</button></div></div></article>`, rl = () => window.devicePixelRatio || 1;
-function il(e) {
+ <button class="geist-button" type="button" data-tutorial-retry>立即重试</button></div></div></article>`, al = () => window.devicePixelRatio || 1;
+function ol(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -13959,17 +13966,17 @@ function il(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), il(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), ol(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = wa(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ea(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = ga({
+ let l = va({
cx: r,
cy: i,
faceW: a * c,
@@ -13978,13 +13985,13 @@ function il(e) {
}, {
w: n.width,
h: n.height
- }, rl());
+ }, al());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function al(e, t) {
- let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? ul(e) : 0;
+function sl(e, t) {
+ let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? fl(e) : 0;
if (e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), !n) return;
e.classList.remove("panel"), [
"--panel-aspect",
@@ -13996,58 +14003,58 @@ function al(e, t) {
"--cover-y"
].forEach((t) => e.style.removeProperty(t));
let i = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
- e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : cl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
+ e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : ul(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
let a = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- a("--cover-x", dl(e, "cx"), r / n), a("--cover-y", dl(e, "cy"), n / r), ol(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && sl(e);
+ a("--cover-x", pl(e, "cx"), r / n), a("--cover-y", pl(e, "cy"), n / r), cl(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && ll(e);
}
-function ol(e, t) {
+function cl(e, t) {
if (e.dataset.frame === "front" || e.dataset.coverLayout === "still") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (cl(e) ? Ia : Fa) * i), a = 0, o = r, s = i), !wa(e.naturalWidth, e.naturalHeight, r, i)) return;
- let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = La({
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (ul(e) ? Ra : La) * i), a = 0, o = r, s = i), !Ea(e.naturalWidth, e.naturalHeight, r, i)) return;
+ let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = za({
x0: n,
y0: a,
x1: o,
y1: s,
px: [r, i]
- }, t, cl(e) || u);
- d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && sl(e));
+ }, t, ul(e) || u);
+ d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && ll(e));
}
-function sl(e) {
+function ll(e) {
let t = (e.dataset.thumbSrc || e.currentSrc || e.src).replace(/"/g, "%22");
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${t}")`);
}
-function cl(e) {
+function ul(e) {
let t = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "", n = e.naturalWidth / e.naturalHeight;
return !/^FC2(?:-PPV)?-/i.test(t) && (e.dataset.wideSleeve === "1" || /^(CWPBD|SMBD)-/i.test(t)) && n >= 1.75 && n < 1.85;
}
-function ll(e) {
+function dl(e) {
let t = /[?&]thumb=([12])(?=&|$)/.exec(e.src)?.[1];
if (!t || !e.naturalWidth) return;
let { width: n, height: r } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * rl() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * al() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function ul(e) {
+function fl(e) {
let t = (e.closest(".pic,[data-media-pic]")?.style.getPropertyValue("--card-ratio").trim() || getComputedStyle(e).getPropertyValue("--card-ratio").trim()).split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function dl(e, t) {
+function pl(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var fl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", pl = /* @__PURE__ */ new WeakMap();
-function ml(e) {
- let t = e.matches(fl) ? [e] : e.querySelectorAll(fl);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), pl.set(e.parentElement, performance.now()), Js(e.parentElement));
+var ml = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", hl = /* @__PURE__ */ new WeakMap();
+function gl(e) {
+ let t = e.matches(ml) ? [e] : e.querySelectorAll(ml);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), hl.set(e.parentElement, performance.now()), Xs(e.parentElement));
}
-function hl(e) {
+function _l(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (Ys(t), performance.now() - (pl.get(t) ?? NaN) < 180) {
+ if (Zs(t), performance.now() - (hl.get(t) ?? NaN) < 180) {
t.classList.remove("imgwait");
return;
}
@@ -14057,91 +14064,91 @@ function hl(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function gl(e) {
+function vl(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? al(t) : (_l(t), il(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? sl(t) : (yl(t), ol(t)));
}
}
-function _l(e) {
+function yl(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let n = t.dataset.fitNative === "mark" ? Da(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
+ let n = t.dataset.fitNative === "mark" ? ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
if (t.dataset.nativeClamp = String(!!n), n) {
t.dataset.nativeSmall = "false", t.style.setProperty("--markw", n.width + "px"), t.style.setProperty("--markh", n.height + "px"), t.style.setProperty("--markbg", "none");
return;
}
- let { small: r, width: i, height: a } = Ta(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, rl());
+ let { small: r, width: i, height: a } = Da(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, al());
t.dataset.nativeSmall = String(r), t.style.setProperty("--markw", r ? i + "px" : "100%"), t.style.setProperty("--markh", r ? a + "px" : "100%");
let o = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", r ? `url("${o}")` : "none");
}
-function vl(e) {
+function bl(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- _l(e), e.dataset.facebox && il(e);
+ yl(e), e.dataset.facebox && ol(e);
});
}
-function yl(e, t) {
- for (let n of za(e, t)) al(n), ll(n);
+function xl(e, t) {
+ for (let n of Va(e, t)) sl(n), dl(n);
}
-var bl = !1;
-function xl() {
- bl || (bl = !0, document.addEventListener("load", (e) => {
+var Sl = !1;
+function Cl() {
+ Sl || (Sl = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (hl(t), _l(t), t.classList.contains("cover") ? (al(t), ll(t)) : t.dataset.facebox && il(t));
+ t instanceof HTMLImageElement && (_l(t), yl(t), t.classList.contains("cover") ? (sl(t), dl(t)) : t.dataset.facebox && ol(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (ml(e), gl(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (gl(e), vl(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && hl(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && _l(t);
}, !0));
}
//#endregion
//#region src/card-art/hover.ts
-var Sl = ".card,[data-media-card],[data-mix-card]", Cl = {
+var wl = ".card,[data-media-card],[data-mix-card]", Tl = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function wl(e) {
- Cl = e;
+function El(e) {
+ Tl = e;
}
-var Tl = () => !!window.__scrolling;
-function El(e = document, t = null) {
- e && e.querySelectorAll && (e.querySelectorAll(Sl).forEach((e) => {
+var Dl = () => !!window.__scrolling;
+function Ol(e = document, t = null) {
+ e && e.querySelectorAll && (e.querySelectorAll(wl).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(Sl) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(wl) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.ui-hvframes").forEach((e) => {
- e.closest(Sl) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(wl) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function Dl(e) {
- e._stopHover?.(), El(e);
+function kl(e) {
+ e._stopHover?.(), Ol(e);
}
-function Ol(e, t, n) {
+function Al(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function kl(e, t) {
+function jl(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), Cl.delaySeconds() && (Ol(e, "previewing", !0), i = setTimeout(() => {
- Cl.delaySeconds() && Ol(e, "longhover", !0);
- }, Cl.delaySeconds() * 1e3));
+ clearTimeout(i), Tl.delaySeconds() && (Al(e, "previewing", !0), i = setTimeout(() => {
+ Tl.delaySeconds() && Al(e, "longhover", !0);
+ }, Tl.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), Ol(e, "previewing", !1), Ol(e, "longhover", !1);
+ clearTimeout(i), Al(e, "previewing", !1), Al(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
let i, s = 4, c = null, l = !1;
e.addEventListener("mouseenter", () => {
- if (!(Cl.selecting() || Cl.censored())) {
+ if (!(Tl.selecting() || Tl.censored())) {
if (a(), !c) {
c = document.createElement("img"), c.className = "ui-hvframes", c.alt = "";
let e = c;
@@ -14168,9 +14175,9 @@ function kl(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- Cl.selecting() || Cl.censored() || Tl() || (s = setTimeout(() => {
- if (Tl() || Cl.censored()) return;
- El(document, e);
+ Tl.selecting() || Tl.censored() || Dl() || (s = setTimeout(() => {
+ if (Dl() || Tl.censored()) return;
+ Ol(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -14206,22 +14213,22 @@ function kl(e, t) {
}
//#endregion
//#region src/core/tags.ts
-var Al = (e) => e;
+var Ml = (e) => e;
//#endregion
//#region src/react/follow-feed/follow-helpers.ts
-function jl([e, t, , n, r]) {
- return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${Qa(r)}${$a(r)}>` : B(Mn(t, 2));
+function Nl([e, t, , n, r]) {
+ return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${eo(r)}${to(r)}>` : z(Pn(t, 2));
}
-function Ml(e) {
+function Pl(e) {
return {
...e,
- workMark: jl,
- tagLabel: Al
+ workMark: Nl,
+ tagLabel: Ml
};
}
//#endregion
//#region src/sidebar.ts
-var Nl = [
+var Fl = [
"",
"follow",
"jav",
@@ -14230,7 +14237,7 @@ var Nl = [
"studios",
"flagged",
"manage"
-], Pl = [
+], Il = [
"playlists",
"immerse",
"stats",
@@ -14239,12 +14246,12 @@ var Nl = [
"trash",
"follow-manage",
"quality"
-], Fl = /* @__PURE__ */ new Set([...Nl, ...Pl]), Il = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
-function Ll(e) {
- let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Il))].filter((e) => Fl.has(e));
- return n.length ? n : [...Nl];
+], Ll = /* @__PURE__ */ new Set([...Fl, ...Il]), Rl = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
+function zl(e) {
+ let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Rl))].filter((e) => Ll.has(e));
+ return n.length ? n : [...Fl];
}
-function Rl(e) {
+function Bl(e) {
return [
"/",
"/unseen",
@@ -14254,14 +14261,14 @@ function Rl(e) {
"/junk-files"
].includes(e) || /^\/assets\//.test(e) || /^\/(performers|studios|creators|series|agencies|tags)\/.+/.test(e);
}
-function zl(e) {
+function Vl(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-detail/follow-detail-actions.ts
-function Bl(e, t) {
+function Hl(e, t) {
return {
...t,
close: () => e.close(),
@@ -14274,72 +14281,72 @@ function Bl(e, t) {
...n,
tags: [...r]
};
- e.adoptView(i), e.rememberReturn(ca(i)), e.close();
+ e.adoptView(i), e.rememberReturn(ua(i)), e.close();
},
- present: (t) => e.drawer({ tags: zl([{ tags: t.tags || [] }]) })
+ present: (t) => e.drawer({ tags: Vl([{ tags: t.tags || [] }]) })
};
}
//#endregion
//#region src/shell/index.ts
-var W, Vl, Hl = null, Ul = /* @__PURE__ */ new Set(), Wl = /* @__PURE__ */ new Set(), Gl = !1, Kl = null, ql = null, Jl = "", Yl = "/", Xl = null, Zl = !1, Ql = !1, $l = null, eu = null, tu = null, nu = "/follow", ru = "", iu = null, au = !1, ou = 0, su = 0, cu = !1, lu = Math.floor(Math.random() * 4294967295), uu = 0, du = 0, fu = 0, pu = /* @__PURE__ */ new Set(), mu = 0;
-function hu(e) {
+var U, Ul, Wl = null, Gl = /* @__PURE__ */ new Set(), Kl = /* @__PURE__ */ new Set(), ql = !1, Jl = null, Yl = null, Xl = "", Zl = "/", Ql = null, $l = !1, eu = !1, tu = null, nu = null, ru = null, iu = "/follow", au = "", ou = null, su = !1, cu = 0, lu = 0, uu = !1, du = Math.floor(Math.random() * 4294967295), fu = 0, pu = 0, mu = 0, hu = /* @__PURE__ */ new Set(), gu = 0;
+function _u(e) {
let t = (t) => Object.prototype.hasOwnProperty.call(e, t);
- t("state") && (W = e.state), t("barsContext") && (Vl = e.barsContext), t("detailReturnBarsContext") && (Hl = e.detailReturnBarsContext), t("selectMode") && (Gl = e.selectMode), t("lastSelectedId") && (Kl = e.lastSelectedId), t("followLastSelectedId") && (ql = e.followLastSelectedId), t("selectSurface") && (Jl = e.selectSurface), t("detailReturnPath") && (Yl = e.detailReturnPath), t("detailOriginAnchor") && (Xl = e.detailOriginAnchor), t("detailOriginAbove") && (Zl = e.detailOriginAbove), t("detailReturnNeedsRestore") && (Ql = e.detailReturnNeedsRestore), t("activeQueue") && ($l = e.activeQueue), t("pendingQueueRoute") && (eu = e.pendingQueueRoute), t("presentedItem") && (tu = e.presentedItem), t("followDetailReturnPath") && (nu = e.followDetailReturnPath), t("configurationRequestedSection") && (ru = e.configurationRequestedSection), t("pageOpens") && (ou = e.pageOpens), t("queueOpens") && (su = e.queueOpens), t("entityJavLayout") && (cu = e.entityJavLayout), t("followDiscoverySeed") && (lu = e.followDiscoverySeed), t("followRevision") && (uu = e.followRevision), t("followScrollY") && (du = e.followScrollY), t("playlistsRevision") && (fu = e.playlistsRevision), t("runtimeConfigurable") && (iu = e.runtimeConfigurable), t("cameFromSetup") && (au = e.cameFromSetup), gu();
+ t("state") && (U = e.state), t("barsContext") && (Ul = e.barsContext), t("detailReturnBarsContext") && (Wl = e.detailReturnBarsContext), t("selectMode") && (ql = e.selectMode), t("lastSelectedId") && (Jl = e.lastSelectedId), t("followLastSelectedId") && (Yl = e.followLastSelectedId), t("selectSurface") && (Xl = e.selectSurface), t("detailReturnPath") && (Zl = e.detailReturnPath), t("detailOriginAnchor") && (Ql = e.detailOriginAnchor), t("detailOriginAbove") && ($l = e.detailOriginAbove), t("detailReturnNeedsRestore") && (eu = e.detailReturnNeedsRestore), t("activeQueue") && (tu = e.activeQueue), t("pendingQueueRoute") && (nu = e.pendingQueueRoute), t("presentedItem") && (ru = e.presentedItem), t("followDetailReturnPath") && (iu = e.followDetailReturnPath), t("configurationRequestedSection") && (au = e.configurationRequestedSection), t("pageOpens") && (cu = e.pageOpens), t("queueOpens") && (lu = e.queueOpens), t("entityJavLayout") && (uu = e.entityJavLayout), t("followDiscoverySeed") && (du = e.followDiscoverySeed), t("followRevision") && (fu = e.followRevision), t("followScrollY") && (pu = e.followScrollY), t("playlistsRevision") && (mu = e.playlistsRevision), t("runtimeConfigurable") && (ou = e.runtimeConfigurable), t("cameFromSetup") && (su = e.cameFromSetup), vu();
}
-function gu() {
- mu += 1;
- for (let e of [...pu]) e();
+function vu() {
+ gu += 1;
+ for (let e of [...hu]) e();
}
-function _u(e) {
- return pu.add(e), () => {
- pu.delete(e);
+function yu(e) {
+ return hu.add(e), () => {
+ hu.delete(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var vu = (0, F.createContext)({});
+var bu = (0, P.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function yu(e) {
- let t = (0, F.useRef)(null);
+function xu(e) {
+ let t = (0, P.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var bu = typeof window < "u" ? F.useLayoutEffect : F.useEffect, xu = /* @__PURE__ */ (0, F.createContext)(null);
+var Su = typeof window < "u" ? P.useLayoutEffect : P.useEffect, Cu = /* @__PURE__ */ (0, P.createContext)(null);
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function Su(e, t) {
+function wu(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function Cu(e, t) {
+function Tu(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var wu = (e, t, n) => n > t ? t : n < e ? e : n, Tu = {}, Eu = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Du = (e) => typeof e == "object" && !!e, Ou = (e) => /^0[^.\s]+$/u.test(e);
+var Eu = (e, t, n) => n > t ? t : n < e ? e : n, Du = {}, Ou = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), ku = (e) => typeof e == "object" && !!e, Au = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function ku(e) {
+function ju(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var Au = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ju = (...e) => e.reduce((e, t) => (n) => t(e(n))), Mu = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var Mu = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Nu = (...e) => e.reduce((e, t) => (n) => t(e(n))), Pu = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Nu = class {
+}, Fu = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return Su(this.subscriptions, e), () => this.remove(e);
+ return wu(this.subscriptions, e), () => this.remove(e);
}
remove(e) {
- Cu(this.subscriptions, e);
+ Tu(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -14357,110 +14364,110 @@ var Au = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ju = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Pu = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Fu = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Iu = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Lu = (e, t, n) => {
+}, Iu = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Lu = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Ru = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, zu = (e, t, n) => {
let r = t - e;
return ((n - e) % r + r) % r + e;
-}, Ru = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
+}, Bu = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
/*#__NO_SIDE_EFFECTS__*/
-function zu(e, t, n, r) {
- return e === t && n === r ? Au : (i) => {
+function Vu(e, t, n, r) {
+ return e === t && n === r ? Mu : (i) => {
let a = 0, o = 1, s = i;
for (let t = 0;; t++) {
s >= a && s <= o || (s = (a + o) / 2);
- let r = Ru(s, e, n) - i;
+ let r = Bu(s, e, n) - i;
if (r * r < 1e-28 || t === 40) break;
- r > 0 ? o = s : a = s, s -= r * 1e-7 / (Ru(s + 1e-7, e, n) - i - r);
+ r > 0 ? o = s : a = s, s -= r * 1e-7 / (Bu(s + 1e-7, e, n) - i - r);
}
- return Ru(s, t, r);
+ return Bu(s, t, r);
};
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var Bu = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Vu = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Hu = /*@__PURE__*/ zu(.33, 1.53, .69, .99), Uu = /*@__PURE__*/ Vu(Hu), Wu = /*@__PURE__*/ Bu(Uu), Gu = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Uu(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ku = (e) => 1 - Math.sin(Math.acos(e)), qu = /* @__PURE__ */ Vu(Ku), Ju = /* @__PURE__ */ Bu(Ku), Yu = /*@__PURE__*/ zu(.42, 0, 1, 1), Xu = /*@__PURE__*/ zu(0, 0, .58, 1), Zu = /*@__PURE__*/ zu(.42, 0, .58, 1), Qu = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
+var Hu = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Uu = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Wu = /*@__PURE__*/ Vu(.33, 1.53, .69, .99), Gu = /*@__PURE__*/ Uu(Wu), Ku = /*@__PURE__*/ Hu(Gu), qu = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Gu(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ju = (e) => 1 - Math.sin(Math.acos(e)), Yu = /* @__PURE__ */ Uu(Ju), Xu = /* @__PURE__ */ Hu(Ju), Zu = /*@__PURE__*/ Vu(.42, 0, 1, 1), Qu = /*@__PURE__*/ Vu(0, 0, .58, 1), $u = /*@__PURE__*/ Vu(.42, 0, .58, 1), ed = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
//#endregion
//#region node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
/*#__NO_SIDE_EFFECTS__*/
-function $u(e, t) {
- return /* @__PURE__ */ Qu(e) ? e[Lu(0, e.length, t)] : e;
+function td(e, t) {
+ return /* @__PURE__ */ ed(e) ? e[zu(0, e.length, t)] : e;
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
-var ed = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", td = {
- linear: Au,
- easeIn: Yu,
- easeInOut: Zu,
- easeOut: Xu,
- circIn: Ku,
- circInOut: Ju,
- circOut: qu,
- backIn: Uu,
- backInOut: Wu,
- backOut: Hu,
- anticipate: Gu
-}, nd = (e) => typeof e == "string", rd = (e) => {
- if (/* @__PURE__ */ ed(e)) {
+var nd = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", rd = {
+ linear: Mu,
+ easeIn: Zu,
+ easeInOut: $u,
+ easeOut: Qu,
+ circIn: Ju,
+ circInOut: Xu,
+ circOut: Yu,
+ backIn: Gu,
+ backInOut: Ku,
+ backOut: Wu,
+ anticipate: qu
+}, id = (e) => typeof e == "string", ad = (e) => {
+ if (/* @__PURE__ */ nd(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ zu(t, n, r, i);
+ return /* @__PURE__ */ Vu(t, n, r, i);
}
- return nd(e) ? (td[e], `${e}`, td[e]) : e;
-}, id = {
+ return id(e) ? (rd[e], `${e}`, rd[e]) : e;
+}, od = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, ad;
-function od() {
- ad = void 0;
+}, sd;
+function cd() {
+ sd = void 0;
}
-var sd = {
- now: () => (ad === void 0 && sd.set(id.isProcessing || Tu.useManualTiming ? id.timestamp : performance.now()), ad),
+var ld = {
+ now: () => (sd === void 0 && ld.set(od.isProcessing || Du.useManualTiming ? od.timestamp : performance.now()), sd),
set: (e) => {
- ad = e, queueMicrotask(od);
+ sd = e, queueMicrotask(cd);
}
-}, cd = (e) => Math.round(e * 1e5) / 1e5, ld = (e) => (t) => typeof t == "string" && t.startsWith(e), ud = /*@__PURE__*/ ld("--"), dd = /*@__PURE__*/ ld("var(--"), fd = (e) => dd(e) ? pd.test(e.split("/*")[0].trim()) : !1, pd = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function md(e) {
+}, ud = (e) => Math.round(e * 1e5) / 1e5, dd = (e) => (t) => typeof t == "string" && t.startsWith(e), fd = /*@__PURE__*/ dd("--"), pd = /*@__PURE__*/ dd("var(--"), md = (e) => pd(e) ? hd.test(e.split("/*")[0].trim()) : !1, hd = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function gd(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var hd = {
+var _d = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, gd = {
- ...hd,
- transform: (e) => wu(0, 1, e)
-}, _d = {
- ...hd,
+}, vd = {
+ ..._d,
+ transform: (e) => Eu(0, 1, e)
+}, yd = {
+ ..._d,
default: 1
-}, vd = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, bd = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function yd(e) {
+function xd(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var bd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, xd = (e, t) => (n) => !!(typeof n == "string" && bd.test(n) && n.startsWith(e) || t && !yd(n) && Object.prototype.hasOwnProperty.call(n, t)), Sd = (e, t, n) => (r) => {
+var Sd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Cd = (e, t) => (n) => !!(typeof n == "string" && Sd.test(n) && n.startsWith(e) || t && !xd(n) && Object.prototype.hasOwnProperty.call(n, t)), wd = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(vd);
+ let [i, a, o, s] = r.match(bd);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Cd = (e) => wu(0, 255, e), wd = {
- ...hd,
- transform: (e) => Math.round(Cd(e))
-}, Td = {
- test: /*@__PURE__*/ xd("rgb", "red"),
- parse: /*@__PURE__*/ Sd("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + wd.transform(e) + ", " + wd.transform(t) + ", " + wd.transform(n) + ", " + cd(gd.transform(r)) + ")"
+}, Td = (e) => Eu(0, 255, e), Ed = {
+ ..._d,
+ transform: (e) => Math.round(Td(e))
+}, Dd = {
+ test: /*@__PURE__*/ Cd("rgb", "red"),
+ parse: /*@__PURE__*/ wd("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Ed.transform(e) + ", " + Ed.transform(t) + ", " + Ed.transform(n) + ", " + ud(vd.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function Ed(e) {
+function Od(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -14469,40 +14476,40 @@ function Ed(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var Dd = {
- test: /*@__PURE__*/ xd("#"),
- parse: Ed,
- transform: Td.transform
-}, Od = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var kd = {
+ test: /*@__PURE__*/ Cd("#"),
+ parse: Od,
+ transform: Dd.transform
+}, Ad = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), kd = /*@__PURE__*/ Od("deg"), Ad = /*@__PURE__*/ Od("%"), jd = /*@__PURE__*/ Od("px"), Md = /*@__PURE__*/ Od("vh"), Nd = /*@__PURE__*/ Od("vw"), Pd = {
- ...Ad,
- parse: (e) => Ad.parse(e) / 100,
- transform: (e) => Ad.transform(e * 100)
-}, Fd = {
- test: /*@__PURE__*/ xd("hsl", "hue"),
- parse: /*@__PURE__*/ Sd("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ad.transform(cd(t)) + ", " + Ad.transform(cd(n)) + ", " + cd(gd.transform(r)) + ")"
+}), jd = /*@__PURE__*/ Ad("deg"), Md = /*@__PURE__*/ Ad("%"), W = /*@__PURE__*/ Ad("px"), Nd = /*@__PURE__*/ Ad("vh"), Pd = /*@__PURE__*/ Ad("vw"), Fd = {
+ ...Md,
+ parse: (e) => Md.parse(e) / 100,
+ transform: (e) => Md.transform(e * 100)
}, Id = {
- test: (e) => Td.test(e) || Dd.test(e) || Fd.test(e),
- parse: (e) => Td.test(e) ? Td.parse(e) : Fd.test(e) ? Fd.parse(e) : Dd.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Td.transform(e) : Fd.transform(e),
+ test: /*@__PURE__*/ Cd("hsl", "hue"),
+ parse: /*@__PURE__*/ wd("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Md.transform(ud(t)) + ", " + Md.transform(ud(n)) + ", " + ud(vd.transform(r)) + ")"
+}, Ld = {
+ test: (e) => Dd.test(e) || kd.test(e) || Id.test(e),
+ parse: (e) => Dd.test(e) ? Dd.parse(e) : Id.test(e) ? Id.parse(e) : kd.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Dd.transform(e) : Id.transform(e),
getAnimatableNone: (e) => {
- let t = Id.parse(e);
- return t.alpha = 0, Id.transform(t);
+ let t = Ld.parse(e);
+ return t.alpha = 0, Ld.transform(t);
}
-}, Ld = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Rd = /*@__PURE__*/ new RegExp(vd.source), zd = /*@__PURE__*/ new RegExp(Ld.source, "i");
-function Bd(e) {
- return isNaN(e) && typeof e == "string" && (Rd.test(e) || zd.test(e));
+}, Rd = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, zd = /*@__PURE__*/ new RegExp(bd.source), Bd = /*@__PURE__*/ new RegExp(Rd.source, "i");
+function Vd(e) {
+ return isNaN(e) && typeof e == "string" && (zd.test(e) || Bd.test(e));
}
-var Vd = "number", Hd = "color", Ud = "var", Wd = "var(", Gd = "${}", Kd = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
-function qd(e) {
+var Hd = "number", Ud = "color", Wd = "var", Gd = "var(", Kd = "${}", qd = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
+function Jd(e) {
let t = e.toString();
- return Rd.test(t) || zd.test(t);
+ return zd.test(t) || Bd.test(t);
}
-function Jd(e) {
+function Yd(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -14510,51 +14517,51 @@ function Jd(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(Kd, (e) => (Id.test(e) ? (r.color.push(a), i.push(Hd), n.push(Id.parse(e))) : e.startsWith(Wd) ? (r.var.push(a), i.push(Ud), n.push(e)) : (r.number.push(a), i.push(Vd), n.push(parseFloat(e))), ++a, Gd)).split(Gd),
+ split: t.replace(qd, (e) => (Ld.test(e) ? (r.color.push(a), i.push(Ud), n.push(Ld.parse(e))) : e.startsWith(Gd) ? (r.var.push(a), i.push(Wd), n.push(e)) : (r.number.push(a), i.push(Hd), n.push(parseFloat(e))), ++a, Kd)).split(Kd),
indexes: r,
types: i
};
}
-function Yd(e) {
- return Jd(e).values;
+function Xd(e) {
+ return Yd(e).values;
}
-function Xd({ split: e, types: t }) {
+function Zd({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Vd ? cd(r[a]) : e === Hd ? Id.transform(r[a]) : r[a];
+ i += e === Hd ? ud(r[a]) : e === Ud ? Ld.transform(r[a]) : r[a];
}
return i;
};
}
-function Zd(e) {
- return Xd(Jd(e));
+function Qd(e) {
+ return Zd(Yd(e));
}
-var Qd = (e) => typeof e == "number" ? 0 : Id.test(e) ? Id.getAnimatableNone(e) : e, $d = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Qd(e);
-function ef(e) {
- let t = Jd(e);
- return Xd(t)(t.values.map((e, n) => $d(e, t.split[n])));
+var $d = (e) => typeof e == "number" ? 0 : Ld.test(e) ? Ld.getAnimatableNone(e) : e, ef = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : $d(e);
+function tf(e) {
+ let t = Yd(e);
+ return Zd(t)(t.values.map((e, n) => ef(e, t.split[n])));
}
-var tf = {
- test: Bd,
- parse: Yd,
- createTransformer: Zd,
- getAnimatableNone: ef
+var nf = {
+ test: Vd,
+ parse: Xd,
+ createTransformer: Qd,
+ getAnimatableNone: tf
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function nf(e, t, n) {
+function rf(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function rf({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function af({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = nf(s, r, e + 1 / 3), a = nf(s, r, e), o = nf(s, r, e - 1 / 3);
+ i = rf(s, r, e + 1 / 3), a = rf(s, r, e), o = rf(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -14565,61 +14572,61 @@ function rf({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function af(e, t) {
+function of(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var of = (e, t, n) => e + (t - e) * n, sf = (e, t, n) => {
+var sf = (e, t, n) => e + (t - e) * n, cf = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, cf = [
+}, lf = [
+ kd,
Dd,
- Td,
- Fd
-], lf = (e) => cf.find((t) => t.test(e));
-function uf(e) {
- let t = lf(e);
+ Id
+], uf = (e) => lf.find((t) => t.test(e));
+function df(e) {
+ let t = uf(e);
if (!t) return `${e}`, !1;
let n = t.parse(e);
- return t === Fd && (n = rf(n)), n;
+ return t === Id && (n = af(n)), n;
}
-var df = (e, t) => {
- let n = uf(e), r = uf(t);
- if (!n || !r) return af(e, t);
+var ff = (e, t) => {
+ let n = df(e), r = df(t);
+ if (!n || !r) return of(e, t);
let i = { ...n };
- return (e) => (i.red = sf(n.red, r.red, e), i.green = sf(n.green, r.green, e), i.blue = sf(n.blue, r.blue, e), i.alpha = of(n.alpha, r.alpha, e), Td.transform(i));
-}, ff = /* @__PURE__ */ new Set(["none", "hidden"]);
-function pf(e, t) {
- return ff.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = cf(n.red, r.red, e), i.green = cf(n.green, r.green, e), i.blue = cf(n.blue, r.blue, e), i.alpha = sf(n.alpha, r.alpha, e), Dd.transform(i));
+}, pf = /* @__PURE__ */ new Set(["none", "hidden"]);
+function mf(e, t) {
+ return pf.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function mf(e, t) {
- return (n) => of(e, t, n);
+function hf(e, t) {
+ return (n) => sf(e, t, n);
}
-function hf(e) {
- return typeof e == "number" ? mf : typeof e == "string" ? fd(e) ? af : Id.test(e) ? df : yf : Array.isArray(e) ? gf : typeof e == "object" ? Id.test(e) ? df : _f : af;
+function gf(e) {
+ return typeof e == "number" ? hf : typeof e == "string" ? md(e) ? of : Ld.test(e) ? ff : bf : Array.isArray(e) ? _f : typeof e == "object" ? Ld.test(e) ? ff : vf : of;
}
-function gf(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => hf(e)(e, t[n]));
+function _f(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => gf(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function _f(e, t) {
+function vf(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = hf(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = gf(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function vf(e, t) {
+function yf(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -14631,29 +14638,29 @@ function vf(e, t) {
}
return n;
}
-var yf = (e, t) => {
- let n = tf.createTransformer(t), r = Jd(e), i = Jd(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? ff.has(e) && !i.values.length || ff.has(t) && !r.values.length ? pf(e, t) : ju(gf(vf(r, i), i.values), n) : (`${e}${t}`, af(e, t));
-}, bf = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function xf(e, t) {
- let n = bf.exec(e);
+var bf = (e, t) => {
+ let n = nf.createTransformer(t), r = Yd(e), i = Yd(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? pf.has(e) && !i.values.length || pf.has(t) && !r.values.length ? mf(e, t) : Nu(_f(yf(r, i), i.values), n) : (`${e}${t}`, of(e, t));
+}, xf = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function Sf(e, t) {
+ let n = xf.exec(e);
if (!n) return;
- let r = bf.exec(t);
+ let r = xf.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => cd(of(a, o, e)) + i;
+ return (e) => ud(sf(a, o, e)) + i;
}
-function Sf(e, t, n) {
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return of(e, t, n);
+function Cf(e, t, n) {
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return sf(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = xf(e, t);
+ let n = Sf(e, t);
if (n) return n;
}
- return hf(e)(e, t);
+ return gf(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/order.mjs
-var Cf = [
+var wf = [
"setup",
"read",
"resolveKeyframes",
@@ -14665,7 +14672,7 @@ var Cf = [
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function wf(e) {
+function Tf(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new Set(), o = {
delta: 0,
timestamp: 0,
@@ -14696,25 +14703,25 @@ function wf(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var Tf = 40;
-function Ef(e, t, n = {
+var Ef = 40;
+function Df(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = Cf.reduce((e, t) => (e[t] = wf(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = Tu.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, Tf), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ let r = !1, i = !0, a = () => r = !0, o = wf.reduce((e, t) => (e[t] = Tf(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = Du.useManualTiming, o = a ? n.timestamp : performance.now();
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, Ef), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: Cf.reduce((e, t) => {
+ schedule: wf.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < Cf.length; t++) o[Cf[t]].cancel(e);
+ for (let t = 0; t < wf.length; t++) o[wf[t]].cancel(e);
},
state: n,
steps: o
@@ -14722,40 +14729,40 @@ function Ef(e, t, n = {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: Df, cancel: Of, steps: kf } = /* @__PURE__ */ Ef(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Au, !0, id), Af = (e) => {
+var { schedule: Of, cancel: kf, steps: Af } = /* @__PURE__ */ Df(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Mu, !0, od), jf = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => Df.update(t, e),
- stop: () => Of(t),
- now: () => id.isProcessing ? id.timestamp : sd.now()
+ start: (e = !0) => Of.update(t, e),
+ stop: () => kf(t),
+ now: () => od.isProcessing ? od.timestamp : ld.now()
};
-}, jf = (e, t, n = 10) => {
+}, Mf = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, Mf = 2e4;
-function Nf(e, t = 50, n = Mf, r) {
+}, Nf = 2e4;
+function Pf(e, t = 50, n = Nf, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function Pf(e, t = 100, n) {
+function Ff(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(Nf(o), Mf);
+ }), s = Math.min(Pf(o), Nf);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
- duration: /* @__PURE__ */ Fu(s)
+ duration: /* @__PURE__ */ Lu(s)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Ff = {
+var If = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -14773,63 +14780,63 @@ var Ff = {
minDuration: .01,
maxDuration: 10,
minDamping: .05
-}, If = (e) => e < 0 ? 1 / Math.max(1 + e, Ff.minDamping) : Math.max(1 - e, Ff.minDamping);
-function Lf(e, t) {
+}, Lf = (e) => e < 0 ? 1 / Math.max(1 + e, If.minDamping) : Math.max(1 - e, If.minDamping);
+function Rf(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Bf((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Vf((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Rf(e, t) {
+function zf(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var zf = 12;
-function Bf(e, t, n) {
+var Bf = 12;
+function Vf(e, t, n) {
let r = n;
- for (let n = 1; n < zf; n++) r -= e(r) / t(r);
+ for (let n = 1; n < Bf; n++) r -= e(r) / t(r);
return r;
}
-var Vf = .001;
-function Hf({ duration: e = Ff.duration, bounce: t = Ff.bounce }) {
+var Hf = .001;
+function Uf({ duration: e = If.duration, bounce: t = If.bounce }) {
let n, r;
- Ff.maxDuration;
- let i = If(t);
- e = wu(Ff.minDuration, Ff.maxDuration, /* @__PURE__ */ Fu(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Rf(t, i), o = Math.exp(-r);
- return Vf - n / a * o;
+ If.maxDuration;
+ let i = Lf(t);
+ e = Eu(If.minDuration, If.maxDuration, /* @__PURE__ */ Lu(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = zf(t, i), o = Math.exp(-r);
+ return Hf - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Rf(t * t, i);
- return (-n(t) + Vf > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = zf(t * t, i);
+ return (-n(t) + Hf > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Bf(n, r, a), s = o * Lf(i, o * e), c = s * s;
+ let a = 5 / e, o = Vf(n, r, a), s = o * Rf(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
- duration: /* @__PURE__ */ Pu(e)
+ duration: /* @__PURE__ */ Iu(e)
};
}
-var Uf = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Wf(e, t) {
- if (Uf(e, t)) return e;
+var Wf = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Gf(e, t) {
+ if (Wf(e, t)) return e;
}
-function Gf(e) {
- let t = Wf(e.stiffness), n = Wf(e.damping, !0), r = Wf(e.mass), i = {
+function Kf(e) {
+ let t = Gf(e.stiffness), n = Gf(e.damping, !0), r = Gf(e.mass), i = {
...e,
- stiffness: t ?? Ff.stiffness,
- damping: n ?? Ff.damping,
- mass: r ?? Ff.mass,
+ stiffness: t ?? If.stiffness,
+ damping: n ?? If.damping,
+ mass: r ?? If.mass,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = If(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Lf(t, 2 * Math.PI / 1.2);
+ let t = Lf(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Rf(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, Hf(i)), i.isResolvedFromDuration = !0;
- (!Uf(i.stiffness) || !Uf(i.damping, !0)) && (i.stiffness = Ff.stiffness, i.damping = Ff.damping);
+ } else Object.assign(i, Uf(i)), i.isResolvedFromDuration = !0;
+ (!Wf(i.stiffness) || !Wf(i.damping, !0)) && (i.stiffness = If.stiffness, i.damping = If.damping);
}
return i;
}
-function Kf(e = Ff.visualDuration, t = Ff.bounce) {
+function qf(e = If.visualDuration, t = If.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -14837,7 +14844,7 @@ function Kf(e = Ff.visualDuration, t = Ff.bounce) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = Gf({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Fu(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Fu(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = Kf({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Lu(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Lu(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -14845,12 +14852,12 @@ function Kf(e = Ff.visualDuration, t = Ff.bounce) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? Ff.restSpeed.granular : Ff.restSpeed.default), g.restDelta = n.restDelta || (e ? Ff.restDelta.granular : Ff.restDelta.default);
+ g.restSpeed = n.restSpeed || (e ? If.restSpeed.granular : If.restSpeed.default), g.restDelta = n.restDelta || (e ? If.restDelta.granular : If.restDelta.default);
};
_();
let v, y, b;
if (p < 1) {
- let e = Rf(m, p), t = {
+ let e = zf(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -14888,31 +14895,31 @@ function Kf(e = Ff.visualDuration, t = Ff.bounce) {
retarget: (e, t) => {
g.target = e[e.length - 1], g.delta = g.target - e[0], g.velocity = f(t), n.restSpeed && n.restDelta || _(), S.calculatedDuration = x, a.done = !1, b();
},
- velocity: (e) => /* @__PURE__ */ Pu(y(e)),
+ velocity: (e) => /* @__PURE__ */ Iu(y(e)),
next: (e) => {
let t = v(e);
if (u) a.done = e >= l;
else {
- let n = /* @__PURE__ */ Pu(y(e));
+ let n = /* @__PURE__ */ Iu(y(e));
a.done = Math.abs(n) <= g.restSpeed && Math.abs(g.target - t) <= g.restDelta;
}
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(Nf(S), Mf), t = jf((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(Pf(S), Nf), t = Mf((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-Kf.applyToOptions = (e) => {
- let t = Pf(e, 100, Kf);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Pu(t.duration), e.type = "keyframes", e;
+qf.applyToOptions = (e) => {
+ let t = Ff(e, 100, qf);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Iu(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function qf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Jf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -14922,7 +14929,7 @@ function qf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : _ + t;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Kf({
+ p(f.value) && (b = e, x = qf({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -14941,67 +14948,67 @@ function qf({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Jf(e, t, n) {
- let r = [], i = n || Tu.mix || Sf, a = e.length - 1;
+function Yf(e, t, n) {
+ let r = [], i = n || Du.mix || Cf, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = ju(Array.isArray(t) ? t[n] || Au : t, a)), r.push(a);
+ t && (a = Nu(Array.isArray(t) ? t[n] || Mu : t, a)), r.push(a);
}
return r;
}
-function Yf(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Xf(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Jf(t, r, i), c = s.length, l = (n) => {
+ let s = Yf(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Mu(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Pu(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(wu(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Eu(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Xf(e, t) {
+function Zf(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Mu(0, t, r);
- e.push(of(n, 1, i));
+ let i = /* @__PURE__ */ Pu(0, t, r);
+ e.push(sf(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Zf(e) {
+function Qf(e) {
let t = [0];
- return Xf(t, e.length - 1), t;
+ return Zf(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Qf(e, t) {
+function $f(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function $f(e, t) {
- return e.map(() => t || Zu).splice(0, e.length - 1);
+function ep(e, t) {
+ return e.map(() => t || $u).splice(0, e.length - 1);
}
-function ep({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ Qu(r) ? r.map(rd) : rd(r) || Zu, a = {
+function tp({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ ed(r) ? r.map(ad) : ad(r) || $u, a = {
done: !1,
value: t[0]
};
if (t.length === 2 && !Array.isArray(i) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, o = n === r ? void 0 : (Tu.mix || Sf)(n, r);
+ let [n, r] = t, o = n === r ? void 0 : (Du.mix || Cf)(n, r);
return {
calculatedDuration: e,
- next: (t) => (a.value = o ? o(i(e > 0 ? wu(0, 1, t / e) : 1)) : r, a.done = t >= e, a)
+ next: (t) => (a.value = o ? o(i(e > 0 ? Eu(0, 1, t / e) : 1)) : r, a.done = t >= e, a)
};
}
- let o = Yf(Qf(n && n.length === t.length ? n : Zf(t), e), t, { ease: Array.isArray(i) ? i : $f(t, i) });
+ let o = Xf($f(n && n.length === t.length ? n : Qf(t), e), t, { ease: Array.isArray(i) ? i : ep(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -15009,52 +15016,52 @@ function ep({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var tp = 5;
-function np(e, t, n) {
- let r = Math.max(t - tp, 0);
- return /* @__PURE__ */ Iu(n - e(r), t - r);
+var np = 5;
+function rp(e, t, n) {
+ let r = Math.max(t - np, 0);
+ return /* @__PURE__ */ Ru(n - e(r), t - r);
}
-function rp(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : np((t) => e.next(t).value, t, e.next(t).value);
+function ip(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : rp((t) => e.next(t).value, t, e.next(t).value);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var ip = (e) => e !== null;
-function ap(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(ip), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var ap = (e) => e !== null;
+function op(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(ap), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var op = {
- decay: qf,
- inertia: qf,
- tween: ep,
- keyframes: ep,
- spring: Kf
+var sp = {
+ decay: Jf,
+ inertia: Jf,
+ tween: tp,
+ keyframes: tp,
+ spring: qf
};
-function sp(e) {
- typeof e.type == "string" && (e.type = op[e.type]);
+function cp(e) {
+ typeof e.type == "string" && (e.type = sp[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var cp = 40, lp = (e, t) => t - e > cp && !Tu.useManualTiming ? t : e;
+var lp = 40, up = (e, t) => t - e > lp && !Du.useManualTiming ? t : e;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function up(e, t) {
+function dp(e, t) {
return {
kind: e,
animation: t,
- timestamp: sd.now(),
- frameTimestamp: id.timestamp,
- frameIsProcessing: id.isProcessing
+ timestamp: ld.now(),
+ frameTimestamp: od.timestamp,
+ frameIsProcessing: od.isProcessing
};
}
-function dp(e, t, n) {
+function fp(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...up("animation-start", e),
+ ...dp("animation-start", e),
options: n ? {
...t,
...n
@@ -15062,18 +15069,18 @@ function dp(e, t, n) {
});
} catch {}
}
-function fp(e, t) {
+function pp(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...up("layout-animation-start", e),
+ ...dp("layout-animation-start", e),
node: t
});
} catch {}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var pp = class {
+var mp = class {
constructor() {
this.isResolved = !1;
}
@@ -15091,21 +15098,21 @@ var pp = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, mp = (e) => e / 100, hp = (e) => Math.round(e * 1e4) / 1e4, gp = class extends pp {
+}, hp = (e) => e / 100, gp = (e) => Math.round(e * 1e4) / 1e4, _p = class extends mp {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== sd.now() && this.tick(sd.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), dp(this, this.options);
+ e && e.updatedAt !== ld.now() && this.tick(ld.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), fp(this, this.options);
}
initAnimation() {
let { options: e } = this;
- sp(e);
- let { type: t = ep, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || ep;
- s !== ep && typeof o[0] != "number" && (this.mixKeyframes = ju(mp, Sf(o[0], o[1])), o = [0, 100]);
+ cp(e);
+ let { type: t = tp, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || tp;
+ s !== tp && typeof o[0] != "number" && (this.mixKeyframes = Nu(hp, Cf(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -15114,7 +15121,7 @@ var pp = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = Nf(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Pf(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -15126,26 +15133,26 @@ var pp = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = lp(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = up(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
!d && i !== null && (p = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== qf && (f.value = ap(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Jf && (f.value = op(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? hp((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? gp((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== qf ? ap(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Jf ? op(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
if (c) {
let t = Math.min(e, r) / o, n = Math.floor(t), i = t % 1;
- !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = wu(0, 1, i) * o;
+ !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Eu(0, 1, i) * o;
}
let p;
return t ? (this.delayState.value = s[0], p = this.delayState) : p = f.next(d), i && !t && (p.value = i(p.value)), p;
@@ -15154,37 +15161,37 @@ var pp = class {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ Fu(this.calculatedDuration);
+ return /* @__PURE__ */ Lu(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Fu(e);
+ return this.duration + /* @__PURE__ */ Lu(e);
}
get time() {
- return /* @__PURE__ */ Fu(this.currentTime);
+ return /* @__PURE__ */ Lu(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Pu(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Iu(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return rp(this.generator, this.currentTime, this.options.velocity);
+ return ip(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(sd.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Fu(this.currentTime));
+ t && this.driver && this.updateTime(ld.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Lu(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = Af, startTime: t } = this.options;
+ let { driver: e = jf, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(sd.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(ld.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -15207,149 +15214,149 @@ var pp = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, _p = /* @__PURE__ */ new Set([
+}, vp = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function vp(e) {
+function yp(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(vd) || [];
+ let [r] = n.match(bd) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!_p.has(t);
+ let i = n.replace(r, ""), a = +!!vp.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var yp = /\b([a-z-]*)\(.*?\)/gu, bp = {
- ...tf,
+var bp = /\b([a-z-]*)\(.*?\)/gu, xp = {
+ ...nf,
getAnimatableNone: (e) => {
- let t = e.match(yp);
- return t ? t.map(vp).join(" ") : e;
+ let t = e.match(bp);
+ return t ? t.map(yp).join(" ") : e;
}
-}, xp = {
- ...tf,
+}, Sp = {
+ ...nf,
getAnimatableNone: (e) => {
- let t = tf.parse(e);
- return tf.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = nf.parse(e);
+ return nf.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, Sp = {
- ...hd,
- transform: Math.round
}, Cp = {
- rotate: kd,
- pathRotation: kd,
- rotateX: kd,
- rotateY: kd,
- rotateZ: kd,
- scale: _d,
- scaleX: _d,
- scaleY: _d,
- scaleZ: _d,
- skew: kd,
- skewX: kd,
- skewY: kd,
- distance: jd,
- translateX: jd,
- translateY: jd,
- translateZ: jd,
- x: jd,
- y: jd,
- z: jd,
- perspective: jd,
- transformPerspective: jd,
- opacity: gd,
- originX: Pd,
- originY: Pd,
- originZ: jd
+ ..._d,
+ transform: Math.round
}, wp = {
- borderWidth: jd,
- borderTopWidth: jd,
- borderRightWidth: jd,
- borderBottomWidth: jd,
- borderLeftWidth: jd,
- borderRadius: jd,
- borderTopLeftRadius: jd,
- borderTopRightRadius: jd,
- borderBottomRightRadius: jd,
- borderBottomLeftRadius: jd,
- width: jd,
- maxWidth: jd,
- height: jd,
- maxHeight: jd,
- top: jd,
- right: jd,
- bottom: jd,
- left: jd,
- inset: jd,
- insetBlock: jd,
- insetBlockStart: jd,
- insetBlockEnd: jd,
- insetInline: jd,
- insetInlineStart: jd,
- insetInlineEnd: jd,
- padding: jd,
- paddingTop: jd,
- paddingRight: jd,
- paddingBottom: jd,
- paddingLeft: jd,
- paddingBlock: jd,
- paddingBlockStart: jd,
- paddingBlockEnd: jd,
- paddingInline: jd,
- paddingInlineStart: jd,
- paddingInlineEnd: jd,
- margin: jd,
- marginTop: jd,
- marginRight: jd,
- marginBottom: jd,
- marginLeft: jd,
- marginBlock: jd,
- marginBlockStart: jd,
- marginBlockEnd: jd,
- marginInline: jd,
- marginInlineStart: jd,
- marginInlineEnd: jd,
- fontSize: jd,
- backgroundPositionX: jd,
- backgroundPositionY: jd,
- ...Cp,
- zIndex: Sp,
- fillOpacity: gd,
- strokeOpacity: gd,
- numOctaves: Sp
+ rotate: jd,
+ pathRotation: jd,
+ rotateX: jd,
+ rotateY: jd,
+ rotateZ: jd,
+ scale: yd,
+ scaleX: yd,
+ scaleY: yd,
+ scaleZ: yd,
+ skew: jd,
+ skewX: jd,
+ skewY: jd,
+ distance: W,
+ translateX: W,
+ translateY: W,
+ translateZ: W,
+ x: W,
+ y: W,
+ z: W,
+ perspective: W,
+ transformPerspective: W,
+ opacity: vd,
+ originX: Fd,
+ originY: Fd,
+ originZ: W
}, Tp = {
+ borderWidth: W,
+ borderTopWidth: W,
+ borderRightWidth: W,
+ borderBottomWidth: W,
+ borderLeftWidth: W,
+ borderRadius: W,
+ borderTopLeftRadius: W,
+ borderTopRightRadius: W,
+ borderBottomRightRadius: W,
+ borderBottomLeftRadius: W,
+ width: W,
+ maxWidth: W,
+ height: W,
+ maxHeight: W,
+ top: W,
+ right: W,
+ bottom: W,
+ left: W,
+ inset: W,
+ insetBlock: W,
+ insetBlockStart: W,
+ insetBlockEnd: W,
+ insetInline: W,
+ insetInlineStart: W,
+ insetInlineEnd: W,
+ padding: W,
+ paddingTop: W,
+ paddingRight: W,
+ paddingBottom: W,
+ paddingLeft: W,
+ paddingBlock: W,
+ paddingBlockStart: W,
+ paddingBlockEnd: W,
+ paddingInline: W,
+ paddingInlineStart: W,
+ paddingInlineEnd: W,
+ margin: W,
+ marginTop: W,
+ marginRight: W,
+ marginBottom: W,
+ marginLeft: W,
+ marginBlock: W,
+ marginBlockStart: W,
+ marginBlockEnd: W,
+ marginInline: W,
+ marginInlineStart: W,
+ marginInlineEnd: W,
+ fontSize: W,
+ backgroundPositionX: W,
+ backgroundPositionY: W,
...wp,
- color: Id,
- backgroundColor: Id,
- outlineColor: Id,
- fill: Id,
- stroke: Id,
- borderColor: Id,
- borderTopColor: Id,
- borderRightColor: Id,
- borderBottomColor: Id,
- borderLeftColor: Id,
- filter: bp,
- WebkitFilter: bp,
- mask: xp,
- WebkitMask: xp
-}, Ep = (e) => Tp[e], Dp = /*@__PURE__*/ new Set([bp, xp]);
-function Op(e, t) {
- let n = Ep(e);
- return Dp.has(n) || (n = tf), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ zIndex: Cp,
+ fillOpacity: vd,
+ strokeOpacity: vd,
+ numOctaves: Cp
+}, Ep = {
+ ...Tp,
+ color: Ld,
+ backgroundColor: Ld,
+ outlineColor: Ld,
+ fill: Ld,
+ stroke: Ld,
+ borderColor: Ld,
+ borderTopColor: Ld,
+ borderRightColor: Ld,
+ borderBottomColor: Ld,
+ borderLeftColor: Ld,
+ filter: xp,
+ WebkitFilter: xp,
+ mask: Sp,
+ WebkitMask: Sp
+}, Dp = (e) => Ep[e], Op = /*@__PURE__*/ new Set([xp, Sp]);
+function kp(e, t) {
+ let n = Dp(e);
+ return Op.has(n) || (n = nf), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function kp(e) {
+function Ap(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var Ap = (e) => e * 180 / Math.PI, jp = (e) => Np(Ap(Math.atan2(e[1], e[0]))), Mp = {
+var jp = (e) => e * 180 / Math.PI, Mp = (e) => Pp(jp(Math.atan2(e[1], e[0]))), Np = {
x: 4,
y: 5,
translateX: 4,
@@ -15358,55 +15365,55 @@ var Ap = (e) => e * 180 / Math.PI, jp = (e) => Np(Ap(Math.atan2(e[1], e[0]))), M
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: jp,
- rotateZ: jp,
- skewX: (e) => Ap(Math.atan(e[1])),
- skewY: (e) => Ap(Math.atan(e[2])),
+ rotate: Mp,
+ rotateZ: Mp,
+ skewX: (e) => jp(Math.atan(e[1])),
+ skewY: (e) => jp(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, Np = (e) => (e %= 360, e < 0 && (e += 360), e), Pp = jp, Fp = (e) => Math.hypot(e[0], e[1]), Ip = (e) => Math.hypot(e[4], e[5]), Lp = {
+}, Pp = (e) => (e %= 360, e < 0 && (e += 360), e), Fp = Mp, Ip = (e) => Math.hypot(e[0], e[1]), Lp = (e) => Math.hypot(e[4], e[5]), Rp = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: Fp,
- scaleY: Ip,
+ scaleX: Ip,
+ scaleY: Lp,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (Fp(e) + Ip(e)) / 2,
- rotateX: (e) => Np(Ap(Math.atan2(e[6], e[5]))),
- rotateY: (e) => Np(Ap(Math.atan2(-e[2], e[0]))),
- rotateZ: Pp,
- rotate: Pp,
- skewX: (e) => Ap(Math.atan(e[4])),
- skewY: (e) => Ap(Math.atan(e[1])),
+ scale: (e) => (Ip(e) + Lp(e)) / 2,
+ rotateX: (e) => Pp(jp(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => Pp(jp(Math.atan2(-e[2], e[0]))),
+ rotateZ: Fp,
+ rotate: Fp,
+ skewX: (e) => jp(Math.atan(e[4])),
+ skewY: (e) => jp(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function Rp(e) {
+function zp(e) {
return +!!e.includes("scale");
}
-function zp(e, t) {
- if (!e || e === "none") return Rp(t);
+function Bp(e, t) {
+ if (!e || e === "none") return zp(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = Lp, i = n;
+ if (n) r = Rp, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = Mp, i = t;
+ r = Np, i = t;
}
- if (!i) return Rp(t);
- let a = r[t], o = i[1].split(",").map(Vp);
+ if (!i) return zp(t);
+ let a = r[t], o = i[1].split(",").map(Hp);
return typeof a == "function" ? a(o) : o[a];
}
-var Bp = (e, t) => {
+var Vp = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return zp(n, t);
+ return Bp(n, t);
};
-function Vp(e) {
+function Hp(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var Hp = [
+var Up = [
"transformPerspective",
"x",
"y",
@@ -15425,14 +15432,14 @@ var Hp = [
"skew",
"skewX",
"skewY"
-], Up = /* @__PURE__ */ new Set([...Hp, "pathRotation"]), Wp = (e) => e === hd || e === jd, Gp = /* @__PURE__ */ new Set([
+], Wp = /* @__PURE__ */ new Set([...Up, "pathRotation"]), Gp = (e) => e === _d || e === W, Kp = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Kp = Hp.filter((e) => !Gp.has(e));
-function qp(e) {
+]), qp = Up.filter((e) => !Kp.has(e));
+function Jp(e) {
let t = [];
- return Kp.forEach((n) => {
+ return qp.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -15441,16 +15448,16 @@ function qp(e) {
}
}), t;
}
-var Jp = /* @__PURE__ */ new Set(["bottom", "right"]);
-function Yp(e, t, n, r, i, a) {
+var Yp = /* @__PURE__ */ new Set(["bottom", "right"]);
+function Xp(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var Xp = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => Yp(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => Yp(e, i, "y", t, n, r),
+var Zp = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => Xp(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => Xp(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -15461,22 +15468,22 @@ var Xp = {
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: ({ transform: e }) => zp(e, "x"),
- y: ({ transform: e }) => zp(e, "y")
+ x: ({ transform: e }) => Bp(e, "x"),
+ y: ({ transform: e }) => Bp(e, "y")
};
-Xp.translateX = Xp.x, Xp.translateY = Xp.y;
+Zp.translateX = Zp.x, Zp.translateY = Zp.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var Zp = /* @__PURE__ */ new Set(), Qp = !1, $p = !1, em = !1;
-function tm() {
- if ($p) {
+var Qp = /* @__PURE__ */ new Set(), $p = !1, em = !1, tm = !1;
+function nm() {
+ if (em) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- Zp.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Jp.has(r.name) && n.add(r.element));
+ Qp.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Yp.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = qp(e);
+ let t = Jp(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -15488,29 +15495,29 @@ function tm() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- $p = !1, Qp = !1, Zp.forEach((e) => e.complete(em)), Zp.clear();
+ em = !1, $p = !1, Qp.forEach((e) => e.complete(tm)), Qp.clear();
}
-function nm() {
- Zp.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && ($p = !0);
+function rm() {
+ Qp.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (em = !0);
});
}
-function rm() {
- em = !0, nm(), tm(), em = !1;
+function im() {
+ tm = !0, rm(), nm(), tm = !1;
}
-function im(e, t, n) {
+function am(e, t, n) {
if (typeof e == "string") {
- if (Eu(e) || Ou(e)) return parseFloat(e);
- if (!tf.test(e) && tf.test(n)) return Op(t, n);
+ if (Ou(e) || Au(e)) return parseFloat(e);
+ if (!nf.test(e) && nf.test(n)) return kp(t, n);
}
return e ?? void 0;
}
-var am = class {
+var om = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (Zp.add(this), Qp || (Qp = !0, Df.read(nm), Df.resolveKeyframes(tm))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (Qp.add(this), $p || ($p = !0, Of.read(rm), Of.resolveKeyframes(nm))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -15518,75 +15525,75 @@ var am = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = im(n.readValue(t, a), t, a);
+ let r = am(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- kp(e);
+ Ap(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Zp.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Qp.delete(this);
}
cancel() {
- this.state === "scheduled" && (Zp.delete(this), this.state = "pending");
+ this.state === "scheduled" && (Qp.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, om = (e) => e.startsWith("--");
+}, sm = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function sm(e, t, n) {
- om(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function cm(e, t, n) {
+ sm(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var cm = {};
+var lm = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function lm(e, t) {
- let n = /* @__PURE__ */ ku(e);
- return () => cm[t] ?? n();
+function um(e, t) {
+ let n = /* @__PURE__ */ ju(e);
+ return () => lm[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var um = /* @__PURE__ */ lm(() => window.ScrollTimeline !== void 0, "scrollTimeline"), dm = /*@__PURE__*/ lm(() => {
+var dm = /* @__PURE__ */ um(() => window.ScrollTimeline !== void 0, "scrollTimeline"), fm = /*@__PURE__*/ um(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), fm = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, pm = {
+}, "linearEasing"), pm = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, mm = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ fm([
+ circIn: /*@__PURE__*/ pm([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ fm([
+ circOut: /*@__PURE__*/ pm([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ fm([
+ backIn: /*@__PURE__*/ pm([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ fm([
+ backOut: /*@__PURE__*/ pm([
.33,
1.53,
.69,
@@ -15595,15 +15602,15 @@ var um = /* @__PURE__ */ lm(() => window.ScrollTimeline !== void 0, "scrollTimel
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function mm(e, t) {
- if (e) return typeof e == "function" ? dm() ? jf(e, t) : "ease-out" : /* @__PURE__ */ ed(e) ? fm(e) : Array.isArray(e) ? e.map((e) => mm(e, t) || pm.easeOut) : pm[e];
+function hm(e, t) {
+ if (e) return typeof e == "function" ? fm() ? Mf(e, t) : "ease-out" : /* @__PURE__ */ nd(e) ? pm(e) : Array.isArray(e) ? e.map((e) => hm(e, t) || mm.easeOut) : mm[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function hm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function gm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = mm(s, i);
+ let d = hm(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -15617,29 +15624,29 @@ function hm(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function gm(e) {
+function _m(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function _m({ type: e, ...t }) {
- return gm(e) && dm() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function vm({ type: e, ...t }) {
+ return _m(e) && fm() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var vm = class extends pp {
+var ym = class extends mp {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = _m(e);
- this.animation = hm(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = vm(e);
+ this.animation = gm(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = ap(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), sm(t, n, e), this.animation.cancel();
+ let e = op(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), cm(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, dp(this, e, c);
+ }, fp(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -15667,18 +15674,18 @@ var vm = class extends pp {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Fu(Number(e));
+ return /* @__PURE__ */ Lu(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Fu(e);
+ return this.duration + /* @__PURE__ */ Lu(e);
}
get time() {
- return /* @__PURE__ */ Fu(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Lu(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Pu(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Iu(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -15696,30 +15703,30 @@ var vm = class extends pp {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && um() ? (this.animation.timeline = e, t?.(this.animation), Au) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && dm() ? (this.animation.timeline = e, t?.(this.animation), Mu) : n(this);
}
-}, ym = {
- anticipate: Gu,
- backInOut: Wu,
- circInOut: Ju
+}, bm = {
+ anticipate: qu,
+ backInOut: Ku,
+ circInOut: Xu
};
-function bm(e) {
- return e in ym;
-}
function xm(e) {
- typeof e.ease == "string" && bm(e.ease) && (e.ease = ym[e.ease]);
+ return e in bm;
}
-var Sm = class extends vm {
+function Sm(e) {
+ typeof e.ease == "string" && xm(e.ease) && (e.ease = bm[e.ease]);
+}
+var Cm = class extends ym {
constructor(e) {
- xm(e), sp(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Sm(e), cp(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
- return this.state === "running" ? (sd.now() - this.startTime) * this.speed : this.time * 1e3;
+ return this.state === "running" ? (ld.now() - this.startTime) * this.speed : this.time * 1e3;
}
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new gp({
+ this.sampler = new _p({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -15737,45 +15744,45 @@ var Sm = class extends vm {
t.set(e);
return;
}
- let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? wu(0, 10, a) : 0, s = this.sample(a);
- n && r && sm(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Eu(0, 10, a) : 0, s = this.sample(a);
+ n && r && cm(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, Cm = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (tf.test(e) || e === "0") && !e.startsWith("url("));
+}, wm = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (nf.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function wm(e) {
+function Tm(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function Tm(e, t, n, r) {
+function Em(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = Cm(i, t), s = Cm(a, t);
- return !o || !s ? (o !== s && `${t}${i}${a}${o ? a : i}`, !1) : wm(e) || (n === "spring" || gm(n)) && r;
+ let a = e[e.length - 1], o = wm(i, t), s = wm(a, t);
+ return !o || !s ? (o !== s && `${t}${i}${a}${o ? a : i}`, !1) : Tm(e) || (n === "spring" || _m(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function Em(e) {
+function Dm(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var Dm = /* @__PURE__ */ new Set([
+var Om = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Om = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function km(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Om.test(e[t])) return !0;
+]), km = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Am(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && km.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var Am = /* @__PURE__ */ new Set([
+var jm = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -15786,27 +15793,27 @@ var Am = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), jm = /*@__PURE__*/ ku(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function Mm(e) {
+]), Mm = /*@__PURE__*/ ju(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function Nm(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(Dm.has(n) || Am.has(n))) return !1;
+ if (!n || !(Om.has(n) || jm.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return jm() && (Dm.has(n) || Am.has(n) && km(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return Mm() && (Om.has(n) || jm.has(n) && Am(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var Nm = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Pm = {
+var Pm = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Fm = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, Fm = Hp.length;
-function Im(e, t, n) {
+}, Im = Up.length;
+function Lm(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < Fm; a++) {
- let o = Hp[a], s = e[o];
+ for (let a = 0; a < Im; a++) {
+ let o = Up[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -15815,44 +15822,44 @@ function Im(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = Nm(s, wp[o]);
+ let e = Pm(s, Tp[o]);
if (!c) {
i = !1;
- let t = Pm[o] || o;
+ let t = Fm[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${Nm(a, wp.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${Pm(a, Tp.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var Lm = /* @__PURE__ */ new WeakMap(), Rm = 200, zm = .001, Bm = .1, Vm = .001, Hm = 100, Um = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Wm = (e, t) => e - t, Gm = (e, t, n) => {
+var Rm = /* @__PURE__ */ new WeakMap(), zm = 200, Bm = .001, Vm = .1, Hm = .001, Um = 100, Wm = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Gm = (e, t) => e - t, Km = (e, t, n) => {
let r = [];
- for (let i = 0; i <= n; i++) r.push(of(e, t, i / n));
+ for (let i = 0; i <= n; i++) r.push(sf(e, t, i / n));
return r;
-}, Km = (e) => e.motionValue.owner, qm = (e) => Lm.get(e), Jm = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Ym = ({ name: e, motionValue: t }) => e && Hp.includes(e) && t?.owner?.current instanceof HTMLElement && jm() && dm();
-function Xm(e) {
- let t = Km(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (Jm(t, "transform") || "none") === "none" && !Jm(t, "pathRotation") && !t.projection?.isProjecting();
+}, qm = (e) => e.motionValue.owner, Jm = (e) => Rm.get(e), Ym = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Xm = ({ name: e, motionValue: t }) => e && Up.includes(e) && t?.owner?.current instanceof HTMLElement && Mm() && fm();
+function Zm(e) {
+ let t = qm(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (Ym(t, "transform") || "none") === "none" && !Ym(t, "pathRotation") && !t.projection?.isProjecting();
}
-var Zm = class extends gp {
+var Qm = class extends _p {
constructor(e) {
- let t = Km(e).current, { driver: n = Af } = e, r = Xm(e);
+ let t = qm(e).current, { driver: n = jf } = e, r = Zm(e);
e.driver = (e) => {
let r = n(e);
return {
js: r,
now: r.now,
start: (e = !0) => {
- let n = qm(t);
+ let n = Jm(t);
!n || n.isJS ? r.start(e) : n.schedule(!1, !e);
},
stop: () => {
r.stop();
- let e = qm(t);
+ let e = Jm(t);
e?.schedule(!e.isFinishing);
}
};
@@ -15863,7 +15870,7 @@ var Zm = class extends gp {
};
}
get group() {
- return qm(Km(this.options).current);
+ return Jm(qm(this.options).current);
}
get js() {
return this.driver?.js;
@@ -15880,11 +15887,11 @@ var Zm = class extends gp {
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
}
liveValue() {
- return this.isAccelerated() ? this.sampleAt(sd.now()) : void 0;
+ return this.isAccelerated() ? this.sampleAt(ld.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ ed(n) ? fm(n) : Um(n) && pm[n];
- if (o && !i && !r && e.length === 2 && t === ep && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ nd(n) ? pm(n) : Wm(n) && mm[n];
+ if (o && !i && !r && e.length === 2 && t === tp && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -15894,7 +15901,7 @@ var Zm = class extends gp {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || ep) === ep ? u || Zf(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || tp) === tp ? u || Qf(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -15910,11 +15917,11 @@ var Zm = class extends gp {
return parseFloat(this.sampleAt(e, !0));
}
sync() {
- let e = sd.now();
+ let e = ld.now();
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || Qm(Km(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || $m(qm(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -15922,10 +15929,10 @@ var Zm = class extends gp {
complete() {
super.complete();
let { group: e } = this;
- e && !e.isJS && this.canAccelerate && this.tick(sd.now());
+ e && !e.isJS && this.canAccelerate && this.tick(ld.now());
}
get time() {
- return this.isAccelerated() ? /* @__PURE__ */ Fu(wu(0, this.totalDuration, this.at(sd.now()) - (this.options.delay || 0))) : super.time;
+ return this.isAccelerated() ? /* @__PURE__ */ Lu(Eu(0, this.totalDuration, this.at(ld.now()) - (this.options.delay || 0))) : super.time;
}
set time(e) {
super.time = e;
@@ -15934,22 +15941,22 @@ var Zm = class extends gp {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function Qm(e) {
+function $m(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = -Infinity, f = (e) => {
for (let t of n) if (t.name === e) return !0;
}, p = (t, n) => {
let o = {};
- for (let s of t === void 0 ? Hp : a) {
- let a = r.get(s), c = t === void 0 ? Jm(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? Up : a) {
+ let a = r.get(s), c = t === void 0 ? Ym(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
}, m = (e, t) => {
let n = "", r = p(e, t);
- for (let e in r) n += (Pm[e] || e) + "(" + Nm(r[e], wp[e]) + ") ";
+ for (let e in r) n += (Fm[e] || e) + "(" + Pm(r[e], Tp[e]) + ") ";
return n || "none";
}, h = (e = p()) => {
- t.style.transform = Im(e, {});
+ t.style.transform = Lm(e, {});
}, g = (e = !0) => {
e && h(), s.forEach(({ animation: e }) => e.cancel()), s = [];
}, _ = (e, t, n = Infinity) => {
@@ -15958,7 +15965,7 @@ function Qm(e) {
offset: t,
end: n
};
- e.startTime = sd.now() + t, n < Infinity && (e.onfinish = () => {
+ e.startTime = ld.now() + t, n < Infinity && (e.onfinish = () => {
r.isDone = !0, s.some((e) => e.end === Infinity) && (e.cancel(), s = s.filter((e) => e !== r)), E.schedule(!1);
}), e.oncancel = () => s.includes(r) && E.demote(), s.push(r);
}, v = (e, t, n) => {
@@ -15969,34 +15976,34 @@ function Qm(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, y = (e, t, n, r) => {
- let i = Math.min(Rm, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(zm, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Gm(t, n, i).concat(r).sort(Wm), o = (e) => /* @__PURE__ */ Mu(t, n, e), s, c;
+ let a = Km(t, n, i).concat(r).sort(Gm), o = (e) => /* @__PURE__ */ Pu(t, n, e), s, c;
for (let t of e) {
let e = a.map((e) => t.numberAt(e)), [n] = e, r = e[e.length - 1] - n, i = e.map((e) => r ? (e - n) / r : e - n);
if (!r) {
- if (i.some((e) => !(Math.abs(e) <= zm))) return;
+ if (i.some((e) => !(Math.abs(e) <= Bm))) return;
} else if (!s) s = i, c = (e) => (t.numberAt(e) - n) / r;
- else if (i.some((e, t) => !(Math.abs(e - s[t]) <= zm))) return;
+ else if (i.some((e, t) => !(Math.abs(e - s[t]) <= Bm))) return;
}
- if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= zm)) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(hp(t) + " " + hp(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= Bm)) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(gp(t) + " " + gp(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && v(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, b = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Vm : Bm))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Hm : Vm))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...v((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Gm(t, n, Math.ceil((n - t) / 100));
+ }, s = Km(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Wm)) e > c && o(c, e, 0), c = e;
- return i.sort(Wm);
+ for (let e of s.sort(Gm)) e > c && o(c, e, 0), c = e;
+ return i.sort(Gm);
}, x = (e) => {
let t;
for (let n of e) {
@@ -16007,7 +16014,7 @@ function Qm(e) {
return t;
}, S = (e, n, r, i = { fill: "both" }, a, o) => {
let s = e.flatMap((e) => e.boundaries(n, r)), c = o || y(e, n, r, s), l = c ? [n, r] : b(e, n, r, s), u = l.map((e) => m(e, a)), d = { transform: u };
- return c || (d.offset = l.map((e) => /* @__PURE__ */ Mu(n, r, e))), u.every((e) => e === u[0]) && (h(p(n, a)), d = null), t.animate(d, {
+ return c || (d.offset = l.map((e) => /* @__PURE__ */ Pu(n, r, e))), u.every((e) => e === u[0]) && (h(p(n, a)), d = null), t.animate(d, {
...i,
duration: r - n,
easing: c || "linear"
@@ -16035,9 +16042,9 @@ function Qm(e) {
f.push(e), l = Math.max(l, t);
}
}
- i = {}, a = Hp.filter((t) => {
+ i = {}, a = Up.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = Jm(e, t);
+ let n = i[t] = Ym(e, t);
return n !== void 0 && parseFloat(n) !== +!!t.startsWith("scale");
}), g(!1);
let h = !u && x(f);
@@ -16085,14 +16092,14 @@ function Qm(e) {
}
return !0;
}, T = () => {
- let r = sd.now();
+ let r = ld.now();
if (E.isJS || (E.isFinishing = !0, n.forEach((t) => {
let [n, a] = t.timing();
- t.state === "running" && t.speed > 0 && !a && n <= r + 1 && (t.complete(), i[t.name] = Jm(e, t.name), o.has(t) || (c = !0));
+ t.state === "running" && t.speed > 0 && !a && n <= r + 1 && (t.complete(), i[t.name] = Ym(e, t.name), o.has(t) || (c = !0));
}), E.isFinishing = !1), l = !1, n.forEach(({ state: e }, t) => {
(e === "idle" || e === "finished") && n.delete(t);
}), !n.size) {
- Lm.delete(t), E.isJS || g();
+ Rm.delete(t), E.isJS || g();
return;
}
for (let e of n) if (!e.canAccelerate) return E.demote(!0);
@@ -16100,7 +16107,7 @@ function Qm(e) {
let a = c, s = u;
if (c = u = !1, a || !w(r)) {
if (s) {
- if (r - d < Hm) return E.demote();
+ if (r - d < Um) return E.demote();
d = r;
}
if (!C(r)) return E.demote();
@@ -16110,11 +16117,11 @@ function Qm(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- c ||= e, u ||= !!t, l || (l = !0, id.isProcessing ? Df.render(T, !1, !0) : queueMicrotask(T));
+ c ||= e, u ||= !!t, l || (l = !0, od.isProcessing ? Of.render(T, !1, !0) : queueMicrotask(T));
},
check() {
if (!E.isJS) {
- for (let t in i) if (Jm(e, t) !== i[t] && !f(t)) return E.schedule(!0, !0);
+ for (let t in i) if (Ym(e, t) !== i[t] && !f(t)) return E.schedule(!0, !0);
}
},
demote(e) {
@@ -16123,41 +16130,41 @@ function Qm(e) {
}), E.isJS = !0, o = /* @__PURE__ */ new Map(), g(), n.forEach((e) => e.state === "running" && e.js?.start()));
}
};
- return Lm.set(t, E), E;
+ return Rm.set(t, E), E;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var $m = class extends pp {
+var eh = class extends mp {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = sd.now();
+ }, this.createdAt = ld.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || am;
+ let o = i?.KeyframeResolver || om;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = sd.now();
+ this.resolvedAt = ld.now();
let u = !0;
- Tm(e, i, a, o) || (u = !1, (Tu.instantAnimations || !s) && l?.(ap(e, n, t)), e[0] = e[e.length - 1], Em(n), n.repeat = 0);
+ Em(e, i, a, o) || (u = !1, (Du.instantAnimations || !s) && l?.(op(e, n, t)), e[0] = e[e.length - 1], Dm(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && Mm(n), p = !f && Ym(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= lp(this.createdAt, this.resolvedAt));
+ let f = u && !c && Nm(n), p = !f && Xm(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= up(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Sm(n);
+ m = new Cm(n);
} catch {
- m = new gp(n);
+ m = new _p(n);
}
- } else m = p ? new Zm(n) : new gp(n);
+ } else m = p ? new Qm(n) : new _p(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -16170,7 +16177,7 @@ var $m = class extends pp {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), rm()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), im()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -16211,7 +16218,7 @@ var $m = class extends pp {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, eh = class {
+}, th = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -16251,10 +16258,10 @@ var $m = class extends pp {
return this.getAll("startTime");
}
get duration() {
- return th(this.animations, "duration");
+ return nh(this.animations, "duration");
}
get iterationDuration() {
- return th(this.animations, "iterationDuration");
+ return nh(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -16272,7 +16279,7 @@ var $m = class extends pp {
this.runAll("complete");
}
};
-function th(e, t) {
+function nh(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -16282,32 +16289,32 @@ function th(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var nh = class extends eh {
+var rh = class extends th {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, rh = /* @__PURE__ */ new WeakMap(), ih = (e, t = "") => `${e}:${t}`;
-function ah(e) {
- let t = rh.get(e);
- return t || (t = /* @__PURE__ */ new Map(), rh.set(e, t)), t;
+}, ih = /* @__PURE__ */ new WeakMap(), ah = (e, t = "") => `${e}:${t}`;
+function oh(e) {
+ let t = ih.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ih.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function oh(e, t, n, r = 0, i = 1) {
+function sh(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var sh = 30, ch = (e) => !isNaN(parseFloat(e)), lh = { current: void 0 }, uh = class {
+var ch = 30, lh = (e) => !isNaN(parseFloat(e)), uh = { current: void 0 }, dh = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = sd.now();
+ let t = ld.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.notifyChange(), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = sd.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ch(this.current));
+ this.current = e, this.updatedAt = ld.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = lh(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -16317,16 +16324,16 @@ var sh = 30, ch = (e) => !isNaN(parseFloat(e)), lh = { current: void 0 }, uh = c
}
on(e, t) {
var n;
- return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Nu())).add(t);
+ return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Fu())).add(t);
}
onChangeSubscribe(e) {
let { events: t } = this;
- return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Nu(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
+ return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Fu(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
};
}
stopIfUnobserved() {
- Df.read(() => {
+ Of.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -16360,7 +16367,7 @@ var sh = 30, ch = (e) => !isNaN(parseFloat(e)), lh = { current: void 0 }, uh = c
this.dependents && this.dependents.delete(e);
}
get() {
- lh.current && lh.current.push(this);
+ uh.current && uh.current.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -16371,10 +16378,10 @@ var sh = 30, ch = (e) => !isNaN(parseFloat(e)), lh = { current: void 0 }, uh = c
return this.prev;
}
getVelocity() {
- let e = sd.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > sh) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, sh);
- return /* @__PURE__ */ Iu(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = ld.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ch) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, ch);
+ return /* @__PURE__ */ Ru(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -16398,12 +16405,12 @@ var sh = 30, ch = (e) => !isNaN(parseFloat(e)), lh = { current: void 0 }, uh = c
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function dh(e, t) {
- return new uh(e, t);
+function fh(e, t) {
+ return new dh(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function fh(e, t) {
+function ph(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -16415,26 +16422,26 @@ function fh(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function ph(e, t) {
+function mh(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : fh(n, e);
+ return n === e ? n : ph(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var mh = {
+var hh = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, hh = (e) => ({
+}, gh = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), gh = {
+}), _h = {
type: "keyframes",
duration: .8
-}, _h = {
+}, vh = {
type: "keyframes",
ease: [
.25,
@@ -16443,7 +16450,7 @@ var mh = {
1
],
duration: .3
-}, vh = (e, { keyframes: t }) => t.length > 2 ? gh : Up.has(e) ? e.startsWith("scale") ? hh(t[1]) : mh : _h, yh = /* @__PURE__ */ new Set([
+}, yh = (e, { keyframes: t }) => t.length > 2 ? _h : Wp.has(e) ? e.startsWith("scale") ? gh(t[1]) : hh : vh, bh = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -16455,15 +16462,15 @@ var mh = {
"from",
"elapsed"
]);
-function bh(e) {
- for (let t in e) if (!yh.has(t)) return !0;
+function xh(e) {
+ for (let t in e) if (!bh.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var xh = (e, t, n, r = {}, i, a) => (o) => {
- let s = ph(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Pu(c);
+var Sh = (e, t, n, r = {}, i, a) => (o) => {
+ let s = mh(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Iu(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -16481,151 +16488,151 @@ var xh = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- bh(s) || Object.assign(u, vh(e, u)), u.duration &&= /* @__PURE__ */ Pu(u.duration), u.repeatDelay &&= /* @__PURE__ */ Pu(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ xh(s) || Object.assign(u, yh(e, u)), u.duration &&= /* @__PURE__ */ Iu(u.duration), u.repeatDelay &&= /* @__PURE__ */ Iu(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Em(u), u.delay === 0 && (d = !0)), (Tu.instantAnimations || Tu.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Em(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = ap(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Dm(u), u.delay === 0 && (d = !0)), (Du.instantAnimations || Du.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Dm(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = op(u.keyframes, s);
if (e !== void 0) {
- Df.update(() => {
+ Of.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new gp(u) : new $m(u);
-}, Sh = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Ch(e) {
- let t = Sh.exec(e);
+ return s.isSync ? new _p(u) : new eh(u);
+}, Ch = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function wh(e) {
+ let t = Ch.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function wh(e, t, n = 1) {
+function Th(e, t, n = 1) {
`${e}`;
- let [r, i] = Ch(e);
+ let [r, i] = wh(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Eu(e) ? parseFloat(e) : e;
+ return Ou(e) ? parseFloat(e) : e;
}
- return fd(i) ? wh(i, t, n + 1) : i;
+ return md(i) ? Th(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Th(e) {
+function Eh(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function Eh(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Th(r)) : t;
+function Dh(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Eh(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function Dh(e, t, n) {
- return Eh(e.getProps(), t, n, e);
+function Oh(e, t, n) {
+ return Dh(e.getProps(), t, n, e);
}
-var Oh = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, kh = /* @__PURE__ */ new Set([
+var kh = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, Ah = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...Hp
-]), Ah = (e) => Array.isArray(e);
+ ...Up
+]), jh = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function jh(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dh(n));
+function Mh(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fh(n));
}
-function Mh(e) {
- return Ah(e) ? e[e.length - 1] || 0 : e;
+function Nh(e) {
+ return jh(e) ? e[e.length - 1] || 0 : e;
}
-function Nh(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = Dh(e, t) || {};
+function Ph(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = Oh(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) jh(e, t, Mh(i[t]));
+ for (let t in i) Mh(e, t, Nh(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var Ph = (e) => !!(e && e.getVelocity);
+var Fh = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Fh(e) {
- return !!(Ph(e) && e.add);
+function Ih(e) {
+ return !!(Fh(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function Ih(e, t) {
+function Lh(e, t) {
let n = e.getValue("willChange");
- if (Fh(n)) return n.add(t);
- if (!n && Tu.WillChange) {
- let n = new Tu.WillChange("auto");
+ if (Ih(n)) return n.add(t);
+ if (!n && Du.WillChange) {
+ let n = new Du.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Lh(e) {
+function Rh(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var Rh = "data-" + Lh("framerAppearId");
+var zh = "data-" + Rh("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function zh(e) {
- return e.props[Rh];
+function Bh(e) {
+ return e.props[zh];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Bh = typeof window < "u";
-function Vh({ protectedKeys: e, needsAnimating: t }, n) {
+var Vh = typeof window < "u";
+function Hh({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function Hh(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Uh(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? fh(a, c) : c;
+ a = a ? ph(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Vh(f, t)) continue;
+ if (i === void 0 || f && Hh(f, t)) continue;
let o = {
delay: n,
- ...ph(a || {}, t)
+ ...mh(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- Df.update(() => r.set(i));
+ Of.update(() => r.set(i));
continue;
}
let p = !1;
- if (Bh && window.MotionHandoffAnimation) {
- let n = zh(e);
+ if (Vh && window.MotionHandoffAnimation) {
+ let n = Bh(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, Df);
+ let e = window.MotionHandoffAnimation(n, t, Of);
e !== null && (o.startTime = e, p = !0);
}
}
- Ih(e, t);
+ Lh(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(xh(t, r, i, m && kh.has(t) ? { type: !1 } : o, e, p));
+ r.start(Sh(t, r, i, m && Ah.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => Df.update(() => {
- o && Nh(e, o);
+ let t = () => Of.update(() => {
+ o && Ph(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -16633,13 +16640,13 @@ function Hh(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Uh(e, t, n = {}) {
- let r = Dh(e, t, Oh(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Hh(e, r, n) : []), o = (r = 0) => {
+function Wh(e, t, n = {}) {
+ let r = Oh(e, t, kh(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Uh(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Uh(e, t, {
+ e.notify("AnimationStart", t), l.push(Wh(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + oh(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + sh(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
@@ -16647,48 +16654,48 @@ function Uh(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Wh(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Uh(e, t, n))) : typeof t == "string" ? Uh(e, t, n) : Promise.all(Hh(e, Dh(e, t, n.custom), n))).then(() => {
+function Gh(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Wh(e, t, n))) : typeof t == "string" ? Wh(e, t, n) : Promise.all(Uh(e, Oh(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Gh = {
+var Kh = {
test: (e) => e === "auto",
parse: (e) => e
-}, Kh = (e) => (t) => t.test(e), qh = [
- hd,
+}, qh = (e) => (t) => t.test(e), Jh = [
+ _d,
+ W,
+ Md,
jd,
- Ad,
- kd,
+ Pd,
Nd,
- Md,
- Gh
-], Jh = (e) => qh.find(Kh(e));
+ Kh
+], Yh = (e) => Jh.find(qh(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Yh(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Ou(e);
+function Xh(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Au(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Xh = /* @__PURE__ */ new Set([
+var Zh = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Zh(e, t, n) {
+function Qh(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Xh.has(t) && qd(t) && (i = e[r]), r++;
+ typeof t == "string" && !Zh.has(t) && Jd(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = Op(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = kp(n, i));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Qh = class extends am {
+var $h = class extends om {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -16699,7 +16706,7 @@ var Qh = class extends am {
canReadNow() {
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
if (!t?.current || r === void 0) return !1;
- for (let t = 0; t < e.length; t++) if (md(t ? e[t] : r)) return !1;
+ for (let t = 0; t < e.length; t++) if (gd(t ? e[t] : r)) return !1;
return !0;
}
readKeyframes() {
@@ -16708,32 +16715,32 @@ var Qh = class extends am {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), fd(r))) {
- let i = wh(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), md(r))) {
+ let i = Th(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !kh.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !Ah.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Jh(r), o = Jh(i);
- if (md(r) !== md(i) && Xp[n]) this.needsMeasurement = !0;
+ let a = Yh(r), o = Yh(i);
+ if (gd(r) !== gd(i) && Zp[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (Wp(a) && Wp(o)) for (let t = 0; t < e.length; t++) {
+ if (Gp(a) && Gp(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else Xp[n] && (this.needsMeasurement = !0);
+ else Zp[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Yh(e[t])) && n.push(t);
- n.length && Zh(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Xh(e[t])) && n.push(t);
+ n.length && Qh(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return Xp[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return Zp[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -16751,19 +16758,19 @@ var Qh = class extends am {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, $h = [
+}, eg = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], eg = /* @__PURE__ */ new Set([
+], tg = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...$h,
+ ...eg,
"width",
"maxWidth",
"height",
@@ -16807,41 +16814,41 @@ var Qh = class extends am {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function tg(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && eg.has(t) && (e[n] = e[n] + "px");
+function ng(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && tg.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var ng = [];
-function rg(e) {
- typeof e.test == "function" && e.read, ig(e), ng.unshift(e);
+var rg = [];
+function eee(e) {
+ typeof e.test == "function" && e.read, ig(e), rg.unshift(e);
}
function ig(e) {
- Cu(ng, e);
+ Tu(rg, e);
}
-function eee(e) {
- return ng.find((t) => t.test(e));
+function ag(e) {
+ return rg.find((t) => t.test(e));
}
-function ag(e, t, n = {}, r) {
+function og(e, t, n = {}, r) {
let i = [], { velocity: a } = n, o = n.reduceMotion ?? r?.shouldReduceMotion;
for (let s in t) {
if (s === "transition" || s === "transitionEnd") continue;
let c = t[s];
if (c === void 0) continue;
let l = e(s), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? Df.update(() => l.set(c)) : (l.start(xh(s, l, c, o && kh.has(s) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? Of.update(() => l.set(c)) : (l.start(Sh(s, l, c, o && Ah.has(s) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: s } = t;
if (s) {
- let t = () => Df.update(() => {
+ let t = () => Of.update(() => {
for (let t in s) e(t).set(s[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function og(e, t, n, r, i) {
- return ag((r) => {
+function sg(e, t, n, r, i) {
+ return og((r) => {
let a = e.get(t, r);
if (!a) {
let o;
@@ -16849,7 +16856,7 @@ function og(e, t, n, r, i) {
let i = n[r];
o = tee(i) ?? e.read(t, r, i), `${r}`;
}
- a = dh(o, { owner: i }), e(t, { [r]: a });
+ a = fh(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
@@ -16860,17 +16867,17 @@ function tee(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function sg(e) {
- return Du(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function cg(e) {
+ return ku(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function cg(e) {
- return Du(e) && "ownerSVGElement" in e;
+function lg(e) {
+ return ku(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function lg(e, t, n) {
+function ug(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -16884,7 +16891,7 @@ function lg(e, t, n) {
//#endregion
//#region node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
var nee = class {
- constructor(e = Df.render) {
+ constructor(e = Of.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -16928,7 +16935,7 @@ var nee = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function ug(e, { step: t, ...n } = {}) {
+function dg(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
let a = r.get(n) ?? new nee(t);
@@ -16949,63 +16956,63 @@ function ug(e, { step: t, ...n } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/style/transform.mjs
-var dg = {};
+var fg = {};
function ree(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (typeof a == "number" ? a : parseFloat(a)) !== +!!i.startsWith("scale") && (t += (t && " ") + (dg[i] || (dg[i] = (Pm[i] || i) + "(")) + Nm(a, Cp[i]) + ")");
+ a !== void 0 && (typeof a == "number" ? a : parseFloat(a)) !== +!!i.startsWith("scale") && (t += (t && " ") + (fg[i] || (fg[i] = (Fm[i] || i) + "(")) + Pm(a, wp[i]) + ")");
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + "rotate(" + Nm(i, Cp.pathRotation) + ")"), t || "none";
+ return i && (t += (t && " ") + "rotate(" + Pm(i, wp.pathRotation) + ")"), t || "none";
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/style/index.mjs
-var fg = /* @__PURE__ */ new Set([
+var pg = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), pg = (e, t) => Nm(e.get(t)?.get(), wp[t]), mg = (e, t, n, r) => {
+]), mg = (e, t) => Pm(e.get(t)?.get(), Tp[t]), hg = (e, t, n, r) => {
let i, a;
- if (Up.has(n)) {
+ if (Wp.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => Hp.indexOf(e) - Hp.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => Up.indexOf(e) - Up.indexOf(t)));
}
- t.get("transform") || (!sg(e) && !t.get("transformBox") && mg(e, t, "transformBox", new uh("fill-box")), t.set("transform", new uh("none"), () => {
- Lm.get(e)?.check(), e.style.transform = ree(t);
+ t.get("transform") || (!cg(e) && !t.get("transformBox") && hg(e, t, "transformBox", new dh("fill-box")), t.set("transform", new dh("none"), () => {
+ Rm.get(e)?.check(), e.style.transform = ree(t);
})), a = t.get("transform");
- } else fg.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uh(""), () => {
- let n = pg(t, "originX") ?? "50%", r = pg(t, "originY") ?? "50%", i = pg(t, "originZ") ?? 0;
+ } else pg.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new dh(""), () => {
+ let n = mg(t, "originX") ?? "50%", r = mg(t, "originY") ?? "50%", i = mg(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = om(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = sm(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = Nm(r.getCurrent(), wp[n]);
+ e.style[n] = Pm(r.getCurrent(), Tp[n]);
};
return t.set(n, r, i, a);
-}, iee = (e) => sg(e) || cg(e), hg = (e, t) => {
- if (Up.has(t)) return Bp(e, t);
- let n = getComputedStyle(e), r = om(t) ? n.getPropertyValue(t) : n[t];
+}, iee = (e) => cg(e) || lg(e), gg = (e, t) => {
+ if (Wp.has(t)) return Vp(e, t);
+ let n = getComputedStyle(e), r = sm(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, aee = /*@__PURE__*/ ug(mg, {
+}, aee = /*@__PURE__*/ dg(hg, {
test: iee,
- read: hg
+ read: gg
});
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function gg(e, t, n) {
+function _g(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (Up.has(e)) o = !0;
- else if (ud(e)) i[e] = n;
+ if (Wp.has(e)) o = !0;
+ else if (fd(e)) i[e] = n;
else {
- let t = Nm(n, wp[e]);
+ let t = Pm(n, Tp[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = Im(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = Lm(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
@@ -17019,14 +17026,14 @@ var oee = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function cee(e, t, n = 1, r = 0, i = !0) {
+function vg(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
let a = i ? oee : see;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var _g = [
+var yg = [
"transform",
"opacity",
"clipPath",
@@ -17036,55 +17043,55 @@ var _g = [
"offsetRotate",
"offsetAnchor"
];
-function vg(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (gg(e, s, l), c) {
+function bg(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (_g(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of _g) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && cee(d, i, a, o, !1);
+ for (let e of yg) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && vg(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function lee(e, t) {
+function xg(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var yg = (e, t, n, r, i = n) => {
- let a = lee(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Lh(i));
- let o = wp[n] || wp[i], s = a ? () => {
- e[i] = Nm(r.get(), wp[n]);
+var Sg = (e, t, n, r, i = n) => {
+ let a = xg(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Rh(i));
+ let o = Tp[n] || Tp[i], s = a ? () => {
+ e[i] = Pm(r.get(), Tp[n]);
} : () => {
- let t = Nm(r.get(), o);
+ let t = Pm(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
//#endregion
//#region node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function uee(e, t, n, r) {
- return Df.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+function Cg(e, t, n, r) {
+ return Of.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uh("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new dh("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var dee = /*@__PURE__*/ ug((e, t, n, r) => n.startsWith("path") ? uee(e, t, n, r) : n.startsWith("attr") ? yg(e, t, n, r, bg(n)) : (Up.has(n) || fg.has(n) || om(n) || n in e.style ? mg : yg)(e, t, n, r), {
- test: cg,
- read: (e, t) => Up.has(t) ? wp[t]?.default || 0 : om(t) || _g.includes(t) ? hg(e, t) || e.getAttribute(Lh(t)) || 0 : (t = bg(t), e.getAttribute(Lh(t)) ?? e.getAttribute(t) ?? void 0)
+var wg = /*@__PURE__*/ dg((e, t, n, r) => n.startsWith("path") ? Cg(e, t, n, r) : n.startsWith("attr") ? Sg(e, t, n, r, Tg(n)) : (Wp.has(n) || pg.has(n) || sm(n) || n in e.style ? hg : Sg)(e, t, n, r), {
+ test: lg,
+ read: (e, t) => Wp.has(t) ? Tp[t]?.default || 0 : sm(t) || yg.includes(t) ? gg(e, t) || e.getAttribute(Rh(t)) || 0 : (t = Tg(t), e.getAttribute(Rh(t)) ?? e.getAttribute(t) ?? void 0)
});
-function bg(e) {
+function Tg(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function xg({ top: e, left: t, right: n, bottom: r }) {
+function Eg({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -17096,7 +17103,7 @@ function xg({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function fee({ x: e, y: t }) {
+function Dg({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -17104,7 +17111,7 @@ function fee({ x: e, y: t }) {
left: e.min
};
}
-function pee(e, t) {
+function Og(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -17122,37 +17129,37 @@ function pee(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Sg(e) {
+function kg(e) {
return e === void 0 || e === 1;
}
-function Cg({ scale: e, scaleX: t, scaleY: n }) {
- return !Sg(e) || !Sg(t) || !Sg(n);
+function Ag({ scale: e, scaleX: t, scaleY: n }) {
+ return !kg(e) || !kg(t) || !kg(n);
}
-function wg(e) {
- return Cg(e) || Tg(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function jg(e) {
+ return Ag(e) || Mg(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
-function Tg(e) {
- return Eg(e.x) || Eg(e.y);
+function Mg(e) {
+ return Ng(e.x) || Ng(e.y);
}
-function Eg(e) {
+function Ng(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function Dg(e, t, n) {
+function Pg(e, t, n) {
return n + t * (e - n);
}
-function Og(e, t, n, r, i) {
- return i !== void 0 && (e = Dg(e, i, r)), Dg(e, n, r) + t;
+function Fg(e, t, n, r, i) {
+ return i !== void 0 && (e = Pg(e, i, r)), Pg(e, n, r) + t;
}
-function kg(e, t = 0, n = 1, r, i) {
- e.min = Og(e.min, t, n, r, i), e.max = Og(e.max, t, n, r, i);
+function Ig(e, t = 0, n = 1, r, i) {
+ e.min = Fg(e.min, t, n, r, i), e.max = Fg(e.max, t, n, r, i);
}
-function Ag(e, { x: t, y: n }) {
- kg(e.x, t.translate, t.scale, t.originPoint), kg(e.y, n.translate, n.scale, n.originPoint);
+function Lg(e, { x: t, y: n }) {
+ Ig(e.x, t.translate, t.scale, t.originPoint), Ig(e.y, n.translate, n.scale, n.originPoint);
}
-var jg = .999999999999, Mg = 1.0000000000001;
-function Ng(e, t, n, r = !1) {
+var Rg = .999999999999, zg = 1.0000000000001;
+function cee(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -17160,37 +17167,37 @@ function Ng(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Pg(e.x, -a.scroll.offset.x), Pg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Ag(e, o)), r && wg(a.latestValues) && Lg(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Bg(e.x, -a.scroll.offset.x), Bg(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Lg(e, o)), r && jg(a.latestValues) && Ug(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < Mg && t.x > jg && (t.x = 1), t.y < Mg && t.y > jg && (t.y = 1);
+ t.x < zg && t.x > Rg && (t.x = 1), t.y < zg && t.y > Rg && (t.y = 1);
}
-function Pg(e, t) {
+function Bg(e, t) {
e.min += t, e.max += t;
}
-function Fg(e, t, n, r, i = .5) {
- kg(e, t, n, of(e.min, e.max, i), r);
+function Vg(e, t, n, r, i = .5) {
+ Ig(e, t, n, sf(e.min, e.max, i), r);
}
-function Ig(e, t) {
+function Hg(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function Lg(e, t, n) {
+function Ug(e, t, n) {
let r = n ?? e;
- Fg(e.x, Ig(t.x, r.x), t.scaleX, t.scale, t.originX), Fg(e.y, Ig(t.y, r.y), t.scaleY, t.scale, t.originY);
+ Vg(e.x, Hg(t.x, r.x), t.scaleX, t.scale, t.originX), Vg(e.y, Hg(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function Rg(e, t) {
- return xg(pee(e.getBoundingClientRect(), t));
+function Wg(e, t) {
+ return Eg(Og(e.getBoundingClientRect(), t));
}
-function zg(e, t, n) {
- let r = Rg(e, n), { scroll: i } = t;
- return i && (Pg(r.x, i.offset.x), Pg(r.y, i.offset.y)), r;
+function lee(e, t, n) {
+ let r = Wg(e, n), { scroll: i } = t;
+ return i && (Bg(r.x, i.offset.x), Bg(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/element.mjs
-var Bg = {}, Vg = (e) => cg(e) ? dee : aee, Hg = class {
+var uee = {}, dee = (e) => lg(e) ? wg : aee, fee = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Qh;
+ this.effect = e, this.current = t, this.KeyframeResolver = $h;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -17202,47 +17209,47 @@ var Bg = {}, Vg = (e) => cg(e) ? dee : aee, Hg = class {
this.effect.flush(this.current);
}
measureViewportBox() {
- return Rg(this.current);
+ return Wg(this.current);
}
getProps() {
- return Bg;
+ return uee;
}
};
-function Ug(e, t, n, r) {
- if (r) return ag((e) => r.getValue(e, null), t, n, r);
- let i = Vg(e);
- return og(i, e, t, n, new Hg(i, e));
+function pee(e, t, n, r) {
+ if (r) return og((e) => r.getValue(e, null), t, n, r);
+ let i = dee(e);
+ return sg(i, e, t, n, new fee(i, e));
}
//#endregion
//#region node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var mee = /*@__PURE__*/ ug((e, t, n, r) => t.set(n, r, () => {
+var mee = /*@__PURE__*/ dg((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
- test: (e) => Du(e),
+ test: (e) => ku(e),
read: (e, t) => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: Wg, cancel: hee } = /* @__PURE__ */ Ef(queueMicrotask, !1), Gg = {
+}), { schedule: Gg, cancel: hee } = /* @__PURE__ */ Df(queueMicrotask, !1), Kg = {
x: !1,
y: !1
};
-function Kg() {
- return Gg.x || Gg.y;
+function qg() {
+ return Kg.x || Kg.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
function gee(e) {
- return e === "x" || e === "y" ? Gg[e] ? null : (Gg[e] = !0, () => {
- Gg[e] = !1;
- }) : Gg.x || Gg.y ? null : (Gg.x = Gg.y = !0, () => {
- Gg.x = Gg.y = !1;
+ return e === "x" || e === "y" ? Kg[e] ? null : (Kg[e] = !0, () => {
+ Kg[e] = !1;
+ }) : Kg.x || Kg.y ? null : (Kg.x = Kg.y = !0, () => {
+ Kg.x = Kg.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function qg(e, t) {
- let n = lg(e), r = new AbortController();
+function Jg(e, t) {
+ let n = ug(e), r = new AbortController();
return [
n,
{
@@ -17256,10 +17263,10 @@ function qg(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
function _ee(e) {
- return !(e.pointerType === "touch" || Kg());
+ return !(e.pointerType === "touch" || qg());
}
function vee(e, t, n = {}) {
- let [r, i, a] = qg(e, n);
+ let [r, i, a] = Jg(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -17282,7 +17289,7 @@ function vee(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var Jg = (e, t) => t ? e === t || Jg(e, t.parentElement) : !1, Yg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, yee = /* @__PURE__ */ new Set([
+var Yg = (e, t) => t ? e === t || Yg(e, t.parentElement) : !1, Xg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, yee = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
@@ -17302,15 +17309,15 @@ function See(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var Xg = /* @__PURE__ */ new WeakSet();
+var Zg = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function Zg(e) {
+function Qg(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function Qg(e, t) {
+function $g(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
@@ -17319,54 +17326,54 @@ function Qg(e, t) {
var Cee = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = Zg(() => {
- if (Xg.has(n)) return;
- Qg(n, "down");
- let e = Zg(() => {
- Qg(n, "up");
+ let r = Qg(() => {
+ if (Zg.has(n)) return;
+ $g(n, "down");
+ let e = Qg(() => {
+ $g(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Qg(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => $g(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function $g(e) {
- return Yg(e) && !Kg();
+function e_(e) {
+ return Xg(e) && !qg();
}
-var e_ = /* @__PURE__ */ new WeakSet();
+var t_ = /* @__PURE__ */ new WeakSet();
function wee(e, t, n = {}) {
- let [r, i, a] = qg(e, n), o = (e) => {
+ let [r, i, a] = Jg(e, n), o = (e) => {
let r = e.currentTarget;
- if (!$g(e) || e_.has(e)) return;
- Xg.add(r), n.stopPropagation && e_.add(e);
+ if (!e_(e) || t_.has(e)) return;
+ Zg.add(r), n.stopPropagation && t_.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Xg.has(r) && Xg.delete(r), $g(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), Zg.has(r) && Zg.delete(r), e_(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || Jg(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || Yg(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), sg(e) && (e.addEventListener("focus", (e) => Cee(e, i)), !bee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), cg(e) && (e.addEventListener("focus", (e) => Cee(e, i)), !bee(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function t_(e, t) {
+function n_(e, t) {
let n = window.getComputedStyle(e);
- return om(t) ? n.getPropertyValue(t) : n[t];
+ return sm(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var n_ = /* @__PURE__ */ new WeakMap(), r_, i_ = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : cg(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Tee = /*@__PURE__*/ i_("inline", "width", "offsetWidth"), Eee = /*@__PURE__*/ i_("block", "height", "offsetHeight");
+var r_ = /* @__PURE__ */ new WeakMap(), i_, a_ = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : lg(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Tee = /*@__PURE__*/ a_("inline", "width", "offsetWidth"), Eee = /*@__PURE__*/ a_("block", "height", "offsetHeight");
function Dee({ target: e, borderBoxSize: t }) {
- n_.get(e)?.forEach((n) => {
+ r_.get(e)?.forEach((n) => {
n(e, {
get width() {
return Tee(e, t);
@@ -17381,26 +17388,26 @@ function Oee(e) {
e.forEach(Dee);
}
function kee() {
- typeof ResizeObserver < "u" && (r_ = new ResizeObserver(Oee));
+ typeof ResizeObserver < "u" && (i_ = new ResizeObserver(Oee));
}
function Aee(e, t) {
- r_ || kee();
- let n = lg(e);
+ i_ || kee();
+ let n = ug(e);
return n.forEach((e) => {
- let n = n_.get(e);
- n || (n = /* @__PURE__ */ new Set(), n_.set(e, n)), n.add(t), r_?.observe(e);
+ let n = r_.get(e);
+ n || (n = /* @__PURE__ */ new Set(), r_.set(e, n)), n.add(t), i_?.observe(e);
}), () => {
n.forEach((e) => {
- let n = n_.get(e);
- n?.delete(t), n?.size || r_?.unobserve(e);
+ let n = r_.get(e);
+ n?.delete(t), n?.size || i_?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var a_ = /* @__PURE__ */ new Set(), o_;
+var o_ = /* @__PURE__ */ new Set(), s_;
function jee() {
- o_ = () => {
+ s_ = () => {
let e = {
get width() {
return window.innerWidth;
@@ -17409,60 +17416,60 @@ function jee() {
return window.innerHeight;
}
};
- a_.forEach((t) => t(e));
- }, window.addEventListener("resize", o_);
+ o_.forEach((t) => t(e));
+ }, window.addEventListener("resize", s_);
}
function Mee(e) {
- return a_.add(e), o_ || jee(), () => {
- a_.delete(e), !a_.size && typeof o_ == "function" && (window.removeEventListener("resize", o_), o_ = void 0);
+ return o_.add(e), s_ || jee(), () => {
+ o_.delete(e), !o_.size && typeof s_ == "function" && (window.removeEventListener("resize", s_), s_ = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function s_(e, t) {
+function c_(e, t) {
return typeof e == "function" ? Mee(e) : Aee(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var c_ = {
+var l_ = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
function Nee(e) {
- return cg(e) && e.tagName === "svg";
+ return lg(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var l_ = (e) => typeof e == "number" ? e : parseFloat(e), u_ = () => ({
+var u_ = (e) => typeof e == "number" ? e : parseFloat(e), d_ = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), d_ = () => ({
- x: u_(),
- y: u_()
}), f_ = () => ({
+ x: d_(),
+ y: d_()
+}), p_ = () => ({
min: 0,
max: 0
-}), p_ = () => ({
- x: f_(),
- y: f_()
-}), m_ = /* @__PURE__ */ new WeakMap();
+}), m_ = () => ({
+ x: p_(),
+ y: p_()
+}), h_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function h_(e) {
+function g_(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function g_(e) {
+function __(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var __ = [
+var v_ = [
"animate",
"whileInView",
"whileFocus",
@@ -17470,31 +17477,31 @@ var __ = [
"whileTap",
"whileDrag",
"exit"
-], v_ = ["initial", ...__];
+], y_ = ["initial", ...v_];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function y_(e) {
- if (h_(e.animate)) return !0;
- for (let t = 0; t < v_.length; t++) if (g_(e[v_[t]])) return !0;
+function b_(e) {
+ if (g_(e.animate)) return !0;
+ for (let t = 0; t < y_.length; t++) if (__(e[y_[t]])) return !0;
return !1;
}
-function b_(e) {
- return !!(y_(e) || e.variants);
+function x_(e) {
+ return !!(b_(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
function Pee(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (Ph(i)) e.addValue(r, i);
- else if (Ph(a)) e.addValue(r, dh(i, { owner: e }));
+ if (Fh(i)) e.addValue(r, i);
+ else if (Fh(a)) e.addValue(r, fh(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, dh(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, fh(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -17503,18 +17510,18 @@ function Pee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var x_ = { current: null }, S_ = { current: !1 }, Fee = typeof window < "u";
-function C_() {
- if (S_.current = !0, Fee) {
+var S_ = { current: null }, C_ = { current: !1 }, Fee = typeof window < "u";
+function w_() {
+ if (C_.current = !0, Fee) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => x_.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => S_.current = e.matches;
e.addEventListener("change", t), t();
- } else x_.current = !1;
+ } else S_.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var w_ = [
+var T_ = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -17522,35 +17529,35 @@ var w_ = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], T_ = {};
-function E_(e) {
- T_ = e;
+], E_ = {};
+function D_(e) {
+ E_ = e;
}
function Iee() {
- return T_;
+ return E_;
}
var Lee = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = am, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = om, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = sd.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, Df.render(this.render, !1, !0));
+ let e = ld.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, Of.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = y_(t), this.isVariantNode = b_(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = b_(t), this.isVariantNode = x_(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && Ph(t) && t.set(c[e]);
+ c[e] !== void 0 && Fh(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, m_.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, h_.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -17560,10 +17567,10 @@ var Lee = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (S_.current || C_(), this.shouldReduceMotion = x_.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (C_.current || w_(), this.shouldReduceMotion = S_.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), Of(this.notifyUpdate), Of(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), kf(this.notifyUpdate), kf(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -17578,24 +17585,24 @@ var Lee = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Dm.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new vm({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Om.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new ym({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Pu(o)
+ duration: /* @__PURE__ */ Iu(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = Up.has(e);
+ let n = Wp.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && Df.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Lm.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && Of.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Rm.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -17606,8 +17613,8 @@ var Lee = class {
}
updateFeatures() {
let e = "animation";
- for (e in T_) {
- let t = T_[e];
+ for (e in E_) {
+ let t = E_[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -17620,7 +17627,7 @@ var Lee = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : p_();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : m_();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -17630,9 +17637,9 @@ var Lee = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Lm.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < w_.length; t++) {
- let n = w_[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Rm.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < T_.length; t++) {
+ let n = T_[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
@@ -17670,27 +17677,27 @@ var Lee = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = dh(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = fh(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Eu(n) || Ou(n)) ? n = parseFloat(n) : typeof n != "number" && !tf.test(n) && tf.test(t) && (n = Op(e, t)), this.setBaseTarget(e, Ph(n) ? n.get() : n)), Ph(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Ou(n) || Au(n)) ? n = parseFloat(n) : typeof n != "number" && !nf.test(n) && nf.test(t) && (n = kp(e, t)), this.setBaseTarget(e, Fh(n) ? n.get() : n)), Fh(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
}
on(e, t) {
- return this.events[e] || (this.events[e] = new Nu()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new Fu()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- Wg.render(this.render);
+ Gg.render(this.render);
}
-}, D_ = class extends Lee {
+}, O_ = class extends Lee {
constructor() {
- super(...arguments), this.KeyframeResolver = Qh;
+ super(...arguments), this.KeyframeResolver = $h;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -17705,11 +17712,11 @@ var Lee = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- Ph(e) && (this.childSubscription = e.on("change", (e) => {
+ Fh(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, O_ = class {
+}, k_ = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -17717,25 +17724,25 @@ var Lee = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function k_(e, { style: t, vars: n }, r, i) {
+function A_(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var A_ = {};
+var j_ = {};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function j_(e, { layout: t, layoutId: n }) {
- return Up.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!A_[e] || e === "opacity");
+function M_(e, { layout: t, layoutId: n }) {
+ return Wp.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!j_[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function M_(e, t, n) {
+function N_(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (Ph(r[t]) || i && Ph(i[t]) || j_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (Fh(r[t]) || i && Fh(i[t]) || M_(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
@@ -17743,30 +17750,30 @@ function M_(e, t, n) {
function Ree(e) {
return window.getComputedStyle(e);
}
-var zee = class extends D_ {
+var P_ = class extends O_ {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = k_;
+ super(...arguments), this.type = "html", this.renderInstance = A_;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (Up.has(t)) return this.projection?.isProjecting ? Rp(t) : Bp(e, t);
+ if (Wp.has(t)) return this.projection?.isProjecting ? zp(t) : Vp(e, t);
{
- let n = Ree(e), r = (ud(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = Ree(e), r = (fd(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return Rg(e, t);
+ return Wg(e, t);
}
build(e, t, n) {
- gg(e, t, n.transformTemplate);
+ _g(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return M_(e, t, n);
+ return N_(e, t, n);
}
-}, N_ = /* @__PURE__ */ new Set([
+}, F_ = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -17790,62 +17797,62 @@ var zee = class extends D_ {
"startOffset",
"textLength",
"lengthAdjust"
-]), P_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), I_ = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Bee(e, t, n, r) {
- k_(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(N_.has(n) ? n : Lh(n), t.attrs[n]);
+function L_(e, t, n, r) {
+ A_(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(F_.has(n) ? n : Rh(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function F_(e, t, n) {
- let r = M_(e, t, n);
- for (let n in e) if (n !== "children" && (Ph(e[n]) || Ph(t[n]))) {
- let t = Hp.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function R_(e, t, n) {
+ let r = N_(e, t, n);
+ for (let n in e) if (n !== "children" && (Fh(e[n]) || Fh(t[n]))) {
+ let t = Up.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Vee = class extends D_ {
+var z_ = class extends O_ {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = p_;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = m_;
}
getBaseTargetFromProps(e, t) {
- return Up.has(t) ? super.getBaseTargetFromProps(e, t) ?? Rp(t) : e[t];
+ return Wp.has(t) ? super.getBaseTargetFromProps(e, t) ?? zp(t) : e[t];
}
getDefaultValue(e) {
- return Up.has(e) ? this.latestValues[e] ?? Rp(e) : void 0;
+ return Wp.has(e) ? this.latestValues[e] ?? zp(e) : void 0;
}
readValueFromInstance(e, t) {
- if (Up.has(t)) {
- let e = Ep(t);
+ if (Wp.has(t)) {
+ let e = Dp(t);
return e && e.default || 0;
}
- if (_g.includes(t)) {
+ if (yg.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = N_.has(t) ? t : Lh(t), e.getAttribute(t);
+ return t = F_.has(t) ? t : Rh(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return F_(e, t, n);
+ return R_(e, t, n);
}
build(e, t, n) {
- vg(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ bg(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Bee(e, t, n, r);
+ L_(e, t, n, r);
}
mount(e) {
- this.isSVGTag = P_(e.tagName), super.mount(e);
+ this.isSVGTag = I_(e.tagName), super.mount(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function I_(e, t) {
+function B_(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -17854,19 +17861,19 @@ function I_(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Hee = [...__].reverse();
-function Uee(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Wh(e, t, n))), n = L_(), r = !0, i = !1;
+var V_ = [...v_].reverse();
+function H_(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Gh(e, t, n))), n = W_(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, l = r || i, u = [], d = /* @__PURE__ */ new Set(), f = {}, p = Infinity, m = e;
do
m = m.props.inherit !== !1 && m.parent;
while (m && !m.isControllingVariants);
- if (Hee.forEach((t, r) => {
- let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? g_(g) || g === !1 ? g : void 0 : h, v = g_(_), y = t === a ? i.isActive : null;
+ if (V_.forEach((t, r) => {
+ let i = n[t], h = o[t], g = m && m.props[t], _ = h === void 0 ? __(g) || g === !1 ? g : void 0 : h, v = __(_), y = t === a ? i.isActive : null;
y === !1 && (p = r);
let b = v && h === void 0 && !(l && c);
- if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || h_(_) || typeof _ == "boolean") return;
+ if (i.protectedKeys = { ...f }, !i.isActive && y === null || !_ && !i.prevProp || g_(_) || typeof _ == "boolean") return;
if (t === "exit" && i.isActive && y !== !0) {
f = {
...f,
@@ -17874,9 +17881,9 @@ function Uee(e) {
};
return;
}
- let x = Wee(i.prevProp, _), S = x || v && (y && !b || r > p), C = !1, w = Array.isArray(_) ? _ : [_], T = {};
+ let x = U_(i.prevProp, _), S = x || v && (y && !b || r > p), C = !1, w = Array.isArray(_) ? _ : [_], T = {};
if (y !== !1) for (let n of w) {
- let { transition: r, transitionEnd: i, ...a } = Dh(e, n, Oh(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = Oh(e, n, kh(e, t)) || {};
T = {
...T,
...a,
@@ -17889,7 +17896,7 @@ function Uee(e) {
...T
}) {
if (t in f) continue;
- let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !I_(n, r) || x : n !== r;
+ let n = T[t], r = E[t], a = Array.isArray(n) && Array.isArray(r) ? !B_(n, r) || x : n !== r;
if (a && n == null) d.add(t);
else if (a || n !== void 0 && d.has(t)) {
S = !0, d.delete(t) && (C = !0), i.needsAnimating[t] = !0;
@@ -17903,8 +17910,8 @@ function Uee(e) {
}), S && (!(b && x) || C)) for (let n of w) {
let r = { type: t };
if (typeof n == "string" && l && c && s?.enteringChildren) {
- let t = Dh(s, n)?.transition?.delayChildren;
- r.delay = oh(s.enteringChildren, e, t);
+ let t = Oh(s, n)?.transition?.delayChildren;
+ r.delay = sh(s.enteringChildren, e, t);
}
u.push({
animation: n,
@@ -17912,12 +17919,12 @@ function Uee(e) {
});
}
}), d.size) {
- let { initial: t } = o, n = {}, r = typeof t != "boolean" && Dh(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom);
+ let { initial: t } = o, n = {}, r = typeof t != "boolean" && Oh(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom);
r && r.transition && (n.transition = r.transition), d.forEach((i) => {
let a = e.getValue(i);
a && (a.liveStyle = !0);
let s = r && !Array.isArray(t) ? r[i] : void 0, c = e.getBaseTargetFromProps(o, i);
- n[i] = (s === void 0 ? c !== void 0 && !Ph(c) ? c : e.initialValues[i] === void 0 ? e.baseTarget[i] : void 0 : s) ?? null;
+ n[i] = (s === void 0 ? c !== void 0 && !Fh(c) ? c : e.initialValues[i] === void 0 ? e.baseTarget[i] : void 0 : s) ?? null;
}), u.push({ animation: n });
}
let h = l && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -17938,16 +17945,16 @@ function Uee(e) {
},
getState: () => n,
reset: () => {
- n = L_(), i = !0;
+ n = W_(), i = !0;
}
};
}
-function Wee(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !I_(t, e) : !1;
+function U_(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !B_(t, e) : !1;
}
-function L_() {
+function W_() {
let e = {};
- for (let t of __) e[t] = {
+ for (let t of v_) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -17957,122 +17964,122 @@ function L_() {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function R_(e, t) {
+function G_(e, t) {
e.min = t.min, e.max = t.max;
}
-function z_(e, t) {
- R_(e.x, t.x), R_(e.y, t.y);
+function K_(e, t) {
+ G_(e.x, t.x), G_(e.y, t.y);
}
-function B_(e, t) {
+function q_(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var V_ = .9999, H_ = 1.0001, U_ = -.01, W_ = .01;
-function G_(e) {
+var J_ = .9999, Y_ = 1.0001, X_ = -.01, Z_ = .01;
+function Q_(e) {
return e.max - e.min;
}
-function K_(e, t, n) {
+function $_(e, t, n) {
return Math.abs(e - t) <= n;
}
-function q_(e, t, n, r = .5) {
- e.origin = r, e.originPoint = of(t.min, t.max, e.origin), e.scale = G_(n) / G_(t), e.translate = of(n.min, n.max, e.origin) - e.originPoint, (e.scale >= V_ && e.scale <= H_ || isNaN(e.scale)) && (e.scale = 1), (e.translate >= U_ && e.translate <= W_ || isNaN(e.translate)) && (e.translate = 0);
+function ev(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = sf(t.min, t.max, e.origin), e.scale = Q_(n) / Q_(t), e.translate = sf(n.min, n.max, e.origin) - e.originPoint, (e.scale >= J_ && e.scale <= Y_ || isNaN(e.scale)) && (e.scale = 1), (e.translate >= X_ && e.translate <= Z_ || isNaN(e.translate)) && (e.translate = 0);
}
-function J_(e, t, n, r) {
- q_(e.x, t.x, n.x, r ? r.originX : void 0), q_(e.y, t.y, n.y, r ? r.originY : void 0);
+function tv(e, t, n, r) {
+ ev(e.x, t.x, n.x, r ? r.originX : void 0), ev(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function Y_(e, t, n, r = 0) {
- e.min = (r ? of(n.min, n.max, r) : n.min) + t.min, e.max = e.min + G_(t);
+function nv(e, t, n, r = 0) {
+ e.min = (r ? sf(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Q_(t);
}
-function X_(e, t, n, r) {
- Y_(e.x, t.x, n.x, r?.x), Y_(e.y, t.y, n.y, r?.y);
+function zee(e, t, n, r) {
+ nv(e.x, t.x, n.x, r?.x), nv(e.y, t.y, n.y, r?.y);
}
-function Z_(e, t, n, r = 0) {
- let i = r ? of(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + G_(t);
+function rv(e, t, n, r = 0) {
+ let i = r ? sf(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + Q_(t);
}
-function Q_(e, t, n, r) {
- Z_(e.x, t.x, n.x, r?.x), Z_(e.y, t.y, n.y, r?.y);
+function iv(e, t, n, r) {
+ rv(e.x, t.x, n.x, r?.x), rv(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function $_(e, t, n, r, i) {
- return e -= t, e = Dg(e, 1 / n, r), i !== void 0 && (e = Dg(e, 1 / i, r)), e;
+function av(e, t, n, r, i) {
+ return e -= t, e = Pg(e, 1 / n, r), i !== void 0 && (e = Pg(e, 1 / i, r)), e;
}
-function ev(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (Ad.test(t) && (t = parseFloat(t), t = of(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = of(a.min, a.max, r);
- e === a && (s -= t), e.min = $_(e.min, t, n, s, i), e.max = $_(e.max, t, n, s, i);
+function Bee(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (Md.test(t) && (t = parseFloat(t), t = sf(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = sf(a.min, a.max, r);
+ e === a && (s -= t), e.min = av(e.min, t, n, s, i), e.max = av(e.max, t, n, s, i);
}
-function tv(e, t, [n, r, i], a, o) {
- ev(e, t[n], t[r], t[i], t.scale, a, o);
+function ov(e, t, [n, r, i], a, o) {
+ Bee(e, t[n], t[r], t[i], t.scale, a, o);
}
-var nv = [
+var Vee = [
"x",
"scaleX",
"originX"
-], rv = [
+], Hee = [
"y",
"scaleY",
"originY"
];
-function iv(e, t, n, r) {
- tv(e.x, t, nv, n ? n.x : void 0, r ? r.x : void 0), tv(e.y, t, rv, n ? n.y : void 0, r ? r.y : void 0);
+function sv(e, t, n, r) {
+ ov(e.x, t, Vee, n ? n.x : void 0, r ? r.x : void 0), ov(e.y, t, Hee, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function av(e) {
+function cv(e) {
return e.translate === 0 && e.scale === 1;
}
-function ov(e) {
- return av(e.x) && av(e.y);
+function lv(e) {
+ return cv(e.x) && cv(e.y);
}
-function sv(e, t) {
+function uv(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Gee(e, t) {
- return sv(e.x, t.x) && sv(e.y, t.y);
+function Uee(e, t) {
+ return uv(e.x, t.x) && uv(e.y, t.y);
}
-function cv(e, t) {
+function dv(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function lv(e, t) {
- return cv(e.x, t.x) && cv(e.y, t.y);
+function fv(e, t) {
+ return dv(e.x, t.x) && dv(e.y, t.y);
}
-function uv(e) {
- return G_(e.x) / G_(e.y);
+function pv(e) {
+ return Q_(e.x) / Q_(e.y);
}
-function dv(e, t) {
+function mv(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function fv(e) {
+function hv(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function pv(e, t) {
+function gv(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var mv = { correct: (e, t) => {
+var _v = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (jd.test(e)) e = parseFloat(e);
+ if (W.test(e)) e = parseFloat(e);
else return e;
}
- return `${pv(e, t.target.x)}% ${pv(e, t.target.y)}%`;
-} }, Kee = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = tf.parse(e);
+ return `${gv(e, t.target.x)}% ${gv(e, t.target.y)}%`;
+} }, Wee = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = nf.parse(e);
if (i.length > 5) return r;
- let a = tf.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = nf.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = of(s, c, .5);
+ let l = sf(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
} };
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function qee(e, t, n) {
+function Gee(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -18083,81 +18090,81 @@ function qee(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Jee = $h.length, hv = (e) => typeof e == "number" || jd.test(e);
-function Yee(e, t, n, r, i, a) {
- i ? (e.opacity = of(0, n.opacity ?? 1, Xee(r)), e.opacityExit = of(t.opacity ?? 1, 0, Zee(r))) : a && (e.opacity = of(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Jee; i++) {
- let a = $h[i], o = gv(t, a), s = gv(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || hv(o) === hv(s) ? (e[a] = Math.max(of(l_(o), l_(s), r), 0), (Ad.test(s) || Ad.test(o)) && (e[a] += "%")) : e[a] = s);
+var Kee = eg.length, vv = (e) => typeof e == "number" || W.test(e);
+function qee(e, t, n, r, i, a) {
+ i ? (e.opacity = sf(0, n.opacity ?? 1, Jee(r)), e.opacityExit = sf(t.opacity ?? 1, 0, Yee(r))) : a && (e.opacity = sf(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < Kee; i++) {
+ let a = eg[i], o = yv(t, a), s = yv(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || vv(o) === vv(s) ? (e[a] = Math.max(sf(u_(o), u_(s), r), 0), (Md.test(s) || Md.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = of(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = sf(t.rotate || 0, n.rotate || 0, r));
}
-function gv(e, t) {
+function yv(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Xee = /*@__PURE__*/ _v(0, .5, qu), Zee = /*@__PURE__*/ _v(.5, .95, Au);
-function _v(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Mu(e, t, r));
+var Jee = /*@__PURE__*/ bv(0, .5, Yu), Yee = /*@__PURE__*/ bv(.5, .95, Mu);
+function bv(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Pu(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function vv(e, t, n) {
- let r = Ph(e) ? e : dh(e);
- return r.start(xh("", r, t, n)), r.animation;
+function xv(e, t, n) {
+ let r = Fh(e) ? e : fh(e);
+ return r.start(Sh("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function yv(e, t, n, r = { passive: !0 }) {
+function Sv(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Qee = (e, t) => e.depth - t.depth, $ee = class {
+var Xee = (e, t) => e.depth - t.depth, Zee = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- Su(this.children, e), this.isDirty = !0;
+ wu(this.children, e), this.isDirty = !0;
}
remove(e) {
- Cu(this.children, e), this.isDirty = !0;
+ Tu(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Qee), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Xee), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function ete(e, t) {
- let n = sd.now(), r = ({ timestamp: i }) => {
+function Qee(e, t) {
+ let n = ld.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (Of(r), e(a - t));
+ a >= t && (kf(r), e(a - t));
};
- return Df.setup(r, !0), () => Of(r);
+ return Of.setup(r, !0), () => kf(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function bv(e) {
- return Ph(e) ? e.get() : e;
+function Cv(e) {
+ return Fh(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var tte = class {
+var $ee = class {
constructor() {
this.members = [];
}
add(e) {
- Su(this.members, e);
+ wu(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (Cu(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (Tu(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (Cu(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (Tu(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -18188,69 +18195,69 @@ var tte = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, nte = {
+}, ete = {
borderRadius: {
- ...mv,
- applyTo: [...$h]
+ ..._v,
+ applyTo: [...eg]
},
- borderTopLeftRadius: mv,
- borderTopRightRadius: mv,
- borderBottomLeftRadius: mv,
- borderBottomRightRadius: mv,
- boxShadow: Kee
-}, xv = {
+ borderTopLeftRadius: _v,
+ borderTopRightRadius: _v,
+ borderBottomLeftRadius: _v,
+ borderBottomRightRadius: _v,
+ boxShadow: Wee
+}, wv = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs
-Object.assign(A_, {
- ...nte,
- ...A_
+Object.assign(j_, {
+ ...ete,
+ ...j_
});
-var Sv = {
+var Tv = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, Cv = [
+}, Ev = [
"",
"X",
"Y",
"Z"
-], rte = 1e3, ite = 0;
-function wv(e, t, n, r) {
+], tte = 1e3, nte = 0;
+function Dv(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var Tv = ({ instance: e }) => e && Lm.get(e)?.demote();
-function Ev(e) {
+var Ov = ({ instance: e }) => e && Rm.get(e)?.demote();
+function kv(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = zh(t);
+ let n = Bh(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", Df, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", Of, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && Ev(r);
+ r && !r.hasCheckedOptimisedAppear && kv(r);
}
-function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function Av({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = ite++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = nte++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, c_.value && (Sv.nodes = Sv.calculatedTargetDeltas = Sv.calculatedProjections = 0), this.nodes.forEach(ste), this.nodes.forEach(hte), this.nodes.forEach(gte), this.nodes.forEach(cte), c_.addProjectionMetrics && c_.addProjectionMetrics(Sv);
+ this.projectionUpdateScheduled = !1, l_.value && (Tv.nodes = Tv.calculatedTargetDeltas = Tv.calculatedProjections = 0), this.nodes.forEach(ate), this.nodes.forEach(pte), this.nodes.forEach(mte), this.nodes.forEach(ote), l_.addProjectionMetrics && l_.addProjectionMetrics(Tv);
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new $ee());
+ this.root === this && (this.nodes = new Zee());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Nu()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Fu()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -18261,15 +18268,15 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = cg(t) && !Nee(t), this.instance = t;
+ this.isSVG = lg(t) && !Nee(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- Df.read(() => {
+ Of.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = ete(i, 250), xv.hasAnimatedSinceResize && (xv.hasAnimatedSinceResize = !1, this.nodes.forEach(Av)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Qee(i, 250), wv.hasAnimatedSinceResize && (wv.hasAnimatedSinceResize = !1, this.nodes.forEach(Nv)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -18277,23 +18284,23 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || xte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !lv(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || yte, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !fv(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...ph(a, "layout"),
+ ...mh(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || Av(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || Nv(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), Of(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), kf(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -18305,7 +18312,7 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_te), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(hte), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -18316,11 +18323,11 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Ev(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- Tv(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && kv(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ Ov(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, Tv(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, Ov(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -18330,39 +18337,39 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(ute), this.nodes.forEach(Ov);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(cte), this.nodes.forEach(jv);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(kv);
+ this.nodes.forEach(Mv);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(fte), this.nodes.forEach(pte), this.nodes.forEach(mte), this.nodes.forEach(ate), this.nodes.forEach(ote)) : this.nodes.forEach(kv), this.clearAllSnapshots();
- let e = sd.now();
- id.delta = wu(0, 1e3 / 60, e - id.timestamp), id.timestamp = e, id.isProcessing = !0, kf.update.process(id), kf.preRender.process(id), kf.render.process(id), id.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ute), this.nodes.forEach(dte), this.nodes.forEach(fte), this.nodes.forEach(rte), this.nodes.forEach(ite)) : this.nodes.forEach(Mv), this.clearAllSnapshots();
+ let e = ld.now();
+ od.delta = Eu(0, 1e3 / 60, e - od.timestamp), od.timestamp = e, od.isProcessing = !0, Af.update.process(od), Af.preRender.process(od), Af.render.process(od), od.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, Wg.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, Gg.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(lte), this.sharedNodes.forEach(vte);
+ this.nodes.forEach(ste), this.sharedNodes.forEach(gte);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Df.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Of.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- Df.postRender(() => {
+ Of.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !G_(this.snapshot.measuredBox.x) && !G_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Q_(this.snapshot.measuredBox.x) && !Q_(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= p_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= m_(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -18382,13 +18389,13 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && Tv(this);
- let t = this.projectionDelta && !ov(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || wg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && Ov(this);
+ let t = this.projectionDelta && !lv(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || jg(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Ste(n), {
+ return e && (n = this.removeTransform(n)), bte(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -18398,42 +18405,42 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return p_();
+ if (!e) return m_();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Cte))) {
+ if (!(this.scroll?.wasRoot || this.path.some(xte))) {
let { scroll: e } = this.root;
- e && (Pg(t.x, e.offset.x), Pg(t.y, e.offset.y));
+ e && (Bg(t.x, e.offset.x), Bg(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = p_();
- if (z_(t, e), this.scroll?.wasRoot) return t;
+ let t = m_();
+ if (K_(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && z_(t, e), Pg(t.x, i.offset.x), Pg(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && K_(t, e), Bg(t.x, i.offset.x), Bg(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || p_();
- z_(r, e);
+ let r = n || m_();
+ K_(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (Pg(r.x, -n.scroll.offset.x), Pg(r.y, -n.scroll.offset.y)), wg(n.latestValues) && Lg(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (Bg(r.x, -n.scroll.offset.x), Bg(r.y, -n.scroll.offset.y)), jg(n.latestValues) && Ug(r, n.latestValues, n.layout?.layoutBox);
}
- return wg(this.latestValues) && Lg(r, this.latestValues, this.layout?.layoutBox), r;
+ return jg(this.latestValues) && Ug(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = p_();
- z_(t, e);
+ let t = m_();
+ K_(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!wg(n.latestValues)) continue;
+ if (!jg(n.latestValues)) continue;
let r;
- n.instance && (Cg(n.latestValues) && n.updateSnapshot(), r = p_(), z_(r, n.measurePageBox())), iv(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Ag(n.latestValues) && n.updateSnapshot(), r = m_(), K_(r, n.measurePageBox())), sv(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return wg(this.latestValues) && iv(t, this.latestValues), t;
+ return jg(this.latestValues) && sv(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -18449,7 +18456,7 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== id.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== od.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -18458,32 +18465,32 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = id.timestamp;
+ this.resolvedRelativeTargetAt = od.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = p_(), this.targetWithTransforms = p_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), X_(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : z_(this.target, this.layout.layoutBox), Ag(this.target, this.targetDelta)) : z_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), c_.value && Sv.calculatedTargetDeltas++);
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = m_(), this.targetWithTransforms = m_()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zee(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : K_(this.target, this.layout.layoutBox), Lg(this.target, this.targetDelta)) : K_(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), l_.value && Tv.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || Cg(this.parent.latestValues) || Tg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Ag(this.parent.latestValues) || Mg(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = p_(), this.relativeTargetOrigin = p_(), Q_(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), z_(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = m_(), this.relativeTargetOrigin = m_(), iv(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), K_(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === id.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === od.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- z_(this.layoutCorrected, this.layout.layoutBox);
+ K_(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- Ng(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = p_());
+ cee(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = m_());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (B_(this.prevProjectionDelta.x, this.projectionDelta.x), B_(this.prevProjectionDelta.y, this.projectionDelta.y)), J_(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !dv(this.projectionDelta.x, this.prevProjectionDelta.x) || !dv(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), c_.value && Sv.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (q_(this.prevProjectionDelta.x, this.projectionDelta.x), q_(this.prevProjectionDelta.y, this.projectionDelta.y)), tv(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !mv(this.projectionDelta.x, this.prevProjectionDelta.x) || !mv(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), l_.value && Tv.calculatedProjections++) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -18499,22 +18506,22 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = d_(), this.projectionDelta = d_(), this.projectionDeltaWithTransform = d_();
+ this.prevProjectionDelta = f_(), this.projectionDelta = f_(), this.projectionDeltaWithTransform = f_();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = d_();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = f_();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = p_(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(bte));
+ let s = m_(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(vte));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = of(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = of(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (jv(o.x, e.x, n), jv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Q_(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), yte(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Gee(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= p_(), z_(f, this.relativeTarget)), c && (this.animationValues = a, Yee(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = sf(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = sf(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (Pv(o.x, e.x, n), Pv(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (iv(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), _te(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Uee(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= m_(), K_(f, this.relativeTarget)), c && (this.animationValues = a, qee(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (Of(this.pendingAnimation), void 0), this.pendingAnimation = Df.update(() => {
- xv.hasAnimatedSinceResize = !0, this.motionValue ||= dh(0), this.motionValue.jump(0, !1), this.currentAnimation = vv(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (kf(this.pendingAnimation), void 0), this.pendingAnimation = Of.update(() => {
+ wv.hasAnimatedSinceResize = !0, this.motionValue ||= fh(0), this.motionValue.jump(0, !1), this.currentAnimation = xv(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -18524,7 +18531,7 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), fp(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), pp(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -18533,23 +18540,23 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(rte), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(tte), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && Iv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
- i = this.target || p_();
- let t = G_(this.layout.layoutBox.x);
+ if (this !== e && this.layout && n && zv(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ i = this.target || m_();
+ let t = Q_(this.layout.layoutBox.x);
i.x.min = e.target.x.min, i.x.max = i.x.min + t;
- let n = G_(this.layout.layoutBox.y);
+ let n = Q_(this.layout.layoutBox.y);
i.y.min = e.target.y.min, i.y.max = i.y.min + n;
}
- z_(t, i), Lg(t, r), J_(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ K_(t, i), Ug(t, r), tv(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new tte()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new $ee()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -18586,8 +18593,8 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && wv("z", e, r, this.animationValues);
- for (let t = 0; t < Cv.length; t++) wv(`rotate${Cv[t]}`, e, r, this.animationValues), wv(`skew${Cv[t]}`, e, r, this.animationValues);
+ n.z && Dv("z", e, r, this.animationValues);
+ for (let t = 0; t < Ev.length; t++) Dv(`rotate${Ev[t]}`, e, r, this.animationValues), Dv(`skew${Ev[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -18600,71 +18607,71 @@ function Dv({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = bv(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Cv(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = bv(t?.pointerEvents) || ""), this.hasProjected && !wg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Cv(t?.pointerEvents) || ""), this.hasProjected && !jg(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = qee(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Gee(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in A_) {
+ for (let t in j_) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = A_[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = j_[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? bv(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? Cv(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Ov), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(jv), this.root.sharedNodes.clear();
}
};
}
-function ate(e) {
- e.updateLayout(), dte(e);
+function rte(e) {
+ e.updateLayout(), lte(e);
}
-function ote(e) {
+function ite(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") fv((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = G_(r);
+ if (i === "size") hv((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = Q_(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- R_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else Iv(i, t.layoutBox, n) && fv((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = G_(n[r]);
+ G_(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else zv(i, t.layoutBox, n) && hv((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = Q_(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = d_();
- J_(o, n, t.layoutBox);
- let s = d_();
- a ? J_(s, e.applyTransform(r, !0), t.measuredBox) : J_(s, n, t.layoutBox);
- let c = !ov(o), l = !1;
+ let o = f_();
+ tv(o, n, t.layoutBox);
+ let s = f_();
+ a ? tv(s, e.applyTransform(r, !0), t.measuredBox) : tv(s, n, t.layoutBox);
+ let c = !lv(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = p_();
- Q_(s, t.layoutBox, i.layoutBox, o);
- let c = p_();
- Q_(c, n, a.layoutBox, o), lv(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = m_();
+ iv(s, t.layoutBox, i.layoutBox, o);
+ let c = m_();
+ iv(c, n, a.layoutBox, o), fv(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -18682,68 +18689,68 @@ function ote(e) {
}
e.options.transition = void 0;
}
-function ste(e) {
- c_.value && Sv.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function ate(e) {
+ l_.value && Tv.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function cte(e) {
+function ote(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function lte(e) {
+function ste(e) {
e.clearSnapshot();
}
-function Ov(e) {
+function jv(e) {
e.clearMeasurements();
}
-function ute(e) {
+function cte(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function kv(e) {
+function Mv(e) {
e.isLayoutDirty = !1;
}
-function dte(e) {
+function lte(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- fv((e) => Pg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ hv((e) => Bg(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function fte(e) {
+function ute(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function pte(e) {
+function dte(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function mte(e) {
+function fte(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function Av(e) {
+function Nv(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function hte(e) {
+function pte(e) {
e.resolveTargetDelta();
}
-function gte(e) {
+function mte(e) {
e.calcProjection();
}
-function _te(e) {
+function hte(e) {
e.resetSkewAndRotation();
}
-function vte(e) {
+function gte(e) {
e.removeLeadSnapshot();
}
-function jv(e, t, n) {
- e.translate = of(t.translate, 0, n), e.scale = of(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function Pv(e, t, n) {
+ e.translate = sf(t.translate, 0, n), e.scale = sf(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function Mv(e, t, n, r) {
- e.min = of(t.min, n.min, r), e.max = of(t.max, n.max, r);
+function Fv(e, t, n, r) {
+ e.min = sf(t.min, n.min, r), e.max = sf(t.max, n.max, r);
}
-function yte(e, t, n, r) {
- Mv(e.x, t.x, n.x, r), Mv(e.y, t.y, n.y, r);
+function _te(e, t, n, r) {
+ Fv(e.x, t.x, n.x, r), Fv(e.y, t.y, n.y, r);
}
-function bte(e) {
+function vte(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var xte = {
+var yte = {
duration: .45,
ease: [
.4,
@@ -18751,79 +18758,79 @@ var xte = {
.1,
1
]
-}, Nv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Pv = Nv("applewebkit/") && !Nv("chrome/") ? Math.round : Au;
-function Fv(e) {
- e.min = Pv(e.min), e.max = Pv(e.max);
+}, Iv = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Lv = Iv("applewebkit/") && !Iv("chrome/") ? Math.round : Mu;
+function Rv(e) {
+ e.min = Lv(e.min), e.max = Lv(e.max);
}
-function Ste(e) {
- Fv(e.x), Fv(e.y);
+function bte(e) {
+ Rv(e.x), Rv(e.y);
}
-function Iv(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !K_(uv(t), uv(n), .2);
+function zv(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !$_(pv(t), pv(n), .2);
}
-function Cte(e) {
+function xte(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var wte = Dv({
- attachResizeListener: (e, t) => yv(e, "resize", t),
+var Ste = Av({
+ attachResizeListener: (e, t) => Sv(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), Lv = { current: void 0 }, Rv = Dv({
+}), Bv = { current: void 0 }, Vv = Av({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!Lv.current) {
- let e = new wte({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Lv.current = e;
+ if (!Bv.current) {
+ let e = new Ste({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), Bv.current = e;
}
- return Lv.current;
+ return Bv.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), zv = (0, F.createContext)({
+}), Hv = (0, P.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Bv(e, t) {
+function Uv(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Tte(...e) {
+function Cte(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Bv(e, t);
+ let r = Uv(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Bv(e[t], null);
+ typeof n == "function" ? n() : Uv(e[t], null);
}
};
};
}
-function Ete(...e) {
- return F.useCallback(Tte(...e), e);
+function wte(...e) {
+ return P.useCallback(Cte(...e), e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Dte = class extends F.Component {
+var Tte = class extends P.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.childRef.current;
- if (sg(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = sg(e) && e.offsetWidth || 0, r = sg(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ if (cg(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = cg(e) && e.offsetWidth || 0, r = cg(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
}
return null;
@@ -18833,8 +18840,8 @@ var Dte = class extends F.Component {
return this.props.children;
}
};
-function Ote({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
- let o = (0, F.useId)(), s = (0, F.useRef)(null), c = (0, F.useRef)({
+function Ete({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+ let o = (0, P.useId)(), s = (0, P.useRef)(null), c = (0, P.useRef)({
width: 0,
height: 0,
top: 0,
@@ -18842,8 +18849,8 @@ function Ote({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: l } = (0, F.useContext)(zv), u = Ete(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
- return (0, F.useInsertionEffect)(() => {
+ }), { nonce: l } = (0, P.useContext)(Hv), u = wte(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ return (0, P.useInsertionEffect)(() => {
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
if (t || a === !1 || !s.current || !e || !u) return;
let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`, y = s.current;
@@ -18862,22 +18869,22 @@ function Ote({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
`), () => {
s.current?.removeAttribute("data-motion-pop-id"), S.contains(x) && S.removeChild(x);
};
- }, [t]), (0, I.jsx)(Dte, {
+ }, [t]), (0, F.jsx)(Tte, {
isPresent: t,
childRef: s,
sizeRef: c,
pop: a,
- children: a === !1 ? e : F.cloneElement(e, { ref: u })
+ children: a === !1 ? e : P.cloneElement(e, { ref: u })
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var kte = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = yu(Ate), d = (0, F.useId)(), f = (0, F.useRef)(n), p = (0, F.useRef)(r);
- bu(() => {
+var Dte = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = xu(Ote), d = (0, P.useId)(), f = (0, P.useRef)(n), p = (0, P.useRef)(r);
+ Su(() => {
f.current = n, p.current = r;
});
- let m = !0, h = (0, F.useMemo)(() => (m = !1, {
+ let m = !0, h = (0, P.useMemo)(() => (m = !1, {
id: d,
initial: t,
isPresent: n,
@@ -18895,71 +18902,71 @@ var kte = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u,
r
]);
- return a && m && (h = { ...h }), (0, F.useMemo)(() => {
+ return a && m && (h = { ...h }), (0, P.useMemo)(() => {
u.forEach((e, t) => u.set(t, !1));
- }, [n]), F.useEffect(() => {
+ }, [n]), P.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Ote, {
+ }, [n]), e = (0, F.jsx)(Ete, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
anchorY: c,
root: l,
children: e
- }), (0, I.jsx)(xu.Provider, {
+ }), (0, F.jsx)(Cu.Provider, {
value: h,
children: e
});
};
-function Ate() {
+function Ote() {
return /* @__PURE__ */ new Map();
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Vv(e = !0) {
- let t = (0, F.useContext)(xu);
+function Wv(e = !0) {
+ let t = (0, P.useContext)(Cu);
if (t === null) return [!0, null];
- let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
- (0, F.useEffect)(() => {
+ let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, P.useId)();
+ (0, P.useEffect)(() => {
if (e) return i(a);
}, [e]);
- let o = (0, F.useCallback)(() => e && r && r(a), [
+ let o = (0, P.useCallback)(() => e && r && r(a), [
a,
r,
e
]);
return !n && r ? [!1, o] : [!0];
}
-function Hv() {
- return jte((0, F.useContext)(xu));
+function Gv() {
+ return kte((0, P.useContext)(Cu));
}
-function jte(e) {
+function kte(e) {
return e === null || e.isPresent;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Uv = (e) => e.key || "";
-function Wv(e) {
+var Kv = (e) => e.key || "";
+function qv(e) {
let t = [];
- return F.Children.forEach(e, (e) => {
- (0, F.isValidElement)(e) && t.push(e);
+ return P.Children.forEach(e, (e) => {
+ (0, P.isValidElement)(e) && t.push(e);
}), t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Gv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Vv(o), f = (0, F.useMemo)(() => Wv(e), [e]), p = o && !u ? [] : f.map(Uv), m = (0, F.useRef)(!0), h = yu(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
- bu(() => {
+var Jv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Wv(o), f = (0, P.useMemo)(() => qv(e), [e]), p = o && !u ? [] : f.map(Kv), m = (0, P.useRef)(!0), h = xu(() => /* @__PURE__ */ new Map()), g = (0, P.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, P.useState)(f), [y, b] = (0, P.useState)(f);
+ Su(() => {
o && !u && !y.length && d?.();
}, [
u,
o,
y.length,
d
- ]), bu(() => {
+ ]), Su(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Uv(y[e]);
+ let t = Kv(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -18971,15 +18978,15 @@ var Gv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Uv(n));
+ let r = p.indexOf(Kv(n));
r === -1 ? (e.splice(t++, 0, n), x.push(n)) : t = r + x.length + 1;
}
- return x.every((e) => h.get(Uv(e))) ? e = f : a === "wait" && (e = x), b(Wv(e)), v(f), null;
+ return x.every((e) => h.get(Kv(e))) ? e = f : a === "wait" && (e = x), b(qv(e)), v(f), null;
}
- let { forceRender: S } = (0, F.useContext)(vu);
- return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Uv(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(kte, {
+ let { forceRender: S } = (0, P.useContext)(bu);
+ return (0, F.jsx)(F.Fragment, { children: y.map((e) => {
+ let _ = Kv(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, F.jsx)(Dte, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -19000,7 +19007,7 @@ var Gv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Kv = (0, F.createContext)({ strict: !1 }), qv = {
+}, Yv = (0, P.createContext)({ strict: !1 }), Xv = {
animation: [
"animate",
"variants",
@@ -19037,76 +19044,76 @@ var Gv = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Jv = !1;
-function Mte() {
- if (Jv) return;
+}, Zv = !1;
+function Ate() {
+ if (Zv) return;
let e = {};
- for (let t in qv) e[t] = { isEnabled: (e) => qv[t].some((t) => !!e[t]) };
- E_(e), Jv = !0;
+ for (let t in Xv) e[t] = { isEnabled: (e) => Xv[t].some((t) => !!e[t]) };
+ D_(e), Zv = !0;
}
-function Yv() {
- return Mte(), Iee();
+function Qv() {
+ return Ate(), Iee();
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Nte(e) {
- let t = Yv();
+function $v(e) {
+ let t = Qv();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- E_(t);
+ D_(t);
}
//#endregion
//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Pte({ children: e, ...t }) {
- let n = (0, F.useContext)(zv);
+function jte({ children: e, ...t }) {
+ let n = (0, P.useContext)(Hv);
t = {
...n,
...t
- }, t.transition = fh(t.transition, n.transition), t.isStatic = yu(() => t.isStatic);
- let r = (0, F.useMemo)(() => t, [
+ }, t.transition = ph(t.transition, n.transition), t.isStatic = xu(() => t.isStatic);
+ let r = (0, P.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
t.reducedMotion,
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(zv.Provider, {
+ return (0, F.jsx)(Hv.Provider, {
value: r,
children: e
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Xv = /* @__PURE__ */ (0, F.createContext)({});
+var ey = /* @__PURE__ */ (0, P.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Fte(e, t) {
- if (y_(e)) {
+function Mte(e, t) {
+ if (b_(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || g_(t) ? t : void 0,
- animate: g_(n) ? n : void 0
+ initial: t === !1 || __(t) ? t : void 0,
+ animate: __(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Ite(e) {
- let { initial: t, animate: n } = Fte(e, (0, F.useContext)(Xv));
- return (0, F.useMemo)(() => ({
+function Nte(e) {
+ let { initial: t, animate: n } = Mte(e, (0, P.useContext)(ey));
+ return (0, P.useMemo)(() => ({
initial: t,
animate: n
- }), [Zv(t), Zv(n)]);
+ }), [ty(t), ty(n)]);
}
-function Zv(e) {
+function ty(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Qv = () => ({
+var ny = () => ({
style: {},
transform: {},
transformOrigin: {},
@@ -19114,42 +19121,42 @@ var Qv = () => ({
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function $v(e, t, n) {
- for (let r in t) !Ph(t[r]) && !j_(r, n) && (e[r] = t[r]);
+function ry(e, t, n) {
+ for (let r in t) !Fh(t[r]) && !M_(r, n) && (e[r] = t[r]);
}
-function Lte({ transformTemplate: e }, t) {
- return (0, F.useMemo)(() => {
- let n = Qv();
- return gg(n, t, e), Object.assign({}, n.vars, n.style);
+function Pte({ transformTemplate: e }, t) {
+ return (0, P.useMemo)(() => {
+ let n = ny();
+ return _g(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function ey(e, t) {
+function Fte(e, t) {
let n = e.style || {}, r = {};
- return $v(r, n, e), Object.assign(r, Lte(e, t)), r;
+ return ry(r, n, e), Object.assign(r, Pte(e, t)), r;
}
-function ty(e, t) {
- let n = {}, r = ey(e, t);
+function Ite(e, t) {
+ let n = {}, r = Fte(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var ny = () => ({
- ...Qv(),
+var iy = () => ({
+ ...ny(),
attrs: {}
});
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Rte(e, t, n, r) {
- let i = (0, F.useMemo)(() => {
- let n = ny();
- return vg(n, t, P_(r), e.transformTemplate, e.style), {
+function Lte(e, t, n, r) {
+ let i = (0, P.useMemo)(() => {
+ let n = iy();
+ return bg(n, t, I_(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- $v(t, e.style, e), i.style = {
+ ry(t, e.style, e), i.style = {
...t,
...i.style
};
@@ -19158,23 +19165,23 @@ function Rte(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var zte = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function ry(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || zte.has(e);
+var ay = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function oy(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || ay.has(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function Bte(e, t) {
- return e.startsWith("on") ? !ry(e) : t?.(e) ?? !ry(e);
+function sy(e, t) {
+ return e.startsWith("on") ? !oy(e) : t?.(e) ?? !oy(e);
}
-function Vte(e, t, n, r) {
+function cy(e, t, n, r) {
let i = {};
- for (let a in e) (a !== "values" || typeof e.values != "object") && (Ph(e[a]) || (Bte(a, r) || n === !0 && ry(a) || !t && !ry(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
+ for (let a in e) (a !== "values" || typeof e.values != "object") && (Fh(e[a]) || (sy(a, r) || n === !0 && oy(a) || !t && !oy(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]));
return i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var Hte = [
+var ly = [
"animate",
"circle",
"defs",
@@ -19203,42 +19210,42 @@ var Hte = [
];
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function iy(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(Hte.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function uy(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(ly.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function Ute(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? iy(e) ? Rte : ty)(t, r, i, e), l = Vte(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function Rte(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? uy(e) ? Lte : Ite)(t, r, i, e), l = cy(t, typeof e == "string", a, s), u = e === P.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => Ph(d) ? d.get() : d, [d]);
- return (0, F.createElement)(e, {
+ }, { children: d } = t, f = (0, P.useMemo)(() => Fh(d) ? d.get() : d, [d]);
+ return (0, P.createElement)(e, {
...u,
children: f
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function Wte({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function zte({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: Gte(n, r, i, e),
+ latestValues: Bte(n, r, i, e),
renderState: t()
};
}
-function Gte(e, t, n, r) {
+function Bte(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = bv(a[e]);
- let { initial: o, animate: s } = e, c = y_(e), l = b_(e);
+ for (let e in a) i[e] = Cv(a[e]);
+ let { initial: o, animate: s } = e, c = b_(e), l = x_(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !h_(d)) {
+ if (d && typeof d != "boolean" && !g_(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = Eh(e, t[n]);
+ let r = Dh(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -19255,25 +19262,25 @@ function Gte(e, t, n, r) {
}
return i;
}
-var ay = (e) => (t, n) => {
- let r = (0, F.useContext)(Xv), i = (0, F.useContext)(xu), a = () => Wte(e, t, r, i);
- return n ? a() : yu(a);
-}, Kte = /*@__PURE__*/ ay({
- scrapeMotionValuesFromProps: M_,
- createRenderState: Qv
-}), qte = /*@__PURE__*/ ay({
- scrapeMotionValuesFromProps: F_,
+var dy = (e) => (t, n) => {
+ let r = (0, P.useContext)(ey), i = (0, P.useContext)(Cu), a = () => zte(e, t, r, i);
+ return n ? a() : xu(a);
+}, Vte = /*@__PURE__*/ dy({
+ scrapeMotionValuesFromProps: N_,
createRenderState: ny
-}), oy = Symbol.for("motionComponentSymbol");
+}), Hte = /*@__PURE__*/ dy({
+ scrapeMotionValuesFromProps: R_,
+ createRenderState: iy
+}), Ute = Symbol.for("motionComponentSymbol");
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function sy(e, t, n) {
- let r = (0, F.useRef)(n);
- (0, F.useInsertionEffect)(() => {
+function Wte(e, t, n) {
+ let r = (0, P.useRef)(n);
+ (0, P.useInsertionEffect)(() => {
r.current = n;
});
- let i = (0, F.useRef)(null);
- return (0, F.useCallback)((n) => {
+ let i = (0, P.useRef)(null);
+ return (0, P.useCallback)((n) => {
n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
let a = r.current;
if (typeof a == "function") {
@@ -19286,16 +19293,16 @@ function sy(e, t, n) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var cy = (0, F.createContext)({});
+var fy = (0, P.createContext)({});
//#endregion
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function ly(e) {
+function py(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Jte(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Xv), s = (0, F.useContext)(Kv), c = (0, F.useContext)(xu), l = (0, F.useContext)(zv), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function Gte(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, P.useContext)(ey), s = (0, P.useContext)(Yv), c = (0, P.useContext)(Cu), l = (0, P.useContext)(Hv), u = l.reducedMotion, d = l.skipAnimations, f = (0, P.useRef)(null), p = (0, P.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -19306,29 +19313,29 @@ function Jte(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(cy);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Yte(f.current, n, i, h);
- let g = (0, F.useRef)(!1);
- (0, F.useInsertionEffect)(() => {
+ let m = f.current, h = (0, P.useContext)(fy);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Kte(f.current, n, i, h);
+ let g = (0, P.useRef)(!1);
+ (0, P.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
});
- let _ = n[Rh], v = (0, F.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return bu(() => {
+ let _ = n[zh], v = (0, P.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return Su(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
- }, []), bu(() => {
+ }, []), Su(() => {
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
- }), (0, F.useEffect)(() => {
+ }), (0, P.useEffect)(() => {
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
window.MotionHandoffMarkAsComplete?.(_);
}), !1), m.enteringChildren = void 0);
}), m;
}
-function Yte(e, t, n, r) {
+function Kte(e, t, n, r) {
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : uy(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : my(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
- alwaysMeasureLayout: !!o || s && ly(s),
+ alwaysMeasureLayout: !!o || s && py(s),
visualElement: e,
animationType: typeof a == "string" ? a : "both",
initialPromotionConfig: r,
@@ -19338,46 +19345,46 @@ function Yte(e, t, n, r) {
layoutAnchor: u
});
}
-function uy(e) {
- if (e) return e.options.allowProjection === !1 ? uy(e.parent) : e.projection;
+function my(e) {
+ if (e) return e.options.allowProjection === !1 ? my(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function dy(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Nte(r);
- let a = n ? n === "svg" : iy(e), o = a ? qte : Kte;
+function hy(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && $v(r);
+ let a = n ? n === "svg" : uy(e), o = a ? Hte : Vte;
function s(n, s) {
let c, l = {
- ...(0, F.useContext)(zv),
+ ...(0, P.useContext)(Hv),
...n,
- layoutId: Xte(n)
- }, { isStatic: u, isValidProp: d } = l, f = Ite(n), p = o(n, u);
+ layoutId: qte(n)
+ }, { isStatic: u, isValidProp: d } = l, f = Nte(n), p = o(n, u);
if (!u && typeof window < "u") {
- Zte(l, r);
- let t = Qte(l);
- c = t.MeasureLayout, f.visualElement = Jte(e, p, l, i, t.ProjectionNode, a);
+ Jte(l, r);
+ let t = Yte(l);
+ c = t.MeasureLayout, f.visualElement = Gte(e, p, l, i, t.ProjectionNode, a);
}
- return (0, I.jsxs)(Xv.Provider, {
+ return (0, F.jsxs)(ey.Provider, {
value: f,
- children: [c && f.visualElement ? (0, I.jsx)(c, {
+ children: [c && f.visualElement ? (0, F.jsx)(c, {
visualElement: f.visualElement,
...l
- }) : null, Ute(e, n, sy(p, f.visualElement, s), p, u, t, a, d)]
+ }) : null, Rte(e, n, Wte(p, f.visualElement, s), p, u, t, a, d)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
- let c = (0, F.forwardRef)(s);
- return c[oy] = e, c;
+ let c = (0, P.forwardRef)(s);
+ return c[Ute] = e, c;
}
-function Xte({ layoutId: e }) {
- let t = (0, F.useContext)(vu).id;
+function qte({ layoutId: e }) {
+ let t = (0, P.useContext)(bu).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Zte(e, t) {
- (0, F.useContext)(Kv).strict;
+function Jte(e, t) {
+ (0, P.useContext)(Yv).strict;
}
-function Qte(e) {
- let { drag: t, layout: n } = Yv();
+function Yte(e) {
+ let { drag: t, layout: n } = Qv();
if (!t && !n) return {};
let r = {
...t,
@@ -19390,20 +19397,20 @@ function Qte(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function $te(e, t) {
- if (typeof Proxy > "u") return dy;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => dy(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, dy(a, void 0, e, t)), n.get(a)) });
+function Xte(e, t) {
+ if (typeof Proxy > "u") return hy;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => hy(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, hy(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var ene = (e, t) => t.isSVG ?? iy(e) ? new Vee(t) : new zee(t, { allowProjection: e !== F.Fragment }), tne = class extends O_ {
+var Zte = (e, t) => t.isSVG ?? uy(e) ? new z_(t) : new P_(t, { allowProjection: e !== P.Fragment }), Qte = class extends k_ {
constructor(e) {
- super(e), e.animationState ||= Uee(e);
+ super(e), e.animationState ||= H_(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- h_(e) && (this.unmountControls = e.subscribe(this.node));
+ g_(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -19415,11 +19422,11 @@ var ene = (e, t) => t.isSVG ?? iy(e) ? new Vee(t) : new zee(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, nne = 0, rne = {
- animation: { Feature: tne },
- exit: { Feature: class extends O_ {
+}, $te = 0, ene = {
+ animation: { Feature: Qte },
+ exit: { Feature: class extends k_ {
constructor() {
- super(...arguments), this.id = nne++;
+ super(...arguments), this.id = $te++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -19430,7 +19437,7 @@ var ene = (e, t) => t.isSVG ?? iy(e) ? new Vee(t) : new zee(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = Dh(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = Oh(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -19452,28 +19459,28 @@ var ene = (e, t) => t.isSVG ?? iy(e) ? new Vee(t) : new zee(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function fy(e) {
+function gy(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var ine = (e) => (t) => Yg(t) && e(t, fy(t));
+var tne = (e) => (t) => Xg(t) && e(t, gy(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function py(e, t, n, r) {
- return yv(e, t, ine(n), r);
+function _y(e, t, n, r) {
+ return Sv(e, t, tne(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var my = ({ current: e }) => e ? e.ownerDocument.defaultView : null, hy = (e, t) => Math.abs(e - t);
-function ane(e, t) {
- let n = hy(e.x, t.x), r = hy(e.y, t.y);
+var vy = ({ current: e }) => e ? e.ownerDocument.defaultView : null, yy = (e, t) => Math.abs(e - t);
+function nne(e, t) {
+ let n = yy(e.x, t.x), r = yy(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
-var gy = /*#__PURE__*/ new Set(["auto", "scroll"]), _y = class {
+var by = /*#__PURE__*/ new Set(["auto", "scroll"]), xy = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19481,8 +19488,8 @@ var gy = /*#__PURE__*/ new Set(["auto", "scroll"]), _y = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = vy(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = by(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = ane(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Sy(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = wy(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = nne(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19490,38 +19497,38 @@ var gy = /*#__PURE__*/ new Set(["auto", "scroll"]), _y = class {
let { point: r } = e;
this.history.push({
...r,
- timestamp: sd.now()
+ timestamp: ld.now()
});
let { onStart: i, onMove: a } = this.handlers;
t || (i && i(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a && a(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = vy(t, this.transformPagePoint), this.hasPendingMove = !0, Df.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Sy(t, this.transformPagePoint), this.hasPendingMove = !0, Of.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = by(e.type === "pointercancel" ? this.lastMoveEventInfo : vy(t, this.transformPagePoint), this.history);
+ let a = wy(e.type === "pointercancel" ? this.lastMoveEventInfo : Sy(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
- }, !Yg(e)) return;
+ }, !Xg(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = vy(fy(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = id;
+ let s = Sy(gy(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = od;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, by(s, this.history));
+ u && u(e, wy(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = ju(py(this.contextWindow, "pointermove", this.handlePointerMove, d), py(this.contextWindow, "pointerup", this.handlePointerUp, d), py(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = Nu(_y(this.contextWindow, "pointermove", this.handlePointerMove, d), _y(this.contextWindow, "pointerup", this.handlePointerUp, d), _y(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (gy.has(e.overflowX) || gy.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (by.has(e.overflowX) || by.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -19546,51 +19553,51 @@ var gy = /*#__PURE__*/ new Set(["auto", "scroll"]), _y = class {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), Df.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), Of.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), Of(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), kf(this.updatePoint);
}
};
-function vy(e, t) {
+function Sy(e, t) {
return t ? { point: t(e.point) } : e;
}
-function yy(e, t) {
+function Cy(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function by({ point: e }, t) {
+function wy({ point: e }, t) {
return {
point: e,
- delta: yy(e, xy(t)),
- offset: yy(e, one(t)),
- velocity: sne(t, .1)
+ delta: Cy(e, Ey(t)),
+ offset: Cy(e, Ty(t)),
+ velocity: Dy(t, .1)
};
}
-function one(e) {
+function Ty(e) {
return e[0];
}
-function xy(e) {
+function Ey(e) {
return e[e.length - 1];
}
-function sne(e, t) {
+function Dy(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = xy(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Pu(t)));) n--;
+ let n = e.length - 1, r = null, i = Ey(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Iu(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Pu(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ Fu(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Iu(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Lu(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -19603,66 +19610,66 @@ function sne(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function cne(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? of(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? of(n, e, r.max) : Math.min(e, n)), e;
+function Oy(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? sf(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? sf(n, e, r.max) : Math.min(e, n)), e;
}
-function Sy(e, t, n) {
+function ky(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function lne(e, { top: t, left: n, bottom: r, right: i }) {
+function rne(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Sy(e.x, n, i),
- y: Sy(e.y, t, r)
+ x: ky(e.x, n, i),
+ y: ky(e.y, t, r)
};
}
-function Cy(e, t) {
+function Ay(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function wy(e, t) {
+function ine(e, t) {
return {
- x: Cy(e.x, t.x),
- y: Cy(e.y, t.y)
+ x: Ay(e.x, t.x),
+ y: Ay(e.y, t.y)
};
}
-function Ty(e, t) {
- let n = .5, r = G_(e), i = G_(t);
- return i > r ? n = /* @__PURE__ */ Mu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Mu(e.min, e.max - i, t.min)), wu(0, 1, n);
+function ane(e, t) {
+ let n = .5, r = Q_(e), i = Q_(t);
+ return i > r ? n = /* @__PURE__ */ Pu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Pu(e.min, e.max - i, t.min)), Eu(0, 1, n);
}
-function Ey(e, t) {
+function one(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var Dy = .35;
-function Oy(e = Dy) {
- return e === !1 ? e = 0 : e === !0 && (e = Dy), {
- x: ky(e, "left", "right"),
- y: ky(e, "top", "bottom")
+var jy = .35;
+function sne(e = jy) {
+ return e === !1 ? e = 0 : e === !0 && (e = jy), {
+ x: My(e, "left", "right"),
+ y: My(e, "top", "bottom")
};
}
-function ky(e, t, n) {
+function My(e, t, n) {
return {
- min: Ay(e, t),
- max: Ay(e, n)
+ min: Ny(e, t),
+ max: Ny(e, n)
};
}
-function Ay(e, t) {
+function Ny(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var jy = /* @__PURE__ */ new WeakMap(), une = class {
+var cne = /* @__PURE__ */ new WeakMap(), lne = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = p_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = m_(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
let { presenceContext: r } = this.visualElement;
@@ -19672,17 +19679,17 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
}, a = (e, t) => {
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = gee(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), fv((e) => {
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), hv((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (Ad.test(t)) {
+ if (Md.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
- r && (t = G_(r) * (parseFloat(t) / 100));
+ r && (t = Q_(r) * (parseFloat(t) / 100));
}
}
this.originPoint[e] = t;
- }), i && Df.update(() => i(e, t), !1, !0), Ih(this.visualElement, "transform");
+ }), i && Of.update(() => i(e, t), !1, !0), Lh(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -19690,7 +19697,7 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
- r && this.currentDirection === null ? (this.currentDirection = fne(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && Df.update(() => a(e, t), !1, !0));
+ r && this.currentDirection === null ? (this.currentDirection = dne(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && Of.update(() => a(e, t), !1, !0));
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -19700,7 +19707,7 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new _y(e, {
+ this.panSession = new xy(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -19710,7 +19717,7 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: my(this.visualElement),
+ contextWindow: vy(this.visualElement),
element: this.visualElement.current
});
}
@@ -19720,7 +19727,7 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && Df.postRender(() => o(n, r));
+ o && Of.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -19734,32 +19741,32 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !Ny(e, r, this.currentDirection)) return;
+ if (!n || !Fy(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = cne(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = Oy(a, this.constraints[e], this.elastic[e])), i.set(a);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && ly(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? lne(n.layoutBox, e) : !1, this.elastic = Oy(t), r !== this.constraints && !ly(e) && n && this.constraints && !this.hasMutatedConstraints && fv((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ey(n.layoutBox[e], this.constraints[e]));
+ e && py(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? rne(n.layoutBox, e) : !1, this.elastic = sne(t), r !== this.constraints && !py(e) && n && this.constraints && !this.hasMutatedConstraints && hv((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = one(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !ly(e)) return !1;
+ if (!e || !py(e)) return !1;
let n = e.current, { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = zg(n, r.root, this.visualElement.getTransformPagePoint()), a = wy(r.layout.layoutBox, i);
+ let i = lee(n, r.root, this.visualElement.getTransformPagePoint()), a = ine(r.layout.layoutBox, i);
if (t) {
- let e = t(fee(a));
- this.hasMutatedConstraints = !!e, e && (a = xg(e));
+ let e = t(Dg(a));
+ this.hasMutatedConstraints = !!e, e && (a = Eg(e));
}
return a;
}
startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = fv((o) => {
- if (!Ny(o, t, this.currentDirection)) return;
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = hv((o) => {
+ if (!Fy(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -19782,10 +19789,10 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return Ih(this.visualElement, e), n.start(xh(e, n, 0, t, this.visualElement, !1));
+ return Lh(this.visualElement, e), n.start(Sh(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- fv((e) => this.getAxisMotionValue(e).stop());
+ hv((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -19796,49 +19803,49 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- fv((e) => {
- if (!Ny(e, n, this.currentDirection)) return;
+ hv((e) => {
+ if (!Fy(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
- t.set((t.get() || 0) + i[e] - of(r, o, .5));
+ t.set((t.get() || 0) + i[e] - sf(r, o, .5));
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!ly(t) || !n || !this.constraints) return;
+ if (!py(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- fv((e) => {
+ hv((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Ty({
+ i[e] = ane({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), fv((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), hv((t) => {
let n = this.getAxisMotionValue(t);
- if (!Ny(t, e, null) || !n.get()) return;
+ if (!Fy(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
- n.set(of(r, a, i[t]));
+ n.set(sf(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- jy.set(this.visualElement, this);
- let e = this.visualElement.current, t = py(e, "pointerdown", (t) => {
+ cne.set(this.visualElement, this);
+ let e = this.visualElement.current, t = _y(e, "pointerdown", (t) => {
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && See(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- ly(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= dne(e, t.current, () => this.scalePositionWithinConstraints()));
+ py(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= une(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), Df.read(r);
- let o = yv(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (fv((t) => {
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), Of.read(r);
+ let o = Sv(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (hv((t) => {
let n = this.getAxisMotionValue(t);
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
}), this.visualElement.render());
@@ -19848,7 +19855,7 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Dy, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = jy, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -19860,34 +19867,34 @@ var jy = /* @__PURE__ */ new WeakMap(), une = class {
};
}
};
-function My(e) {
+function Py(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function dne(e, t, n) {
- let r = s_(e, My(n)), i = s_(t, My(n));
+function une(e, t, n) {
+ let r = c_(e, Py(n)), i = c_(t, Py(n));
return () => {
r(), i();
};
}
-function Ny(e, t, n) {
+function Fy(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function fne(e, t = 10) {
+function dne(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var pne = class extends O_ {
+var fne = class extends k_ {
constructor(e) {
- super(e), this.removeGroupControls = Au, this.removeListeners = Au, this.controls = new une(e);
+ super(e), this.removeGroupControls = Mu, this.removeListeners = Mu, this.controls = new lne(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Au;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Mu;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -19896,31 +19903,31 @@ var pne = class extends O_ {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Py = (e) => (t, n) => {
- e && Df.update(() => e(t, n), !1, !0);
-}, mne = class extends O_ {
+}, Iy = (e) => (t, n) => {
+ e && Of.update(() => e(t, n), !1, !0);
+}, pne = class extends k_ {
constructor() {
- super(...arguments), this.removePointerDownListener = Au;
+ super(...arguments), this.removePointerDownListener = Mu;
}
onPointerDown(e) {
- this.session = new _y(e, this.createPanHandlers(), {
+ this.session = new xy(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: my(this.node)
+ contextWindow: vy(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Py(e),
- onStart: Py(t),
- onMove: Py(n),
+ onSessionStart: Iy(e),
+ onStart: Iy(t),
+ onMove: Iy(n),
onEnd: (e, t) => {
- delete this.session, r && Df.postRender(() => r(e, t));
+ delete this.session, r && Of.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = py(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = _y(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -19928,36 +19935,36 @@ var pne = class extends O_ {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, Fy = !1, hne = class extends F.Component {
+}, Ly = !1, mne = class extends P.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Fy && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Ly && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
layoutDependency: this.props.layoutDependency,
onExitComplete: () => this.safeToRemove()
- })), xv.hasEverUpdated = !0;
+ })), wv.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
return a && (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), Fy = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || Df.postRender(() => {
+ }), Ly = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || Of.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), Wg.postRender(() => {
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), Gg.postRender(() => {
!n.currentAnimation && n.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Fy = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ Ly = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -19967,41 +19974,41 @@ var pne = class extends O_ {
return null;
}
};
-function Iy(e) {
- let [t, n] = Vv(), r = (0, F.useContext)(vu);
- return (0, I.jsx)(hne, {
+function Ry(e) {
+ let [t, n] = Wv(), r = (0, P.useContext)(bu);
+ return (0, F.jsx)(mne, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(cy),
+ switchLayoutGroup: (0, P.useContext)(fy),
isPresent: t,
safeToRemove: n
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var gne = {
- pan: { Feature: mne },
+var hne = {
+ pan: { Feature: pne },
drag: {
- Feature: pne,
- ProjectionNode: Rv,
- MeasureLayout: Iy
+ Feature: fne,
+ ProjectionNode: Vv,
+ MeasureLayout: Ry
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Ly(e, t, n) {
+function zy(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && Df.postRender(() => i(t, fy(t)));
+ i && Of.postRender(() => i(t, gy(t)));
}
-var _ne = class extends O_ {
+var gne = class extends k_ {
mount() {
let { current: e } = this.node;
- e && (this.unmount = vee(e, (e, t) => (Ly(this.node, t, "Start"), (e) => Ly(this.node, e, "End"))));
+ e && (this.unmount = vee(e, (e, t) => (zy(this.node, t, "Start"), (e) => zy(this.node, e, "End"))));
}
unmount() {}
-}, vne = class extends O_ {
+}, _ne = class extends k_ {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -20018,57 +20025,57 @@ var _ne = class extends O_ {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = ju(yv(this.node.current, "focus", () => this.onFocus()), yv(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Nu(Sv(this.node.current, "focus", () => this.onFocus()), Sv(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Ry(e, t, n) {
+function By(e, t, n) {
let { props: r } = e;
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && Df.postRender(() => i(t, fy(t)));
+ i && Of.postRender(() => i(t, gy(t)));
}
-var yne = class extends O_ {
+var vne = class extends k_ {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = wee(e, (e, t) => (Ry(this.node, t, "Start"), (e, { success: t }) => Ry(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = wee(e, (e, t) => (By(this.node, t, "Start"), (e, { success: t }) => By(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, zy = /* @__PURE__ */ new WeakMap(), By = /* @__PURE__ */ new WeakMap(), bne = (e) => {
- let t = zy.get(e.target);
+}, Vy = /* @__PURE__ */ new WeakMap(), Hy = /* @__PURE__ */ new WeakMap(), yne = (e) => {
+ let t = Vy.get(e.target);
t && t(e);
-}, xne = (e) => {
- e.forEach(bne);
+}, bne = (e) => {
+ e.forEach(yne);
};
-function Sne({ root: e, ...t }) {
+function xne({ root: e, ...t }) {
let n = e || document;
- By.has(n) || By.set(n, {});
- let r = By.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(xne, {
+ Hy.has(n) || Hy.set(n, {});
+ let r = Hy.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(bne, {
root: e,
...t
})), r[i];
}
-function Cne(e, t, n) {
- let r = Sne(t);
- return zy.set(e, n), r.observe(e), () => {
- zy.delete(e), r.unobserve(e);
+function Sne(e, t, n) {
+ let r = xne(t);
+ return Vy.set(e, n), r.observe(e), () => {
+ Vy.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var wne = {
+var Cne = {
some: 0,
all: 1
-}, Tne = class extends O_ {
+}, wne = class extends k_ {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -20077,7 +20084,7 @@ var wne = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : wne[r]
+ threshold: typeof r == "number" ? r : Cne[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -20085,7 +20092,7 @@ var wne = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Cne(this.node.current, a, o);
+ this.stopObserver = Sne(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -20097,89 +20104,89 @@ var wne = {
"amount",
"margin",
"root"
- ].some(Ene(e, t)) && this.startObserver();
+ ].some(Tne(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Ene({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Tne({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var Dne = {
- inView: { Feature: Tne },
- tap: { Feature: yne },
- focus: { Feature: vne },
- hover: { Feature: _ne }
-}, One = { layout: {
- ProjectionNode: Rv,
- MeasureLayout: Iy
-} }, kne = /*@__PURE__*/ $te({
- ...rne,
- ...Dne,
- ...gne,
- ...One
-}, ene);
+var Ene = {
+ inView: { Feature: wne },
+ tap: { Feature: vne },
+ focus: { Feature: _ne },
+ hover: { Feature: gne }
+}, Dne = { layout: {
+ ProjectionNode: Vv,
+ MeasureLayout: Ry
+} }, One = /*@__PURE__*/ Xte({
+ ...ene,
+ ...Ene,
+ ...hne,
+ ...Dne
+}, Zte);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Vy() {
- !S_.current && C_();
- let [e] = (0, F.useState)(x_.current);
+function Uy() {
+ !C_.current && w_();
+ let [e] = (0, P.useState)(S_.current);
return e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function Hy(e) {
+function Wy(e) {
return typeof e == "object" && !Array.isArray(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function Uy(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && Hy(t) ? lg(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function Gy(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && Wy(t) ? ug(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Ane(e, t, n) {
+function kne(e, t, n) {
return e * (t + 1) + n * t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function Wy(e, t, n, r) {
+function Ky(e, t, n, r) {
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function jne(e, t, n) {
+function Ane(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
- i.at > t && i.at < n && (Cu(e, i), r--);
+ i.at > t && i.at < n && (Tu(e, i), r--);
}
}
-function Mne(e, t, n, r, i, a) {
- jne(e, i, a);
+function jne(e, t, n, r, i, a) {
+ Ane(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
- at: of(i, a, r[o]),
- easing: /* @__PURE__ */ $u(n, o)
+ at: sf(i, a, r[o]),
+ easing: /* @__PURE__ */ td(n, o)
});
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Nne(e, t, n = 0) {
+function Mne(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Pne(e, t) {
+function Nne(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Fne = "easeInOut", Gy = 20;
-function Ine(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
+var Pne = "easeInOut", qy = 20;
+function Fne(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
for (let n = 0; n < e.length; n++) {
let o = e[n];
@@ -20188,16 +20195,16 @@ function Ine(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
continue;
}
if (!Array.isArray(o)) {
- l.set(o.name, Wy(d, o.at, u, l));
+ l.set(o.name, Ky(d, o.at, u, l));
continue;
}
let [p, m, h = {}] = o;
- h.at !== void 0 && (d = Wy(d, h.at, u, l));
+ h.at !== void 0 && (d = Ky(d, h.at, u, l));
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
- let c = Lne(e), { delay: l = 0, times: u = Zf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = gm(p) ? p : i?.[p || "keyframes"];
+ let c = Ine(e), { delay: l = 0, times: u = Qf(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = _m(p) ? p : i?.[p || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Bne(c)) {
+ if (S === 2 && zne(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -20205,40 +20212,40 @@ function Ine(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
...t,
...v
};
- b !== void 0 && (n.duration = /* @__PURE__ */ Pu(b));
- let r = Pf(n, e, C);
+ b !== void 0 && (n.duration = /* @__PURE__ */ Iu(b));
+ let r = Ff(n, e, C);
y = r.ease, b = r.duration;
}
b ??= a;
let w = d + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Xf(u, T), c.length === 1 && c.unshift(null), m && `${m}${Gy}`, m && m < Gy) {
+ if (T > 0 && Zf(u, T), c.length === 1 && c.unshift(null), m && `${m}${qy}`, m && m < qy) {
let e = b > 0 ? _ / b : 0;
- b = Ane(b, m, _);
+ b = kne(b, m, _);
let t = [...c], n = [...u];
y = Array.isArray(y) ? [...y] : [y];
let r = [...y], i = h === "reverse" || h === "mirror", a = t, o = r;
- i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Vu(e) : e)));
+ i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Uu(e) : e)));
for (let s = 0; s < m; s++) {
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
e > 0 && (c.push(c[c.length - 1]), u.push(p), y.push("linear")), c.push(...d);
- for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ $u(f, e - 1));
+ for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ td(f, e - 1));
}
- Nne(u, m, e);
+ Mne(u, m, e);
}
let E = w + b;
- Mne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
+ jne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
};
- if (Ph(p)) {
- let e = Ky(p, s);
- _(m, h, qy("default", e));
+ if (Fh(p)) {
+ let e = Jy(p, s);
+ _(m, h, Yy("default", e));
} else {
- let e = Uy(p, m, r, c), t = e.length;
+ let e = Gy(p, m, r, c), t = e.length;
for (let n = 0; n < t; n++) {
m = m, h = h;
- let r = e[n], i = Ky(r, s);
- for (let e in m) _(m[e], Rne(h, e), qy(e, i), n, t);
+ let r = e[n], i = Jy(r, s);
+ for (let e in m) _(m[e], Lne(h, e), Yy(e, i), n, t);
}
}
u = d, d += g;
@@ -20246,13 +20253,13 @@ function Ine(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
return s.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Pne);
+ a.sort(Nne);
let s = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
- s.push(n), c.push(/* @__PURE__ */ Mu(0, f, t)), l.push(r || "easeOut");
+ s.push(n), c.push(/* @__PURE__ */ Pu(0, f, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(Fne)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
+ c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(Pne)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
keyframes: {},
transition: {}
});
@@ -20269,47 +20276,47 @@ function Ine(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
}
}), o;
}
-function Ky(e, t) {
+function Jy(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function qy(e, t) {
+function Yy(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function Lne(e) {
+function Ine(e) {
return Array.isArray(e) ? e : [e];
}
-function Rne(e, t) {
+function Lne(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var zne = (e) => typeof e == "number", Bne = (e) => e.every(zne);
+var Rne = (e) => typeof e == "number", zne = (e) => e.every(Rne);
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Vne(e, t) {
- return Ph(e) || typeof e == "number" || typeof e == "string" && !Hy(t);
+function Bne(e, t) {
+ return Fh(e) || typeof e == "number" || typeof e == "string" && !Wy(t);
}
-function Jy(e, t, n, r) {
+function Xy(e, t, n, r) {
let i = [];
- if (Vne(e, t)) i.push(vv(e, Hy(t) && t.default || t, n && (n.default || n)));
+ if (Bne(e, t)) i.push(xv(e, Wy(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = Uy(e, t, r), o = a.length;
+ let a = Gy(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Ug(r, t, s, m_.get(r))) : i.push(...og(eee(r) ?? mee, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...pee(r, t, s, h_.get(r))) : i.push(...sg(ag(r) ?? mee, r, t, s));
}
}
return i;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Hne(e, t, n) {
+function Vne(e, t, n) {
let r = [];
- return Ine(e.map((e) => {
+ return Fne(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = dh(0);
+ let t = e[0], n = fh(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -20321,57 +20328,57 @@ function Hne(e, t, n) {
];
}
return e;
- }), t, n, { spring: Kf }).forEach(({ keyframes: e, transition: t }, n) => {
- r.push(...Jy(n, e, t));
+ }), t, n, { spring: qf }).forEach(({ keyframes: e, transition: t }, n) => {
+ r.push(...Xy(n, e, t));
}), r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Une(e) {
+function Hne(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function Wne(e = {}) {
+function Une(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
let o = [], s, c = {};
- if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), Une(e)) {
+ if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), Hne(e)) {
let { onComplete: n, ...r } = i || {};
- typeof n == "function" && (s = n), o = Hne(e, {
+ typeof n == "function" && (s = n), o = Vne(e, {
...c,
...r
}, t);
} else {
let { onComplete: n, ...r } = a || {};
- typeof n == "function" && (s = n), o = Jy(e, i, {
+ typeof n == "function" && (s = n), o = Xy(e, i, {
...c,
...r
}, t);
}
- let l = new nh(o);
+ let l = new rh(o);
return s && l.finished.then(s), t && (t.animations.push(l), l.finished.then(() => {
- Cu(t.animations, l);
+ Tu(t.animations, l);
})), l;
}
return i;
}
-var Gne = Object.assign(Wne(), {
- addEffect: rg,
+var Wne = Object.assign(Une(), {
+ addEffect: eee,
removeEffect: ig
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Kne(e, t, n, r) {
+function Gne(e, t, n, r) {
if (e == null) return [];
- let i = lg(e, r), a = i.length, o = [];
+ let i = ug(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...ph(s, e) };
- i.duration &&= /* @__PURE__ */ Pu(i.duration), i.delay &&= /* @__PURE__ */ Pu(i.delay);
- let a = ah(r), c = ih(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...mh(s, e) };
+ i.duration &&= /* @__PURE__ */ Iu(i.duration), i.delay &&= /* @__PURE__ */ Iu(i.delay);
+ let a = oh(r), c = ah(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -20387,21 +20394,21 @@ function Kne(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = t_(r, i)), kp(t), tg(t, i), !a && t.length < 2 && t.unshift(t_(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = n_(r, i)), Ap(t), ng(t, i), !a && t.length < 2 && t.unshift(n_(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new vm(r);
+ let { map: t, key: n, options: r } = o[e], i = new ym(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var qne = /*@__PURE__*/ ((e) => {
+var Kne = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new nh(Kne(t, n, r, e));
+ return new rh(Gne(t, n, r, e));
}
return t;
-})(), Yy = kne, Xy = class {
+})(), Zy = One, Qy = 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;
}
@@ -20416,22 +20423,22 @@ var qne = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, Zy = class extends Xy {
+}, $y = class extends Qy {
filter(e, t, n) {
- let [r, i] = tb(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = rb(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends Xy {
+(class extends Qy {
static {
this.type = "header";
}
});
-var Qy = class extends Xy {
+var eb = class extends Qy {
static {
this.type = "loader";
}
-}, $y = class extends Zy {
+}, tb = class extends $y {
static {
this.type = "item";
}
@@ -20442,7 +20449,7 @@ var Qy = class extends Xy {
}
return null;
}
-}, Jne = class extends Zy {
+}, qne = class extends $y {
static {
this.type = "section";
}
@@ -20454,7 +20461,7 @@ var Qy = class extends Xy {
}
return null;
}
-}, eb = class {
+}, nb = class {
get size() {
return this.itemCount;
}
@@ -20529,14 +20536,14 @@ var Qy = class extends Xy {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = tb(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = rb(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 tb(e, t, n, r) {
+function rb(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -20551,7 +20558,7 @@ function tb(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var nb = class {
+var ib = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -20632,7 +20639,7 @@ var nb = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, rb = class e extends nb {
+}, ab = class e extends ib {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -20683,7 +20690,7 @@ var nb = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Yne = class extends nb {
+}, Jne = class extends ib {
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.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -20691,7 +20698,7 @@ var nb = class {
return !0;
}
createElement(e) {
- return new rb(e, this);
+ return new ab(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -20713,8 +20720,8 @@ var nb = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof rb && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof rb ? (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 ab && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof ab ? (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() {
@@ -20733,19 +20740,19 @@ var nb = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function ib(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, F.useMemo)(() => {
+function ob(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, P.useMemo)(() => void 0, [t]), s = (0, P.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, P.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Xne(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Yne(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, F.cloneElement)(o, i ? {
+ o = (0, P.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -20764,7 +20771,7 @@ function ib(e) {
i
]);
}
-function Xne(e) {
+function Yne(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -20774,25 +20781,25 @@ function Xne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function ab(e) {
+function sb(e) {
e.focus({ preventScroll: !0 });
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var ob = (e) => Zne(e) ? e.document : Qne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), sb = (e) => ob(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function cb(e) {
+var cb = (e) => Xne(e) ? e.document : Zne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), lb = (e) => cb(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function ub(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Zne(e) {
+function Xne(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Qne(e) {
- return cb(e) && e.nodeType === 9;
+function Zne(e) {
+ return ub(e) && e.nodeType === 9;
}
-function lb(e) {
- return cb(e) && e.nodeType === 11 && "host" in e;
+function db(e) {
+ return ub(e) && e.nodeType === 11 && "host" in e;
}
-function ub(e, t, n, r) {
+function fb(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);
@@ -20800,7 +20807,7 @@ function ub(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function db(e, t, n, r) {
+function pb(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -20815,73 +20822,73 @@ function db(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var $ne = !1;
-function fb() {
- return $ne;
+var mb = !1;
+function hb() {
+ return mb;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function pb(e, t) {
- if (!fb()) return t && e ? e.contains(t) : !1;
+function gb(e, t) {
+ if (!hb()) 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 : lb(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : db(n) ? n.host : n.parentNode;
}
return !1;
}
-var mb = (e = document) => {
- if (!fb()) return e.activeElement;
+var _b = (e = document) => {
+ if (!hb()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (fb() && e.target instanceof Element && e.target.shadowRoot) {
+ if (hb() && 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 hb(e, t) {
+function vb(e, t) {
if (t === null) return [];
- t ??= sb(e);
+ t ??= lb(e);
let n = [t];
- if (!fb() || !e || e === t) return n;
+ if (!hb() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; lb(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; db(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function gb(e) {
+function yb(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = sb(e);
+ let t = e.getRootNode(), n = lb(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 _b = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function vb(e) {
- let t = sb(e);
+var bb = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function xb(e) {
+ let t = lb(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 } = sb(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = lb(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function yb(e, t) {
+function Sb(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 bb(e, t) {
- return _b ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && vb(e) && yb(e, t) && (!e.parentElement || bb(e.parentElement, e));
+function Cb(e, t) {
+ return bb ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && xb(e) && Sb(e, t) && (!e.parentElement || Cb(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var xb = [
+var wb = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -20896,60 +20903,60 @@ var xb = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Sb = xb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-xb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Cb = xb.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function wb(e, t) {
- return e.matches(Sb) && !Eb(e) && (t?.skipVisibilityCheck || bb(e));
+], Tb = wb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+wb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Eb = wb.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Db(e, t) {
+ return e.matches(Tb) && !kb(e) && (t?.skipVisibilityCheck || Cb(e));
}
-function Tb(e) {
- return e.matches(Cb) && bb(e) && !Eb(e);
+function Ob(e) {
+ return e.matches(Eb) && Cb(e) && !kb(e);
}
-function Eb(e) {
+function kb(e) {
let t = e;
for (; t != null;) {
- if (t instanceof sb(t).HTMLElement && t.inert) return !0;
+ if (t instanceof lb(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var Db = typeof document < "u" ? F.useLayoutEffect : () => {};
+var Ab = typeof document < "u" ? P.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function Ob(e) {
+function jb(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function kb(e, t) {
+function Mb(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Ab(e) {
- let t = (0, F.useRef)({
+function Nb(e) {
+ let t = (0, P.useRef)({
isFocused: !1,
observer: null
});
- return Db(() => {
+ return Ab(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, F.useCallback)((n) => {
+ }, []), (0, P.useCallback)((n) => {
let r = G(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 = Ob(r);
+ let t = jb(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 === mb() ? null : mb();
+ let e = n === _b() ? null : _b();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -20962,83 +20969,83 @@ function Ab(e) {
}
}, [e]);
}
-var jb = !1;
-function Mb(e) {
- for (; e && !wb(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = mb(sb(e).document);
+var Pb = !1;
+function Fb(e) {
+ for (; e && !Db(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = _b(lb(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && lb(n) ? n : sb(e), i = (t) => t === e || cb(t) && pb(e, t), a = (e) => e === t || t != null && cb(e) && pb(t, e);
- jb = !0;
+ let n = e?.getRootNode(), r = n != null && db(n) ? n : lb(e), i = (t) => t === e || ub(t) && gb(e, t), a = (e) => e === t || t != null && ub(e) && gb(t, e);
+ Pb = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, ab(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, sb(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, ab(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, sb(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), jb = !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), Pb = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Nb(e) {
+function Ib(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 Pb(e) {
+function Lb(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Fb(e) {
+function Rb(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Ib = Fb(function() {
- return Pb(/^Mac/i);
-}), Lb = Fb(function() {
- return Pb(/^iPhone/i);
-}), Rb = Fb(function() {
- return Pb(/^iPad/i) || Ib() && navigator.maxTouchPoints > 1;
-}), zb = Fb(function() {
- return Lb() || Rb();
-}), Bb = Fb(function() {
- return Ib() || zb();
-}), Vb = Fb(function() {
- return Nb(/AppleWebKit/i) && (zb() || !Hb());
-}), Hb = Fb(function() {
- return Nb(/Chrome|CriOS|CrMo/i);
-}), Ub = Fb(function() {
- return Nb(/Android/i);
+var zb = Rb(function() {
+ return Lb(/^Mac/i);
+}), Qne = Rb(function() {
+ return Lb(/^iPhone/i);
+}), Bb = Rb(function() {
+ return Lb(/^iPad/i) || zb() && navigator.maxTouchPoints > 1;
+}), Vb = Rb(function() {
+ return Qne() || Bb();
+}), $ne = Rb(function() {
+ return zb() || Vb();
+}), Hb = Rb(function() {
+ return Ib(/AppleWebKit/i) && (Vb() || !Ub());
+}), Ub = Rb(function() {
+ return Ib(/Chrome|CriOS|CrMo/i);
+}), Wb = Rb(function() {
+ return Ib(/Android/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Wb(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Ub() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
-}
function Gb(e) {
- return !Ub() && e.width === 0 && e.height === 0 || Ub() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+ return e.pointerType === "" && e.isTrusted ? !0 : Wb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+}
+function ere(e) {
+ return !Wb() && e.width === 0 && e.height === 0 || Wb() && 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 Kb = /*#__PURE__*/ (0, F.createContext)({
+var tre = /*#__PURE__*/ (0, P.createContext)({
isNative: !0,
- open: tre,
+ open: ire,
useHref: (e) => e
});
-function qb() {
- return (0, F.useContext)(Kb);
+function Kb() {
+ return (0, P.useContext)(tre);
}
-function Jb(e, t) {
+function nre(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function Yb(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = Vb() && Ib() && !Rb() ? new KeyboardEvent("keydown", {
+function qb(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = Hb() && zb() && !Bb() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -21053,21 +21060,21 @@ function Yb(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- Yb.isOpening = n, ab(e), e.dispatchEvent(s), Yb.isOpening = !1;
+ qb.isOpening = n, sb(e), e.dispatchEvent(s), qb.isOpening = !1;
}
-Yb.isOpening = !1;
-function ere(e, t) {
+qb.isOpening = !1;
+function rre(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 tre(e, t) {
- ere(e, (e) => Yb(e, t));
+function ire(e, t) {
+ rre(e, (e) => qb(e, t));
}
-function Xb(e) {
- let t = qb().useHref(e.href ?? "");
+function Jb(e) {
+ let t = Kb().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -21077,8 +21084,8 @@ function Xb(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Zb(e) {
- let t = qb().useHref(e?.href ?? ""), n = {};
+function Yb(e) {
+ let t = Kb().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -21089,140 +21096,140 @@ function Zb(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function nre(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Jb(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function are(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && nre(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Qb = {
+var Xb = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, $b = /*#__PURE__*/ F.createContext(Qb), rre = /*#__PURE__*/ F.createContext(!1);
+}, Zb = /*#__PURE__*/ P.createContext(Xb), ore = /*#__PURE__*/ P.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var ex = /* @__PURE__ */ new WeakMap();
-function ire(e = !1) {
- let t = (0, F.useContext)($b), n = (0, F.useRef)(null);
+var Qb = /* @__PURE__ */ new WeakMap();
+function sre(e = !1) {
+ let t = (0, P.useContext)(Zb), n = (0, P.useRef)(null);
if (n.current === null && !e) {
- let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = P.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = ex.get(e);
- n == null ? ex.set(e, {
+ let n = Qb.get(e);
+ n == null ? Qb.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, ex.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Qb.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function are(e) {
- let t = (0, F.useContext)($b), n = ire(!!e), r = `react-aria${t.prefix}`;
+function cre(e) {
+ let t = (0, P.useContext)(Zb), n = sre(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function ore(e) {
- let t = F.useId(), [n] = (0, F.useState)(tx()), r = n ? "react-aria" : `react-aria${Qb.prefix}`;
+function lre(e) {
+ let t = P.useId(), [n] = (0, P.useState)($b()), r = n ? "react-aria" : `react-aria${Xb.prefix}`;
return e || `${r}-${t}`;
}
-var sre = typeof F.useId == "function" ? ore : are;
-function cre() {
+var ure = typeof P.useId == "function" ? lre : cre;
+function dre() {
return !1;
}
-function lre() {
+function fre() {
return !0;
}
-function ure(e) {
+function pre(e) {
return () => {};
}
-function tx() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(ure, cre, lre) : (0, F.useContext)(rre);
+function $b() {
+ return typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore(pre, dre, fre) : (0, P.useContext)(ore);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var nx = null, rx = /* @__PURE__ */ new Set(), ix = /* @__PURE__ */ new Map(), ax = !1, ox = !1, dre = {
+var ex = null, tx = /* @__PURE__ */ new Set(), nx = /* @__PURE__ */ new Map(), rx = !1, ix = !1, mre = {
Tab: !0,
Escape: !0
};
-function sx(e, t) {
- for (let n of rx) n(e, t);
+function ax(e, t) {
+ for (let n of tx) n(e, t);
+}
+function hre(e) {
+ return !(e.metaKey || !zb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function fre(e) {
- return !(e.metaKey || !Ib() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function ox(e) {
+ rx = !0, !qb.isOpening && hre(e) && (ex = "keyboard", ax("keyboard", e));
+}
+function sx(e) {
+ ex = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (rx = !0, ax("pointer", e));
}
function cx(e) {
- ax = !0, !Yb.isOpening && fre(e) && (nx = "keyboard", sx("keyboard", e));
+ !qb.isOpening && Gb(e) && (rx = !0, ex = "virtual");
}
function lx(e) {
- nx = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ax = !0, sx("pointer", e));
+ if (Pb) return;
+ let t = G(e), n = lb(t), r = cb(t);
+ t === n ? ix = !0 : t !== r && e.isTrusted && (!rx && !ix && (ex = "virtual", ax("virtual", e)), rx = !1, ix = !1);
}
-function ux(e) {
- !Yb.isOpening && Wb(e) && (ax = !0, nx = "virtual");
+function ux() {
+ Pb || (rx = !1, ix = !0);
}
function dx(e) {
- if (jb) return;
- let t = G(e), n = sb(t), r = ob(t);
- t === n ? ox = !0 : t !== r && e.isTrusted && (!ax && !ox && (nx = "virtual", sx("virtual", e)), ax = !1, ox = !1);
-}
-function fx() {
- jb || (ax = !1, ox = !0);
-}
-function px(e) {
- let t = mb(ob(G(e)));
+ let t = _b(cb(G(e)));
queueMicrotask(() => {
- mb(ob(G(e))) !== t && vx("keyboard");
+ _b(cb(G(e))) !== t && gx("keyboard");
});
}
-function mx(e) {
+function fx(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = sb(e), n = ob(e);
- if (ix.get(t)) return;
+ let t = lb(e), n = cb(e);
+ if (nx.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- ax = !0, r.apply(this, arguments);
+ rx = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", cx, !0), n.addEventListener("keyup", cx, !0), n.addEventListener("click", ux, !0), n.addEventListener("invalid", px, !0), t.addEventListener("focus", dx, !0), t.addEventListener("blur", fx, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", lx, !0), n.addEventListener("pointermove", lx, !0), n.addEventListener("pointerup", lx, !0)), t.addEventListener("beforeunload", () => {
- hx(e);
- }, { once: !0 }), ix.set(t, { focus: r });
+ }), n.addEventListener("keydown", ox, !0), n.addEventListener("keyup", ox, !0), n.addEventListener("click", cx, !0), n.addEventListener("invalid", dx, !0), t.addEventListener("focus", lx, !0), t.addEventListener("blur", ux, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", sx, !0), n.addEventListener("pointermove", sx, !0), n.addEventListener("pointerup", sx, !0)), t.addEventListener("beforeunload", () => {
+ px(e);
+ }, { once: !0 }), nx.set(t, { focus: r });
}
-var hx = (e, t) => {
- let n = sb(e), r = ob(e);
- t && r.removeEventListener("DOMContentLoaded", t), ix.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var px = (e, t) => {
+ let n = lb(e), r = cb(e);
+ t && r.removeEventListener("DOMContentLoaded", t), nx.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: ix.get(n).focus
- }), r.removeEventListener("keydown", cx, !0), r.removeEventListener("keyup", cx, !0), r.removeEventListener("click", ux, !0), r.removeEventListener("invalid", px, !0), n.removeEventListener("focus", dx, !0), n.removeEventListener("blur", fx, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", lx, !0), r.removeEventListener("pointermove", lx, !0), r.removeEventListener("pointerup", lx, !0)), ix.delete(n));
+ value: nx.get(n).focus
+ }), r.removeEventListener("keydown", ox, !0), r.removeEventListener("keyup", ox, !0), r.removeEventListener("click", cx, !0), r.removeEventListener("invalid", dx, !0), n.removeEventListener("focus", lx, !0), n.removeEventListener("blur", ux, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", sx, !0), r.removeEventListener("pointermove", sx, !0), r.removeEventListener("pointerup", sx, !0)), nx.delete(n));
};
-function pre(e) {
- let t = ob(e), n;
+function gre(e) {
+ let t = cb(e), n;
return t.readyState === "loading" ? (n = () => {
- mx(e);
- }, t.addEventListener("DOMContentLoaded", n)) : mx(e), () => hx(e, n);
+ fx(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : fx(e), () => px(e, n);
}
-typeof document < "u" && pre();
-function gx() {
- return nx !== "pointer";
+typeof document < "u" && gre();
+function mx() {
+ return ex !== "pointer";
}
-function _x() {
- return nx;
+function hx() {
+ return ex;
}
-function vx(e) {
- nx = e, sx(e, null);
+function gx(e) {
+ ex = e, ax(e, null);
}
-function yx() {
- mx();
- let [e, t] = (0, F.useState)(nx);
- return (0, F.useEffect)(() => {
+function _x() {
+ fx();
+ let [e, t] = (0, P.useState)(ex);
+ return (0, P.useEffect)(() => {
let e = () => {
- t(nx);
+ t(ex);
};
- return rx.add(e), () => {
- rx.delete(e);
+ return tx.add(e), () => {
+ tx.delete(e);
};
- }, []), tx() ? null : e;
+ }, []), $b() ? null : e;
}
-var mre = /* @__PURE__ */ new Set([
+var _re = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21233,134 +21240,134 @@ var mre = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function hre(e, t, n) {
- let r = n ? G(n) : void 0, i = ob(r), a = sb(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 = mb(i);
- return e = e || u instanceof o && !mre.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !dre[n.key]);
+function vre(e, t, n) {
+ let r = n ? G(n) : void 0, i = cb(r), a = lb(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 = _b(i);
+ return e = e || u instanceof o && !_re.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !mre[n.key]);
}
-function bx(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || gx());
- return xx((e) => {
+function vx(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, P.useState)(n || mx());
+ return yx((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function xx(e, t, n) {
- mx(), (0, F.useEffect)(() => {
+function yx(e, t, n) {
+ fx(), (0, P.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- hre(!!n?.isTextInput, t, r) && e(gx());
+ vre(!!n?.isTextInput, t, r) && e(mx());
};
- return rx.add(t), () => {
- rx.delete(t);
+ return tx.add(t), () => {
+ tx.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var Sx = /* @__PURE__ */ new Map(), Cx = /* @__PURE__ */ new Set();
-function wx(e) {
+var bx = /* @__PURE__ */ new Map(), xx = /* @__PURE__ */ new Set();
+function Sx(e) {
return "propertyName" in e;
}
-function gre(e) {
+function yre(e) {
let t = G(e);
- if (!wx(e) || !t) return;
- let n = Sx.get(t);
- n || (n = /* @__PURE__ */ new Set(), Sx.set(t, n), t.addEventListener("transitioncancel", Tx, { once: !0 })), n.add(e.propertyName);
+ if (!Sx(e) || !t) return;
+ let n = bx.get(t);
+ n || (n = /* @__PURE__ */ new Set(), bx.set(t, n), t.addEventListener("transitioncancel", Cx, { once: !0 })), n.add(e.propertyName);
}
-function Tx(e) {
+function Cx(e) {
let t = G(e);
- if (!wx(e) || !t) return;
- let n = Sx.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", Tx), Sx.delete(t)), Sx.size === 0)) for (let e of Cx) e(!0), Cx.delete(e);
+ if (!Sx(e) || !t) return;
+ let n = bx.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", Cx), bx.delete(t)), bx.size === 0)) for (let e of xx) e(!0), xx.delete(e);
}
-function Ex() {
- ub(document, "transitionrun", gre), ub(document, "transitionend", Tx);
+function wx() {
+ fb(document, "transitionrun", yre), fb(document, "transitionend", Cx);
}
-function _re() {
- for (let [e] of Sx) "isConnected" in e && !e.isConnected && Sx.delete(e);
+function bre() {
+ for (let [e] of bx) "isConnected" in e && !e.isConnected && bx.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? ub(document, "DOMContentLoaded", Ex) : Ex());
-function Dx(e) {
+typeof document < "u" && (document.readyState === "loading" ? fb(document, "DOMContentLoaded", wx) : wx());
+function Tx(e) {
let t = window.requestAnimationFrame(() => {
- if (_re(), Sx.size === 0) return e(!1);
- Cx.add(e);
+ if (bre(), bx.size === 0) return e(!1);
+ xx.add(e);
});
return () => {
- window.cancelAnimationFrame(t), Cx.delete(e);
+ window.cancelAnimationFrame(t), xx.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function Ox(e) {
+function Ex(e) {
if (!e.isConnected) return;
- let t = ob(e);
- if (_x() === "virtual") {
- let n = mb(t);
- Dx(() => {
- let r = mb(t);
- (r === n || r === t.body) && e.isConnected && ab(e);
+ let t = cb(e);
+ if (hx() === "virtual") {
+ let n = _b(t);
+ Tx(() => {
+ let r = _b(t);
+ (r === n || r === t.body) && e.isConnected && sb(e);
});
- } else ab(e);
+ } else sb(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function kx(...e) {
+function Dx(...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 vre(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
+function xre(e) {
+ let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(t), i = (0, P.useRef)(null), a = (0, P.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return Db(() => {
+ return Ab(() => {
r.current = t, i.current && a.current();
- }), [t, (0, F.useCallback)((e) => {
+ }), [t, (0, P.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var yre = !!(typeof window < "u" && window.document && window.document.createElement), Ax = /* @__PURE__ */ new Map(), jx;
-typeof FinalizationRegistry < "u" && (jx = new FinalizationRegistry((e) => {
- Ax.delete(e);
+var Sre = !!(typeof window < "u" && window.document && window.document.createElement), Ox = /* @__PURE__ */ new Map(), kx;
+typeof FinalizationRegistry < "u" && (kx = new FinalizationRegistry((e) => {
+ Ox.delete(e);
}));
-var Mx = /* @__PURE__ */ new WeakMap();
-function Nx(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = sre(t), a = (0, F.useRef)(null), o = Mx.get(a);
- if (jx && o !== i && (o != null && jx.unregister(a), jx.register(a, i, a), Mx.set(a, i)), yre) {
- let e = Ax.get(i);
- e && !e.includes(r) ? e.push(r) : Ax.set(i, [r]);
- }
- return Db(() => {
+var Ax = /* @__PURE__ */ new WeakMap();
+function jx(e) {
+ let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(null), i = ure(t), a = (0, P.useRef)(null), o = Ax.get(a);
+ if (kx && o !== i && (o != null && kx.unregister(a), kx.register(a, i, a), Ax.set(a, i)), Sre) {
+ let e = Ox.get(i);
+ e && !e.includes(r) ? e.push(r) : Ox.set(i, [r]);
+ }
+ return Ab(() => {
let e = i;
return () => {
- jx && (jx.unregister(a), Mx.delete(a)), Ax.delete(e);
+ kx && (kx.unregister(a), Ax.delete(a)), Ox.delete(e);
};
- }, [i]), (0, F.useEffect)(() => {
+ }, [i]), (0, P.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function bre(e, t) {
+function Cre(e, t) {
if (e === t) return e;
- let n = Ax.get(e);
+ let n = Ox.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Ax.get(t);
+ let r = Ox.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Px(e = []) {
- let t = Nx(), [n, r] = vre(t), i = (0, F.useCallback)(() => {
+function Mx(e = []) {
+ let t = jx(), [n, r] = xre(t), i = (0, P.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return Db(i, [
+ return Ab(i, [
t,
i,
...e
@@ -21368,38 +21375,38 @@ function Px(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Fx(...e) {
+function Nx(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Ix(e, t);
+ let r = Px(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Ix(e[n], null);
+ typeof t == "function" ? t() : Px(e[n], null);
});
};
};
}
-function Ix(e, t) {
+function Px(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Lx(e) {
+function Fx(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 = Lx(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Fx(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Rx() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Lx(e)) && (r && (r += " "), r += t);
+function Ix() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Fx(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -21410,18 +21417,18 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = kx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Rx(n, i) : e === "id" && n && i ? t.id = bre(n, i) : e === "ref" && n && i ? t.ref = Fx(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] = Dx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Ix(n, i) : e === "id" && n && i ? t.id = Cre(n, i) : e === "ref" && n && i ? t.ref = Nx(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function zx(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
+function Lx(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, P.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Ab(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = ob(t), a = r ? mb(r) : mb();
+ }, [r, i]), o = Nb(a), s = (0, P.useCallback)((e) => {
+ let t = G(e), r = cb(t), a = r ? _b(r) : _b();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -21435,7 +21442,7 @@ function zx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Bx(e) {
+function Rx(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -21460,33 +21467,33 @@ function Bx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var xre = /* @__PURE__ */ new Set([
+var wre = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Sre = [
+]), Tre = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Cre(e) {
+function Ere(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(Ib() ? "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(zb() ? "Meta" : "Control"), t;
}
-function wre(e) {
+function Dre(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 Vx(e) {
- return Sre.filter((t) => e.has(t));
+function zx(e) {
+ return Tre.filter((t) => e.has(t));
}
-function Tre(e) {
+function Ore(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return xre.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 wre.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,
@@ -21498,10 +21505,10 @@ function Tre(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 Hx(e) {
+function Bx(e) {
return e.toLowerCase();
}
-var Ere = {
+var kre = {
space: " ",
esc: "escape",
del: "delete",
@@ -21513,26 +21520,26 @@ var Ere = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Dre(e) {
- let t = Hx(e);
- return Ere[t] ?? t;
+function Are(e) {
+ let t = Bx(e);
+ return kre[t] ?? t;
}
-function Ore(e) {
- let t = Vx(Cre(e)), n = Dre(e.key);
+function jre(e) {
+ let t = zx(Ere(e)), n = Are(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function kre(e) {
- let t = Vx(wre(e)), n = Hx(e.key);
+function Mre(e) {
+ let t = zx(Dre(e)), n = Bx(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Are(e) {
+function Nre(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Tre(n);
- t.set(Ore(e), r);
+ let e = Ore(n);
+ t.set(jre(e), r);
}
return (e) => {
- let n = kre(e), r = t.get(n), i = r?.(e);
+ let n = Mre(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -21544,16 +21551,16 @@ function Are(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Ux(e) {
+function Vx(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Are(t), s = Bx((e) => {
- pb(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = Bx((e) => {
- pb(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Nre(t), s = Rx((e) => {
+ gb(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = Rx((e) => {
+ gb(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? kx(e.onKeyDown, s) : s, a = e.onKeyUp ? kx(e.onKeyUp, c) : c;
- } else i = Bx(e.onKeyDown), a = Bx(e.onKeyUp);
+ i = e.onKeyDown ? Dx(e.onKeyDown, s) : s, a = e.onKeyUp ? Dx(e.onKeyUp, c) : c;
+ } else i = Rx(e.onKeyDown), a = Rx(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -21561,8 +21568,8 @@ function Ux(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Wx(e) {
- let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
+function Hx(e) {
+ let t = (0, P.useRef)(null), n = (0, P.useRef)(void 0), r = (0, P.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -21573,7 +21580,7 @@ function Wx(e) {
e.current = null;
};
}, [e]);
- return (0, F.useMemo)(() => ({
+ return (0, P.useMemo)(() => ({
get current() {
return t.current;
},
@@ -21584,8 +21591,8 @@ function Wx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Gx(e, t) {
- Db(() => {
+function Ux(e, t) {
+ Ab(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -21593,17 +21600,17 @@ function Gx(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Kx = /*#__PURE__*/ F.createContext(null);
-function jre(e) {
- let t = (0, F.useContext)(Kx) || {};
- Gx(t, e);
+var Wx = /*#__PURE__*/ P.createContext(null);
+function Pre(e) {
+ let t = (0, P.useContext)(Wx) || {};
+ Ux(t, e);
let { ref: n, ...r } = t;
return r;
}
-function qx(e, t) {
- let { focusProps: n } = zx(e), { keyboardProps: r } = Ux(e), i = K(n, r), a = jre(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
- (0, F.useEffect)(() => {
- s.current && t.current && Ox(t.current), s.current = !1;
+function Gx(e, t) {
+ let { focusProps: n } = Lx(e), { keyboardProps: r } = Vx(e), i = K(n, r), a = Pre(t), o = e.isDisabled ? {} : a, s = (0, P.useRef)(e.autoFocus);
+ (0, P.useEffect)(() => {
+ s.current && t.current && Ex(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -21638,22 +21645,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Jx = /*#__PURE__*/ (0, F.createContext)(!1);
-function Mre(e) {
- if ((0, F.useContext)(Jx)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(Jx.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ F.createElement("template", null, t);
+var Kx = /*#__PURE__*/ (0, P.createContext)(!1);
+function Fre(e) {
+ if ((0, P.useContext)(Kx)) return /*#__PURE__*/ P.createElement(P.Fragment, null, e.children);
+ let t = /*#__PURE__*/ P.createElement(Kx.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ P.createElement("template", null, t);
}
-function Yx(e) {
- let t = (t, n) => (0, F.useContext)(Jx) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
+function qx(e) {
+ let t = (t, n) => (0, P.useContext)(Kx) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, P.forwardRef)(t);
}
-function Xx() {
- return (0, F.useContext)(Jx);
+function Jx() {
+ return (0, P.useContext)(Kx);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Nre = /* @__PURE__ */ o(((e) => {
+var Ire = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -21691,48 +21698,48 @@ var Nre = /* @__PURE__ */ o(((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;
-})), Zx = /* @__PURE__ */ o(((e, t) => {
- t.exports = Nre();
-})), Pre = Zx(), Qx = /*#__PURE__*/ (0, F.createContext)(!1), $x = /*#__PURE__*/ (0, F.createContext)(null);
-function eS(e) {
- if ((0, F.useContext)($x)) return e.content;
- let { collection: t, document: n } = Rre(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Mre, null, /*#__PURE__*/ F.createElement($x.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Fre, {
+})), Yx = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Ire();
+})), Lre = Yx(), Xx = /*#__PURE__*/ (0, P.createContext)(!1), Zx = /*#__PURE__*/ (0, P.createContext)(null);
+function Qx(e) {
+ if ((0, P.useContext)(Zx)) return e.content;
+ let { collection: t, document: n } = Vre(e.createCollection);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Fre, null, /*#__PURE__*/ P.createElement(Zx.Provider, { value: n }, e.content)), /*#__PURE__*/ P.createElement(Rre, {
render: e.children,
collection: t
}));
}
-function Fre({ collection: e, render: t }) {
+function Rre({ collection: e, render: t }) {
return t(e);
}
-function Ire(e, t, n) {
- let r = tx(), i = (0, F.useRef)(r);
+function zre(e, t, n) {
+ let r = $b(), i = (0, P.useRef)(r);
i.current = r;
- let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Pre.useSyncExternalStore)(e, a);
+ let a = (0, P.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, Lre.useSyncExternalStore)(e, a);
}
-var Lre = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Ire;
-function Rre(e) {
- let [t] = (0, F.useState)(() => new Yne(e?.() || new eb()));
+var Bre = typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore : zre;
+function Vre(e) {
+ let [t] = (0, P.useState)(() => new Jne(e?.() || new nb()));
return {
- collection: Lre((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: Bre((0, P.useCallback)((e) => t.subscribe(e), [t]), (0, P.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, P.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var tS = /*#__PURE__*/ (0, F.createContext)(null);
-function zre(e) {
- return class extends Xy {
+var $x = /*#__PURE__*/ (0, P.createContext)(null);
+function Hre(e) {
+ return class extends Qy {
static {
this.type = e;
}
};
}
-function nS(e, t, n, r, i, a) {
- typeof e == "string" && (e = zre(e));
- let o = (0, F.useCallback)((i) => {
+function eS(e, t, n, r, i, a) {
+ typeof e == "string" && (e = Hre(e));
+ let o = (0, P.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -21740,86 +21747,86 @@ function nS(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(tS);
+ ]), s = (0, P.useContext)($x);
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__*/ F.createElement(tS.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__*/ P.createElement($x.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ P.createElement(e.type, { ref: o }, i);
}
-function rS(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(Kx);
- if (!(0, F.useContext)(Qx)) {
+function tS(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, P.forwardRef)((r, i) => {
+ let a = (0, P.useContext)(Wx);
+ if (!(0, P.useContext)(Xx)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return nS(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(Kx.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return eS(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ P.createElement(Wx.Provider, { value: a }, /*#__PURE__*/ P.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function iS(e, t, n = aS) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => nS(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function nS(e, t, n = rS) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, P.forwardRef)((t, i) => eS(e, t, i, null, n(t), (e) => /*#__PURE__*/ P.createElement(r, { node: e })) ?? /*#__PURE__*/ P.createElement(P.Fragment, null));
return i.displayName = t.name, i;
}
-function aS(e) {
- return ib({
+function rS(e) {
+ return ob({
...e,
addIdAndValue: !0
});
}
-var oS = /*#__PURE__*/ (0, F.createContext)(null);
-function sS(e) {
- let t = (0, F.useContext)(oS), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = aS({
+var iS = /*#__PURE__*/ (0, P.createContext)(null);
+function aS(e) {
+ let t = (0, P.useContext)(iS), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = rS({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)($x) && (i = /*#__PURE__*/ F.createElement(Bre, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, P.useContext)(Zx) && (i = /*#__PURE__*/ P.createElement(Ure, null, i)), t = (0, P.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(oS.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ P.createElement(iS.Provider, { value: t }, i);
}
-function Bre({ children: e }) {
- let t = (0, F.useContext)($x), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement($x.Provider, { value: null }, /*#__PURE__*/ F.createElement(Qx.Provider, { value: !0 }, e)), [e]);
- return tx() ? /*#__PURE__*/ F.createElement(tS.Provider, { value: t }, n) : /*#__PURE__*/ (0, It.createPortal)(n, t);
+function Ure({ children: e }) {
+ let t = (0, P.useContext)(Zx), n = (0, P.useMemo)(() => /*#__PURE__*/ P.createElement(Zx.Provider, { value: null }, /*#__PURE__*/ P.createElement(Xx.Provider, { value: !0 }, e)), [e]);
+ return $b() ? /*#__PURE__*/ P.createElement($x.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var Vre = "react-aria-clear-focus", Hre = "react-aria-focus";
+var Wre = "react-aria-clear-focus", Gre = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function cS(e) {
- let t = Wre(ob(e));
- t !== e && (t && Ure(t, e), e && lS(e, t));
+function oS(e) {
+ let t = qre(cb(e));
+ t !== e && (t && Kre(t, e), e && sS(e, t));
}
-function Ure(e, t) {
+function Kre(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function lS(e, t) {
+function sS(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Wre(e) {
- let t = mb(e), n = t?.getAttribute("aria-activedescendant");
+function qre(e) {
+ let t = _b(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function uS(e, t) {
- let n = sb(t), r = ob(t);
+function cS(e, t) {
+ let n = lb(t), r = cb(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/keyboard.mjs
-var dS = 100, fS = 600, pS = {
+var lS = 100, uS = 600, dS = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21829,7 +21836,7 @@ var dS = 100, fS = 600, pS = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, Gre = /* @__PURE__ */ new Set([
+}, Jre = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21840,7 +21847,7 @@ var dS = 100, fS = 600, pS = {
"submit",
"reset"
]);
-function mS() {
+function fS() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -21848,71 +21855,71 @@ function mS() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function Kre(e) {
- pS.resizeTimeStamp <= e.timeStamp + 50 && (pS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(pS.resizeTimeout), pS.resizeTimeout = window.setTimeout(hS, 150));
+function Yre(e) {
+ dS.resizeTimeStamp <= e.timeStamp + 50 && (dS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(dS.resizeTimeout), dS.resizeTimeout = window.setTimeout(pS, 150));
}
-function hS() {
- let e = uS("viewport");
- if (Ub() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = mS(), r = t - pS.startTimeStamp, i = pS.screenHeight - n.height, a = pS.screenAngle - n.angle;
- Math.abs(a) % 180 && pS.screenWidth - n.height < dS && (pS.screenWidth = n.width, pS.screenHeight = n.height, pS.screenAngle = n.angle, i = 0), r > fS && (window.clearTimeout(pS.screenTimeout), pS.screenTimeout = window.setTimeout(() => {
- let e = vS(document.hasFocus() ? mb() : null), t = mS();
- Math.abs(pS.screenAngle - t.angle) % 180 || pS.isOpen && e || (pS.screenWidth = t.width, pS.screenHeight = t.height, pS.screenAngle = t.angle, pS.isOpen = !1);
- }, fS)), r <= fS && i >= dS && (pS.endTimeStamp = t), pS.isOpen = i >= dS;
-}
-function qre() {
- let e = mS(), t = pS.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !pS.isOpen) {
- let e = pS.screenWidth;
- pS.screenWidth = pS.screenHeight, pS.screenHeight = e;
- }
- pS.isOpen || (pS.screenAngle = e.angle);
-}
-function Jre(e) {
- let t = vS(G(e)), n = performance.now(), r = mS(), i = pS.screenHeight - r.height;
- i < dS && t && (pS.screenWidth = r.width, pS.screenHeight = r.height, pS.screenAngle = r.angle, pS.startTimeStamp = n), t && window.clearTimeout(pS.screenTimeout), i >= dS && t && (pS.endTimeStamp = n);
-}
-function gS() {
- let e = mS();
- ub(window.visualViewport, "resize", Vb() ? hS : Kre), ub(window.screen.orientation, "change", qre), ub(window, "focus", Jre, {
+function pS() {
+ let e = cS("viewport");
+ if (Wb() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = fS(), r = t - dS.startTimeStamp, i = dS.screenHeight - n.height, a = dS.screenAngle - n.angle;
+ Math.abs(a) % 180 && dS.screenWidth - n.height < lS && (dS.screenWidth = n.width, dS.screenHeight = n.height, dS.screenAngle = n.angle, i = 0), r > uS && (window.clearTimeout(dS.screenTimeout), dS.screenTimeout = window.setTimeout(() => {
+ let e = gS(document.hasFocus() ? _b() : null), t = fS();
+ Math.abs(dS.screenAngle - t.angle) % 180 || dS.isOpen && e || (dS.screenWidth = t.width, dS.screenHeight = t.height, dS.screenAngle = t.angle, dS.isOpen = !1);
+ }, uS)), r <= uS && i >= lS && (dS.endTimeStamp = t), dS.isOpen = i >= lS;
+}
+function Xre() {
+ let e = fS(), t = dS.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !dS.isOpen) {
+ let e = dS.screenWidth;
+ dS.screenWidth = dS.screenHeight, dS.screenHeight = e;
+ }
+ dS.isOpen || (dS.screenAngle = e.angle);
+}
+function Zre(e) {
+ let t = gS(G(e)), n = performance.now(), r = fS(), i = dS.screenHeight - r.height;
+ i < lS && t && (dS.screenWidth = r.width, dS.screenHeight = r.height, dS.screenAngle = r.angle, dS.startTimeStamp = n), t && window.clearTimeout(dS.screenTimeout), i >= lS && t && (dS.endTimeStamp = n);
+}
+function mS() {
+ let e = fS();
+ fb(window.visualViewport, "resize", Hb() ? pS : Yre), fb(window.screen.orientation, "change", Xre), fb(window, "focus", Zre, {
capture: !0,
passive: !0
- }), pS.screenWidth = e.width, pS.screenHeight = e.height, pS.screenAngle = e.angle;
+ }), dS.screenWidth = e.width, dS.screenHeight = e.height, dS.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? ub(document, "DOMContentLoaded", gS) : gS());
-function _S() {
- let e = uS("viewport");
- return Ub() && e?.includes("overlays-content") ? !1 : pS.isOpen ? !0 : pS.startTimeStamp ? pS.endTimeStamp >= pS.startTimeStamp ? !0 : performance.now() - pS.startTimeStamp <= fS ? pS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? fb(document, "DOMContentLoaded", mS) : mS());
+function hS() {
+ let e = cS("viewport");
+ return Wb() && e?.includes("overlays-content") ? !1 : dS.isOpen ? !0 : dS.startTimeStamp ? dS.endTimeStamp >= dS.startTimeStamp ? !0 : performance.now() - dS.startTimeStamp <= uS ? dS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function vS(e) {
- if (!(e instanceof Element) || !wb(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Gre.has(e.type);
+function gS(e) {
+ if (!(e instanceof Element) || !Db(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Jre.has(e.type);
return t || n || r;
}
-function yS(e) {
- return Ib() ? e.metaKey : e.ctrlKey;
+function _S(e) {
+ return zb() ? e.metaKey : e.ctrlKey;
}
-function bS() {
- return pS.isOpen;
+function vS() {
+ return dS.isOpen;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Yre = F.useInsertionEffect ?? Db;
-function xS(e) {
- let t = (0, F.useRef)(null);
- return Yre(() => {
+var Qre = P.useInsertionEffect ?? Ab;
+function yS(e) {
+ let t = (0, P.useRef)(null);
+ return Qre(() => {
t.current = e;
- }, [e]), (0, F.useCallback)((...e) => {
+ }, [e]), (0, P.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function SS(e, t, n, r) {
- let i = xS(n), a = n == null;
- (0, F.useEffect)(() => {
- if (!(a || e.current == null)) return ub(e.current, t, i, r);
+function bS(e, t, n, r) {
+ let i = yS(n), a = n == null;
+ (0, P.useEffect)(() => {
+ if (!(a || e.current == null)) return fb(e.current, t, i, r);
}, [
e,
t,
@@ -21922,9 +21929,9 @@ function SS(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function CS(e, t) {
+function xS(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Nx(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 = jx(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
@@ -21932,7 +21939,7 @@ function CS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Xre = /* @__PURE__ */ new Set([
+var $re = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -21943,7 +21950,7 @@ var Xre = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Zre = /* @__PURE__ */ new Set([
+]), eie = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -21964,20 +21971,20 @@ var Xre = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Qre(e) {
+function tie(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 Xre.has(t.script);
+ if (t.script) return $re.has(t.script);
}
let t = e.split("-")[0];
- return Zre.has(t);
+ return eie.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var wS = Symbol.for("react-aria.i18n.locale");
-function TS() {
- let e = typeof window < "u" && window[wS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var SS = Symbol.for("react-aria.i18n.locale");
+function CS() {
+ let e = typeof window < "u" && window[SS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21985,33 +21992,33 @@ function TS() {
}
return {
locale: e,
- direction: Qre(e) ? "rtl" : "ltr"
+ direction: tie(e) ? "rtl" : "ltr"
};
}
-var ES = TS(), DS = /* @__PURE__ */ new Set();
-function OS() {
- ES = TS();
- for (let e of DS) e(ES);
+var wS = CS(), TS = /* @__PURE__ */ new Set();
+function ES() {
+ wS = CS();
+ for (let e of TS) e(wS);
}
-function $re() {
- let e = tx(), [t, n] = (0, F.useState)(ES);
- return (0, F.useEffect)(() => (DS.size === 0 && window.addEventListener("languagechange", OS), DS.add(n), () => {
- DS.delete(n), DS.size === 0 && window.removeEventListener("languagechange", OS);
+function nie() {
+ let e = $b(), [t, n] = (0, P.useState)(wS);
+ return (0, P.useEffect)(() => (TS.size === 0 && window.addEventListener("languagechange", ES), TS.add(n), () => {
+ TS.delete(n), TS.size === 0 && window.removeEventListener("languagechange", ES);
}), []), e ? {
- locale: typeof window < "u" && window[wS] || "en-US",
+ locale: typeof window < "u" && window[SS] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var eie = /*#__PURE__*/ F.createContext(null);
-function kS() {
- let e = $re();
- return (0, F.useContext)(eie) || e;
+var rie = /*#__PURE__*/ P.createContext(null);
+function DS() {
+ let e = nie();
+ return (0, P.useContext)(rie) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var tie = Symbol.for("react-aria.i18n.locale"), nie = Symbol.for("react-aria.i18n.strings"), AS = void 0, jS = class e {
+var iie = Symbol.for("react-aria.i18n.locale"), aie = Symbol.for("react-aria.i18n.strings"), OS = void 0, kS = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -22022,39 +22029,39 @@ var tie = Symbol.for("react-aria.i18n.locale"), nie = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = rie(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = oie(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[tie];
- if (AS === void 0) {
- let t = window[nie];
+ let n = window[iie];
+ if (OS === void 0) {
+ let t = window[aie];
if (!t) return null;
- AS = {};
- for (let r in t) AS[r] = new e({ [n]: t[r] }, n);
+ OS = {};
+ for (let r in t) OS[r] = new e({ [n]: t[r] }, n);
}
- let r = AS?.[t];
+ let r = OS?.[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 rie(e, t, n = "en-US") {
+function oie(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = iie(e), i = aie(e);
+ let r = sie(e), i = cie(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 iie(e) {
+function sie(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function aie(e) {
+function cie(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var MS = /* @__PURE__ */ new Map(), NS = /* @__PURE__ */ new Map(), oie = class {
+var AS = /* @__PURE__ */ new Map(), jS = /* @__PURE__ */ new Map(), lie = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -22065,37 +22072,37 @@ var MS = /* @__PURE__ */ new Map(), NS = /* @__PURE__ */ new Map(), oie = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = MS.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), MS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = AS.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), AS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = NS.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), NS.set(this.locale, t)), t.format(e);
+ let t = jS.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), jS.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, PS = /* @__PURE__ */ new WeakMap();
-function sie(e) {
- let t = PS.get(e);
- return t || (t = new jS(e), PS.set(e, t)), t;
+}, MS = /* @__PURE__ */ new WeakMap();
+function uie(e) {
+ let t = MS.get(e);
+ return t || (t = new kS(e), MS.set(e, t)), t;
}
-function cie(e, t) {
- return t && jS.getGlobalDictionaryForPackage(t) || sie(e);
+function die(e, t) {
+ return t && kS.getGlobalDictionaryForPackage(t) || uie(e);
}
-function FS(e, t) {
- let { locale: n } = kS(), r = cie(e, t);
- return (0, F.useMemo)(() => new oie(n, r), [n, r]);
+function NS(e, t) {
+ let { locale: n } = DS(), r = die(e, t);
+ return (0, P.useMemo)(() => new lie(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var lie = /* @__PURE__ */ new Set(["id"]), uie = /* @__PURE__ */ new Set([
+var fie = /* @__PURE__ */ new Set(["id"]), pie = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), die = /* @__PURE__ */ new Set([
+]), mie = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -22103,65 +22110,65 @@ var lie = /* @__PURE__ */ new Set(["id"]), uie = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), fie = /* @__PURE__ */ new Set([
+]), hie = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), IS = /* @__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(".")), pie = /^(data-.*)$/;
-function LS(e, t = {}) {
+]), PS = /* @__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(".")), gie = /^(data-.*)$/;
+function FS(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) && (lie.has(t) || n && uie.has(t) || r && die.has(t) || i && fie.has(t) || a && (IS.has(t) || t.endsWith("Capture") && IS.has(t.slice(0, -7))) || o?.has(t) || pie.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (fie.has(t) || n && pie.has(t) || r && mie.has(t) || i && hie.has(t) || a && (PS.has(t) || t.endsWith("Capture") && PS.has(t.slice(0, -7))) || o?.has(t) || gie.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var RS = "default", zS = "", BS = /* @__PURE__ */ new WeakMap();
-function VS(e) {
- if (zb() && Vb()) {
- if (RS === "default") {
- let t = ob(e);
- zS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- RS = "disabled";
+var IS = "default", LS = "", RS = /* @__PURE__ */ new WeakMap();
+function zS(e) {
+ if (Vb() && Hb()) {
+ if (IS === "default") {
+ let t = cb(e);
+ LS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ IS = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- BS.set(e, e.style[t]), e.style[t] = "none";
+ RS.set(e, e.style[t]), e.style[t] = "none";
}
}
-function HS(e) {
- if (zb() && Vb()) {
- if (RS !== "disabled") return;
- RS = "restoring", setTimeout(() => {
- Dx(() => {
- if (RS === "restoring") {
- let t = ob(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = zS || ""), zS = "", RS = "default";
+function BS(e) {
+ if (Vb() && Hb()) {
+ if (IS !== "disabled") return;
+ IS = "restoring", setTimeout(() => {
+ Tx(() => {
+ if (IS === "restoring") {
+ let t = cb(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = LS || ""), LS = "", IS = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && BS.has(e)) {
- let t = BS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), BS.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && RS.has(e)) {
+ let t = RS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), RS.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var US = /* @__PURE__ */ new WeakMap();
-function WS(e) {
- let t = ob(e), n = US.get(t);
- return n ??= uS("csp-nonce", t), n !== void 0 && US.set(t, n), n;
+var VS = /* @__PURE__ */ new WeakMap();
+function HS(e) {
+ let t = cb(e), n = VS.get(t);
+ return n ??= cS("csp-nonce", t), n !== void 0 && VS.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var GS = F.createContext({ register: () => {} });
-GS.displayName = "PressResponderContext";
+var US = P.createContext({ register: () => {} });
+US.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function KS() {
- let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
+function WS() {
+ let e = (0, P.useRef)(/* @__PURE__ */ new Map()), t = (0, P.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -22171,15 +22178,15 @@ function KS() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, F.useCallback)((t, n, r, i) => {
+ }, []), n = (0, P.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, F.useCallback)(() => {
+ }, []), r = (0, P.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, F.useEffect)(() => r, [r]), {
+ return (0, P.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -22187,15 +22194,15 @@ function KS() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function mie(e) {
- let t = (0, F.useContext)(GS);
+function _ie(e) {
+ let t = (0, P.useContext)(US);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return Gx(t, e.ref), e;
+ return Ux(t, e.ref), e;
}
-var qS = class {
+var GS = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -22208,9 +22215,9 @@ var qS = class {
get shouldStopPropagation() {
return this.#e;
}
-}, JS = Symbol("linkClicked"), YS = "react-aria-pressable-style", XS = "data-react-aria-pressable";
-function ZS(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 } = mie(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, KS = Symbol("linkClicked"), qS = "react-aria-pressable-style", JS = "data-react-aria-pressable";
+function YS(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 } = _ie(e), [m, h] = (0, P.useState)(!1), g = (0, P.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -22220,12 +22227,12 @@ function ZS(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = KS(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = WS(), y = (0, P.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new qS("pressstart", t, e);
+ let n = new GS("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -22233,17 +22240,17 @@ function ZS(e) {
s,
r,
n
- ]), b = (0, F.useCallback)((e, r, a = !0) => {
+ ]), b = (0, P.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 qS("pressend", r, e);
+ let t = new GS("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new qS("press", r, e);
+ let n = new GS("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22252,19 +22259,19 @@ function ZS(e) {
i,
n,
t
- ]), x = xS(b), S = xS((0, F.useCallback)((e, t) => {
+ ]), x = yS(b), S = yS((0, P.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new qS("pressup", t, e);
+ let r = new GS("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), C = (0, F.useCallback)((e) => {
+ }, [s, a])), C = (0, P.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(eC(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || HS(t.target);
+ t.didFirePressStart && t.pointerType != null && b(QS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || BS(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22272,8 +22279,8 @@ function ZS(e) {
d,
v,
b
- ]), w = xS(C);
- (0, F.useEffect)(() => {
+ ]), w = yS(C);
+ (0, P.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
shiftKey: !1,
@@ -22282,46 +22289,46 @@ function ZS(e) {
altKey: !1
});
}, [s]);
- let T = (0, F.useCallback)((e) => {
+ let T = (0, P.useCallback)((e) => {
u && C(e);
- }, [u, C]), E = (0, F.useCallback)((e) => {
+ }, [u, C]), E = (0, P.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), D = (0, F.useCallback)((e, t) => {
+ }, [s, o]), D = (0, P.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- kb(n, t), o(Ob(n));
+ Mb(n, t), o(jb(n));
}
- }, [s, o]), O = (0, F.useMemo)(() => {
+ }, [s, o]), O = (0, P.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if ($S(t.nativeEvent, t.currentTarget) && pb(t.currentTarget, G(t))) {
- tC(G(t), t.key) && t.preventDefault();
+ if (ZS(t.nativeEvent, t.currentTarget) && gb(t.currentTarget, G(t))) {
+ $S(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(ob(t.currentTarget), "keyup", kx((t) => {
- $S(t, i) && !t.repeat && pb(i, G(t)) && e.target && S(eC(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Ib() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(cb(t.currentTarget), "keyup", Dx((t) => {
+ ZS(t, i) && !t.repeat && gb(i, G(t)) && e.target && S(QS(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && zb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || pb(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Yb.isOpening) {
+ if ((!t || gb(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !qb.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Wb(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Gb(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(eC(t.currentTarget, t), r), a = x(eC(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(QS(t.currentTarget, t), r), a = x(QS(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && $S(t, e.target)) {
- tC(G(t), t.key) && t.preventDefault();
- let n = G(t), r = pb(e.target, n);
- x(eC(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && QS(e.target) && pb(e.target, n) && !t[JS] && (t[JS] = !0, Yb(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && ZS(t, e.target)) {
+ $S(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = gb(e.target, n);
+ x(QS(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && XS(e.target) && gb(e.target, n) && !t[KS] && (t[KS] = !0, qb(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;
@@ -22330,39 +22337,39 @@ function ZS(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !pb(t.currentTarget, G(t))) return;
- if (Gb(t.nativeEvent)) {
+ if (t.button !== 0 || !gb(t.currentTarget, G(t))) return;
+ if (ere(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 || VS(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || zS(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(ob(t.currentTarget), "pointerup", n, !1), _(ob(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(cb(t.currentTarget), "pointerup", n, !1), _(cb(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (pb(t.currentTarget, G(t)) && t.button === 0) {
+ if (gb(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Mb(t.target);
+ let n = Fb(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- pb(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ gb(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(eC(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(QS(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(eC(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(QS(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (pb(e.target, G(t)) && e.pointerType != null) {
+ if (gb(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (ab(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (sb(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -22372,7 +22379,7 @@ function ZS(e) {
w(e);
};
t.onDragStart = (e) => {
- pb(e.currentTarget, G(e)) && w(e);
+ gb(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -22387,40 +22394,40 @@ function ZS(e) {
E,
D
]);
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
if (!f) return;
- let e = ob(f.current);
- if (!e || !e.head || e.getElementById(YS)) return;
+ let e = cb(f.current);
+ if (!e || !e.head || e.getElementById(qS)) return;
let t = e.createElement("style");
- t.id = YS;
- let n = WS(e);
+ t.id = qS;
+ let n = HS(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${XS}] {
+ [${JS}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, F.useEffect)(() => {
+ }, [f]), (0, P.useEffect)(() => {
let e = g.current;
return () => {
- d || HS(e.target ?? void 0);
+ d || BS(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [XS]: !0 })
+ pressProps: K(p, O, { [JS]: !0 })
};
}
-function QS(e) {
+function XS(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function $S(e, t) {
+function ZS(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof sb(i).HTMLInputElement && !nC(i, n) || i instanceof sb(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && QS(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof lb(i).HTMLInputElement && !eC(i, n) || i instanceof lb(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && XS(i)) && n !== "Enter");
}
-function eC(e, t) {
+function QS(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22433,13 +22440,13 @@ function eC(e, t) {
key: t.key
};
}
-function hie(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !QS(e);
+function vie(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !XS(e);
}
-function tC(e, t) {
- return Ib() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !nC(e, t) : hie(e);
+function $S(e, t) {
+ return zb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !eC(e, t) : vie(e);
}
-var gie = /* @__PURE__ */ new Set([
+var yie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22450,12 +22457,12 @@ var gie = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function nC(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : gie.has(e.type);
+function eC(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : yie.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function _ie(e, t) {
+function bie(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,
@@ -22477,7 +22484,7 @@ function _ie(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = ZS({
+ let { pressProps: _, isPressed: v } = YS({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22487,9 +22494,9 @@ function _ie(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = qx(e, t);
+ }), { focusableProps: y } = Gx(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, LS(e, { labelable: !0 }));
+ let b = K(y, _, FS(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -22504,7 +22511,7 @@ function _ie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var vie = class {
+var xie = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -22529,7 +22536,7 @@ var vie = class {
return this._currentNode;
}
set currentNode(e) {
- if (!pb(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!gb(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 });
@@ -22543,7 +22550,7 @@ var vie = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return pb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return gb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -22607,202 +22614,202 @@ var vie = class {
return null;
}
};
-function rC(e, t, n, r) {
- return fb() ? new vie(e, t, n, r) : e.createTreeWalker(t, n, r);
+function tC(e, t, n, r) {
+ return hb() ? new xie(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var iC = /*#__PURE__*/ F.createContext(null), aC = "react-aria-focus-scope-restore", oC = null;
-function sC(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(iC) || {}, l = (0, F.useMemo)(() => new wC({ scopeRef: s }), [s]);
- Db(() => {
- let e = c || TC.root;
- if (TC.getTreeNode(e.scopeRef) && oC && !pC(oC, e.scopeRef)) {
- let t = TC.getTreeNode(oC);
+var nC = /*#__PURE__*/ P.createContext(null), rC = "react-aria-focus-scope-restore", iC = null;
+function aC(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)([]), { parentNode: c } = (0, P.useContext)(nC) || {}, l = (0, P.useMemo)(() => new EC({ scopeRef: s }), [s]);
+ Ab(() => {
+ let e = c || DC.root;
+ if (DC.getTreeNode(e.scopeRef) && iC && !hC(iC, e.scopeRef)) {
+ let t = DC.getTreeNode(iC);
t && (e = t);
}
- e.addChild(l), TC.addNode(l);
- }, [l, c]), Db(() => {
- let e = TC.getTreeNode(s);
+ e.addChild(l), DC.addNode(l);
+ }, [l, c]), Ab(() => {
+ let e = DC.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), Db(() => {
+ }, [n]), Ab(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(aC, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(rC, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(aC, n);
+ for (let e of t) e.removeEventListener(rC, n);
};
- }, [t]), vC(s, r, n), Sie(s, n), bC(s, r, n), _C(s, i), (0, F.useEffect)(() => {
- let e = mb(ob(s.current ? s.current[0] : void 0)), t = null;
- if (dC(e, s.current)) {
- for (let n of TC.traverse()) n.scopeRef && dC(e, n.scopeRef.current) && (t = n);
- t === TC.getTreeNode(s) && (oC = t.scopeRef);
- }
- }, [s]), Db(() => () => {
- let e = TC.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === oC || pC(s, oC)) && (!e || TC.getTreeNode(e)) && (oC = e), TC.removeTreeNode(s);
+ }, [t]), bC(s, r, n), uC(s, n), SC(s, r, n), yC(s, i), (0, P.useEffect)(() => {
+ let e = _b(cb(s.current ? s.current[0] : void 0)), t = null;
+ if (fC(e, s.current)) {
+ for (let n of DC.traverse()) n.scopeRef && fC(e, n.scopeRef.current) && (t = n);
+ t === DC.getTreeNode(s) && (iC = t.scopeRef);
+ }
+ }, [s]), Ab(() => () => {
+ let e = DC.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === iC || hC(s, iC)) && (!e || DC.getTreeNode(e)) && (iC = e), DC.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => yie(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, P.useMemo)(() => Sie(s), []), d = (0, P.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(iC.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ P.createElement(nC.Provider, { value: d }, /*#__PURE__*/ P.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ F.createElement("span", {
+ }), t, /*#__PURE__*/ P.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function yie(e) {
+function Sie(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || mb(ob(n[0] ?? void 0)), c = n[0].previousElementSibling, l = SC(cC(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || _b(cb(n[0] ?? void 0)), c = n[0].previousElementSibling, l = wC(oC(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = dC(s, n) ? s : c;
+ l.currentNode = fC(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && mC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && gC(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || mb(ob(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = SC(cC(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || _b(cb(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = wC(oC(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = dC(s, n) ? s : c;
+ l.currentNode = fC(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && mC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && gC(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = SC(cC(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wC(oC(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && mC(o, !0), o;
+ return o && gC(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = SC(cC(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wC(oC(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && mC(o, !0), o;
+ return o && gC(o, !0), o;
}
};
}
-function cC(e) {
+function oC(e) {
return e[0].parentElement;
}
-function lC(e) {
- let t = TC.getTreeNode(oC);
+function sC(e) {
+ let t = DC.getTreeNode(iC);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function bie(e) {
- if (!e.form) return Array.from(ob(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = sb(e);
+function cC(e) {
+ if (!e.form) return Array.from(cb(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = lb(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function xie(e) {
+function lC(e) {
if (e.checked) return !0;
- let t = bie(e);
+ let t = cC(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Sie(e, t) {
- let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- Db(() => {
+function uC(e, t) {
+ let n = (0, P.useRef)(void 0), r = (0, P.useRef)(void 0);
+ Ab(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = ob(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !lC(e) || t.isComposing) return;
- let n = mb(a), r = e.current;
- if (!r || !dC(n, r)) return;
- let i = SC(cC(r), { tabbable: !0 }, r);
+ let a = cb(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !sC(e) || t.isComposing) return;
+ let n = _b(a), r = e.current;
+ if (!r || !fC(n, r)) return;
+ let i = wC(oC(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 && (mC(o, !0), o instanceof sb(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 && (gC(o, !0), o instanceof lb(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!oC || pC(oC, e)) && dC(G(t), e.current) ? (oC = e, n.current = G(t)) : lC(e) && !fC(G(t), e) ? n.current ? mC(n.current) : oC && oC.current && gC(oC.current) : lC(e) && (n.current = G(t));
+ (!iC || hC(iC, e)) && fC(G(t), e.current) ? (iC = e, n.current = G(t)) : sC(e) && !pC(G(t), e) ? n.current ? gC(n.current) : iC && iC.current && vC(iC.current) : sC(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = _x(), i = (r === "virtual" || r === null) && Ub() && Hb(), o = mb(a);
- if (!i && o && lC(e) && !fC(o, e)) {
- oC = e;
+ let r = hx(), i = (r === "virtual" || r === null) && Wb() && Ub(), o = _b(a);
+ if (!i && o && sC(e) && !pC(o, e)) {
+ iC = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, mC(n.current)) : oC.current && gC(oC.current);
+ r && r.isConnected ? (n.current = r, gC(n.current)) : iC.current && vC(iC.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]), Db(() => () => {
+ }, [e, t]), Ab(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function uC(e) {
- return fC(e);
+function dC(e) {
+ return pC(e);
}
-function dC(e, t) {
- return !e || !t ? !1 : t.some((t) => pb(t, e));
+function fC(e, t) {
+ return !e || !t ? !1 : t.some((t) => gb(t, e));
}
-function fC(e, t = null) {
+function pC(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of TC.traverse(TC.getTreeNode(t))) if (n && dC(e, n.current)) return !0;
+ for (let { scopeRef: n } of DC.traverse(DC.getTreeNode(t))) if (n && fC(e, n.current)) return !0;
return !1;
}
-function Cie(e) {
- return fC(e, oC);
+function mC(e) {
+ return pC(e, iC);
}
-function pC(e, t) {
- let n = TC.getTreeNode(t)?.parent;
+function hC(e, t) {
+ let n = DC.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function mC(e, t = !1) {
+function gC(e, t = !1) {
if (e != null && !t) try {
- Ox(e);
+ Ex(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function hC(e, t = !0) {
- let n = e[0].previousElementSibling, r = cC(e), i = SC(r, { tabbable: t }, e);
+function _C(e, t = !0) {
+ let n = e[0].previousElementSibling, r = oC(e), i = wC(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = cC(e), i = SC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = oC(e), i = wC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function gC(e, t = !0) {
- mC(hC(e, t));
+function vC(e, t = !0) {
+ gC(_C(e, t));
}
-function _C(e, t) {
- let n = F.useRef(t);
- (0, F.useEffect)(() => {
- n.current && (oC = e, !dC(mb(ob(e.current ? e.current[0] : void 0)), oC.current) && e.current && gC(e.current)), n.current = !1;
+function yC(e, t) {
+ let n = P.useRef(t);
+ (0, P.useEffect)(() => {
+ n.current && (iC = e, !fC(_b(cb(e.current ? e.current[0] : void 0)), iC.current) && e.current && vC(e.current)), n.current = !1;
}, [e]);
}
-function vC(e, t, n) {
- Db(() => {
+function bC(e, t, n) {
+ Ab(() => {
if (t || n) return;
- let r = e.current, i = ob(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = cb(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- dC(n, e.current) ? oC = e : uC(n) || (oC = null);
+ fC(n, e.current) ? iC = e : dC(n) || (iC = 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));
@@ -22813,43 +22820,43 @@ function vC(e, t, n) {
n
]);
}
-function yC(e) {
- let t = TC.getTreeNode(oC);
+function xC(e) {
+ let t = DC.getTreeNode(iC);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function bC(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? mb(ob(e.current ? e.current[0] : void 0)) : null);
- Db(() => {
- let r = e.current, i = ob(r ? r[0] : void 0);
+function SC(e, t, n) {
+ let r = (0, P.useRef)(typeof document < "u" ? _b(cb(e.current ? e.current[0] : void 0)) : null);
+ Ab(() => {
+ let r = e.current, i = cb(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!oC || pC(oC, e)) && dC(mb(i), e.current) && (oC = e);
+ (!iC || hC(iC, e)) && fC(_b(i), e.current) && (iC = 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]), Db(() => {
- let r = ob(e.current ? e.current[0] : void 0);
+ }, [e, n]), Ab(() => {
+ let r = cb(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !lC(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !sC(e) || t.isComposing) return;
let n = r.activeElement;
- if (!fC(n, e) || !yC(e)) return;
- let i = TC.getTreeNode(e);
+ if (!pC(n, e) || !xC(e)) return;
+ let i = DC.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = SC(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = wC(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 || !fC(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !pC(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (fC(s, e));
- t.preventDefault(), t.stopPropagation(), s ? mC(s, !0) : uC(a) ? mC(a, !0) : n.blur();
+ while (pC(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? gC(s, !0) : dC(a) ? gC(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22859,31 +22866,31 @@ function bC(e, t, n) {
e,
t,
n
- ]), Db(() => {
- let n = ob(e.current ? e.current[0] : void 0);
+ ]), Ab(() => {
+ let n = cb(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = TC.getTreeNode(e);
+ let i = DC.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = TC.getTreeNode(e);
+ let r = DC.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = mb(n);
- if (t && i && (a && fC(a, e) || a === n.body && yC(e))) {
- let t = TC.clone();
+ let i = r.nodeToRestore, a = _b(n);
+ if (t && i && (a && pC(a, e) || a === n.body && xC(e))) {
+ let t = DC.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- xC(n.nodeToRestore);
+ CC(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && TC.getTreeNode(n.scopeRef)) {
- let e = hC(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && DC.getTreeNode(n.scopeRef)) {
+ let e = _C(n.scopeRef.current, !0);
if (e) {
- xC(e);
+ CC(e);
return;
}
}
@@ -22895,21 +22902,21 @@ function bC(e, t, n) {
};
}, [e, t]);
}
-function xC(e) {
- e.dispatchEvent(new CustomEvent(aC, {
+function CC(e) {
+ e.dispatchEvent(new CustomEvent(rC, {
bubbles: !0,
cancelable: !0
- })) && mC(e);
+ })) && gC(e);
}
-function SC(e, t, n) {
- let r = t?.tabbable ? Tb : wb, i = ob(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = rC(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return pb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!xie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || dC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function wC(e, t, n) {
+ let r = t?.tabbable ? Ob : Db, i = cb(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = tC(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return gb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!lC(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || fC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var CC = class e {
+var TC = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new wC({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new EC({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22920,7 +22927,7 @@ var CC = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new wC({ scopeRef: e });
+ let i = new EC({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22931,7 +22938,7 @@ var CC = 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 && dC(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 && fC(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);
}
@@ -22943,7 +22950,7 @@ var CC = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, wC = class {
+}, EC = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22953,13 +22960,13 @@ var CC = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, TC = new CC(), EC = 7e3, DC = null;
-function OC(e, t = "assertive", n = EC) {
- DC ? DC.announce(e, t, n) : (DC = new kC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? DC.announce(e, t, n) : setTimeout(() => {
- DC?.isAttached() && DC?.announce(e, t, n);
+}, DC = new TC(), OC = 7e3, kC = null;
+function AC(e, t = "assertive", n = OC) {
+ kC ? kC.announce(e, t, n) : (kC = new jC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? kC.announce(e, t, n) : setTimeout(() => {
+ kC?.isAttached() && kC?.announce(e, t, n);
}, 100));
}
-var kC = class {
+var jC = 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,
@@ -22984,7 +22991,7 @@ var kC = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = EC) {
+ announce(e, t = "assertive", n = OC) {
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(() => {
@@ -22997,57 +23004,57 @@ var kC = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function AC(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = xS(e);
- (0, F.useEffect)(() => (n.current = !0, () => {
+function MC(e, t) {
+ let n = (0, P.useRef)(!0), r = (0, P.useRef)(null), i = yS(e);
+ (0, P.useEffect)(() => (n.current = !0, () => {
n.current = !1;
- }), []), (0, F.useEffect)(() => {
+ }), []), (0, P.useEffect)(() => {
let e = r.current;
n.current ? n.current = !1 : (!e || t.some((t, n) => !Object.is(t, e[n]))) && i(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function jC(e, t) {
+function NC(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 MC(e, t) {
+function PC(e, t) {
let n = e;
- for (jC(n, t) && (n = n.parentElement); n && !jC(n, t);) n = n.parentElement;
+ for (NC(n, t) && (n = n.parentElement); n && !NC(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function NC(e, t) {
+function FC(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (jC(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (NC(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function PC(e, t, n = {}) {
- e !== t && FC(e, t, t.getBoundingClientRect(), n);
-}
-function FC(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, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- zb() && Vb() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
- let ie = k < ne || A > re, ae = j < F || M > I;
- if (ie && i === "start") o += k - ne;
- else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
- else if (ie && i === "end") o += A - re;
- else if (ie && i === "nearest") {
- let e = k - ne, t = A - re;
+function IC(e, t, n = {}) {
+ e !== t && LC(e, t, t.getBoundingClientRect(), n);
+}
+function LC(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, ee = e === d ? 0 : D + O, te = e === d ? 0 : T + E, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, N = e === d ? 0 : e.offsetHeight - e.clientHeight - te, re = p + (f ? 0 : T) + x, ie = m - (f ? 0 : E) - S - N, P = h + (f ? 0 : D) + C, F = g - (f ? 0 : O) - w;
+ Vb() && Hb() || u.direction === "ltr" ? F -= ne : u.direction === "rtl" && (P += ne);
+ let ae = k < re || A > ie, oe = j < P || M > F;
+ if (ae && i === "start") o += k - re;
+ else if (ae && i === "center") o += (k + A) / 2 - (re + ie) / 2;
+ else if (ae && i === "end") o += A - ie;
+ else if (ae && i === "nearest") {
+ let e = k - re, t = A - ie;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (ae && a === "start") s += j - F;
- else if (ae && a === "center") s += (j + M) / 2 - (F + I) / 2;
- else if (ae && a === "end") s += M - I;
- else if (ae && a === "nearest") {
- let e = j - F, t = M - I;
+ if (oe && a === "start") s += j - P;
+ else if (oe && a === "center") s += (j + M) / 2 - (P + F) / 2;
+ else if (oe && a === "end") s += M - F;
+ else if (oe && a === "nearest") {
+ let e = j - P, t = M - F;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -23055,7 +23062,7 @@ function FC(e, t, n, r = {}) {
top: o
});
}
-function IC(e, t = {}) {
+function RC(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -23068,50 +23075,50 @@ function IC(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = NC(e, !0);
- for (let t of i) PC(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = FC(e, !0);
+ for (let t of i) IC(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? NC(n, !0) : [];
- for (let e of i) PC(e, n, {
+ i = n ? FC(n, !0) : [];
+ for (let e of i) IC(e, n, {
block: "center",
inline: "center"
});
- for (let t of NC(e, !0)) PC(t, e);
+ for (let t of FC(e, !0)) IC(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var LC = 0, RC = /* @__PURE__ */ new Map();
-function zC(e) {
- let [t, n] = (0, F.useState)();
- return Db(() => {
+var zC = 0, BC = /* @__PURE__ */ new Map();
+function VC(e) {
+ let [t, n] = (0, P.useState)();
+ return Ab(() => {
if (!e) return;
- let t = RC.get(e);
+ let t = BC.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${LC++}`;
+ let r = `react-aria-description-${zC++}`;
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
- }, RC.set(e, t);
+ }, BC.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), RC.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), BC.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function BC(e, t, n) {
- let r = xS((e) => {
+function HC(e, t, n) {
+ let r = yS((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -23120,24 +23127,24 @@ function BC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function VC(e, t, n) {
+function UC(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- Db(() => {
+ Ab(() => {
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(UC(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(GC(n.current));
}
});
- let a = (0, F.useRef)(!1), o = xS(() => {
+ let a = (0, P.useRef)(!1), o = yS(() => {
a.current || t.resetValidation();
- }), s = xS((e) => {
+ }), s = yS((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && WC(r) === n.current && (i ? i() : n.current?.focus(), vx("keyboard")), e.preventDefault();
- }), c = xS(() => {
+ !e.defaultPrevented && n && r && KC(r) === n.current && (i ? i() : n.current?.focus(), gx("keyboard")), e.preventDefault();
+ }), c = yS(() => {
t.commitValidation();
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
@@ -23148,7 +23155,7 @@ function VC(e, t, n) {
};
}, [n, r]);
}
-function HC(e) {
+function WC(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -23164,14 +23171,14 @@ function HC(e) {
valid: t.valid
};
}
-function UC(e) {
+function GC(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: HC(e),
+ validationDetails: WC(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function WC(e) {
+function KC(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -23180,16 +23187,16 @@ function WC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function GC(e = !0) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
+function qC(e = !0) {
+ let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Db(() => {
+ return Ab(() => {
r.current || n(!1);
}, []), [i, t];
}
-function KC(e = !0) {
- let t = Nx(), [n, r] = GC(e);
+function JC(e = !0) {
+ let t = jx(), [n, r] = qC(e);
return {
id: r ? t : void 0,
ref: n
@@ -23197,7 +23204,7 @@ function KC(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var qC = {
+var YC = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -23209,18 +23216,18 @@ var qC = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, JC = {
- ...qC,
+}, XC = {
+ ...YC,
customError: !0,
valid: !1
-}, YC = {
+}, ZC = {
isInvalid: !1,
- validationDetails: qC,
+ validationDetails: YC,
validationErrors: []
-}, XC = (0, F.createContext)({}), ZC = "__reactAriaFormValidationState";
-function QC(e) {
+}, Cie = (0, P.createContext)({}), QC = "__reactAriaFormValidationState";
+function $C(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[ZC];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[QC];
return {
realtimeValidation: t,
displayValidation: n,
@@ -23229,34 +23236,34 @@ function QC(e) {
commitValidation: a
};
}
- return $C(e);
+ return wie(e);
}
-function $C(e) {
+function wie(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: JC
- }, l = (0, F.useMemo)(() => !o || i == null ? null : nw(tw(o, i)), [o, i]);
+ validationDetails: XC
+ }, l = (0, P.useMemo)(() => !o || i == null ? null : tw(Tie(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(XC), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ew(u[e])) : ew(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, P.useContext)(Cie), d = (0, P.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ew(u[e])) : ew(u[r]) : [], [u, r]), [f, p] = (0, P.useState)(u), [m, h] = (0, P.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => nw(m ? [] : d), [m, d]), _ = (0, F.useRef)(YC), [v, y] = (0, F.useState)(YC), b = (0, F.useRef)(YC), x = () => {
+ let g = (0, P.useMemo)(() => tw(m ? [] : d), [m, d]), _ = (0, P.useRef)(ZC), [v, y] = (0, P.useState)(ZC), b = (0, P.useRef)(ZC), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- rw(e, b.current) || (b.current = e, y(e));
- }, [S, C] = (0, F.useState)(!1);
- return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || YC,
+ nw(e, b.current) || (b.current = e, y(e));
+ }, [S, C] = (0, P.useState)(!1);
+ return (0, P.useEffect)(x), {
+ realtimeValidation: c || g || l || a || ZC,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !rw(v, e) ? y(e) : _.current = e;
+ s === "aria" && !nw(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = YC;
- rw(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = ZC;
+ nw(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
@@ -23266,34 +23273,34 @@ function $C(e) {
function ew(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function tw(e, t) {
+function Tie(e, t) {
if (typeof e == "function") {
let n = e(t);
if (n && typeof n != "boolean") return ew(n);
}
return [];
}
-function nw(e) {
+function tw(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: JC
+ validationDetails: XC
} : null;
}
-function rw(e, t) {
+function nw(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 iw(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = QC({
+function rw(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = $C({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- VC(e, b, n);
+ UC(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = ZS({
+ }, { pressProps: T, isPressed: E } = YS({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23301,7 +23308,7 @@ function iw(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = ZS({
+ }), [D, O] = (0, P.useState)(!1), { pressProps: k } = YS({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -23318,13 +23325,13 @@ function iw(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [ZC]: i } = e, { commitValidation: a } = i || b;
+ let { [QC]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = qx(e, n), j = K(T, A), M = LS(e, { labelable: !0 });
- BC(n, t.defaultSelected, t.setSelected);
- let ee = KC(), N = KC();
+ }), { focusableProps: A } = Gx(e, n), j = K(T, A), M = FS(e, { labelable: !0 });
+ HC(n, t.defaultSelected, t.setSelected);
+ let ee = JC(), te = JC();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -23337,7 +23344,7 @@ function iw(e, t, n) {
"aria-readonly": i || void 0,
"aria-describedby": [
ee.id,
- N.id,
+ te.id,
p
].filter(Boolean).join(" ") || void 0,
onChange: w,
@@ -23349,7 +23356,7 @@ function iw(e, t, n) {
...j
}),
descriptionProps: ee,
- errorMessageProps: N,
+ errorMessageProps: te,
isSelected: t.isSelected,
isPressed: E || D,
isDisabled: r,
@@ -23361,12 +23368,12 @@ function iw(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function aw(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 } = iw(e, t, n), { isIndeterminate: m } = e;
- return (0, F.useEffect)(() => {
+function iw(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 } = rw(e, t, n), { isIndeterminate: m } = e;
+ return (0, P.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: K(r, (0, F.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: K(r, (0, P.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -23381,18 +23388,18 @@ function aw(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var wie = /* @__PURE__ */ new WeakMap();
+var Eie = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ow(e) {
+function aw(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Nx(t);
- let o = Nx(), s = {};
+ t = jx(t);
+ let o = jx(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = CS({
+ let c = xS({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23404,13 +23411,13 @@ function ow(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function sw(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ow(e), s = Px([
+function ow(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = aw(e), s = Mx([
!!t,
!!n,
r,
i
- ]), c = Px([
+ ]), c = Mx([
!!t,
!!n,
r,
@@ -23429,26 +23436,26 @@ function sw(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function cw(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = KS(), c = (0, F.useCallback)((e) => {
- pb(e.currentTarget, G(e)) && a.current.isFocusWithin && !pb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function sw(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, P.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = WS(), c = (0, P.useCallback)((e) => {
+ gb(e.currentTarget, G(e)) && a.current.isFocusWithin && !gb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Ab(c), u = (0, F.useCallback)((e) => {
- if (!pb(e.currentTarget, G(e))) return;
- let t = G(e), n = ob(t), s = mb(n);
+ ]), l = Nb(c), u = (0, P.useCallback)((e) => {
+ if (!gb(e.currentTarget, G(e))) return;
+ let t = G(e), n = cb(t), s = _b(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 = G(e);
- if (a.current.isFocusWithin && !pb(t, r)) {
+ if (a.current.isFocusWithin && !gb(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- kb(e, t);
- let i = Ob(e);
+ Mb(e, t);
+ let i = jb(e);
c(i);
}
}, { capture: !0 });
@@ -23470,26 +23477,26 @@ function cw(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Tie = F.useInsertionEffect ?? F.useLayoutEffect;
-function lw(e, t, n) {
- let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
- (0, F.useEffect)(() => {
+var Die = P.useInsertionEffect ?? P.useLayoutEffect;
+function cw(e, t, n) {
+ let [r, i] = (0, P.useState)(e || t), a = (0, P.useRef)(r), o = (0, P.useRef)(e !== void 0), s = e !== void 0;
+ (0, P.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Tie(() => {
+ Die(() => {
a.current = c;
});
- let [, l] = (0, F.useReducer)(() => ({}), {});
- return [c, (0, F.useCallback)((e, ...t) => {
+ let [, l] = (0, P.useReducer)(() => ({}), {});
+ return [c, (0, P.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 uw(e = {}) {
- let { isReadOnly: t } = e, [n, r] = lw(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function lw(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = cw(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, P.useState)(n);
function a(e) {
t || r(e);
}
@@ -23505,26 +23512,26 @@ function uw(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Eie(e, t, n) {
- let r = uw({
+function Oie(e, t, n) {
+ let r = lw({
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 } = wie.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Eie.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = QC({
+ let { realtimeValidation: l } = $C({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(YC), d = () => {
+ }), u = (0, P.useRef)(ZC), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = aw({
+ (0, P.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = iw({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23532,7 +23539,7 @@ function Eie(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [ZC]: {
+ [QC]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23556,10 +23563,10 @@ function Eie(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function dw(e, t = -Infinity, n = Infinity) {
+function uw(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function fw(e, t) {
+function dw(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -23572,24 +23579,24 @@ function fw(e, t) {
}
return n;
}
-function pw(e, t, n, r) {
+function fw(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = fw(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(fw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(fw((n - t) / r, r)) * r), a = fw(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = dw(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(dw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(dw((n - t) / r, r)) * r), a = dw(a, r), a;
}
//#endregion
//#region node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var mw = /* @__PURE__ */ new Map(), hw = !1;
+var pw = /* @__PURE__ */ new Map(), mw = !1;
try {
- hw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ mw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var Die = class {
+var kie = class {
constructor(e, t = {}) {
- this.numberFormatter = Oie(e, t), this.options = t;
+ this.numberFormatter = Aie(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !hw && this.options.signDisplay != null ? kie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !mw && this.options.signDisplay != null ? jie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23621,21 +23628,21 @@ var Die = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !hw && this.options.signDisplay != null && (e = {
+ return !mw && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function Oie(e, t = {}) {
+function Aie(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (mw.has(r)) return mw.get(r);
+ if (pw.has(r)) return pw.get(r);
let i = new Intl.NumberFormat(e, t);
- return mw.set(r, i), i;
+ return pw.set(r, i), i;
}
-function kie(e, t, n) {
+function jie(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -23649,12 +23656,12 @@ function kie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
-function gw(e) {
- let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
+function hw(e) {
+ let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, P.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = KS(), s = xS((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = WS(), s = yS((0, P.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23676,8 +23683,8 @@ function gw(e) {
t,
n,
i
- ])), c = xS((0, F.useCallback)((e, t) => {
- HS(), i.current.didMove && r?.({
+ ])), c = yS((0, P.useCallback)((e, t) => {
+ BS(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23686,9 +23693,9 @@ function gw(e) {
altKey: e.altKey
});
}, [r, i]));
- return { moveProps: (0, F.useMemo)(() => {
+ return { moveProps: (0, P.useMemo)(() => {
let e = {}, t = () => {
- VS(), i.current.didMove = !1;
+ zS(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23703,7 +23710,7 @@ function gw(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = sb(G(e));
+ let a = lb(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -23713,7 +23720,7 @@ function gw(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = sb(G(e));
+ let o = lb(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -23747,7 +23754,7 @@ function gw(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var _w = {
+var gw = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23759,38 +23766,38 @@ var _w = {
width: "1px",
whiteSpace: "nowrap"
};
-function vw(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = cw({
+function _w(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, P.useState)(!1), { focusWithinProps: a } = sw({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, F.useMemo)(() => r ? t : t ? {
- ..._w,
+ }), o = (0, P.useMemo)(() => r ? t : t ? {
+ ...gw,
...t
- } : _w, [r]);
+ } : gw, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function yw(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = vw(e);
- return /*#__PURE__*/ F.createElement(n, K(a, o), t);
+function vw(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = _w(e);
+ return /*#__PURE__*/ P.createElement(n, K(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Aie(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = lw(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = qx(e, t), d = QC({
+function Mie(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = cw(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Gx(e, t), d = $C({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = sw({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ow({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = LS(e, { labelable: !0 }), b = {
+ }), y = FS(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
- }, [x] = (0, F.useState)(c);
- return BC(t, e.defaultValue ?? x, l), VC(e, d, t), {
+ }, [x] = (0, P.useState)(c);
+ return HC(t, e.defaultValue ?? x, l), UC(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -23837,28 +23844,28 @@ function Aie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function jie(e = {}) {
- let { locale: t } = kS();
- return (0, F.useMemo)(() => new Die(t, e), [t, e]);
+function Nie(e = {}) {
+ let { locale: t } = DS();
+ return (0, P.useMemo)(() => new kie(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/utils.mjs
-var bw = /* @__PURE__ */ new WeakMap();
-function xw(e, t) {
- let n = bw.get(e);
+var yw = /* @__PURE__ */ new WeakMap();
+function bw(e, t) {
+ let n = yw.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSlider.mjs
-function Mie(e, t, n) {
- let { labelProps: r, fieldProps: i } = ow(e), a = e.orientation === "vertical";
- bw.set(t, {
+function Pie(e, t, n) {
+ let { labelProps: r, fieldProps: i } = aw(e), a = e.orientation === "vertical";
+ yw.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = kS(), { addGlobalListener: s, removeGlobalListener: c } = KS(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = gw({
+ let { direction: o } = DS(), { addGlobalListener: s, removeGlobalListener: c } = WS(), l = (0, P.useRef)(null), u = o === "rtl", d = (0, P.useRef)(null), { moveProps: f } = hw({
onMoveStart() {
d.current = null;
},
@@ -23868,14 +23875,14 @@ function Mie(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = dw(d.current / s, 0, 1);
+ let e = uw(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
onMoveEnd() {
l.current != null && (t.setThumbDragging(l.current, !1), l.current = null);
}
- }), p = (0, F.useRef)(void 0), m = (r, i, c, u) => {
+ }), p = (0, P.useRef)(void 0), m = (r, i, c, u) => {
if (n.current && !e.isDisabled && t.values.every((e, n) => !t.isThumbDragging(n))) {
let { height: e, width: d, top: f, left: m } = n.current.getBoundingClientRect(), g = a ? e : d, _ = ((a ? u : c) - (a ? f : m)) / g;
(o === "rtl" || a) && (_ = 1 - _);
@@ -23892,7 +23899,7 @@ function Mie(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(xw(t, 0))?.focus(), vx("keyboard");
+ document.getElementById(bw(t, 0))?.focus(), gx("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -23915,27 +23922,27 @@ function Mie(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => xw(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => bw(t, n)).join(" "),
"aria-live": "off"
}
};
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function Nie(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = kS(), { addGlobalListener: m, removeGlobalListener: h } = KS(), g = bw.get(t), { labelProps: _, fieldProps: v } = ow({
+function Fie(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = DS(), { addGlobalListener: m, removeGlobalListener: h } = WS(), g = yw.get(t), { labelProps: _, fieldProps: v } = aw({
...e,
- id: xw(t, n),
+ id: bw(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
- }), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && ab(s.current);
+ }), y = t.values[n], b = (0, P.useCallback)(() => {
+ s.current && sb(s.current);
}, [s]), x = t.focusedThumb === n;
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
x && b();
}, [x, b]);
- let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
+ let S = p === "rtl", C = (0, P.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = Ux({
+ }, { keyboardProps: T } = Vx({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -23951,7 +23958,7 @@ function Nie(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = gw({
+ }), { moveProps: E } = hw({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -23962,7 +23969,7 @@ function Nie(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, dw(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, uw(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23970,10 +23977,10 @@ function Nie(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = qx(K(e, {
+ let { focusableProps: D } = Gx(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
- }), s), O = (0, F.useRef)(void 0), k = (e) => {
+ }), s), O = (0, P.useRef)(void 0), k = (e) => {
b(), O.current = e, t.setThumbDragging(n, !0), m(window, "mouseup", A, !1), m(window, "touchend", A, !1), m(window, "pointerup", A, !1);
}, A = (e) => {
(e.pointerId ?? e.changedTouches?.[0].identifier) === O.current && (b(), t.setThumbDragging(n, !1), h(window, "mouseup", A, !1), h(window, "touchend", A, !1), h(window, "pointerup", A, !1));
@@ -23990,7 +23997,7 @@ function Nie(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return BC(s, t.defaultValues[n], (e) => {
+ return HC(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -24031,42 +24038,42 @@ function Nie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Pie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function Sw(e) {
+var Iie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function xw(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var Cw = /* @__PURE__ */ new WeakMap(), ww = [];
-function Tw(e, t) {
- let n = sb(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Pie, 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 Sw = /* @__PURE__ */ new WeakMap(), Cw = [];
+function ww(e, t) {
+ let n = lb(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Iie, 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 (fb()) {
+ if (hb()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; lb(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; db(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 (pb(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (gb(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = rC(ob(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = tC(cb(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 = Cw.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Cw.set(e, t + 1));
+ let t = Sw.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Sw.set(e, t + 1));
};
- ww.length && ww[ww.length - 1].disconnect(), d(i);
+ Cw.length && Cw[Cw.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) => pb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Sw(e) ? o.add(e) : e instanceof Element && d(e);
- if (fb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => gb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && xw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (hb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -24079,11 +24086,11 @@ function Tw(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (fb()) for (let e of u) {
+ if (hb()) 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) => pb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Sw(e) ? o.add(e) : e instanceof Element && d(e);
- if (fb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => gb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && xw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (hb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -24109,59 +24116,59 @@ function Tw(e, t) {
p.disconnect();
}
};
- return ww.push(h), () => {
- if (p.disconnect(), fb()) for (let e of m) e.disconnect();
+ return Cw.push(h), () => {
+ if (p.disconnect(), hb()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = Cw.get(e);
- t != null && (t === 1 ? (l(e, !1), Cw.delete(e)) : Cw.set(e, t - 1));
+ let t = Sw.get(e);
+ t != null && (t === 1 ? (l(e, !1), Sw.delete(e)) : Sw.set(e, t - 1));
}
- h === ww[ww.length - 1] ? (ww.pop(), ww.length && ww[ww.length - 1].observe()) : ww.splice(ww.indexOf(h), 1);
+ h === Cw[Cw.length - 1] ? (Cw.pop(), Cw.length && Cw[Cw.length - 1].observe()) : Cw.splice(Cw.indexOf(h), 1);
};
}
-function Ew(e) {
- let t = ww[ww.length - 1];
+function Tw(e) {
+ let t = Cw[Cw.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 Dw = /* @__PURE__ */ new WeakMap();
-function Fie(e) {
+var Ew = /* @__PURE__ */ new WeakMap();
+function Lie(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Iie(e, t) {
- let n = Dw.get(e);
+function Rie(e, t) {
+ let n = Ew.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Fie(t)}`;
+ return `${n.id}-option-${Lie(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Ow(e) {
- return Bb() ? e.altKey : e.ctrlKey;
+function Dw(e) {
+ return $ne() ? e.altKey : e.ctrlKey;
}
-function kw(e, t) {
+function Ow(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 Aw = /* @__PURE__ */ new WeakMap();
-function Lie(e) {
- let t = Nx();
- return Aw.set(e, t), t;
+var kw = /* @__PURE__ */ new WeakMap();
+function zie(e) {
+ let t = jx();
+ return kw.set(e, t), t;
}
-function Rie(e) {
- return Aw.get(e);
+function Bie(e) {
+ return kw.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var jw = class {
+var Aw = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : kw(this.ref, e);
+ let n = e == null ? null : Ow(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -24187,12 +24194,12 @@ var jw = class {
height: e?.clientHeight ?? 0
};
}
-}, Mw = class {
+}, jw = 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 jw(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 jw(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 Aw(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 Aw(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -24232,14 +24239,14 @@ var jw = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = kw(this.ref, e);
+ let t = this.getNextKey(e), n = Ow(this.ref, e);
if (t != null) {
- let e = kw(this.ref, t);
+ let e = Ow(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = kw(this.ref, r);
+ let e = Ow(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24273,7 +24280,7 @@ var jw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !jC(t)) return this.getFirstKey();
+ if (t && !NC(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24288,7 +24295,7 @@ var jw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !jC(t)) return this.getLastKey();
+ if (t && !NC(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);
@@ -24311,184 +24318,184 @@ var jw = class {
}
return null;
}
-}, Nw = {};
-Nw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, Mw = {};
+Mw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Pw = {};
-Pw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Nw = {};
+Nw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Fw = {};
-Fw = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Pw = {};
+Pw = { 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 Iw = {};
-Iw = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Fw = {};
+Fw = { 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 Lw = {};
-Lw = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Iw = {};
+Iw = { 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 Rw = {};
-Rw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Lw = {};
+Lw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var zw = {};
-zw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Rw = {};
+Rw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Bw = {};
-Bw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var zw = {};
+zw = { 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 Vw = {};
-Vw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Bw = {};
+Bw = { 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 Hw = {};
-Hw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Vw = {};
+Vw = { 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 Uw = {};
-Uw = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Hw = {};
+Hw = { 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 Ww = {};
-Ww = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Uw = {};
+Uw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Gw = {};
-Gw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Ww = {};
+Ww = { 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 Kw = {};
-Kw = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Gw = {};
+Gw = { 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 qw = {};
-qw = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Kw = {};
+Kw = { 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 Jw = {};
-Jw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var qw = {};
+qw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Yw = {};
-Yw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Jw = {};
+Jw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Xw = {};
-Xw = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Yw = {};
+Yw = { 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 Zw = {};
-Zw = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Xw = {};
+Xw = { 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 Qw = {};
-Qw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Zw = {};
+Zw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var $w = {};
-$w = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Qw = {};
+Qw = { 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 eT = {};
-eT = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var $w = {};
+$w = { 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 tT = {};
-tT = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var eT = {};
+eT = { 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 nT = {};
-nT = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var tT = {};
+tT = { 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 rT = {};
-rT = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var nT = {};
+nT = { 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 iT = {};
-iT = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var rT = {};
+rT = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var aT = {};
-aT = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var iT = {};
+iT = { 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 oT = {};
-oT = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var aT = {};
+aT = { 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 sT = {};
-sT = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var oT = {};
+oT = { 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 cT = {};
-cT = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var sT = {};
+sT = { 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 lT = {};
-lT = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var cT = {};
+cT = { 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 uT = {};
-uT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var lT = {};
+lT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var dT = {};
-dT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var uT = {};
+uT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var fT = {};
-fT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var dT = {};
+dT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var pT = {};
-pT = {
- "ar-AE": Nw,
- "bg-BG": Pw,
- "cs-CZ": Fw,
- "da-DK": Iw,
- "de-DE": Lw,
- "el-GR": Rw,
- "en-US": zw,
- "es-ES": Bw,
- "et-EE": Vw,
- "fi-FI": Hw,
- "fr-FR": Uw,
- "he-IL": Ww,
- "hr-HR": Gw,
- "hu-HU": Kw,
- "it-IT": qw,
- "ja-JP": Jw,
- "ko-KR": Yw,
- "lt-LT": Xw,
- "lv-LV": Zw,
- "nb-NO": Qw,
- "nl-NL": $w,
- "pl-PL": eT,
- "pt-BR": tT,
- "pt-PT": nT,
- "ro-RO": rT,
- "ru-RU": iT,
- "sk-SK": aT,
- "sl-SI": oT,
- "sr-SP": sT,
- "sv-SE": cT,
- "tr-TR": lT,
- "uk-UA": uT,
- "zh-CN": dT,
- "zh-TW": fT
+var fT = {};
+fT = {
+ "ar-AE": Mw,
+ "bg-BG": Nw,
+ "cs-CZ": Pw,
+ "da-DK": Fw,
+ "de-DE": Iw,
+ "el-GR": Lw,
+ "en-US": Rw,
+ "es-ES": zw,
+ "et-EE": Bw,
+ "fi-FI": Vw,
+ "fr-FR": Hw,
+ "he-IL": Uw,
+ "hr-HR": Ww,
+ "hu-HU": Gw,
+ "it-IT": Kw,
+ "ja-JP": qw,
+ "ko-KR": Jw,
+ "lt-LT": Yw,
+ "lv-LV": Xw,
+ "nb-NO": Zw,
+ "nl-NL": Qw,
+ "pl-PL": $w,
+ "pt-BR": eT,
+ "pt-PT": tT,
+ "ro-RO": nT,
+ "ru-RU": rT,
+ "sk-SK": iT,
+ "sl-SI": aT,
+ "sr-SP": oT,
+ "sv-SE": sT,
+ "tr-TR": cT,
+ "uk-UA": lT,
+ "zh-CN": uT,
+ "zh-TW": dT
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var zie = 500;
-function mT(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = zie, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = KS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ZS({
+var Vie = 500;
+function pT(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Vie, accessibilityDescription: s } = e, c = (0, P.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = WS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = YS({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24496,12 +24503,12 @@ function mT(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), ob(e.target).activeElement !== e.target && ab(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), cb(e.target).activeElement !== e.target && sb(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 = sb(e.target);
+ let t = lb(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -24516,12 +24523,12 @@ function mT(e) {
});
}
});
- return { longPressProps: K(f, zC(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, VC(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Bie(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = mT({
+function Hie(e) {
+ let { onContextMenu: t } = e, n = (0, P.useRef)(!1), { longPressProps: r } = pT({
onLongPressStart() {
n.current = !1;
},
@@ -24533,7 +24540,7 @@ function Bie(e) {
});
}
});
- return t ? { contextMenuProps: K(zb() ? r : {}, {
+ return t ? { contextMenuProps: K(Vb() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -24544,7 +24551,7 @@ function Bie(e) {
});
},
onKeyDown(e) {
- if (Ib() && e.ctrlKey && e.key === "Enter") {
+ if (zb() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -24564,13 +24571,13 @@ function Bie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var hT = /* @__PURE__ */ new WeakMap();
-function Vie(e) {
+var mT = /* @__PURE__ */ new WeakMap();
+function Uie(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : ub(hb(t.current), "scroll", (e) => {
+ (0, P.useEffect)(() => !n || r === null ? void 0 : fb(vb(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !pb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || hT.get(t.current);
+ if (!t.current || n instanceof Node && !gb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || mT.get(t.current);
i && i();
}, !0), [
n,
@@ -24580,14 +24587,14 @@ function Vie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Hie(e, t, n) {
+function Wie(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, F.useEffect)(() => {
- n && n.current && hT.set(n.current, t.close);
+ (0, P.useEffect)(() => {
+ n && n.current && mT.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Nx();
+ let o = jx();
return {
triggerProps: {
"aria-haspopup": a,
@@ -24600,14 +24607,14 @@ function Hie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Uie(e) {
+function Gie(e) {
return e && e.__esModule ? e.default : e;
}
-function gT(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Nx(), { triggerProps: s, overlayProps: c } = Hie({ type: r }, t, n), l = (e, n, r = "first") => {
+function hT(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = jx(), { triggerProps: s, overlayProps: c } = Wie({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Ux({
+ }, { keyboardProps: u } = Vx({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -24619,7 +24626,7 @@ function gT(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = FS(Uie(pT), "@react-aria/menu"), { longPressProps: f } = mT({
+ }), d = NS(Gie(fT), "@react-aria/menu"), { longPressProps: f } = pT({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24631,21 +24638,21 @@ function gT(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (ab(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (sb(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (ab(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (sb(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Bie({ onContextMenu(e) {
+ let { contextMenuProps: m } = Hie({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
(e.button === 2 || e.button === 0 && e.ctrlKey === !0) && G(e) === document.body && t.close();
@@ -24683,13 +24690,13 @@ function gT(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var _T = 1e3;
-function vT(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
+var gT = 1e3;
+function _T(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, P.useRef)({
search: "",
timeout: void 0
});
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -24703,12 +24710,12 @@ function vT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, _T);
+ }, gT);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Wie(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !pb(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Kie(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !gb(e.currentTarget, G(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();
@@ -24719,34 +24726,34 @@ function vT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, _T);
+ }, gT);
}
} : void 0
} };
}
-function Wie(e) {
+function Kie(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function yT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- Db(() => (n.current = !0, () => {
+function vT(e, t) {
+ let n = (0, P.useRef)(!0), r = (0, P.useRef)(null);
+ Ab(() => (n.current = !0, () => {
n.current = !1;
- }), []), Db(() => {
+ }), []), Ab(() => {
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 bT(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 } = kS(), _ = qb(), v = (e, n, i) => {
+function yT(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 } = DS(), _ = Kb(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Ow(e)) {
- (0, It.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Dw(e)) {
+ (0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = kw(r, n), o = t.getItemProps(n);
+ let a = Ow(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24758,7 +24765,7 @@ function bT(e) {
t.extendSelection(n);
return;
}
- if (l && !Ow(e)) {
+ if (l && !Dw(e)) {
t.replaceSelection(n);
return;
}
@@ -24785,9 +24792,9 @@ function bT(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, yS(e));
+ let r = n.getFirstKey(t.focusedKey, _S(e));
if (t.setFocusedKey(r), r != null) {
- if (yS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (_S(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24819,9 +24826,9 @@ function bT(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, yS(e));
+ let r = n.getLastKey(t.focusedKey, _S(e));
if (t.setFocusedKey(r), r != null) {
- if (yS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (_S(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24852,12 +24859,12 @@ function bT(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = SC(r.current, { tabbable: !0 }), t, n;
+ let e = wC(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = mb();
- t && (!gb(t) || i && !Tb(i)) && ab(t);
+ let i = _b();
+ t && (!yb(t) || i && !Ob(i)) && sb(t);
}
return {
shouldContinuePropagation: !0,
@@ -24867,11 +24874,11 @@ function bT(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [Ib() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [zb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Ib() ? e + "+Alt" : e + "+Control"]: t,
+ [zb() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = Ux({
+ }), { keyboardProps: M } = Vx({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -24881,30 +24888,30 @@ function bT(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = Ux({ shortcuts: {
+ }), { keyboardProps: ee } = Vx({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
Escape: O,
Tab: k,
"Tab+Shift": A
- } }), N = (0, F.useRef)({
+ } }), te = (0, P.useRef)({
top: 0,
left: 0
});
- SS(p, "scroll", () => {
- N.current = {
+ bS(p, "scroll", () => {
+ te.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
};
});
- let te = (e) => {
+ let ne = (e) => {
if (t.isFocused) {
- pb(e.currentTarget, G(e)) || t.setFocused(!1);
+ gb(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!pb(e.currentTarget, G(e))) return;
- let i = _x();
+ if (!gb(e.currentTarget, G(e))) return;
+ let i = hx();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -24913,34 +24920,34 @@ function bT(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 = N.current.top, p.current.scrollLeft = N.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 = kw(r, t.focusedKey);
- e instanceof HTMLElement && (!gb(e) && !d && ab(e), (i === "keyboard" || h && i === "virtual") && IC(e, { containingElement: r.current }));
+ let e = Ow(r, t.focusedKey);
+ e instanceof HTMLElement && (!yb(e) && !d && sb(e), (i === "keyboard" || h && i === "virtual") && RC(e, { containingElement: r.current }));
}
- }, P = (e) => {
- pb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, ne = (0, F.useRef)(!1);
- SS(r, Hre, d ? (e) => {
+ }, N = (e) => {
+ gb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, re = (0, P.useRef)(!1);
+ bS(r, Gre, d ? (e) => {
let { detail: n } = e;
- e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
+ e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (re.current = !0);
} : void 0);
- let re = n.getFirstKey?.() ?? null;
- yT(() => {
- if (ne.current) {
- if (re == null) {
- let e = mb();
- cS(r.current), lS(e, null), t.collection.size > 0 && (ne.current = !1);
- } else t.setFocusedKey(re), ne.current = !1;
- }
- }, [re, t.collection.size]), yT(() => {
- t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), SS(r, Vre, d ? (e) => {
+ let ie = n.getFirstKey?.() ?? null;
+ vT(() => {
+ if (re.current) {
+ if (ie == null) {
+ let e = _b();
+ oS(r.current), sS(e, null), t.collection.size > 0 && (re.current = !1);
+ } else t.setFocusedKey(ie), re.current = !1;
+ }
+ }, [ie, t.collection.size]), vT(() => {
+ t.collection.size > 0 && (re.current = !1);
+ }, [t.focusedKey]), bS(r, Wre, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
- (0, F.useEffect)(() => {
- if (I.current) {
+ let F = (0, P.useRef)(i), ae = (0, P.useRef)(!1);
+ (0, P.useEffect)(() => {
+ if (F.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -24950,53 +24957,53 @@ function bT(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Ox(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Ex(r.current), t.collection.size > 0 && (F.current = !1, ae.current = !0);
}
});
- let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = _x(), n = kw(r, t.focusedKey);
+ let oe = (0, P.useRef)(t.focusedKey), se = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== oe.current || ae.current) && p.current && r.current) {
+ let e = hx(), n = Ow(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (PC(p.current, n), e !== "virtual" && IC(n, { containingElement: r.current }));
+ (e === "keyboard" || ae.current) && (se.current && cancelAnimationFrame(se.current), se.current = requestAnimationFrame(() => {
+ p.current && (IC(p.current, n), e !== "virtual" && RC(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && Ox(r.current), ae.current = t.focusedKey, ie.current = !1;
- }), (0, F.useEffect)(() => () => {
- oe.current && cancelAnimationFrame(oe.current);
- }, []), SS(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && oe.current != null && r.current && Ex(r.current), oe.current = t.focusedKey, ae.current = !1;
+ }), (0, P.useEffect)(() => () => {
+ se.current && cancelAnimationFrame(se.current);
+ }, []), bS(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let se = {
+ let ce = {
...K(ee, M),
- onFocus: te,
- onBlur: P,
+ onFocus: ne,
+ onBlur: N,
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = vT({
+ }, { typeSelectProps: le } = _T({
keyboardDelegate: n,
selectionManager: t
});
- u || (se = K(ce, se));
- let le;
- d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Lie(t.collection);
- return { collectionProps: K(se, {
- tabIndex: le,
- "data-collection": ue
+ u || (ce = K(le, ce));
+ let ue;
+ d || (ue = t.focusedKey == null ? 0 : -1);
+ let de = zie(t.collection);
+ return { collectionProps: K(ce, {
+ tabIndex: ue,
+ "data-collection": de
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function xT(e, t) {
+function bT(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function ST(e) {
- return CT(e, 0);
+function xT(e) {
+ return ST(e, 0);
}
-function CT(e, t) {
+function ST(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -25004,112 +25011,112 @@ function CT(e, t) {
n++;
}
}
-function wT(e) {
+function CT(e) {
let t;
for (let n of e) t = n;
return t;
}
-function TT(e, t, n) {
+function wT(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...ET(e, t), t], i = [...ET(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...TT(e, t), t], i = [...TT(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 ET(e, t) {
+function TT(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 DT = /* @__PURE__ */ new WeakMap();
-function OT(e) {
- let t = DT.get(e);
+var ET = /* @__PURE__ */ new WeakMap();
+function DT(e) {
+ let t = ET.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(xT(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(bT(i, e)) : i.type === "item" && n++;
};
- return r(e), DT.set(e, n), n;
+ return r(e), ET.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var kT = /* @__PURE__ */ new Map();
-function AT(e) {
- let { locale: t } = kS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (kT.has(n)) return kT.get(n);
+var OT = /* @__PURE__ */ new Map();
+function kT(e) {
+ let { locale: t } = DS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (OT.has(n)) return OT.get(n);
let r = new Intl.Collator(t, e);
- return kT.set(n, r), r;
+ return OT.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Gie = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(GS), a = K(i || {}, {
+var qie = /*#__PURE__*/ P.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, P.useRef)(!1), i = (0, P.useContext)(US), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Wx(n || i?.ref), Gx(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = Hx(n || i?.ref), Ux(i, a.ref), (0, P.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(GS.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ P.createElement(US.Provider, { value: a }, e);
});
-function Kie({ children: e }) {
- let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(GS.Provider, { value: t }, e);
+function Jie({ children: e }) {
+ let t = (0, P.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ P.createElement(US.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var jT = /*#__PURE__*/ (0, F.createContext)({});
-function MT(e) {
- let { getContainer: t } = e, { getContainer: n } = NT();
- return /*#__PURE__*/ F.createElement(jT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var AT = /*#__PURE__*/ (0, P.createContext)({});
+function jT(e) {
+ let { getContainer: t } = e, { getContainer: n } = MT();
+ return /*#__PURE__*/ P.createElement(AT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function NT() {
- return (0, F.useContext)(jT) ?? {};
+function MT() {
+ return (0, P.useContext)(AT) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var PT = /*#__PURE__*/ F.createContext(null);
-function FT(e) {
- let t = tx(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var NT = /*#__PURE__*/ P.createContext(null);
+function PT(e) {
+ let t = $b(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = NT();
+ }), [i, a]), { getContainer: s } = MT();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(sC, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ P.createElement(aC, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(PT.Provider, { value: o }, /*#__PURE__*/ F.createElement(Kie, null, /*#__PURE__*/ F.createElement(Kx.Provider, { value: null }, c))), /*#__PURE__*/ It.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ P.createElement(NT.Provider, { value: o }, /*#__PURE__*/ P.createElement(Jie, null, /*#__PURE__*/ P.createElement(Wx.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function IT() {
- let e = (0, F.useContext)(PT)?.setContain;
- Db(() => {
+function FT() {
+ let e = (0, P.useContext)(NT)?.setContain;
+ Ab(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function qie(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = Px();
+function Yie(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = Mx();
i = e["aria-label"] ? void 0 : i;
- let a = Px();
+ let a = Mx();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
- let o = (0, F.useRef)(!1);
- (0, F.useEffect)(() => {
- if (!r && t.current && !gb(t.current)) {
- Ox(t.current);
+ let o = (0, P.useRef)(!1);
+ (0, P.useEffect)(() => {
+ if (!r && t.current && !yb(t.current)) {
+ Ex(t.current);
let e = setTimeout(() => {
- (mb() === t.current || mb() === document.body) && (o.current = !0, t.current && (t.current.blur(), Ox(t.current)), o.current = !1);
+ (_b() === t.current || _b() === document.body) && (o.current = !0, t.current && (t.current.blur(), Ex(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), IT(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), FT(), (0, P.useRef)(!1), (0, P.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...LS(e, { labelable: !0 }),
+ ...FS(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -25124,23 +25131,23 @@ function qie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function LT(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
+function IT(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, P.useRef)({
isFocused: !1,
- isFocusVisible: t || gx()
- }), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = gx(), o(e), l();
+ isFocusVisible: t || mx()
+ }), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, P.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, P.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = mx(), o(e), l();
}, [l]);
- xx((e) => {
+ yx((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = zx({
+ let { focusProps: d } = Lx({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = cw({
+ }), { focusWithinProps: f } = sw({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -25152,42 +25159,42 @@ function LT(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Jie(e = {}) {
- let { locale: t } = kS();
- return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function Xie(e = {}) {
+ let { locale: t } = DS();
+ return (0, P.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var RT = !1, zT = 0;
-function Yie() {
- RT = !0, setTimeout(() => {
- RT = !1;
+var LT = !1, RT = 0;
+function Zie() {
+ LT = !0, setTimeout(() => {
+ LT = !1;
}, 500);
}
-function BT(e) {
- e.pointerType === "touch" && Yie();
+function zT(e) {
+ e.pointerType === "touch" && Zie();
}
-function Xie() {
- let e = ob(null);
- if (e !== void 0) return zT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", BT), zT++, () => {
- zT--, !(zT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", BT);
+function Qie() {
+ let e = cb(null);
+ if (e !== void 0) return RT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", zT), RT++, () => {
+ RT--, !(RT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", zT);
};
}
-function VT(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
+function BT(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, P.useState)(!1), s = (0, P.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Xie, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = KS(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, P.useEffect)(Qie, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = WS(), { hoverProps: u, triggerHoverEnd: d } = (0, P.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !pb(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !gb(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(ob(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !pb(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(cb(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !gb(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -25202,9 +25209,9 @@ function VT(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- RT && t.pointerType === "mouse" || e(t, t.pointerType);
+ LT && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && pb(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && gb(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -25218,7 +25225,7 @@ function VT(e) {
c,
l
]);
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -25227,22 +25234,22 @@ function VT(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Zie(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
+function $ie(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, P.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = xS((e) => {
- n && HT(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = xS((e) => {
+ }), o = yS((e) => {
+ n && VT(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = yS((e) => {
n && n(e);
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = ob(n);
+ let n = t.current, i = cb(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && HT(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && VT(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);
@@ -25250,30 +25257,30 @@ function Zie(e) {
}
}, [t, r]);
}
-function HT(e, t) {
+function VT(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !pb(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !gb(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/gridlist/utils.mjs
-var UT = /* @__PURE__ */ new WeakMap();
-function WT(e, t) {
- let { id: n } = UT.get(e) ?? {};
+var HT = /* @__PURE__ */ new WeakMap();
+function UT(e, t) {
+ let { id: n } = HT.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Qie(t)}`;
+ return `${n}-${eae(t)}`;
}
-function Qie(e) {
+function eae(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var GT = {};
-GT = {
+var WT = {};
+WT = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25287,8 +25294,8 @@ GT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var KT = {};
-KT = {
+var GT = {};
+GT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25302,8 +25309,8 @@ KT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var qT = {};
-qT = {
+var KT = {};
+KT = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -25317,8 +25324,8 @@ qT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var JT = {};
-JT = {
+var qT = {};
+qT = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25332,8 +25339,8 @@ JT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var YT = {};
-YT = {
+var JT = {};
+JT = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25347,8 +25354,8 @@ YT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var XT = {};
-XT = {
+var YT = {};
+YT = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -25362,8 +25369,8 @@ XT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var ZT = {};
-ZT = {
+var XT = {};
+XT = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25377,8 +25384,8 @@ ZT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var QT = {};
-QT = {
+var ZT = {};
+ZT = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25392,8 +25399,8 @@ QT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var $T = {};
-$T = {
+var QT = {};
+QT = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25407,8 +25414,8 @@ $T = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var eE = {};
-eE = {
+var $T = {};
+$T = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25422,8 +25429,8 @@ eE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var tE = {};
-tE = {
+var eE = {};
+eE = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -25437,8 +25444,8 @@ tE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var nE = {};
-nE = {
+var tE = {};
+tE = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25452,8 +25459,8 @@ nE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var rE = {};
-rE = {
+var nE = {};
+nE = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25467,8 +25474,8 @@ rE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var iE = {};
-iE = {
+var rE = {};
+rE = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25482,8 +25489,8 @@ iE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var aE = {};
-aE = {
+var iE = {};
+iE = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25497,8 +25504,8 @@ aE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var oE = {};
-oE = {
+var aE = {};
+aE = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -25512,8 +25519,8 @@ oE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var sE = {};
-sE = {
+var oE = {};
+oE = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -25527,8 +25534,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var cE = {};
-cE = {
+var sE = {};
+sE = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25542,8 +25549,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var lE = {};
-lE = {
+var cE = {};
+cE = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25557,8 +25564,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var uE = {};
-uE = {
+var lE = {};
+lE = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25572,8 +25579,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var dE = {};
-dE = {
+var uE = {};
+uE = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25587,8 +25594,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var fE = {};
-fE = {
+var dE = {};
+dE = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25602,8 +25609,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var pE = {};
-pE = {
+var fE = {};
+fE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25617,8 +25624,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var mE = {};
-mE = {
+var pE = {};
+pE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25632,8 +25639,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var hE = {};
-hE = {
+var mE = {};
+mE = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25647,8 +25654,8 @@ hE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var gE = {};
-gE = {
+var hE = {};
+hE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25662,8 +25669,8 @@ gE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var _E = {};
-_E = {
+var gE = {};
+gE = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25677,8 +25684,8 @@ _E = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var vE = {};
-vE = {
+var _E = {};
+_E = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25692,8 +25699,8 @@ vE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var yE = {};
-yE = {
+var vE = {};
+vE = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25707,8 +25714,8 @@ yE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var bE = {};
-bE = {
+var yE = {};
+yE = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25722,8 +25729,8 @@ bE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var xE = {};
-xE = {
+var bE = {};
+bE = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25737,8 +25744,8 @@ xE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var SE = {};
-SE = {
+var xE = {};
+xE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25752,8 +25759,8 @@ SE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var CE = {};
-CE = {
+var SE = {};
+SE = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25767,8 +25774,8 @@ CE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var wE = {};
-wE = {
+var CE = {};
+CE = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25782,55 +25789,55 @@ wE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var TE = {};
-TE = {
- "ar-AE": GT,
- "bg-BG": KT,
- "cs-CZ": qT,
- "da-DK": JT,
- "de-DE": YT,
- "el-GR": XT,
- "en-US": ZT,
- "es-ES": QT,
- "et-EE": $T,
- "fi-FI": eE,
- "fr-FR": tE,
- "he-IL": nE,
- "hr-HR": rE,
- "hu-HU": iE,
- "it-IT": aE,
- "ja-JP": oE,
- "ko-KR": sE,
- "lt-LT": cE,
- "lv-LV": lE,
- "nb-NO": uE,
- "nl-NL": dE,
- "pl-PL": fE,
- "pt-BR": pE,
- "pt-PT": mE,
- "ro-RO": hE,
- "ru-RU": gE,
- "sk-SK": _E,
- "sl-SI": vE,
- "sr-SP": yE,
- "sv-SE": bE,
- "tr-TR": xE,
- "uk-UA": SE,
- "zh-CN": CE,
- "zh-TW": wE
+var wE = {};
+wE = {
+ "ar-AE": WT,
+ "bg-BG": GT,
+ "cs-CZ": KT,
+ "da-DK": qT,
+ "de-DE": JT,
+ "el-GR": YT,
+ "en-US": XT,
+ "es-ES": ZT,
+ "et-EE": QT,
+ "fi-FI": $T,
+ "fr-FR": eE,
+ "he-IL": tE,
+ "hr-HR": nE,
+ "hu-HU": rE,
+ "it-IT": iE,
+ "ja-JP": aE,
+ "ko-KR": oE,
+ "lt-LT": sE,
+ "lv-LV": cE,
+ "nb-NO": lE,
+ "nl-NL": uE,
+ "pl-PL": dE,
+ "pt-BR": fE,
+ "pt-PT": pE,
+ "ro-RO": mE,
+ "ru-RU": hE,
+ "sk-SK": gE,
+ "sl-SI": _E,
+ "sr-SP": vE,
+ "sv-SE": yE,
+ "tr-TR": bE,
+ "uk-UA": xE,
+ "zh-CN": SE,
+ "zh-TW": CE
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function $ie(e) {
+function tae(e) {
return e && e.__esModule ? e.default : e;
}
-function EE(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = FS($ie(TE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function TE(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = NS(tae(wE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, P.useRef)(i), o = (0, P.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = DE(i, a.current), o = DE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = EE(i, a.current), o = EE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -25850,7 +25857,7 @@ function EE(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && OC(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && AC(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25861,7 +25868,7 @@ function EE(e, t) {
n,
r
]);
- AC(() => {
+ MC(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25869,7 +25876,7 @@ function EE(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function DE(e, t) {
+function EE(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -25877,13 +25884,13 @@ function DE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function OE(e, t) {
- let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return Db(() => {
+function DE(e, t) {
+ let n = t?.isDisabled, [r, i] = (0, P.useState)(!1);
+ return Ab(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = SC(e.current, { tabbable: !0 });
+ let t = wC(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25902,12 +25909,12 @@ function OE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function eae(e) {
+function nae(e) {
return e && e.__esModule ? e.default : e;
}
-function kE(e) {
- let t = FS(eae(TE), "@react-aria/grid"), n = yx(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return zC((0, F.useMemo)(() => {
+function OE(e) {
+ let t = NS(nae(wE), "@react-aria/grid"), n = _x(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return VC((0, P.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -25920,11 +25927,11 @@ function kE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function AE(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = AT({
+function kE(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = kT({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new Mw({
+ }), l = t.disabledBehavior, u = (0, P.useMemo)(() => a || new jw({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25941,7 +25948,7 @@ function AE(e) {
c,
l,
s
- ]), { collectionProps: d } = bT({
+ ]), { collectionProps: d } = yT({
...e,
ref: i,
selectionManager: t,
@@ -25951,10 +25958,10 @@ function AE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function tae(e, t, n) {
+function rae(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = AE({
+ let { listProps: f } = kE({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25969,31 +25976,31 @@ function tae(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = Nx(e.id);
- UT.set(t, {
+ }), p = jx(e.id);
+ HT.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = kE({
+ let m = OE({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = OE(n, { isDisabled: t.collection.size !== 0 }), g = K(LS(e, { labelable: !0 }), {
+ }), h = DE(n, { isDisabled: t.collection.size !== 0 }), g = K(FS(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), EE({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), TE({}, t), { gridProps: g };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function jE(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 = qb();
- t = Nx(t);
+function AE(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 = Kb();
+ t = jx(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Ow(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Dw(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -26004,11 +26011,11 @@ function jE(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 && (yS(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 && (_S(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? cS(i.current) : s ? s() : mb() !== i.current && i.current && Ox(i.current));
+ (0, P.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? oS(i.current) : s ? s() : _b() !== i.current && i.current && Ex(i.current));
}, [
i,
r,
@@ -26025,33 +26032,33 @@ function jE(e) {
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, F.useEffect)(() => {
+ }), (0, P.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- 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, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, F.useRef)(null), w = S && v, T = (0, F.useRef)(!1), E = (0, F.useRef)(!1), D = n.getItemProps(r), O = (e) => {
+ 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, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, P.useRef)(null), w = S && v, T = (0, P.useRef)(!1), E = (0, P.useRef)(!1), D = n.getItemProps(r), O = (e) => {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || NE(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || ME(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !ME(e.key)) return;
+ if (e.pointerType === "keyboard" && !jE(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || NE(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || ME(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && ME(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && jE(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Rie(n.collection);
+ let A = Bie(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -26066,42 +26073,42 @@ function jE(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = kx(k[e], D[e]));
- let { pressProps: j, isPressed: M } = ZS(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = Dx(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = YS(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = mT({
+ } : void 0, { longPressProps: te } = pT({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
}
- }), te = (e) => {
+ }), ne = (e) => {
C.current === "touch" && T.current && e.preventDefault();
- }, P = d !== "none" && n.isLink(r) ? (e) => {
- Yb.isOpening || e.preventDefault();
- } : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
+ }, N = d !== "none" && n.isLink(r) ? (e) => {
+ qb.isOpening || e.preventDefault();
+ } : void 0, re = K(m, v || b || o && !c ? j : {}, w ? te : {}, {
onDoubleClick: ee,
- onDragStartCapture: te,
- onClick: P,
+ onDragStartCapture: ne,
+ onClick: N,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), re = (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 !== A;
t = t.parentElement;
}
- return Tb(e);
- }, I = ne.onPointerDown;
- ne.onPointerDown = (e) => {
+ return Ob(e);
+ }, F = re.onPointerDown;
+ re.onPointerDown = (e) => {
let t = G(e);
- t && t !== i.current && re(t) ? e.stopPropagation() : I?.(e);
+ t && t !== i.current && ie(t) ? e.stopPropagation() : F?.(e);
};
- let ie = ne.onMouseDown;
- return ne.onMouseDown = (e) => {
+ let ae = re.onMouseDown;
+ return re.onMouseDown = (e) => {
let t = G(e);
- t && t !== i.current && re(t) ? e.stopPropagation() : ie?.(e);
+ t && t !== i.current && ie(t) ? e.stopPropagation() : ae?.(e);
}, {
- itemProps: ne,
+ itemProps: re,
isPressed: M,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
@@ -26110,15 +26117,15 @@ function jE(e) {
hasAction: S
};
}
-function ME(e) {
+function jE(e) {
return e === "Enter";
}
-function NE(e) {
+function ME(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var PE = {
+var NE = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26128,18 +26135,18 @@ var PE = {
rtl: "ArrowRight"
}
};
-function nae(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = kS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = UT.get(t), f = Px(), p = (0, F.useRef)(null), m = () => {
+function iae(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = DS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = HT.get(t), f = Mx(), p = (0, P.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (gb(n.current) && n.current !== mb(ob(n.current))) return;
- let e = SC(n.current, { tabbable: !0 }).firstChild();
+ if (yb(n.current) && n.current !== _b(cb(n.current))) return;
+ let e = wC(n.current, { tabbable: !0 }).firstChild();
if (e) {
- Ox(e), IC(e, { containingElement: MC(e) });
+ Ex(e), RC(e, { containingElement: PC(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !gb(n.current)) && Ox(n.current);
+ (p.current != null && r.key !== p.current || !yb(n.current)) && Ex(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -26149,7 +26156,7 @@ function nae(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = rae(e, t.collection);
+ let n = aae(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -26160,75 +26167,75 @@ function nae(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = jE({
+ let { itemProps: v, ...y } = AE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? kx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? Dx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = mb(ob(n.current));
- if (!pb(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = SC(n.current);
- if (a.currentNode = i, !FE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = _b(cb(n.current));
+ if (!gb(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = wC(n.current);
+ if (a.currentNode = i, !PE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), Ox(t), IC(t, { containingElement: MC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Ox(n.current), IC(n.current, { containingElement: MC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Ex(t), RC(t, { containingElement: PC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Ex(n.current), RC(n.current, { containingElement: PC(n.current) });
else {
a.currentNode = n.current;
- let e = IE(a);
- e && (Ox(e), IC(e, { containingElement: MC(n.current) }));
+ let e = FE(a);
+ e && (Ex(e), RC(e, { containingElement: PC(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), Ox(t), IC(t, { containingElement: MC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Ox(n.current), IC(n.current, { containingElement: MC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Ex(t), RC(t, { containingElement: PC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Ex(n.current), RC(n.current, { containingElement: PC(n.current) });
else {
a.currentNode = n.current;
- let e = IE(a);
- e && (Ox(e), IC(e, { containingElement: MC(n.current) }));
+ let e = FE(a);
+ e && (Ex(e), RC(e, { containingElement: PC(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && pb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && gb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && pb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && mb(ob(n.current)) === n.current && m();
- }) : gx() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && gb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && _b(cb(n.current)) === n.current && m();
+ }) : mx() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = mb(ob(n.current));
- if (pb(e.currentTarget, G(e)) && n.current && i) {
+ let i = _b(cb(n.current));
+ if (gb(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (FE(e, t, r, g, s, i, n.current, o)) return;
+ if (PE(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = SC(n.current, { tabbable: !0 });
+ let t = wC(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = Xb(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = Jb(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${WT(t, r.key)} ${f}` : void 0,
- id: WT(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${UT(t, r.key)} ${f}` : void 0,
+ id: UT(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -26249,37 +26256,37 @@ function nae(e, t, n) {
...y
};
}
-function FE(e, t, n, r, i, a, o, s) {
+function PE(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === PE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === PE.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === NE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === NE.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function IE(e) {
+function FE(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function rae(e, t) {
+function aae(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function iae(e) {
+function oae(e) {
return e && e.__esModule ? e.default : e;
}
-function LE(e, t) {
- let { key: n } = e, r = t.selectionManager, i = Nx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function IE(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = jx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": FS(iae(TE), "@react-aria/grid").format("select"),
+ "aria-label": NS(oae(wE), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -26287,31 +26294,31 @@ function LE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function aae(e, t) {
- let { key: n } = e, { checkboxProps: r } = LE(e, t);
+function sae(e, t) {
+ let { key: n } = e, { checkboxProps: r } = IE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${WT(t, n)}`
+ "aria-labelledby": `${r.id} ${UT(t, n)}`
} };
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function oae(e, t, n) {
- let r = LS(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function cae(e, t, n) {
+ let r = FS(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 } = AE({
+ let { listProps: s } = kE({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = cw({
+ }), { focusWithinProps: c } = sw({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Nx(e.id);
- Dw.set(t, {
+ }), l = jx(e.id);
+ Ew.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26321,7 +26328,7 @@ function oae(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ow({
+ let { labelProps: u, fieldProps: d } = aw({
...e,
id: l,
labelElementType: "span"
@@ -26337,8 +26344,8 @@ function oae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function sae(e) {
- let { heading: t, "aria-label": n } = e, r = Nx();
+function lae(e) {
+ let { heading: t, "aria-label": n } = e, r = jx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26357,8 +26364,8 @@ function sae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function cae(e, t, n) {
- let { key: r } = e, i = Dw.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 = Px(), f = Px(), p = {
+function uae(e, t, n) {
+ let { key: r } = e, i = Ew.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 = Mx(), f = Mx(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26368,9 +26375,9 @@ function cae(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"] = OT(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = DT(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Iie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = jE({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Rie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = AE({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26379,18 +26386,18 @@ function cae(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? kx(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? Dx(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = VT({
+ }), { hoverProps: S } = BT({
isDisabled: a || !c,
onHoverStart() {
- gx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ mx() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = LS(m?.props);
+ }), C = FS(m?.props);
delete C.id;
- let w = Zb(m?.props);
+ let w = Yb(m?.props);
return {
optionProps: {
...p,
@@ -26400,7 +26407,7 @@ function cae(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && gx(),
+ isFocusVisible: y && t.selectionManager.isFocused && mx(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -26410,13 +26417,13 @@ function cae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var RE = /* @__PURE__ */ new WeakMap();
+var LE = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function lae(e, t, n) {
+function dae(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = LS(e, { labelable: !0 }), { listProps: c } = AE({
+ let s = FS(e, { labelable: !0 }), { listProps: c } = kE({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26425,7 +26432,7 @@ function lae(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return RE.set(t, {
+ return LE.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -26442,42 +26449,42 @@ function lae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function uae(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = RE.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = qb(), M = () => {
+function fae(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = LE.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Kb(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = Px(), te = Px(), P = Px(), ne = {
+ let te = Mx(), ne = Mx(), N = Mx(), re = {
id: r,
"aria-disabled": E || void 0,
role: ee,
"aria-label": e["aria-label"],
- "aria-labelledby": N,
+ "aria-labelledby": te,
"aria-describedby": [
e["aria-describedby"],
- te,
- P
+ ne,
+ N
].filter(Boolean).join(" ") || void 0,
"aria-controls": e["aria-controls"],
"aria-haspopup": c,
"aria-expanded": e["aria-expanded"]
};
- if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
+ if (C.selectionMode !== "none" && !w && (re["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = OT(t.collection);
- }
- let re = (0, F.useRef)(!1), I = (e) => {
- f?.(e), re.current = e;
- }, ie = (0, F.useRef)(null), ae = (e) => {
- e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
- }, oe = (e) => {
- m?.(e), M(), nre(e, j, k.props.href, k?.props.routerOptions);
- let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
- t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = jE({
+ re["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, re["aria-setsize"] = DT(t.collection);
+ }
+ let ie = (0, P.useRef)(!1), F = (e) => {
+ f?.(e), ie.current = e;
+ }, ae = (0, P.useRef)(null), oe = (e) => {
+ e.pointerType !== "keyboard" && (ae.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ie.current || e.target.click()), u?.(e);
+ }, se = (e) => {
+ m?.(e), M(), are(e, j, k.props.href, k?.props.routerOptions);
+ let t = ae.current?.pointerType === "keyboard" ? ae.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
+ t = o ?? a ?? t, A && !w && t && A(), ae.current = null;
+ }, { itemProps: ce, isFocused: le } = AE({
id: r,
selectionManager: C,
key: i,
@@ -26486,36 +26493,36 @@ function uae(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = ZS({
+ }), { pressProps: ue, isPressed: de } = YS({
onPressStart: l,
onPress: d,
- onPressUp: ae,
- onPressChange: I,
+ onPressUp: oe,
+ onPressChange: F,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = VT({
+ }), { hoverProps: fe } = BT({
isDisabled: E,
onHoverStart(e) {
- !gx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !mx() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = Ux({
+ }), { keyboardProps: pe } = Vx({
shortcuts: {
" ": (e) => {
- ie.current = {
+ ae.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), vx("keyboard");
+ }, G(e).click(), gx("keyboard");
},
Enter: (e) => {
- ie.current = {
+ ae.current = {
pointerType: "keyboard",
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), vx("keyboard");
- else return vx("keyboard"), {
+ if (t.tagName !== "A") t.click(), gx("keyboard");
+ else return gx("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -26523,37 +26530,37 @@ function uae(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = qx({
+ }), { focusableProps: me } = Gx({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = LS(k?.props);
- delete me.id;
- let L = Zb(k?.props);
+ }, n), he = FS(k?.props);
+ delete he.id;
+ let I = Yb(k?.props);
return {
menuItemProps: {
- ...ne,
- ...K(me, L, w ? {
- onFocus: se.onFocus,
- "data-collection": se["data-collection"],
- "data-key": se["data-key"]
- } : se, le, de, fe, pe, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: oe }),
- tabIndex: se.tabIndex != null && T && !O.shouldUseVirtualFocus ? -1 : se.tabIndex
+ ...re,
+ ...K(he, I, w ? {
+ onFocus: ce.onFocus,
+ "data-collection": ce["data-collection"],
+ "data-key": ce["data-key"]
+ } : ce, ue, fe, pe, me, O.shouldUseVirtualFocus || w ? { onMouseDown: (e) => e.preventDefault() } : void 0, E ? void 0 : { onClick: se }),
+ tabIndex: ce.tabIndex != null && T && !O.shouldUseVirtualFocus ? -1 : ce.tabIndex
},
- labelProps: { id: N },
- descriptionProps: { id: te },
- keyboardShortcutProps: { id: P },
- isFocused: ce,
- isFocusVisible: ce && C.isFocused && gx() && !T,
+ labelProps: { id: te },
+ descriptionProps: { id: ne },
+ keyboardShortcutProps: { id: N },
+ isFocused: le,
+ isFocusVisible: le && C.isFocused && mx() && !T,
isSelected: D,
- isPressed: ue,
+ isPressed: de,
isDisabled: E
};
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function dae(e) {
- let { heading: t, "aria-label": n } = e, r = Nx();
+function pae(e) {
+ let { heading: t, "aria-label": n } = e, r = jx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26569,15 +26576,15 @@ function dae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function fae() {
+function mae() {
return window.ResizeObserver !== void 0;
}
-function zE(e) {
- let { ref: t, box: n, onResize: r } = e, i = xS(r);
- (0, F.useEffect)(() => {
+function RE(e) {
+ let { ref: t, box: n, onResize: r } = e, i = yS(r);
+ (0, P.useEffect)(() => {
let e = t?.current;
if (e) {
- if (fae()) {
+ if (mae()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -26593,189 +26600,189 @@ function zE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var BE = {};
-BE = { dismiss: "تجاهل" };
+var zE = {};
+zE = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var VE = {};
-VE = { dismiss: "Отхвърляне" };
+var BE = {};
+BE = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var HE = {};
-HE = { dismiss: "Odstranit" };
+var VE = {};
+VE = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var UE = {};
-UE = { dismiss: "Luk" };
+var HE = {};
+HE = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var WE = {};
-WE = { dismiss: "Schließen" };
+var UE = {};
+UE = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var GE = {};
-GE = { dismiss: "Απόρριψη" };
+var WE = {};
+WE = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var KE = {};
-KE = { dismiss: "Dismiss" };
+var GE = {};
+GE = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var qE = {};
-qE = { dismiss: "Descartar" };
+var KE = {};
+KE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var JE = {};
-JE = { dismiss: "Lõpeta" };
+var qE = {};
+qE = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var YE = {};
-YE = { dismiss: "Hylkää" };
+var JE = {};
+JE = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var XE = {};
-XE = { dismiss: "Rejeter" };
+var YE = {};
+YE = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var ZE = {};
-ZE = { dismiss: "התעלם" };
+var XE = {};
+XE = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var QE = {};
-QE = { dismiss: "Odbaci" };
+var ZE = {};
+ZE = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var $E = {};
-$E = { dismiss: "Elutasítás" };
+var QE = {};
+QE = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var eD = {};
-eD = { dismiss: "Ignora" };
+var $E = {};
+$E = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var tD = {};
-tD = { dismiss: "閉じる" };
+var eD = {};
+eD = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var nD = {};
-nD = { dismiss: "무시" };
+var tD = {};
+tD = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var rD = {};
-rD = { dismiss: "Atmesti" };
+var nD = {};
+nD = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var iD = {};
-iD = { dismiss: "Nerādīt" };
+var rD = {};
+rD = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var aD = {};
-aD = { dismiss: "Lukk" };
+var iD = {};
+iD = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var oD = {};
-oD = { dismiss: "Negeren" };
+var aD = {};
+aD = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var sD = {};
-sD = { dismiss: "Zignoruj" };
+var oD = {};
+oD = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var cD = {};
-cD = { dismiss: "Descartar" };
+var sD = {};
+sD = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var lD = {};
-lD = { dismiss: "Dispensar" };
+var cD = {};
+cD = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var uD = {};
-uD = { dismiss: "Revocare" };
+var lD = {};
+lD = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var dD = {};
-dD = { dismiss: "Пропустить" };
+var uD = {};
+uD = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var fD = {};
-fD = { dismiss: "Zrušiť" };
+var dD = {};
+dD = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var pD = {};
-pD = { dismiss: "Opusti" };
+var fD = {};
+fD = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var mD = {};
-mD = { dismiss: "Odbaci" };
+var pD = {};
+pD = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var hD = {};
-hD = { dismiss: "Avvisa" };
+var mD = {};
+mD = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var gD = {};
-gD = { dismiss: "Kapat" };
+var hD = {};
+hD = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var _D = {};
-_D = { dismiss: "Скасувати" };
+var gD = {};
+gD = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var vD = {};
-vD = { dismiss: "取消" };
+var _D = {};
+_D = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var yD = {};
-yD = { dismiss: "關閉" };
+var vD = {};
+vD = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var bD = {};
-bD = {
- "ar-AE": BE,
- "bg-BG": VE,
- "cs-CZ": HE,
- "da-DK": UE,
- "de-DE": WE,
- "el-GR": GE,
- "en-US": KE,
- "es-ES": qE,
- "et-EE": JE,
- "fi-FI": YE,
- "fr-FR": XE,
- "he-IL": ZE,
- "hr-HR": QE,
- "hu-HU": $E,
- "it-IT": eD,
- "ja-JP": tD,
- "ko-KR": nD,
- "lt-LT": rD,
- "lv-LV": iD,
- "nb-NO": aD,
- "nl-NL": oD,
- "pl-PL": sD,
- "pt-BR": cD,
- "pt-PT": lD,
- "ro-RO": uD,
- "ru-RU": dD,
- "sk-SK": fD,
- "sl-SI": pD,
- "sr-SP": mD,
- "sv-SE": hD,
- "tr-TR": gD,
- "uk-UA": _D,
- "zh-CN": vD,
- "zh-TW": yD
+var yD = {};
+yD = {
+ "ar-AE": zE,
+ "bg-BG": BE,
+ "cs-CZ": VE,
+ "da-DK": HE,
+ "de-DE": UE,
+ "el-GR": WE,
+ "en-US": GE,
+ "es-ES": KE,
+ "et-EE": qE,
+ "fi-FI": JE,
+ "fr-FR": YE,
+ "he-IL": XE,
+ "hr-HR": ZE,
+ "hu-HU": QE,
+ "it-IT": $E,
+ "ja-JP": eD,
+ "ko-KR": tD,
+ "lt-LT": nD,
+ "lv-LV": rD,
+ "nb-NO": iD,
+ "nl-NL": aD,
+ "pl-PL": oD,
+ "pt-BR": sD,
+ "pt-PT": cD,
+ "ro-RO": lD,
+ "ru-RU": uD,
+ "sk-SK": dD,
+ "sl-SI": fD,
+ "sr-SP": pD,
+ "sv-SE": mD,
+ "tr-TR": hD,
+ "uk-UA": gD,
+ "zh-CN": _D,
+ "zh-TW": vD
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function pae(e) {
+function hae(e) {
return e && e.__esModule ? e.default : e;
}
-function xD(e) {
- let { onDismiss: t, ...n } = e, r = CS(n, FS(pae(bD), "@react-aria/overlays").format("dismiss")), i = () => {
+function bD(e) {
+ let { onDismiss: t, ...n } = e, r = xS(n, NS(hae(yD), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(yw, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ P.createElement(vw, null, /*#__PURE__*/ P.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26787,35 +26794,35 @@ function xD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var SD = [];
-function CD(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
- (0, F.useEffect)(() => {
- if (i && !SD.includes(t)) return SD.push(t), () => {
- let e = SD.indexOf(t);
- e >= 0 && SD.splice(e, 1);
+var xD = [];
+function SD(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, P.useRef)(void 0);
+ (0, P.useEffect)(() => {
+ if (i && !xD.includes(t)) return xD.push(t), () => {
+ let e = xD.indexOf(t);
+ e >= 0 && xD.splice(e, 1);
};
}, [i, t]);
let l = () => {
- SD[SD.length - 1] === t && n && n();
+ xD[xD.length - 1] === t && n && n();
}, u = (e) => {
- let n = SD[SD.length - 1];
+ let n = xD[xD.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (SD[SD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Ux({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (xD[xD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Vx({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Zie({
+ $ie({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = cw({
+ let { focusWithinProps: p } = sw({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Cie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !mC(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -26828,88 +26835,88 @@ function CD(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var mae = 200, hae = 50, gae = 600, wD = /* @__PURE__ */ new WeakMap(), TD = /* @__PURE__ */ new Set(), ED = /* @__PURE__ */ new Set();
-function _ae(e, t) {
- let n = bS();
- if (e !== n || t.aborted) for (let e of ED) e(n), ED.delete(e);
- if (!e && n && Vb() && !t.aborted) window.clearInterval(wD.get(window)), wD.set(window, DD(mae));
+var gae = 200, _ae = 50, vae = 600, CD = /* @__PURE__ */ new WeakMap(), wD = /* @__PURE__ */ new Set(), TD = /* @__PURE__ */ new Set();
+function yae(e, t) {
+ let n = vS();
+ if (e !== n || t.aborted) for (let e of TD) e(n), TD.delete(e);
+ if (!e && n && Hb() && !t.aborted) window.clearInterval(CD.get(window)), CD.set(window, ED(gae));
else {
- if (e !== n || t.aborted) for (let e of TD) e(n), TD.delete(e);
- (ED.size + TD.size <= 0 || t.aborted) && (window.clearInterval(wD.get(window)), wD.delete(window));
+ if (e !== n || t.aborted) for (let e of wD) e(n), wD.delete(e);
+ (TD.size + wD.size <= 0 || t.aborted) && (window.clearInterval(CD.get(window)), CD.delete(window));
}
}
-function DD(e = gae) {
- return window.setInterval(_ae, hae, bS(), AbortSignal.timeout(e));
+function ED(e = vae) {
+ return window.setInterval(yae, _ae, vS(), AbortSignal.timeout(e));
}
-function OD(e) {
- if (!_S()) return e(!1), () => {};
+function DD(e) {
+ if (!hS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = vS(document.hasFocus() ? mb() : null);
- if (bS() === t || bS() && !t) return e(t);
- ED.add(e), wD.has(window) || wD.set(window, DD());
+ let t = gS(document.hasFocus() ? _b() : null);
+ if (vS() === t || vS() && !t) return e(t);
+ TD.add(e), CD.has(window) || CD.set(window, ED());
});
});
return () => {
- window.cancelAnimationFrame(t), ED.delete(e);
+ window.cancelAnimationFrame(t), TD.delete(e);
};
}
-function vae(e) {
- if (!_S()) return e(!1), () => {};
+function bae(e) {
+ if (!hS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = vS(document.hasFocus() ? mb() : null);
- if (bS() === t) return e(t);
- TD.add(e), wD.has(window) || wD.set(window, DD());
+ let t = gS(document.hasFocus() ? _b() : null);
+ if (vS() === t) return e(t);
+ wD.add(e), CD.has(window) || CD.set(window, ED());
});
});
return () => {
- window.cancelAnimationFrame(t), TD.delete(e);
+ window.cancelAnimationFrame(t), wD.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var kD = typeof document < "u" && window.visualViewport, AD = 0, jD;
-function MD(e = {}) {
+var OD = typeof document < "u" && window.visualViewport, kD = 0, AD;
+function jD(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- Db(() => {
- if (!t) return AD++, AD === 1 && (jD = zb() && Vb() ? bae() : yae(n)), () => {
- AD--, AD === 0 && jD();
+ Ab(() => {
+ if (!t) return kD++, kD === 1 && (AD = Vb() && Hb() ? Sae() : xae(n)), () => {
+ kD--, kD === 0 && AD();
};
}, [t, n]);
}
-function yae(e) {
+function xae(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return kx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? db(document.documentElement, "scrollbar-gutter", "stable") : db(document.documentElement, "padding-right", `${t}px`)), db(document.documentElement, "overflow", "hidden"), e && PD(), e && _S() && ND());
+ return Dx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? pb(document.documentElement, "scrollbar-gutter", "stable") : pb(document.documentElement, "padding-right", `${t}px`)), pb(document.documentElement, "overflow", "hidden"), e && ND(), e && hS() && MD());
}
-function bae() {
- let e = db(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function Sae() {
+ let e = pb(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = jC(r, !0) ? r : MC(r, !0), n = !1;
+ t = NC(r, !0) ? r : PC(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 = WS();
+ }, i = document.createElement("style"), a = HS();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = PD(), c = kx(ub(document, "touchstart", r, {
+ }, s = ND(), c = Dx(fb(document, "touchstart", r, {
passive: !1,
capture: !0
- }), ub(document, "touchmove", o, {
+ }), fb(document, "touchmove", o, {
passive: !1,
capture: !0
- }), ND());
+ }), MD());
return () => {
e(), c(), i.remove(), s();
};
}
-function ND() {
- return ub(document, "blur", (e) => {
+function MD() {
+ return fb(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && vS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && gS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function PD() {
+function ND() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26920,9 +26927,9 @@ function PD() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- mb() === this && xae(this);
+ _b() === this && Cae(this);
};
- OD((t) => t ? e() : vae(() => e()));
+ DD((t) => t ? e() : bae(() => e()));
}
}
}), () => {
@@ -26933,15 +26940,15 @@ function PD() {
});
};
}
-function xae(e) {
+function Cae(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = MC(n);
+ let e = PC(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;
- kD && (n = Math.min(n, kD.offsetTop + kD.height));
+ OD && (n = Math.min(n, OD.offsetTop + OD.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)),
@@ -26954,19 +26961,19 @@ function xae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Sae(e, t, n) {
- let { overlayProps: r, underlayProps: i } = CD({
+function wae(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = SD({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- MD({
+ jD({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), IT();
+ }), FT();
let { isEntering: a } = e;
- return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? Ew(n.current) : Tw([n.current], { shouldUseInert: !0 });
+ return (0, P.useEffect)(() => {
+ if (t.isOpen && n.current) return a ? Tw(n.current) : ww([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -26978,33 +26985,33 @@ function Sae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var FD = {
+var PD = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, ID = {
+}, FD = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Cae = {
+}, Tae = {
top: "left",
left: "top"
-}, LD = {
+}, ID = {
top: "height",
left: "width"
-}, RD = {
+}, LD = {
width: "totalWidth",
height: "totalHeight"
-}, zD = {}, wae = () => typeof document < "u" ? window.visualViewport : null;
-function BD(e, t) {
+}, RD = {}, Eae = () => typeof document < "u" ? window.visualViewport : null;
+function zD(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} = KD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return Vb() && (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} = GD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return Hb() && (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,
@@ -27014,7 +27021,7 @@ function BD(e, t) {
left: s
};
}
-function Tae(e) {
+function Dae(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -27022,11 +27029,11 @@ function Tae(e) {
height: e.scrollHeight
};
}
-function VD(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[LD[e]], l = o[e] + r.scroll[FD[e]] + a, u = o[e] + r.scroll[FD[e]] + c - a, d = t - s + r.scroll[FD[e]] + o[e] - r[FD[e]], f = t - s + n + r.scroll[FD[e]] + o[e] - r[FD[e]];
+function BD(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[ID[e]], l = o[e] + r.scroll[PD[e]] + a, u = o[e] + r.scroll[PD[e]] + c - a, d = t - s + r.scroll[PD[e]] + o[e] - r[PD[e]], f = t - s + n + r.scroll[PD[e]] + o[e] - r[PD[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Eae(e) {
+function Oae(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -27035,58 +27042,58 @@ function Eae(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function HD(e) {
- if (zD[e]) return zD[e];
- let [t, n] = e.split(" "), r = FD[t] || "right", i = Cae[r];
- FD[n] || (n = "center");
- let a = LD[r], o = LD[i];
- return zD[e] = {
+function VD(e) {
+ if (RD[e]) return RD[e];
+ let [t, n] = e.split(" "), r = PD[t] || "right", i = Tae[r];
+ PD[n] || (n = "center");
+ let a = ID[r], o = ID[i];
+ return RD[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, zD[e];
+ }, RD[e];
}
-function UD(e, t, n, r, i, a, o, s, c, l, u) {
+function HD(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] = dw(_[m], v, y), d === p) {
- let t = s ? u[h] : u[RD[h]];
- _[ID[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = uw(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[LD[h]];
+ _[FD[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Dae(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[RD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function kae(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[LD.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 WD(e, t, n, r, i, a, o, s) {
+function UD(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[ID[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[ID[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[FD[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[FD[l]] - i);
}
-function Oae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = HD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = UD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = WD(s, l, t, i, a + u, v, c, g);
+function Aae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = VD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = HD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = UD(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = HD(`${ID[S]} ${C}`), r = UD(t, s, n, e, u, d, l, f, m, h, c);
- WD(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = VD(`${FD[S]} ${C}`), r = HD(t, s, n, e, u, d, l, f, m, h, c);
+ UD(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 = VD(b, w[b], n[x], s, c, a, l);
+ let O = BD(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Dae(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = UD(t, s, n, v, T, d, l, f, m, h, c), O = VD(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[FD[b]], M = j + .5 * t[x], ee = m / 2 + h, N = FD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = dw(dw(M, t[b] + m / 2 - (w[b] + i[FD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[FD[b]])), ee, 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
+ let k = kae(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = HD(t, s, n, v, T, d, l, f, m, h, c), O = BD(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[PD[b]], M = j + .5 * t[x], ee = m / 2 + h, te = PD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - te - m / 2 - h;
+ A[b] = uw(uw(M, t[b] + m / 2 - (w[b] + i[PD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[PD[b]])), ee, ne), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let N = S === "left" || S === "top" ? n[y] : 0, re = {
+ x: S === "top" || S === "bottom" ? j : N,
+ y: S === "left" || S === "right" ? j : N
};
return {
position: w,
@@ -27094,20 +27101,20 @@ function Oae(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: ne
+ triggerAnchorPoint: re
};
}
-function kae(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 = wae(), h = r instanceof HTMLElement ? Aae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? KD(n, !1, p) : qD(n, h, !1, p);
+function jae(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 = Eae(), h = r instanceof HTMLElement ? Mae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? GD(n, !1, p) : KD(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 = KD(r, !0), x = Eae(r);
+ let b = GD(r, !0), x = Oae(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Tae(i), C = BD(s, m), w = BD(h, m), T;
+ let S = Dae(i), C = zD(s, m), w = zD(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = GD(h, !1);
+ let e = WD(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -27119,11 +27126,11 @@ function kae(e) {
left: 0,
width: 0,
height: 0
- } : qD(s, h, !1);
- let E = pb(s, h);
- return Oae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : KD(s, h, !1);
+ let E = gb(s, h);
+ return Aae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function GD(e, t) {
+function WD(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,
@@ -27132,8 +27139,8 @@ function GD(e, t) {
height: a
};
}
-function KD(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || GD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function GD(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || WD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -27141,30 +27148,30 @@ function KD(e, t, n) {
height: o
};
}
-function qD(e, t, n, r) {
+function KD(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || GD(e, n);
+ if (i.position === "fixed") a = r || WD(e, n);
else {
- a = KD(e, n, r);
- let i = KD(t, n), o = window.getComputedStyle(t);
+ a = GD(e, n, r);
+ let i = GD(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 Aae(e) {
+function Mae(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !JD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !JD(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !qD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !qD(t);) t = t.parentElement;
return t || document.documentElement;
}
-function JD(e) {
+function qD(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 YD = typeof document < "u" ? window.visualViewport : null;
-function jae(e) {
- let { direction: t } = kS(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var JD = typeof document < "u" ? window.visualViewport : null;
+function Nae(e) {
+ let { direction: t } = DS(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, P.useState)(null), x = [
p,
s,
i.current,
@@ -27181,15 +27188,15 @@ function jae(e) {
g,
_,
n
- ], S = (0, F.useRef)(YD?.scale);
- (0, F.useEffect)(() => {
- m && (S.current = YD?.scale);
+ ], S = (0, P.useRef)(JD?.scale);
+ (0, P.useEffect)(() => {
+ m && (S.current = JD?.scale);
}, [m]);
- let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || YD?.scale !== S.current) return;
+ let C = (0, P.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || JD?.scale !== S.current) return;
let e = null;
- if (o.current && gb(o.current)) {
- let t = mb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && yb(o.current)) {
+ let t = _b()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -27197,8 +27204,8 @@ function jae(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = kae({
- placement: Nae(s, t),
+ let y = jae({
+ placement: Fae(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -27208,28 +27215,28 @@ function jae(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? GD(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? WD(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = mb();
+ let x = _b();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- Db(C, x), Mae(C), zE({
+ Ab(C, x), Pae(C), RE({
ref: i,
onResize: C
- }), zE({
+ }), RE({
ref: r,
onResize: C
});
- let w = (0, F.useRef)(!1);
- Db(() => {
+ let w = (0, P.useRef)(!1);
+ Ab(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -27237,16 +27244,16 @@ function jae(e) {
}, n = () => {
w.current && t();
};
- YD?.addEventListener("resize", t), YD?.addEventListener("scroll", n);
- let r = ub(hb(window), "scroll", n);
+ JD?.addEventListener("resize", t), JD?.addEventListener("scroll", n);
+ let r = fb(vb(window), "scroll", n);
return () => {
- YD?.removeEventListener("resize", t), YD?.removeEventListener("scroll", n), r();
+ JD?.removeEventListener("resize", t), JD?.removeEventListener("scroll", n), r();
};
}, [C]);
- let T = (0, F.useCallback)(() => {
+ let T = (0, P.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Vie({
+ return Uie({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -27272,25 +27279,25 @@ function jae(e) {
updatePosition: C
};
}
-function Mae(e) {
- Db(() => (window.addEventListener("resize", e, !1), () => {
+function Pae(e) {
+ Ab(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Nae(e, t) {
+function Fae(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 Pae(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 } = CD({
+function Iae(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 } = SD({
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 } = jae({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Nae({
...c,
targetRef: n,
overlayRef: r,
@@ -27298,15 +27305,15 @@ function Pae(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)
});
- MD({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Ew(i?.current ?? r.current) : Tw([i?.current ?? r.current], { shouldUseInert: !0 });
+ jD({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Tw(i?.current ?? r.current) : ww([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = cw(e);
+ let { focusWithinProps: g } = sw(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -27317,13 +27324,13 @@ function Pae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var XD = /* @__PURE__ */ new WeakMap();
+var YD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Fae(e, t, n) {
+function Lae(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: _ } = ZS({
+ }, { pressProps: g, isPressed: _ } = YS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27331,7 +27338,7 @@ function Fae(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = ZS({
+ }), { pressProps: v, isPressed: y } = YS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27341,13 +27348,13 @@ function Fae(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = qx(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = LS(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Gx(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = FS(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = XD.get(t);
- BC(n, t.defaultSelectedValue, t.setSelectedValue), VC({ validationBehavior: O }, t, n);
- let k = KC();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = YD.get(t);
+ HC(n, t.defaultSelectedValue, t.setSelectedValue), UC({ validationBehavior: O }, t, n);
+ let k = JC();
return {
- labelProps: K(v, (0, F.useMemo)(() => ({
+ labelProps: K(v, (0, P.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
@@ -27377,13 +27384,13 @@ function Fae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Iae(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = kS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = sw({
+function Rae(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = DS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ow({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = LS(e, { labelable: !0 }), { focusWithinProps: v } = cw({
+ }), _ = FS(e, { labelable: !0 }), { focusWithinProps: v } = sw({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27391,13 +27398,13 @@ function Iae(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = SC(n.currentTarget, {
+ let r = wC(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof sb(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof lb(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 } = Ux({
+ let { keyboardProps: b } = Vx({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -27405,8 +27412,8 @@ function Iae(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Nx(n);
- return XD.set(t, {
+ }), x = jx(n);
+ return YD.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -27435,21 +27442,21 @@ function Iae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var ZD = /* @__PURE__ */ new WeakMap();
-function Lae(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = AT({
+var XD = /* @__PURE__ */ new WeakMap();
+function zae(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = kT({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new Mw(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, P.useMemo)(() => r || new jw(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = gT({
+ ]), { menuTriggerProps: d, menuProps: f } = hT({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Ux({
+ }, t, n), { keyboardProps: p } = Vx({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -27465,21 +27472,21 @@ function Lae(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = vT({
+ }), { typeSelectProps: m } = _T({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = sw({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = ow({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = LS(e, { labelable: !0 }), C = K(m, d, y), w = Nx();
- return ZD.set(t, {
+ let S = FS(e, { labelable: !0 }), C = K(m, d, y), w = jx();
+ return XD.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27489,13 +27496,13 @@ function Lae(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), vx("keyboard"));
+ e.isDisabled || (n.current?.focus(), gx("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: kx(C.onKeyDown, p.onKeyDown),
+ onKeyDown: Dx(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -27519,7 +27526,7 @@ function Lae(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- pb(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ gb(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -27540,17 +27547,17 @@ function Lae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Rae(e, t, n) {
- let r = ZD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = vw({ style: {
+function Bae(e, t, n) {
+ let r = XD.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
} });
- BC(e.selectRef, t.defaultValue, t.setValue), VC({
+ HC(e.selectRef, t.defaultValue, t.setValue), UC({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, F.useCallback)((e) => {
+ let d = t.setValue, f = (0, P.useCallback)((e) => {
let t = G(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
@@ -27576,32 +27583,32 @@ function Rae(e, t, n) {
}
};
}
-function zae(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Rae({
+function Vae(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = Bae({
...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__*/ F.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ P.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ F.createElement("label", null, r, /*#__PURE__*/ F.createElement("select", {
+ }, /*#__PURE__*/ P.createElement("label", null, r, /*#__PURE__*/ P.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ F.createElement("option", {
+ }, /*#__PURE__*/ P.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ F.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ P.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ F.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ P.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = ZD.get(t) || {};
+ let { validationBehavior: e } = XD.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27612,7 +27619,7 @@ function zae(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ F.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ P.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -27620,20 +27627,20 @@ function zae(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ F.createElement("input", {
+ }) : /*#__PURE__*/ P.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, n);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Bae(e) {
- let t = LS(e, { labelable: !0 }), n;
+function Hae(e) {
+ let t = FS(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27642,8 +27649,8 @@ function Bae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Vae(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = iw(e, t, n);
+function Uae(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = rw(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27657,10 +27664,10 @@ function Vae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var QD = class {
+var ZD = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Hae(e.layout) : new jw(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Wae(e.layout) : new Aw(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27696,7 +27703,7 @@ var QD = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of xT(n, this.collection)) {
+ for (let e of bT(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27730,13 +27737,13 @@ var QD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = xT(t, this.collection);
- return (this.direction === "rtl" ? wT(e)?.key : ST(e)?.key) ?? null;
+ let e = bT(t, this.collection);
+ return (this.direction === "rtl" ? CT(e)?.key : xT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = xT(n, this.collection), i = (this.direction === "rtl" ? CT(r, t.index - 1) : CT(r, t.index + 1)) ?? null;
+ let r = bT(n, this.collection), i = (this.direction === "rtl" ? ST(r, t.index - 1) : ST(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -27745,13 +27752,13 @@ var QD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = xT(t, this.collection);
- return (this.direction === "rtl" ? ST(e)?.key : wT(e)?.key) ?? null;
+ let e = bT(t, this.collection);
+ return (this.direction === "rtl" ? xT(e)?.key : CT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = xT(n, this.collection), i = (this.direction === "rtl" ? CT(r, t.index + 1) : CT(r, t.index - 1)) ?? null;
+ let r = bT(n, this.collection), i = (this.direction === "rtl" ? ST(r, t.index + 1) : ST(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -27762,13 +27769,13 @@ var QD = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? ST(xT(e, this.collection))?.key ?? null : null;
+ return e ? xT(bT(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = ST(xT(e, this.collection))?.key ?? null;
+ n = xT(bT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27778,13 +27785,13 @@ var QD = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? wT(xT(e, this.collection))?.key ?? null : null;
+ return e ? CT(bT(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = wT(xT(e, this.collection))?.key ?? null;
+ n = CT(bT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27820,13 +27827,13 @@ var QD = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? ST(xT(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? xT(bT(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Hae = class {
+}, Wae = class {
constructor(e) {
this.layout = e;
}
@@ -27839,16 +27846,16 @@ var QD = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, $D = /* @__PURE__ */ new WeakMap();
+}, QD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Uae(e, t, n) {
+function Gae(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = AT({
+ let h = kT({
usage: "search",
sensitivity: "base"
- }), { direction: g } = kS(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new QD({
+ }), { direction: g } = DS(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new ZD({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27865,7 +27872,7 @@ function Uae(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = bT({
+ ]), { collectionProps: y } = yT({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27873,8 +27880,8 @@ function Uae(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = Nx(e.id);
- $D.set(t, {
+ }), b = jx(e.id);
+ QD.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27883,44 +27890,44 @@ function Uae(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = kE({
+ let x = OE({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = LS(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? pb(e.currentTarget, G(e)) || m.setFocused(!1) : pb(e.currentTarget, G(e)) && m.setFocused(!0);
- }, [m]), w = (0, F.useMemo)(() => ({
+ }), S = FS(e, { labelable: !0 }), C = (0, P.useCallback)((e) => {
+ m.isFocused ? gb(e.currentTarget, G(e)) || m.setFocused(!1) : gb(e.currentTarget, G(e)) && m.setFocused(!0);
+ }, [m]), w = (0, P.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = OE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = DE(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), EE({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), TE({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var eO = /* @__PURE__ */ new WeakMap();
-function tO(e) {
+var $D = /* @__PURE__ */ new WeakMap();
+function eO(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function nO(e, t) {
- let n = eO.get(e);
+function tO(e, t) {
+ let n = $D.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${tO(t)}`;
+ return `${n}-${eO(t)}`;
}
-function rO(e, t, n) {
- let r = eO.get(e);
+function nO(e, t, n) {
+ let r = $D.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${tO(t)}-${tO(n)}`;
+ return `${r}-${eO(t)}-${eO(n)}`;
}
-function iO(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => rO(e, t, n)).join(" ");
+function rO(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => nO(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -27935,8 +27942,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -27951,8 +27958,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27967,8 +27974,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27983,8 +27990,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27999,8 +28006,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -28015,8 +28022,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -28031,8 +28038,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -28047,8 +28054,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -28063,8 +28070,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -28079,8 +28086,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -28095,8 +28102,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -28111,8 +28118,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -28127,8 +28134,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -28143,8 +28150,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -28159,8 +28166,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var bO = {};
-bO = {
+var yO = {};
+yO = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -28175,8 +28182,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var xO = {};
-xO = {
+var bO = {};
+bO = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -28191,8 +28198,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var SO = {};
-SO = {
+var xO = {};
+xO = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -28207,8 +28214,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var CO = {};
-CO = {
+var SO = {};
+SO = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -28223,8 +28230,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var wO = {};
-wO = {
+var CO = {};
+CO = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -28239,8 +28246,8 @@ wO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var TO = {};
-TO = {
+var wO = {};
+wO = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28255,8 +28262,8 @@ TO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var EO = {};
-EO = {
+var TO = {};
+TO = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28271,8 +28278,8 @@ EO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var DO = {};
-DO = {
+var EO = {};
+EO = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28287,8 +28294,8 @@ DO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var OO = {};
-OO = {
+var DO = {};
+DO = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28303,8 +28310,8 @@ OO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var kO = {};
-kO = {
+var OO = {};
+OO = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28319,8 +28326,8 @@ kO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var AO = {};
-AO = {
+var kO = {};
+kO = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -28335,8 +28342,8 @@ AO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var jO = {};
-jO = {
+var AO = {};
+AO = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28351,8 +28358,8 @@ jO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var MO = {};
-MO = {
+var jO = {};
+jO = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -28367,8 +28374,8 @@ MO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var NO = {};
-NO = {
+var MO = {};
+MO = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28383,8 +28390,8 @@ NO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var PO = {};
-PO = {
+var NO = {};
+NO = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28399,8 +28406,8 @@ PO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var FO = {};
-FO = {
+var PO = {};
+PO = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28415,8 +28422,8 @@ FO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var IO = {};
-IO = {
+var FO = {};
+FO = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -28431,8 +28438,8 @@ IO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var LO = {};
-LO = {
+var IO = {};
+IO = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28447,8 +28454,8 @@ LO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var RO = {};
-RO = {
+var LO = {};
+LO = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -28463,46 +28470,46 @@ RO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var zO = {};
-zO = {
- "ar-AE": aO,
- "bg-BG": oO,
- "cs-CZ": sO,
- "da-DK": cO,
- "de-DE": lO,
- "el-GR": uO,
- "en-US": dO,
- "es-ES": fO,
- "et-EE": pO,
- "fi-FI": mO,
- "fr-FR": hO,
- "he-IL": gO,
- "hr-HR": _O,
- "hu-HU": vO,
- "it-IT": yO,
- "ja-JP": bO,
- "ko-KR": xO,
- "lt-LT": SO,
- "lv-LV": CO,
- "nb-NO": wO,
- "nl-NL": TO,
- "pl-PL": EO,
- "pt-BR": DO,
- "pt-PT": OO,
- "ro-RO": kO,
- "ru-RU": AO,
- "sk-SK": jO,
- "sl-SI": MO,
- "sr-SP": NO,
- "sv-SE": PO,
- "tr-TR": FO,
- "uk-UA": IO,
- "zh-CN": LO,
- "zh-TW": RO
+var RO = {};
+RO = {
+ "ar-AE": iO,
+ "bg-BG": aO,
+ "cs-CZ": oO,
+ "da-DK": sO,
+ "de-DE": cO,
+ "el-GR": lO,
+ "en-US": uO,
+ "es-ES": dO,
+ "et-EE": fO,
+ "fi-FI": pO,
+ "fr-FR": mO,
+ "he-IL": hO,
+ "hr-HR": gO,
+ "hu-HU": _O,
+ "it-IT": vO,
+ "ja-JP": yO,
+ "ko-KR": bO,
+ "lt-LT": xO,
+ "lv-LV": SO,
+ "nb-NO": CO,
+ "nl-NL": wO,
+ "pl-PL": TO,
+ "pt-BR": EO,
+ "pt-PT": DO,
+ "ro-RO": OO,
+ "ru-RU": kO,
+ "sk-SK": AO,
+ "sl-SI": jO,
+ "sr-SP": MO,
+ "sv-SE": NO,
+ "tr-TR": PO,
+ "uk-UA": FO,
+ "zh-CN": IO,
+ "zh-TW": LO
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Wae = class extends QD {
+var Kae = class extends ZD {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28510,7 +28517,7 @@ var Wae = class extends QD {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = ST(xT(n, this.collection));
+ let e = xT(bT(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -28531,13 +28538,13 @@ var Wae = class extends QD {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of xT(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of bT(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...xT(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...bT(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28566,7 +28573,7 @@ var Wae = class extends QD {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of xT(o, this.collection)) {
+ for (let r of bT(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -28580,14 +28587,14 @@ var Wae = class extends QD {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Gae(e) {
+function qae(e) {
return e && e.__esModule ? e.default : e;
}
-function Kae(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = AT({
+function Jae(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = kT({
usage: "search",
sensitivity: "base"
- }), { direction: c } = kS(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Wae({
+ }), { direction: c } = DS(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new Kae({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28606,52 +28613,52 @@ function Kae(e, t, n) {
s,
a,
o
- ]), d = Nx(e.id);
- eO.set(t, d);
- let { gridProps: f } = Uae({
+ ]), d = jx(e.id);
+ $D.set(t, d);
+ let { gridProps: f } = Gae({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = FS(Gae(zO), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = NS(qae(RO), "@react-aria/table"), g = (0, P.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = zC(g);
- return AC(() => {
- g && OC(g, "assertive", 500);
+ ]), _ = VC(g);
+ return MC(() => {
+ g && AC(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function BO(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = kS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = $D.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function zO(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = DS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = QD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = () => {
if (n.current) {
- let e = SC(n.current);
+ let e = wC(n.current);
if (p === "child") {
- let i = mb(ob(n.current));
- if (gb(n.current) && n.current !== i) return;
- let a = ob(n.current);
+ let i = _b(cb(n.current));
+ if (yb(n.current) && n.current !== i) return;
+ let a = cb(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && pb(n.current, e)) {
- Ox(e);
+ if (e && m.current === r.key && gb(n.current, e)) {
+ Ex(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? VO(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? BO(e) : e.firstChild();
if (o) {
- Ox(o);
+ Ex(o);
return;
}
}
- (m.current != null && r.key !== m.current || !gb(n.current)) && Ox(n.current);
+ (m.current != null && r.key !== m.current || !yb(n.current)) && Ex(n.current);
}
- }, { itemProps: _, isPressed: v } = jE({
+ }, { itemProps: _, isPressed: v } = AE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28663,44 +28670,44 @@ function BO(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = mb(ob(n.current));
- if (!pb(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = SC(n.current);
+ let i = _b(cb(n.current));
+ if (!gb(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = wC(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ox(t), IC(t, { containingElement: MC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ex(t), RC(t, { containingElement: PC(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Ox(n.current), IC(n.current, { containingElement: MC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : VO(a), t && (Ox(t), IC(t, { containingElement: MC(n.current) })));
+ p === "cell" && l === "rtl" ? (Ex(n.current), RC(n.current, { containingElement: PC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : BO(a), t && (Ex(t), RC(t, { containingElement: PC(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ox(t), IC(t, { containingElement: MC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Ex(t), RC(t, { containingElement: PC(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Ox(n.current), IC(n.current, { containingElement: MC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? VO(a) : a.firstChild(), t && (Ox(t), IC(t, { containingElement: MC(n.current) })));
+ p === "cell" && l === "ltr" ? (Ex(n.current), RC(n.current, { containingElement: PC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? BO(a) : a.firstChild(), t && (Ex(t), RC(t, { containingElement: PC(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && pb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && gb(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = mb(ob(n.current));
- if (pb(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = _b(cb(n.current));
+ if (gb(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = SC(n.current, { tabbable: !0 });
+ let t = wC(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28711,9 +28718,9 @@ function BO(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && pb(n.current, i) && (h.current = i), gx() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && pb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && mb(ob(n.current)) === n.current && g();
+ n.current && gb(n.current, i) && (h.current = i), mx() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && gb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && _b(cb(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -28728,7 +28735,7 @@ function BO(e, t, n) {
isPressed: v
};
}
-function VO(e) {
+function BO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -28737,34 +28744,34 @@ function VO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function qae(e, t, n) {
- let { gridCellProps: r, isPressed: i } = BO(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = rO(t, e.node.parentKey, a)), {
+function Yae(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = zO(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = nO(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Jae(e) {
+function Xae(e) {
return e && e.__esModule ? e.default : e;
}
-function Yae(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = BO({
+function Zae(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = zO({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = ZS({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = YS({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = qx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Ub() && (u = d ? f : "none");
- let p = FS(Jae(zO), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Ub() && (m = `${m}, ${p.format(f)}`));
- let h = zC(m), g = t.collection.size === 0;
- return (0, F.useEffect)(() => {
+ }), { focusableProps: l } = Gx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !Wb() && (u = d ? f : "none");
+ let p = NS(Xae(RO), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && Wb() && (m = `${m}, ${p.format(f)}`));
+ let h = VC(m), g = t.collection.size === 0;
+ return (0, P.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
g,
@@ -28774,7 +28781,7 @@ function Yae(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: nO(t, r.key),
+ id: tO(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28783,17 +28790,17 @@ function Yae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Xae(e) {
+function Qae(e) {
return e && e.__esModule ? e.default : e;
}
-function Zae(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = FS(Xae(zO), "@react-aria/table"), d = Nx(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = kS(), b = (0, F.useCallback)((e) => {
+function $ae(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = NS(Qae(RO), "@react-aria/table"), d = jx(), f = t.resizingColumn === r.key, p = (0, P.useRef)(f), m = (0, P.useRef)(null), h = (0, P.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, P.useState)(!1), { direction: y } = DS(), b = (0, P.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
- }, [t, o]), x = (0, F.useCallback)((e, n) => {
+ }, [t, o]), x = (0, P.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
- }, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && Ox(i.current)), m.current = null;
+ }, [t, s]), S = (0, P.useCallback)((e) => {
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && Ex(i.current)), m.current = null;
}, [
t,
i,
@@ -28801,14 +28808,14 @@ function Zae(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = Ux({ shortcuts: {
+ }, { keyboardProps: w } = Vx({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = gw({
+ } }), T = (0, P.useRef)(0), { moveProps: E } = hw({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28820,63 +28827,63 @@ function Zae(e, t, n) {
let { pointerType: t } = e;
T.current = 0, v(!1), (t === "mouse" || t === "touch" && h.current) && S(r);
}
- }), D = (0, F.useCallback)((e) => {
+ }), D = (0, P.useCallback)((e) => {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = yx();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = _x();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = zC(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = VC(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${nO(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${tO(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
max: k,
value: A,
...M
- }, N = (0, F.useCallback)(() => {
- n.current && Ox(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = xS(b);
- (0, F.useEffect)(() => {
- if (P.current !== te && te != null && te === r.key) {
- h.current = mb() === n.current, ne(r);
- let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
+ }, te = (0, P.useCallback)(() => {
+ n.current && Ex(n.current);
+ }, [n]), ne = t.resizingColumn, N = (0, P.useRef)(null), re = yS(b);
+ (0, P.useEffect)(() => {
+ if (N.current !== ne && ne != null && ne === r.key) {
+ h.current = _b() === n.current, re(r);
+ let e = setTimeout(() => te(), 0), t = setTimeout(te, 400);
return () => {
clearTimeout(e), clearTimeout(t);
};
}
- P.current = te;
+ N.current = ne;
}, [
- te,
+ ne,
r,
- N,
+ te,
n
]);
- let re = (e) => {
+ let ie = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = ZS({
+ }, { pressProps: F } = YS({
preventFocusOnPress: !0,
onPressStart: (e) => {
- e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
+ e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (te(), e.pointerType !== "virtual" && b(r)));
},
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = vw();
+ }), { visuallyHiddenProps: ae } = _w();
return {
resizerProps: K(w, {
...E,
onKeyDown: D
- }, I, { style: { touchAction: "none" } }),
- inputProps: K(ie, {
+ }, F, { style: { touchAction: "none" } }),
+ inputProps: K(ae, {
id: d,
onBlur: () => {
S(r);
},
- onChange: re,
+ onChange: ie,
disabled: a
}, ee),
isResizing: f,
@@ -28885,20 +28892,20 @@ function Zae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Qae(e, t, n) {
+function eoe(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function $ae(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = $D.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = jE({
+function toe(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = QD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = AE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? kx(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? Dx(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -28913,10 +28920,10 @@ function $ae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function eoe(e) {
+function noe(e) {
return e && e.__esModule ? e.default : e;
}
-var HO = {
+var VO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -28926,21 +28933,21 @@ var HO = {
rtl: "ArrowRight"
}
};
-function toe(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = $ae(e, t, n), { direction: s } = kS();
+function roe(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = toe(e, t, n), { direction: s } = DS();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = FS(eoe(zO), "@react-aria/table"), u = CS({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = NS(noe(RO), "@react-aria/table"), u = xS({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": iO(t, r.key)
+ "aria-labelledby": rO(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = UO(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = UO(t.collection, a);
+ let n = HO(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = HO(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === HO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === HO.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === VO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === VO.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -28958,45 +28965,45 @@ function toe(e, t, n) {
};
}
}
- let p = Xb(r.props), m = o.hasAction ? p : {};
+ let p = Jb(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": iO(t, r.key)
+ "aria-labelledby": rO(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function UO(e, t) {
+function HO(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function noe() {
+function ioe() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function WO() {
- return noe();
+function UO() {
+ return ioe();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function roe(e) {
+function aoe(e) {
return e && e.__esModule ? e.default : e;
}
-function ioe(e, t) {
- let { key: n } = e, { checkboxProps: r } = LE(e, t);
+function ooe(e, t) {
+ let { key: n } = e, { checkboxProps: r } = IE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${iO(t, n)}`
+ "aria-labelledby": `${r.id} ${rO(t, n)}`
} };
}
-function aoe(e) {
+function soe(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": FS(roe(zO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": NS(aoe(RO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -29005,23 +29012,23 @@ function aoe(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var GO = /* @__PURE__ */ new WeakMap();
-function KO(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${GO.get(e)}-${n}-${t}`) : "";
+var WO = /* @__PURE__ */ new WeakMap();
+function GO(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${WO.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function ooe(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = jE({
+function coe(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = AE({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = KO(t, r, "tab"), m = KO(t, r, "tabpanel"), { tabIndex: h } = d, g = LS(u?.props, { labelable: !0 });
+ }), p = GO(t, r, "tab"), m = GO(t, r, "tabpanel"), { tabIndex: h } = d, g = FS(u?.props, { labelable: !0 });
delete g.id;
- let _ = Zb(u?.props), { focusableProps: v } = qx({
+ let _ = Yb(u?.props), { focusableProps: v } = Gx({
...u?.props,
isDisabled: l
}, n);
@@ -29041,7 +29048,7 @@ function ooe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var soe = class {
+var loe = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -29085,11 +29092,11 @@ var soe = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function coe(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = kS(), { collectionProps: l } = bT({
+function uoe(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = DS(), { collectionProps: l } = yT({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new soe(a, c, r, s), [
+ keyboardDelegate: (0, P.useMemo)(() => new loe(a, c, r, s), [
a,
s,
r,
@@ -29099,9 +29106,9 @@ function coe(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = Nx();
- return GO.set(t, u), { tabListProps: {
- ...K(l, CS({
+ }), u = jx();
+ return WO.set(t, u), { tabListProps: {
+ ...K(l, xS({
...e,
id: u
})),
@@ -29112,12 +29119,12 @@ function coe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function loe(e, t, n) {
- let r = OE(n) ? void 0 : 0, i = KO(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(CS({
+function doe(e, t, n) {
+ let r = DE(n) ? void 0 : 0, i = GO(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(xS({
...e,
id: i,
- "aria-labelledby": KO(t, t?.selectedKey, "tab")
+ "aria-labelledby": GO(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -29127,301 +29134,301 @@ function loe(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTree.mjs
-function uoe(e, t, n) {
- let { gridProps: r } = tae(e, t, n);
+function foe(e, t, n) {
+ let { gridProps: r } = rae(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var qO = {};
-qO = {
+var KO = {};
+KO = {
collapse: "طي",
expand: "تمديد"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var JO = {};
-JO = {
+var qO = {};
+qO = {
collapse: "Свиване",
expand: "Разширяване"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var YO = {};
-YO = {
+var JO = {};
+JO = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var XO = {};
-XO = {
+var YO = {};
+YO = {
collapse: "Skjul",
expand: "Udvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var ZO = {};
-ZO = {
+var XO = {};
+XO = {
collapse: "Reduzieren",
expand: "Erweitern"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var QO = {};
-QO = {
+var ZO = {};
+ZO = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var $O = {};
-$O = {
+var QO = {};
+QO = {
expand: "Expand",
collapse: "Collapse"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var ek = {};
-ek = {
+var $O = {};
+$O = {
collapse: "Contraer",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var tk = {};
-tk = {
+var ek = {};
+ek = {
collapse: "Ahenda",
expand: "Laienda"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var nk = {};
-nk = {
+var tk = {};
+tk = {
collapse: "Pienennä",
expand: "Laajenna"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var rk = {};
-rk = {
+var nk = {};
+nk = {
collapse: "Réduire",
expand: "Développer"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var ik = {};
-ik = {
+var rk = {};
+rk = {
collapse: "כווץ",
expand: "הרחב"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var ak = {};
-ak = {
+var ik = {};
+ik = {
collapse: "Sažmi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ok = {};
-ok = {
+var ak = {};
+ak = {
collapse: "Összecsukás",
expand: "Kibontás"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var sk = {};
-sk = {
+var ok = {};
+ok = {
collapse: "Comprimi",
expand: "Espandi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var ck = {};
-ck = {
+var sk = {};
+sk = {
collapse: "折りたたむ",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var lk = {};
-lk = {
+var ck = {};
+ck = {
collapse: "접기",
expand: "펼치기"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var uk = {};
-uk = {
+var lk = {};
+lk = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var dk = {};
-dk = {
+var uk = {};
+uk = {
collapse: "Sakļaut",
expand: "Izvērst"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var fk = {};
-fk = {
+var dk = {};
+dk = {
collapse: "Skjul",
expand: "Utvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var pk = {};
-pk = {
+var fk = {};
+fk = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var mk = {};
-mk = {
+var pk = {};
+pk = {
collapse: "Zwiń",
expand: "Rozwiń"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var hk = {};
-hk = {
+var mk = {};
+mk = {
collapse: "Recolher",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var gk = {};
-gk = {
+var hk = {};
+hk = {
collapse: "Colapsar",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var _k = {};
-_k = {
+var gk = {};
+gk = {
collapse: "Restrângeți",
expand: "Extindeți"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var vk = {};
-vk = {
+var _k = {};
+_k = {
collapse: "Свернуть",
expand: "Развернуть"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var yk = {};
-yk = {
+var vk = {};
+vk = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var bk = {};
-bk = {
+var yk = {};
+yk = {
collapse: "Strni",
expand: "Razširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var xk = {};
-xk = {
+var bk = {};
+bk = {
collapse: " Skupi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var Sk = {};
-Sk = {
+var xk = {};
+xk = {
collapse: "Dölj",
expand: "Expandera"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var Ck = {};
-Ck = {
+var Sk = {};
+Sk = {
collapse: "Daralt",
expand: "Genişlet"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var wk = {};
-wk = {
+var Ck = {};
+Ck = {
collapse: "Згорнути",
expand: "Розгорнути"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var Tk = {};
-Tk = {
+var wk = {};
+wk = {
collapse: "折叠",
expand: "扩展"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var Ek = {};
-Ek = {
+var Tk = {};
+Tk = {
collapse: "收合",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Dk = {};
-Dk = {
- "ar-AE": qO,
- "bg-BG": JO,
- "cs-CZ": YO,
- "da-DK": XO,
- "de-DE": ZO,
- "el-GR": QO,
- "en-US": $O,
- "es-ES": ek,
- "et-EE": tk,
- "fi-FI": nk,
- "fr-FR": rk,
- "he-IL": ik,
- "hr-HR": ak,
- "hu-HU": ok,
- "it-IT": sk,
- "ja-JP": ck,
- "ko-KR": lk,
- "lt-LT": uk,
- "lv-LV": dk,
- "nb-NO": fk,
- "nl-NL": pk,
- "pl-PL": mk,
- "pt-BR": hk,
- "pt-PT": gk,
- "ro-RO": _k,
- "ru-RU": vk,
- "sk-SK": yk,
- "sl-SI": bk,
- "sr-SP": xk,
- "sv-SE": Sk,
- "tr-TR": Ck,
- "uk-UA": wk,
- "zh-CN": Tk,
- "zh-TW": Ek
+var Ek = {};
+Ek = {
+ "ar-AE": KO,
+ "bg-BG": qO,
+ "cs-CZ": JO,
+ "da-DK": YO,
+ "de-DE": XO,
+ "el-GR": ZO,
+ "en-US": QO,
+ "es-ES": $O,
+ "et-EE": ek,
+ "fi-FI": tk,
+ "fr-FR": nk,
+ "he-IL": rk,
+ "hr-HR": ik,
+ "hu-HU": ak,
+ "it-IT": ok,
+ "ja-JP": sk,
+ "ko-KR": ck,
+ "lt-LT": lk,
+ "lv-LV": uk,
+ "nb-NO": dk,
+ "nl-NL": fk,
+ "pl-PL": pk,
+ "pt-BR": mk,
+ "pt-PT": hk,
+ "ro-RO": gk,
+ "ru-RU": _k,
+ "sk-SK": vk,
+ "sl-SI": yk,
+ "sr-SP": bk,
+ "sv-SE": xk,
+ "tr-TR": Sk,
+ "uk-UA": Ck,
+ "zh-CN": wk,
+ "zh-TW": Tk
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function doe(e) {
+function poe(e) {
return e && e.__esModule ? e.default : e;
}
-function Ok(e, t, n) {
- let { node: r } = e, i = nae(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = FS(doe(Dk), "@react-aria/tree"), s = {
+function Dk(e, t, n) {
+ let { node: r } = e, i = iae(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = NS(poe(Ek), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...CS({
+ ...xS({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -29433,28 +29440,28 @@ function Ok(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var kk = "(prefers-reduced-motion: reduce)", foe = () => matchMedia(kk).matches, poe = (e) => {
- let t = matchMedia(kk);
+var Ok = "(prefers-reduced-motion: reduce)", moe = () => matchMedia(Ok).matches, hoe = (e) => {
+ let t = matchMedia(Ok);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Ak = /* @__PURE__ */ new Map(), jk = () => {
+}, kk = /* @__PURE__ */ new Map(), Ak = () => {
let e = document.documentElement;
- Ak.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Ak.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ kk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...kk.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function moe({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Hv(), a = (0, F.useSyncExternalStore)(poe, foe, () => !1), { isFocusVisible: o } = bx(), s = a || o, c = {
+function goe({ children: e, count: t, label: n }) {
+ let r = (0, P.useRef)(null), i = Gv(), a = (0, P.useSyncExternalStore)(hoe, moe, () => !1), { isFocusVisible: o } = vx(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Ak.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), jk();
+ kk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Ak();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Ak.delete(e), jk();
+ n.disconnect(), window.removeEventListener("resize", t), kk.delete(e), Ak();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(Yy.div, {
+ }, [i]), /* @__PURE__ */ (0, F.jsxs)(Zy.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -29480,25 +29487,25 @@ function moe({ children: e, count: t, label: n }) {
1
]
},
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
role: "status",
className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
children: t
}), e]
});
}
-function Mk({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Gv, { children: e ? /* @__PURE__ */ (0, I.jsx)(moe, { ...t }, "selection") : null });
+function jk({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, F.jsx)(Jv, { children: e ? /* @__PURE__ */ (0, F.jsx)(goe, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var Nk = {
+var Mk = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function hoe(e, t = !1) {
+function _oe(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -29514,7 +29521,7 @@ function hoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Nk
+ Mk
];
case "junk": return [
t ? {
@@ -29535,7 +29542,7 @@ function hoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Nk
+ Mk
];
case "follow": return [
{
@@ -29556,7 +29563,7 @@ function hoe(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Nk
+ Mk
];
default: return [
{
@@ -29590,62 +29597,62 @@ function hoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- Nk
+ Mk
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var Pk = null, Fk = {
+var Nk = null, Pk = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Ik = /* @__PURE__ */ new Set();
-function goe(e) {
- return Ik.add(e), () => {
- Ik.delete(e);
+}, Fk = /* @__PURE__ */ new Set();
+function voe(e) {
+ return Fk.add(e), () => {
+ Fk.delete(e);
};
}
-function _oe() {
- for (let e of [...Ik]) e();
+function yoe() {
+ for (let e of [...Fk]) e();
}
-var voe = { render(e) {
- Fk = e, (0, It.flushSync)(_oe);
+var boe = { render(e) {
+ Pk = e, (0, Lt.flushSync)(yoe);
} };
-function yoe(e) {
- return Pk = e, voe;
+function xoe(e) {
+ return Nk = e, boe;
}
-function boe() {
- let e = (0, F.useSyncExternalStore)(goe, () => Fk);
- return Pk ? /* @__PURE__ */ (0, I.jsx)(xoe, {
- host: Pk,
+function Soe() {
+ let e = (0, P.useSyncExternalStore)(voe, () => Pk);
+ return Nk ? /* @__PURE__ */ (0, F.jsx)(Coe, {
+ host: Nk,
props: e
}) : null;
}
-function xoe({ host: e, props: t }) {
+function Coe({ host: e, props: t }) {
let n = t.count > 0;
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
- }, [n]), (0, F.useLayoutEffect)(() => () => {
+ }, [n]), (0, P.useLayoutEffect)(() => () => {
document.body.removeAttribute("data-batch-dock-open");
- }, []), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, []), /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Mk, {
+ children: /* @__PURE__ */ (0, F.jsx)(jk, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: hoe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: _oe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
"data-danger": t.danger ? "" : void 0,
onClick: (n) => e.run(t.group, t.operation, n.currentTarget),
- children: [/* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${t.glyph}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${t.glyph}` })
}), t.label]
}, `${t.group}:${t.operation}`))
})
@@ -29653,12 +29660,12 @@ function xoe({ host: e, props: t }) {
}
//#endregion
//#region src/number-setting.ts
-function Lk(e, t, n, r) {
+function Ik(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/settings-store.ts
-function Soe(e, t) {
+function woe(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -29678,7 +29685,7 @@ function Soe(e, t) {
}
//#endregion
//#region src/sort-preferences.ts
-var Rk = [
+var Lk = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -29687,7 +29694,7 @@ var Rk = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], zk = ["release", "发行时间"], Bk = [...Rk, zk].map(([e]) => e), Vk = {
+], Rk = ["release", "发行时间"], zk = [...Lk, Rk].map(([e]) => e), Bk = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -29696,28 +29703,28 @@ var Rk = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Hk = {
+}, Vk = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Uk = (e, t, n = Vk) => (n[e] || [])[+(t === "asc")] || "", Wk = (e, t = Vk) => t[e] ? "desc" : "";
-function Gk(e, t, n, r = Vk) {
+}, Hk = (e, t, n = Bk) => (n[e] || [])[+(t === "asc")] || "", Uk = (e, t = Bk) => t[e] ? "desc" : "";
+function Wk(e, t, n, r = Bk) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Wk(e, r)
+ dir: Uk(e, r)
};
}
-function Kk(e, t, n) {
+function Gk(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function qk(e, t, n, r, i = n) {
- let a = e ? Hk[e] : void 0, o = a ? a[0] : e, s = o && Bk.includes(o) ? o : i;
- return Vk[s] ? {
+function Kk(e, t, n, r, i = n) {
+ let a = e ? Vk[e] : void 0, o = a ? a[0] : e, s = o && zk.includes(o) ? o : i;
+ return Bk[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Kk(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Gk(s, n, r)
} : {
sort: s,
dir: ""
@@ -29725,15 +29732,15 @@ function qk(e, t, n, r, i = n) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var Jk = [
+var qk = [
"spot1",
"spot2",
"spot3"
-], Coe = [
+], Toe = [
"光晕一",
"光晕二",
"光晕三"
-], Yk = "native", Xk = [
+], Jk = "native", Yk = [
[
"ash",
"灰雾",
@@ -30039,7 +30046,7 @@ var Jk = [
"rose"
],
[
- Yk,
+ Jk,
"玻璃原色",
{
spot1: {
@@ -30057,7 +30064,7 @@ var Jk = [
},
"blue"
]
-], Zk = (e) => e === Yk, Qk = [...Xk.map(([e, t]) => [e, t]), ["custom", "自定义"]], woe = (e) => (Qk.find(([t]) => t === e) || Qk[0])[1], $k = (e) => structuredClone((Xk.find(([t]) => t === e) || Xk[0])[2]), eA = [
+], Xk = (e) => e === Jk, Zk = [...Yk.map(([e, t]) => [e, t]), ["custom", "自定义"]], Eoe = (e) => (Zk.find(([t]) => t === e) || Zk[0])[1], Qk = (e) => structuredClone((Yk.find(([t]) => t === e) || Yk[0])[2]), $k = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -30070,7 +30077,7 @@ var Jk = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], tA = "blue", nA = (e) => eA.some(([t]) => t === e) ? e : tA, Toe = (e) => (Xk.find(([t]) => t === e) || [])[3] || "blue", Eoe = [
+], eA = "blue", tA = (e) => $k.some(([t]) => t === e) ? e : eA, Doe = (e) => (Yk.find(([t]) => t === e) || [])[3] || "blue", Ooe = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -30080,7 +30087,7 @@ var Jk = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], Doe = [
+], koe = [
[
"gray",
"云灰",
@@ -30476,11 +30483,11 @@ var Jk = [
"霁蓝",
"#6686b8"
]
-], rA = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, iA = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Ooe = (e, t) => `rgba(${[
+], nA = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, rA = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Aoe = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, koe = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, joe = {
strength: [
0,
100,
@@ -30506,7 +30513,7 @@ var Jk = [
100,
50
]
-}, aA = {
+}, iA = {
on: !0,
preset: "ash",
strength: 100,
@@ -30514,44 +30521,44 @@ var Jk = [
speed: 100,
soften: 50,
size: 50,
- ...$k("ash")
+ ...Qk("ash")
};
-function oA(e) {
- let t = e && typeof e == "object" ? e : {}, n = Qk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = $k(r === "custom" ? "ash" : r), a = {
+function aA(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Zk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Qk(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(koe)) a[e] = rA(+t[e], n, r, i);
- for (let e of Jk) {
+ for (let [e, [n, r, i]] of Object.entries(joe)) a[e] = nA(+t[e], n, r, i);
+ for (let e of qk) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: iA(r.color, o.color),
- alpha: rA(+r.alpha, 0, 100, o.alpha)
+ color: rA(r.color, o.color),
+ alpha: nA(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Aoe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, sA = /* @__PURE__ */ new WeakMap();
-function joe(e, t) {
+var Moe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, oA = /* @__PURE__ */ new WeakMap();
+function Noe(e, t) {
if (!e) return;
- let n = sA.get(e);
- n || (n = /* @__PURE__ */ new Map(), sA.set(e, n));
- let r = t.on && !Zk(t.preset), i = (t, r) => {
+ let n = oA.get(e);
+ n || (n = /* @__PURE__ */ new Map(), oA.set(e, n));
+ let r = t.on && !Xk(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Jk.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), qk.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Ooe(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Aoe(r.color, r.alpha));
});
}
-function Moe(e, t) {
+function Poe(e, t) {
if (!e) return;
- let n = !t.on || Zk(t.preset);
+ let n = !t.on || Xk(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
//#endregion
//#region src/appearance/settings.ts
-var Noe = "peach.settings.v1", Poe = [
+var Foe = "peach.settings.v1", sA = [
"system",
"light",
"dark"
@@ -30560,7 +30567,7 @@ var Noe = "peach.settings.v1", Poe = [
7,
30,
90
-], Foe = [
+], Ioe = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
@@ -30584,11 +30591,11 @@ var Noe = "peach.settings.v1", Poe = [
theaterMode: !1,
theme: "system",
groupCollapse: !0,
- sidebarOrder: [...Nl],
- homeGlow: aA,
- accent: tA
+ sidebarOrder: [...Fl],
+ homeGlow: iA,
+ accent: eA
}, uA = (e, t, n) => t.includes(e) ? e : n;
-function Ioe(e) {
+function Loe(e) {
let t = e && typeof e == "object" ? e : {}, n = {
...lA,
...t
@@ -30596,43 +30603,43 @@ function Ioe(e) {
n.followInitialDays = cA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Hk[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Lk(+n.batchSize, 1, 200, 60), n.defaultSort = uA(n.defaultSort, Bk, "seed"), n.hoverDelaySeconds = Lk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Lk(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Lk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Lk(+n.relatedLimit, 0, 60, 20), n.feedLimit = Lk(+n.feedLimit, 1, 100, 12), Object.assign(n, Ma(n)), n.theme = uA(n.theme, Poe, "system"), n.homeGlow = oA(n.homeGlow), n.accent = nA(n.accent), n.sidebarOrder = Ll(n.sidebarOrder), {
+ let a = Vk[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ik(+n.batchSize, 1, 200, 60), n.defaultSort = uA(n.defaultSort, zk, "seed"), n.hoverDelaySeconds = Ik(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ik(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Ik(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ik(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ik(+n.feedLimit, 1, 100, 12), Object.assign(n, Pa(n)), n.theme = uA(n.theme, sA, "system"), n.homeGlow = aA(n.homeGlow), n.accent = tA(n.accent), n.sidebarOrder = zl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Loe(e) {
+function Roe(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Ioe(t);
+ return Loe(t);
}
var dA = null;
function fA() {
if (dA) return dA;
- let { settings: e, migrated: t } = Loe(localStorage);
- return dA = Soe(Noe, e), t && dA.save(), dA;
+ let { settings: e, migrated: t } = Roe(localStorage);
+ return dA = woe(Foe, e), t && dA.save(), dA;
}
function pA(e, t, n = fA()) {
let r = n.value, i = e && e.followInitialDays;
cA.includes(i) && (r.followInitialDays = i, n.save());
- for (let t of Foe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ for (let t of Ioe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let a = e && e.searchHistoryLimit;
- Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = Lk(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== lA.searchHistoryLimit && Roe(n);
+ Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = Ik(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== lA.searchHistoryLimit && zoe(n);
let o = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
o && o.length && o.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = o, n.save());
}
-function Roe(e = fA()) {
- return rn("/api/settings", {
+function zoe(e = fA()) {
+ return on("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
//#endregion
//#region src/appearance/theme.ts
-var zoe = [
+var Boe = [
[
"system",
"跟随系统",
@@ -30648,8 +30655,8 @@ var zoe = [
"深色",
"moon"
]
-], Boe = null, mA = () => Boe ??= matchMedia("(prefers-color-scheme: dark)"), hA = null;
-function Voe() {
+], Voe = null, mA = () => Voe ??= matchMedia("(prefers-color-scheme: dark)"), hA = null;
+function Hoe() {
return hA || (hA = document.createElement("style"), hA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), hA.isConnected || document.head.append(hA), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
@@ -30658,7 +30665,7 @@ function Voe() {
};
}
function gA(e = fA().value.theme) {
- let t = Voe(), n = document.documentElement;
+ let t = Hoe(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
let r = e === "dark" || e === "system" && mA().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
@@ -30666,7 +30673,7 @@ function gA(e = fA().value.theme) {
}), t();
}
var _A = !1;
-function Hoe() {
+function Uoe() {
_A || (_A = !0, mA().addEventListener("change", () => {
fA().value.theme === "system" && gA();
}));
@@ -30697,7 +30704,7 @@ var vA = [[
"masonry",
"瀑布流",
"columns-2"
-]], xA = .75, SA = () => fA().value, CA = (e = SA()) => ja(e.javLayout), Uoe = (e = SA()) => ja(e.homeLayout), wA = (e, t = SA()) => e ? Uoe(t) : CA(t), TA = yA.map(([e]) => e), EA = bA.map(([e]) => e), DA = (e = SA()) => uA(e.photoSize, TA, "small"), OA = (e = SA()) => uA(e.photoLayout, EA, "masonry"), kA = null;
+]], xA = .75, SA = () => fA().value, CA = (e = SA()) => Na(e.javLayout), Woe = (e = SA()) => Na(e.homeLayout), wA = (e, t = SA()) => e ? Woe(t) : CA(t), TA = yA.map(([e]) => e), EA = bA.map(([e]) => e), DA = (e = SA()) => uA(e.photoSize, TA, "small"), OA = (e = SA()) => uA(e.photoLayout, EA, "masonry"), kA = null;
function AA(e, t = SA()) {
let n = {
active: e.active,
@@ -30710,16 +30717,16 @@ function AA(e, t = SA()) {
function jA(e) {
return e.portrait ? 9 / 16 : e.active && e.size === "big" ? xA : 16 / 9;
}
-function Woe(e, t = fA()) {
- t.value.homeLayout = ja(e), t.save();
+function Goe(e, t = fA()) {
+ t.value.homeLayout = Na(e), t.save();
}
function MA(e, t = fA()) {
- t.value.javLayout = ja(e), t.save();
-}
-function Goe(e, t = fA()) {
- t.value.homeLayout = t.value.javLayout = ja(e), t.save();
+ t.value.javLayout = Na(e), t.save();
}
function Koe(e, t = fA()) {
+ t.value.homeLayout = t.value.javLayout = Na(e), t.save();
+}
+function qoe(e, t = fA()) {
t.value.photoSize = uA(e, TA, "small"), t.save();
}
function NA(e, t = fA()) {
@@ -30733,10 +30740,10 @@ var PA = "density", FA = {
}, IA = () => localStorage.getItem(PA) === "dense" ? "dense" : "big";
function LA(e, t) {
let [n, r] = yA;
- if (e.querySelector("[data-icon-swap]")) Ts(e, t === r[0] ? "b" : "a");
+ if (e.querySelector("[data-icon-swap]")) Ds(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
- e.innerHTML = ws(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
+ e.innerHTML = Es(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
RA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
@@ -30750,18 +30757,18 @@ function BA(e = IA()) {
let n = zA();
n && (RA(n, "aria-pressed", String(e === "dense")), RA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), LA(n, e === "big" ? "big" : "small"));
}
-function qoe() {
+function Joe() {
let e = IA() === "big" ? "dense" : "big";
localStorage.setItem(PA, e), BA(e);
}
-function Joe(e) {
+function Yoe(e) {
let t = zA();
t && (RA(t, "aria-pressed", String(e === "small")), RA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), LA(t, e));
}
//#endregion
//#region src/appearance/glow.ts
function VA(e = fA()) {
- joe(document.querySelector(".glowlayer"), e.value.homeGlow);
+ Noe(document.querySelector(".glowlayer"), e.value.homeGlow);
}
var HA = 0;
function UA(e = fA()) {
@@ -30770,7 +30777,7 @@ function UA(e = fA()) {
});
}
function WA(e = fA()) {
- Moe(document.documentElement, e.value.homeGlow);
+ Poe(document.documentElement, e.value.homeGlow);
}
function GA(e = fA()) {
document.documentElement.dataset.accent = e.value.accent;
@@ -30778,50 +30785,50 @@ function GA(e = fA()) {
var KA = (e, t, n) => ({
key: e,
label: t,
- native: Zk(e),
- fill: Zk(e) ? "" : Aoe(n)
+ native: Xk(e),
+ fill: Xk(e) ? "" : Moe(n)
});
-function Yoe(e) {
- let t = Xk.map(([e, t, n]) => KA(e, t, Jk.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(KA("custom", "自定义", Jk.map((t) => e[t].color))), t;
+function Xoe(e) {
+ let t = Yk.map(([e, t, n]) => KA(e, t, qk.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(KA("custom", "自定义", qk.map((t) => e[t].color))), t;
}
-var qA = eA;
-function Xoe(e, t = fA()) {
+var qA = $k;
+function Zoe(e, t = fA()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, $k(e)), t.value.accent = Toe(e), t.save(), UA(t), WA(t), GA(t);
+ n.preset = e, Object.assign(n, Qk(e)), t.value.accent = Doe(e), t.save(), UA(t), WA(t), GA(t);
}
-function Zoe(e, t = fA()) {
- t.value.accent = nA(e), t.save(), GA(t);
+function Qoe(e, t = fA()) {
+ t.value.accent = tA(e), t.save(), GA(t);
}
-function Qoe(e = fA()) {
+function $oe(e = fA()) {
let t = e.value.homeGlow;
- t.preset = aA.preset, Object.assign(t, $k(t.preset)), e.value.accent = tA, e.save(), UA(e), WA(e), GA(e);
+ t.preset = iA.preset, Object.assign(t, Qk(t.preset)), e.value.accent = eA, e.save(), UA(e), WA(e), GA(e);
}
function JA(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Zk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Xk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function $oe(e, t = fA()) {
+function ese(e, t = fA()) {
return JA(e, t.value.homeGlow), t.subscribe(() => JA(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
function YA({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Yoe(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Xoe(r).map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Xoe(t.key, e),
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ onClick: () => Zoe(t.key, e),
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
"data-glow-native": t.native ? "" : void 0,
@@ -30833,58 +30840,58 @@ function YA({ store: e, label: t, hidden: n }) {
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
var XA = null;
-function ese(e) {
+function tse(e) {
XA = e;
}
-function tse() {
- return XA ? /* @__PURE__ */ (0, I.jsx)(nse, { host: XA }) : null;
+function nse() {
+ return XA ? /* @__PURE__ */ (0, F.jsx)(ZA, { host: XA }) : null;
}
-function nse({ host: e }) {
+function ZA({ host: e }) {
let { store: t } = e;
- (0, F.useSyncExternalStore)(t.subscribe, t.version);
+ (0, P.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)("header", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)("header", {
"data-glow-head": "",
"data-glow-presets": "",
hidden: !n.on,
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Qoe(t),
+ onClick: () => $oe(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(YA, {
+ /* @__PURE__ */ (0, F.jsx)(YA, {
store: t,
label: "光晕",
hidden: !n.on
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-glow-head": "",
"data-glow-sub": "",
- children: /* @__PURE__ */ (0, I.jsx)("span", { children: "强调色" })
+ children: /* @__PURE__ */ (0, F.jsx)("span", { children: "强调色" })
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: qA.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: qA.map(([e, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Zoe(e, t),
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ onClick: () => Qoe(e, t),
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
"data-accent-ball": e
})
}, e))
}),
- /* @__PURE__ */ (0, I.jsx)("footer", { children: /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("footer", { children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
className: "geist-button primary",
"data-glow-detail": "",
@@ -30895,32 +30902,32 @@ function nse({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var ZA = null;
-function rse(e) {
- ZA = e;
+var QA = null;
+function $A(e) {
+ QA = e;
}
-function QA() {
- if (!ZA) throw Error("播放器还没有接上宿主(configurePlayer)");
- return ZA;
+function ej() {
+ if (!QA) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return QA;
}
//#endregion
//#region src/player/menu.ts
-var $A = null;
-function ej(e) {
- $A = e;
+var tj = null;
+function nj(e) {
+ tj = e;
}
-function tj() {
+function rj() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var nj = null, rj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function ij() {
+var ij = null, aj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function oj() {
let e = document.getElementById("playerMenu");
- e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Vo(e, () => {
+ e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && Uo(e, () => {
e.innerHTML = "";
- }), nj &&= (nj(), null);
+ }), ij &&= (ij(), null);
}
-async function aj(e) {
+async function rse(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -30934,7 +30941,7 @@ async function aj(e) {
}
}
function ise(e) {
- let t = !!$A?.inMiniplayer(e), n = e.peachItem, r = $A?.kind(e) ?? "item", i = (t) => {
+ let t = !!tj?.inMiniplayer(e), n = e.peachItem, r = tj?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -30950,7 +30957,7 @@ function ise(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- aj(i(e)).then((e) => QA().toast(e ? t : "复制失败,请手动复制地址栏", {
+ rse(i(e)).then((e) => ej().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -30962,11 +30969,11 @@ function ise(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => $A?.expand()
+ run: () => tj?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => $A?.toMiniplayer()
+ run: () => tj?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -30990,28 +30997,28 @@ function ise(e) {
}), o;
}
function ase(e, t, n) {
- let r = tj();
- ij();
- let i = QA().stage();
+ let r = rj();
+ oj();
+ let i = ej().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
let a = ise(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${rj(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? rj(z("check"), "data-player-menu-check") : ""}</button>`;
- }).join(""), Bo(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${aj(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? aj(R("check"), "data-player-menu-check") : ""}</button>`;
+ }).join(""), Ho(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- ij(), n?.run();
+ oj(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || ij();
+ r.contains(e.target) || oj();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), ij();
+ e.preventDefault(), e.stopPropagation(), oj();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -31019,36 +31026,36 @@ function ase(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Uo(t, e.el()) && ij();
+ Go(t, e.el()) && oj();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), nj = () => {
+ }, 0), ij = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
function ose(e) {
e.el().addEventListener("contextmenu", (t) => {
t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ase(e, t.clientX, t.clientY));
- }), e.on("dispose", ij);
+ }), e.on("dispose", oj);
}
//#endregion
//#region src/player/registry.ts
-var oj = null, sj = () => oj;
-function cj(e) {
- oj = e;
-}
+var sj = null, cj = () => sj;
function lj(e) {
+ sj = e;
+}
+function uj(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function uj(e) {
+function dj(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
@@ -31058,9 +31065,9 @@ function sse(e) {
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var dj = 3e3;
-function fj(e, t) {
- let n = Number(e) || 0, r = En(t) || 0;
+var fj = 3e3;
+function pj(e, t) {
+ let n = Number(e) || 0, r = On(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
function cse(e) {
@@ -31081,7 +31088,7 @@ function cse(e) {
let a = performance.now(), o = sse(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > dj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > fj * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -31090,56 +31097,56 @@ function cse(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > dj;) t.shift();
+ }); t.length > 2 && a - t[0].at > fj;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var pj = 24;
-function mj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > pj && e.splice(0, e.length - pj);
+var mj = 24;
+function hj(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > mj && e.splice(0, e.length - mj);
}
-var hj = "peach-player-panel";
-function gj(e, t, n, r) {
- let i = [...Array(Math.max(0, pj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var gj = "peach-player-panel";
+function _j(e, t, n, r) {
+ let i = [...Array(Math.max(0, mj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
- return `<span data-player-stats-plot="${t}" role="img" aria-label="${B(r)}">${o}</span>`;
+ return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
function lse() {
- return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${z("chart")}</button>
+ return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function _j(e, t = "") {
+function vj(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function vj(e, t = "") {
- let n = _j(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function yj(e, t = "") {
+ let n = vj(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function yj(e, t, n = "", r = null) {
+function bj(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : vj(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : yj(t, n);
}
-function bj(e) {
+function xj(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
function use(e, t) {
- return e > 0 ? bj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : bj(0);
+ return e > 0 ? xj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : xj(0);
}
//#endregion
//#region src/player/subtitle-style.ts
-var xj = {
+var Sj = {
font: {
label: "字体",
values: [
@@ -31242,7 +31249,7 @@ var xj = {
["shadow", "阴影"]
]
}
-}, Sj = {
+}, Cj = {
font: "sans",
size: "100",
color: "white",
@@ -31252,7 +31259,7 @@ var xj = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, Cj = "peach.caption-style.v1", dse = {
+}, wj = "peach.caption-style.v1", dse = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -31279,11 +31286,11 @@ var xj = {
function mse() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(Cj) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(wj) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(Sj).map(([t, n]) => [t, xj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(Cj).map(([t, n]) => [t, Sj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function wj(e, t, n, r) {
+function Tj(e, t, n, r) {
let i = mse(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
@@ -31306,15 +31313,15 @@ function wj(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...Sj,
+ ...Cj,
...e.caption_style
};
- for (let e of Object.keys(Sj)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(Cj)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(Cj);
+ e = !!localStorage.getItem(wj);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -31322,19 +31329,19 @@ function wj(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- xj[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ Sj[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(Sj).forEach((e) => a.add(e)), i = { ...Sj }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(Cj).forEach((e) => a.add(e)), i = { ...Cj }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
//#endregion
//#region src/player/memory.ts
-var Tj = /* @__PURE__ */ new Map(), Ej = /* @__PURE__ */ new WeakMap(), hse = class {
+var Ej = /* @__PURE__ */ new Map(), Dj = /* @__PURE__ */ new WeakMap(), hse = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -31362,8 +31369,8 @@ var Tj = /* @__PURE__ */ new Map(), Ej = /* @__PURE__ */ new WeakMap(), hse = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await Tj.get(this.url)?.catch(() => {});
- let e = await rn(this.url, { signal: this.cleanup.signal });
+ await Ej.get(this.url)?.catch(() => {});
+ let e = await on(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
throw this.reading = void 0, this.cleanup.signal.aborted || (this.error = "播放记忆未读取,请重试", this.changed()), e;
@@ -31374,7 +31381,7 @@ var Tj = /* @__PURE__ */ new Map(), Ej = /* @__PURE__ */ new WeakMap(), hse = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (Tj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (Ej.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -31401,8 +31408,8 @@ var Tj = /* @__PURE__ */ new Map(), Ej = /* @__PURE__ */ new WeakMap(), hse = cl
this.changed();
}
});
- return Tj.set(this.url, t), t.finally(() => {
- Tj.get(this.url) === t && Tj.delete(this.url);
+ return Ej.set(this.url, t), t.finally(() => {
+ Ej.get(this.url) === t && Ej.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -31411,12 +31418,12 @@ var Tj = /* @__PURE__ */ new Map(), Ej = /* @__PURE__ */ new WeakMap(), hse = cl
} catch {}
}
};
-function Dj(e) {
- let t = Ej.get(e);
- return t || (t = new hse(e), Ej.set(e, t)), t;
+function Oj(e) {
+ let t = Dj.get(e);
+ return t || (t = new hse(e), Dj.set(e, t)), t;
}
-function Oj(e, t) {
- let n = Dj(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function kj(e, t) {
+ let n = Oj(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -31430,7 +31437,7 @@ function Oj(e, t) {
}
//#endregion
//#region src/player/subtitle-memory.ts
-var kj = class {
+var Aj = class {
player;
video;
changed;
@@ -31441,7 +31448,7 @@ var kj = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = Dj(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = Oj(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -31538,7 +31545,7 @@ var kj = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, Aj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", gse = class {
+}, jj = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", gse = class {
player;
video;
panels;
@@ -31557,7 +31564,7 @@ var kj = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = wj(e.el(), t, this.cleanup.signal, Dj(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = Aj(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = Tj(e.el(), t, this.cleanup.signal, Oj(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = jj(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -31567,7 +31574,7 @@ var kj = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new kj(e, t, () => {
+ }), this.session = new Aj(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -31588,7 +31595,7 @@ var kj = class {
this.request?.abort(), this.session.select(e), this.sync();
}
header(e, t = "") {
- return `<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-subtitle-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>${B(e)}</strong>${t}</div>`;
+ return `<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-subtitle-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>${z(e)}</strong>${t}</div>`;
}
panel(e, t, n = 1) {
this.generation++, this.panels.open();
@@ -31597,9 +31604,9 @@ var kj = class {
}
show(e = 1) {
this.page = "tracks";
- let t = this.tracks(), n = [null, ...t], r = this.panel(this.header("字幕", `<button type="button" class="vjs-peach-caption-options" data-subtitle-options aria-label="字幕选项">${z("settings")}</button>`) + `<div class="vjs-peach-panel-menu">${n.map((e, n) => {
+ let t = this.tracks(), n = [null, ...t], r = this.panel(this.header("字幕", `<button type="button" class="vjs-peach-caption-options" data-subtitle-options aria-label="字幕选项">${R("settings")}</button>`) + `<div class="vjs-peach-panel-menu">${n.map((e, n) => {
let r = e ? e.mode === "showing" : t.every((e) => e.mode !== "showing");
- return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-track="${n}"><span class="vjs-peach-option-check">${r ? z("check") : ""}</span><span class="vjs-peach-option-label">${B(e?.label || e?.language || (e ? "字幕" : "关闭"))}</span></button>`;
+ return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-track="${n}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(e?.label || e?.language || (e ? "字幕" : "关闭"))}</span></button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-file>加载字幕文件</button><button type="button" class="vjs-peach-caption-action" data-subtitle-search>在线搜索字幕</button></div><p class="vjs-peach-subtitle-status" data-subtitle-status role="status" hidden></p>`, () => {
this.page = "", this.panels.back();
}, e);
@@ -31615,9 +31622,9 @@ var kj = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(xj).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(Sj).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
- return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${B(n.label)}</span><b>${B(r)}</b>${z("player-menu-next")}</button>`;
+ return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
n.querySelectorAll("[data-subtitle-style]").forEach((e) => {
e.onclick = () => this.styleOptions(e.dataset.subtitleStyle);
@@ -31627,10 +31634,10 @@ var kj = class {
}
styleOptions(e) {
this.page = "style";
- let t = xj[e];
+ let t = Sj[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
- return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${B(t)}"><span class="vjs-peach-option-check">${r ? z("check") : ""}</span><span class="vjs-peach-option-label">${B(n)}</span></button>`;
+ return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
}).join("")}</div>`, () => this.options(-1)).querySelectorAll("[data-subtitle-value]").forEach((t) => {
t.onclick = () => {
this.styles.set(e, t.dataset.subtitleValue), this.options(-1);
@@ -31639,7 +31646,7 @@ var kj = class {
}
status(e, t = !1, n = !1) {
let r = this.player.el().querySelector(".vjs-peach-panel:not(.vjs-peach-panel-leaving) [data-subtitle-status]");
- r && (r.hidden = !1, r.innerHTML = `${n ? vs("") : ""}<span>${B(e)}</span>`, r.toggleAttribute("data-error", t));
+ r && (r.hidden = !1, r.innerHTML = `${n ? bs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));
}
busy() {
return this.request?.abort(), this.request = new AbortController(), this.request.signal;
@@ -31674,14 +31681,14 @@ var kj = class {
this.request?.abort(), this.page = "search";
let e = this.player.peachItem, t = String(e?.code || e?.title || String(e?.name || "").replace(/\.(mp4|mkv|avi|mov|webm|m4v|ts|wmv)$/i, "")).trim().slice(0, 200);
t !== this.query && (this.query = t, this.offset = 0, this.results = [], this.searched = !1);
- let n = this.panel(this.header("搜索中文字幕") + "<div class=\"vjs-peach-subtitle-search\"><p class=\"vjs-peach-subtitle-status\" data-subtitle-status role=\"status\" hidden></p><div data-subtitle-results></div><a href=\"https://www.subtitlecat.com\" target=\"_blank\" rel=\"noopener noreferrer\">中文字幕由 SubtitleCat 提供,可能包含机翻" + z("external-link", "ui-externalmark") + "</a></div>", () => {
+ let n = this.panel(this.header("搜索中文字幕") + "<div class=\"vjs-peach-subtitle-search\"><p class=\"vjs-peach-subtitle-status\" data-subtitle-status role=\"status\" hidden></p><div data-subtitle-results></div><a href=\"https://www.subtitlecat.com\" target=\"_blank\" rel=\"noopener noreferrer\">中文字幕由 SubtitleCat 提供,可能包含机翻" + R("external-link", "ui-externalmark") + "</a></div>", () => {
this.request?.abort(), this.show(-1);
});
t.length < 3 ? this.status("当前作品没有可用于搜索的番号或片名") : this.searched ? this.searchResults(n) : this.runSearch(n, 0);
}
searchResults(e) {
let t = e.querySelector("[data-subtitle-results]");
- t.innerHTML = this.results.map((e, t) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-result="${t}"><span>${B(e.title)}</span><small>${B([e.language, e.format].filter(Boolean).join(" · "))}</small></button>`).join("") + (this.more ? "<button type=\"button\" class=\"vjs-peach-caption-action\" data-subtitle-more>更多字幕</button>" : ""), t.querySelectorAll("[data-subtitle-result]").forEach((e) => {
+ t.innerHTML = this.results.map((e, t) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-result="${t}"><span>${z(e.title)}</span><small>${z([e.language, e.format].filter(Boolean).join(" · "))}</small></button>`).join("") + (this.more ? "<button type=\"button\" class=\"vjs-peach-caption-action\" data-subtitle-more>更多字幕</button>" : ""), t.querySelectorAll("[data-subtitle-result]").forEach((e) => {
e.onclick = () => {
this.showFiles(this.results[Number(e.dataset.subtitleResult)]);
};
@@ -31692,9 +31699,9 @@ var kj = class {
async runSearch(e, t = this.offset) {
if (e.getAttribute("aria-busy") === "true") return;
let n = this.busy(), r = this.generation, i = e.querySelector("[data-subtitle-more],[data-subtitle-retry]"), a = e.querySelector("[data-subtitle-results]");
- e.setAttribute("aria-busy", "true"), i && Ec(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
+ e.setAttribute("aria-busy", "true"), i && Oc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
try {
- let i = await rn(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });
+ let i = await on(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });
if (n.aborted || r !== this.generation) return;
this.offset = t, this.results.push(...i.results), this.more = i.more, this.searched = !0, this.searchResults(e);
} catch (i) {
@@ -31702,7 +31709,7 @@ var kj = class {
this.runSearch(e, t);
});
} finally {
- e.removeAttribute("aria-busy"), i && Ec(i, !1), a.inert = !1;
+ e.removeAttribute("aria-busy"), i && Oc(i, !1), a.inert = !1;
}
}
async showFiles(e) {
@@ -31712,10 +31719,10 @@ var kj = class {
}), n = this.busy(), r = this.generation;
this.status("正在读取字幕文件", !1, !0);
try {
- let i = await rn(`/api/subtitles/subtitlecat/${e.id}`, { signal: n });
+ let i = await on(`/api/subtitles/subtitlecat/${e.id}`, { signal: n });
if (n.aborted || r !== this.generation) return;
let a = i.files.filter((e) => e.playable);
- t.querySelector("[data-subtitle-files]").innerHTML = a.map((e) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-online="${e.index}"><span>${B(e.name)}</span><small>${B(e.language)}</small></button>`).join(""), this.status(a.length ? "选择要加载的字幕" : "这条结果没有可加载的文本字幕"), t.querySelectorAll("[data-subtitle-online]").forEach((t) => {
+ t.querySelector("[data-subtitle-files]").innerHTML = a.map((e) => `<button type="button" class="vjs-peach-subtitle-result" data-subtitle-online="${e.index}"><span>${z(e.name)}</span><small>${z(e.language)}</small></button>`).join(""), this.status(a.length ? "选择要加载的字幕" : "这条结果没有可加载的文本字幕"), t.querySelectorAll("[data-subtitle-online]").forEach((t) => {
t.onclick = () => {
let n = a.find((e) => e.index === Number(t.dataset.subtitleOnline));
this.loadOnline(e.id, n);
@@ -31757,8 +31764,8 @@ function _se(e, t) {
}
//#endregion
//#region src/player/rotation.ts
-function jj(e, t) {
- let n = 0, r = !1, i = Dj(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function Mj(e, t) {
+ let n = 0, r = !1, i = Oj(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -31820,7 +31827,7 @@ function vse(e, t, n, r) {
}
//#endregion
//#region src/player/controls.ts
-function Mj(e, t, n = "") {
+function Nj(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -31831,27 +31838,27 @@ function Mj(e, t, n = "") {
};
return o(), o;
}
-function Nj(e, t) {
+function Pj(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
function yse(e, t = !0) {
- let n = QA(), r = n.settings();
+ let n = ej(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var Pj = /* @__PURE__ */ new WeakMap();
-function Fj(e) {
+var Fj = /* @__PURE__ */ new WeakMap();
+function Ij(e) {
if (!e) return;
- let t = QA().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Pj.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = ej().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Fj.get(e)?.(t ? "默认视图" : "影院模式");
}
-function Ij(e, t = !0) {
- let n = QA(), r = n.settings();
+function Lj(e, t = !0) {
+ let n = ej(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), Fj(i?.querySelector("[data-player-theater]")), lj(sj());
+ i?.toggleAttribute("data-theater", r.theaterMode), Ij(i?.querySelector("[data-player-theater]")), uj(cj());
}
function bse(e) {
- let t = QA().stage(), n = t?.querySelector("[data-ambient-canvas]");
+ let t = ej().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -31874,9 +31881,9 @@ function bse(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (QA().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (ej().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && QA().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && ej().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -31885,18 +31892,18 @@ function bse(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Lj(e, t, n = 0, r = null) {
+function Rj(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
a.className = "vjs-peach-settings vjs-control", a.dataset.playerQuality = "", a.innerHTML = `<button type="button" class="vjs-peach-settings-toggle" aria-label="播放器设置" aria-expanded="false">
- ${z("settings")}<span data-player-quality-badge hidden></span></button>
+ ${R("settings")}<span data-player-quality-badge hidden></span></button>
<div class="vjs-peach-settings-menu" role="menu" aria-label="播放器设置" aria-hidden="true"></div>`;
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- Mj(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = jj(e, t), d = Oj(e, t), f = Dj(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ Nj(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = Mj(e, t), d = kj(e, t), f = Oj(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -31935,11 +31942,11 @@ function Lj(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(hj, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(gj, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(hj, C);
+ document.addEventListener(gj, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -31955,16 +31962,16 @@ function Lj(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${QA().settings().ambientMode}">
- ${z("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${z("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${z("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${Aj()}</span><span>字幕</span><b>${B(p?.label() || "关闭")}</b>${z("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${z("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${z("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${z("player-quality")}<span>清晰度</span><b>${B(t.label)}</b>${z("player-menu-next")}</button>
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${ej().settings().ambientMode}">
+ ${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${jj()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- yse(!QA().settings().ambientMode), k();
- }, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
+ yse(!ej().settings().ambientMode), k();
+ }, D(r, "[data-player-speed]").onclick = () => ne(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => re(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
}, A = () => {
@@ -31972,12 +31979,12 @@ function Lj(e, t, n = 0, r = null) {
e && (e.hidden = !f.error, e.querySelector("p").textContent = f.error);
}, j = () => {
O = "rotation";
- let e = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>画面旋转</strong></div><div class="vjs-peach-panel-menu">${[
+ let e = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>画面旋转</strong></div><div class="vjs-peach-panel-menu">${[
0,
90,
180,
270
- ].map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-rotation-option="${e}" aria-checked="${e === u.angle()}"><span class="vjs-peach-option-check">${e === u.angle() ? z("player-option-check") : ""}</span><span class="vjs-peach-option-label">${e}°${e === 0 ? "(原始方向)" : ""}</span></button>`).join("")}</div>`, 1);
+ ].map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-rotation-option="${e}" aria-checked="${e === u.angle()}"><span class="vjs-peach-option-check">${e === u.angle() ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${e}°${e === 0 ? "(原始方向)" : ""}</span></button>`).join("")}</div>`, 1);
D(e, "[data-player-menu-back]").onclick = () => k(-1), e.querySelectorAll("[data-player-rotation-option]").forEach((e) => {
e.onclick = () => {
u.set(Number(e.dataset.playerRotationOption)), k(-1);
@@ -31989,14 +31996,14 @@ function Lj(e, t, n = 0, r = null) {
1.5,
2,
3
- ], N = (e) => Number.isInteger(e) ? e.toFixed(1) : String(e), te = (e = 1) => {
+ ], te = (e) => Number.isInteger(e) ? e.toFixed(1) : String(e), ne = (e = 1) => {
O = "speed";
- let t = .25, n = (e) => Math.min(3, Math.max(t, Number(e.toFixed(2)))), r = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>播放速度</strong></div>
+ let t = .25, n = (e) => Math.min(3, Math.max(t, Number(e.toFixed(2)))), r = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>播放速度</strong></div>
<div class="vjs-peach-speed-panel"><div class="vjs-peach-speed-display"><output data-player-speed-display></output></div>
- <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${z("minus")}</button>
+ <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${R("minus")}</button>
<input type="range" class="vjs-peach-speed-range" data-player-speed-range min="${t}" max="3" step="${M}" aria-label="播放速度">
- <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${z("plus")}</button></div>
- <div class="vjs-peach-speed-chips">${ee.map((e) => `<span class="vjs-peach-speed-preset"><button type="button" class="vjs-peach-speed-button" data-player-speed-option="${e}" aria-pressed="false">${N(e)}</button>${e === 1 ? "<span class=\"vjs-peach-speed-preset-label\">正常</span>" : ""}</span>`).join("")}</div></div>`, e), i = r.querySelector("[data-player-speed-display]"), a = r.querySelector("[data-player-speed-range]"), o = n(d.current()), s = () => {
+ <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${R("plus")}</button></div>
+ <div class="vjs-peach-speed-chips">${ee.map((e) => `<span class="vjs-peach-speed-preset"><button type="button" class="vjs-peach-speed-button" data-player-speed-option="${e}" aria-pressed="false">${te(e)}</button>${e === 1 ? "<span class=\"vjs-peach-speed-preset-label\">正常</span>" : ""}</span>`).join("")}</div></div>`, e), i = r.querySelector("[data-player-speed-display]"), a = r.querySelector("[data-player-speed-range]"), o = n(d.current()), s = () => {
i.textContent = `${o.toFixed(2)}x`, a.value = String(o), a.style.setProperty("--peach-speed-percent", `${(o - t) / 2.75 * 100}%`), r.querySelectorAll("[data-player-speed-option]").forEach((e) => e.setAttribute("aria-pressed", String(Number(e.dataset.playerSpeedOption) === o)));
}, c = (e) => {
o = n(e), d.set(o), s();
@@ -32006,9 +32013,9 @@ function Lj(e, t, n = 0, r = null) {
}), r.querySelectorAll("[data-player-speed-option]").forEach((e) => {
e.onclick = () => c(Number(e.dataset.playerSpeedOption));
}), s();
- }, P = (n) => {
+ }, N = (n) => {
let { options: r, active: i } = y(), a = n.contains(document.activeElement) ? document.activeElement.dataset.playerQualityOption : void 0;
- n.innerHTML = r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${B(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? z("player-option-check") : ""}</span><span class="vjs-peach-option-label">${B(e.label)}</span></button>`).join("");
+ n.innerHTML = r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${z(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${z(e.label)}</span></button>`).join("");
let o = [...n.querySelectorAll("[data-player-quality-option]")];
o.find((e) => a !== void 0 && e.dataset.playerQualityOption === a)?.focus(), o.forEach((n) => {
n.onclick = () => {
@@ -32025,18 +32032,18 @@ function Lj(e, t, n = 0, r = null) {
k(-1);
};
});
- }, ne = (e = 1) => {
+ }, re = (e = 1) => {
O = "quality";
- let t = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${z("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu"></div>`, e);
- D(t, "[data-player-menu-back]").onclick = () => k(-1), P(D(t, ".vjs-peach-panel-menu"));
- }, re = () => {
+ let t = E(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu"></div>`, e);
+ D(t, "[data-player-menu-back]").onclick = () => k(-1), N(D(t, ".vjs-peach-panel-menu"));
+ }, ie = () => {
if (!b()) {
y();
return;
}
let e = l.lastElementChild;
if (O === "quality" && e) {
- P(D(e, ".vjs-peach-panel-menu"));
+ N(D(e, ".vjs-peach-panel-menu"));
return;
}
let { active: t } = y(), n = O === "main" ? e?.querySelector("[data-player-quality-view] b") : null;
@@ -32049,25 +32056,25 @@ function Lj(e, t, n = 0, r = null) {
let t = !b();
t && k(), x(t);
};
- let F = (e) => {
+ let P = (e) => {
a.contains(e.target) || S();
};
- document.addEventListener("pointerdown", F), a.addEventListener("keydown", (e) => {
+ document.addEventListener("pointerdown", P), a.addEventListener("keydown", (e) => {
if (e.key === "Escape" && b() && (e.preventDefault(), e.stopPropagation(), S(), s.focus()), ["ArrowDown", "ArrowUp"].includes(e.key) && b() && !(e.target instanceof HTMLInputElement)) {
e.preventDefault();
let t = [...l.querySelectorAll("button:not([disabled]),input,a[href]")].filter((e) => e.offsetParent !== null && !e.closest("[inert]"));
t[(t.indexOf(document.activeElement) + (e.key === "ArrowDown" ? 1 : t.length - 1)) % t.length]?.focus();
}
- }), t.addEventListener("loadedmetadata", re), t.addEventListener("resize", re), t.addEventListener("ratechange", re), m?.on?.([
+ }), t.addEventListener("loadedmetadata", ie), t.addEventListener("resize", ie), t.addEventListener("ratechange", ie), m?.on?.([
"addqualitylevel",
"removequalitylevel",
"change"
- ], re);
- let I = f.subscribe(() => {
- A(), re();
+ ], ie);
+ let F = f.subscribe(() => {
+ A(), ie();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(hj, C), w && clearTimeout(w);
+ F(), t.removeEventListener("loadedmetadata", ie), t.removeEventListener("resize", ie), t.removeEventListener("ratechange", ie), T++, document.removeEventListener("pointerdown", P), document.removeEventListener(gj, C), w && clearTimeout(w);
}), p = new gse(e, t, {
render: E,
open: () => {
@@ -32078,17 +32085,17 @@ function Lj(e, t, n = 0, r = null) {
p?.hide(), k(-1);
}
}), y(), xse(e, a), Sse(e), (e) => {
- h = e?.length ? e : null, re();
+ h = e?.length ? e : null, ie();
};
}
function xse(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = QA().settings().theaterMode, i = document.createElement("div");
- i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${z(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
+ let r = ej().settings().theaterMode, i = document.createElement("div");
+ i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- Pj.set(a, Mj(a, "影院模式", "T")), Fj(a), a.onclick = (e) => {
- e.stopPropagation(), Ij(!QA().settings().theaterMode);
+ Fj.set(a, Nj(a, "影院模式", "T")), Ij(a), a.onclick = (e) => {
+ e.stopPropagation(), Lj(!ej().settings().theaterMode);
};
}
function Sse(e) {
@@ -32096,14 +32103,14 @@ function Sse(e) {
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
n && !n.querySelector(":scope>.vjs-peach-hover") && n.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>");
- let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", z(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {
+ let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", R(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {
if (!e) return null;
let n = document.getElementById(`i-${t}`);
if (!n) return null;
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Mj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = Nj(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -32114,13 +32121,13 @@ function Sse(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = Mj(p, "静音", "M"), g = () => {
+ let h = Nj(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
e.on("volumechange", g), g();
let _ = document.createElement("div");
- _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${z("player-play")}</span>`;
+ _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${R("player-play")}</span>`;
let v = _.querySelector("use"), y = null, b = (e, t) => {
v?.setAttribute("href", `#i-${e}`), _.setAttribute("aria-label", t), _.hidden = !1, _.classList.remove("vjs-peach-bezel-run"), _.offsetWidth, _.classList.add("vjs-peach-bezel-run"), y && clearTimeout(y), y = setTimeout(() => {
_.hidden = !0, _.classList.remove("vjs-peach-bezel-run");
@@ -32140,9 +32147,9 @@ function Sse(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = Mj(x, "显示剩余时间"), T = () => {
- let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = On(Math.max(0, n - t));
- C.textContent = `${S ? `-${r}` : On(t)} / ${On(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${On(n)};点击显示已播放时间` : `已播放 ${On(t)},总时长 ${On(n)};点击显示剩余时间`);
+ let C = x.querySelector(".vjs-peach-time-text"), w = Nj(x, "显示剩余时间"), T = () => {
+ let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = An(Math.max(0, n - t));
+ C.textContent = `${S ? `-${r}` : An(t)} / ${An(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${An(n)};点击显示已播放时间` : `已播放 ${An(t)},总时长 ${An(n)};点击显示剩余时间`);
};
x.onclick = (e) => {
e.stopPropagation(), S = !S, T();
@@ -32152,10 +32159,10 @@ function Sse(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- Mj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), vse(e, E, Mj(E, "画中画"), (e) => QA().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = Mj(D, "全屏", "F"), A = () => {
+ Nj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), vse(e, E, Nj(E, "画中画"), (e) => ej().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = Nj(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), lj(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), uj(e);
};
e.on([
"fullscreenchange",
@@ -32175,26 +32182,26 @@ function Sse(e) {
e.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>"), M.append(e);
});
let ee = document.createElement("div");
- ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${z("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = Mj(N, "展开控件"), P = (t) => {
- e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
+ ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
+ let te = ee.querySelector("button"), ne = Nj(te, "展开控件"), N = (t) => {
+ e.el().classList.toggle("vjs-peach-right-expanded", t), te.setAttribute("aria-expanded", String(t)), ne(t ? "收起控件" : "展开控件");
};
- N.onclick = (t) => {
- t.stopPropagation(), P(!e.el().classList.contains("vjs-peach-right-expanded"));
+ te.onclick = (t) => {
+ t.stopPropagation(), N(!e.el().classList.contains("vjs-peach-right-expanded"));
};
- let ne = () => {
+ let re = () => {
let t = e.el(), n = t.clientWidth < 528;
- t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || P(!1);
- }, re = new ResizeObserver(ne);
- re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
+ t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || N(!1);
+ }, ie = new ResizeObserver(re);
+ ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), N(!1), re();
}
-function Rj(e, t, n = {}) {
+function zj(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
a.className = "vjs-peach-seek-preview", a.dataset.playerSeekPreview = "", a.hidden = !0, a.innerHTML = `${i ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, r.append(a);
let o = a.querySelector(".vjs-peach-seek-frame"), s = a.querySelector("img"), c = a.querySelector("span"), l = null, u = "", d = !1;
- o && t?.id && rn(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {
+ o && t?.id && on(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {
e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (l = e);
}).catch(() => {});
let f = (e, n, r, i) => {
@@ -32207,10 +32214,10 @@ function Rj(e, t, n = {}) {
return p !== u && (u = p, i.src = p), r.hidden = !1, t.width && t.height && (r.style.aspectRatio = `${t.width} / ${t.height}`), i.style.objectFit = "fill", i.style.width = `${a * 100}%`, i.style.height = `${f * 100}%`, i.style.left = `${-(l % a) * 100}%`, i.style.top = `${-Math.floor(l / a) * 100}%`, !0;
}, p = -1, m = (n) => {
if (n.pointerType === "touch") return;
- let i = En(e.duration()) || En(t?.duration);
+ let i = On(e.duration()) || On(t?.duration);
if (!i) return;
let m = r.getBoundingClientRect(), h = Math.min(1, Math.max(0, (n.clientX - m.left) / m.width)), g = o ? Math.min(240, Math.max(160, m.width * .28)) : 76, _ = Math.min(m.width - g / 2, Math.max(g / 2, n.clientX - m.left));
- if (a.style.left = `${_}px`, a.hidden = !1, c.textContent = On(i * h), !o || !s || !t || l && f(i * h, l, o, s) || l?.fallback && f(i * h, l.fallback, o, s)) return;
+ if (a.style.left = `${_}px`, a.hidden = !1, c.textContent = An(i * h), !o || !s || !t || l && f(i * h, l, o, s) || l?.fallback && f(i * h, l.fallback, o, s)) return;
let v = Math.min(8, Math.floor(h * 9));
(v !== p || u !== `poster:${v}`) && (p = v, o.hidden = !1, s.removeAttribute("style"), d = !1, u = `poster:${v}`, s.src = `/poster?id=${encodeURIComponent(t.id)}&c=${v}`);
}, h = () => {
@@ -32227,10 +32234,10 @@ function Rj(e, t, n = {}) {
function Cse(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
- let r = () => En(e.duration()) || En(t.duration) || 0, i = (t) => {
+ let r = () => On(e.duration()) || On(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(QA().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(ej().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -32271,12 +32278,12 @@ function Cse(e, t) {
} catch {}
});
}
-function zj(e) {
+function Bj(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function Bj(e, t) {
- rn(`/api/assets/${t}/subtitles`).then((t) => {
+function Vj(e, t) {
+ on(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
id: t.id,
@@ -32292,17 +32299,17 @@ function Bj(e, t) {
}
//#endregion
//#region src/player/progress.ts
-var Vj = "peach.playback-position.v1", Hj = /* @__PURE__ */ new WeakMap();
-function Uj(e) {
- Hj.get(e)?.(), Hj.delete(e);
+var Hj = "peach.playback-position.v1", Uj = /* @__PURE__ */ new WeakMap();
+function Wj(e) {
+ Uj.get(e)?.(), Uj.delete(e);
}
-function Wj(e, t, n = null) {
+function Gj(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
function wse(e) {
try {
- let t = localStorage.getItem(`${Vj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${Hj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
@@ -32312,15 +32319,15 @@ function Tse(e, t) {
let n = wse(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
- return r > 0 && r < 1 ? r * En(t.duration) : 0;
+ return r > 0 && r < 1 ? r * On(t.duration) : 0;
}
function Ese(e, t) {
- Uj(t);
+ Wj(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${Vj}:${e}`, String(r));
+ localStorage.setItem(`${Hj}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -32334,7 +32341,7 @@ function Ese(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Hj.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Uj.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -32347,28 +32354,28 @@ function Ese(e, t) {
}
//#endregion
//#region src/player/telemetry.ts
-var Gj = /* @__PURE__ */ new WeakMap();
-function Kj(e) {
- Gj.get(e)?.(), Gj.delete(e);
+var Kj = /* @__PURE__ */ new WeakMap();
+function qj(e) {
+ Kj.get(e)?.(), Kj.delete(e);
}
-function qj(e, t, n, r) {
+function Jj(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Gj.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Kj.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function Jj(e, t, n = {}) {
+function Yj(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
- let r = En(e.duration) || En(t.duration);
+ let r = On(e.duration) || On(t.duration);
if (!r) return;
let i = Math.min(t.currentTime / r, 1), a = s(n.watched), o = s(n.mark), c = s(n.ratio);
a && (a.style.width = `${(i * 100).toFixed(1)}%`), o && (o.style.left = `${(i * 100).toFixed(1)}%`), c && (c.textContent = `${(i * 100).toFixed(0)}%`);
}, l = (n) => {
- let r = En(e.duration) || En(t.duration);
- (i || n || a) && (rn("/api/activity", {
+ let r = On(e.duration) || On(t.duration);
+ (i || n || a) && (on("/api/activity", {
method: "POST",
keepalive: !0,
body: JSON.stringify({
@@ -32400,14 +32407,14 @@ function Jj(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, qj(t, l, u, () => {
+ }, Jj(t, l, u, () => {
a++;
}), c();
}
function Dse(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
- let i = En(e.duration) || En(t.duration);
- (r || n) && (rn("/api/follow/activity", {
+ let i = On(e.duration) || On(t.duration);
+ (r || n) && (on("/api/follow/activity", {
method: "POST",
keepalive: !0,
body: JSON.stringify({
@@ -32422,7 +32429,7 @@ function Dse(e, t) {
a && clearInterval(a), a = null;
};
t.onplay = () => {
- i || (i = !0, rn("/api/follow/play", {
+ i || (i = !0, on("/api/follow/play", {
method: "POST",
body: JSON.stringify({ item: e.id })
}).then((t) => {
@@ -32435,24 +32442,24 @@ function Dse(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, qj(t, o, s, () => {});
+ }, Jj(t, o, s, () => {});
}
//#endregion
//#region src/player/dispose.ts
-function Yj(e) {
+function Xj(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (Uj(t), Kj(t));
+ t && (Wj(t), qj(t));
try {
e.dispose();
} catch {}
}
//#endregion
//#region src/core/random-id.ts
-function Xj() {
+function Zj() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -32461,10 +32468,10 @@ function Xj() {
}
//#endregion
//#region src/player/stream.ts
-function Zj() {
- return Xj();
+function Qj() {
+ return Zj();
}
-function Qj(e, t) {
+function $j(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
@@ -32476,19 +32483,19 @@ function Ose(e) {
type: "video/mp4"
} : null;
}
-async function $j(e, t) {
+async function eM(e, t) {
let n = Ose(e);
if (n) return n;
try {
- let n = await rn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
+ let n = await on(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
if (n?.src) return {
src: n.src,
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return Qj(e, t);
+ return $j(e, t);
}
-function eM(e) {
+function tM(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -32497,23 +32504,23 @@ function eM(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var tM = "";
-function nM() {
- return tM;
-}
+var nM = "";
function rM() {
- return tM ||= Zj(), tM;
+ return nM;
}
-var kse = (e) => Qj(e, rM()), Ase = (e) => $j(e, rM());
function iM() {
- let e = tM;
- e && (tM = "", eM(e));
+ return nM ||= Qj(), nM;
+}
+var kse = (e) => $j(e, iM()), Ase = (e) => eM(e, iM());
+function aM() {
+ let e = nM;
+ e && (nM = "", tM(e));
}
//#endregion
//#region src/player/v10-player.ts
-var aM = (e) => typeof e == "string" ? [e] : e, jse = (e, t) => {
+var oM = (e) => typeof e == "string" ? [e] : e, jse = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Xj()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${Zj()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -32608,9 +32615,9 @@ var aM = (e) => typeof e == "string" ? [e] : e, jse = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => aM(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => aM(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => aM(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => oM(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => oM(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => oM(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -32683,14 +32690,14 @@ var aM = (e) => typeof e == "string" ? [e] : e, jse = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], oM = null;
-function sM() {
- return oM ??= Promise.all(Nse.map((e) => import(
+], sM = null;
+function cM() {
+ return sM ??= Promise.all(Nse.map((e) => import(
/* @vite-ignore */
`${Mse}${e}`
))).then(() => jse).catch((e) => {
- throw oM = null, e;
- }), oM;
+ throw sM = null, e;
+ }), sM;
}
//#endregion
//#region src/player/immerse-player.ts
@@ -32708,41 +32715,41 @@ var Pse = {
};
function Fse(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([$j(n, r), sM().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([eM(n, r), cM().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = Qj(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = $j(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
let t = s(e, Pse);
- i = t, t.peachItem = n, t.peachPlaybackKey = Wj("item", n);
+ i = t, t.peachItem = n, t.peachPlaybackKey = Gj("item", n);
let r = new AbortController();
- wj(t.el(), e, r.signal, Dj(t)), jj(t, e), Oj(t, e), t.on("dispose", () => r.abort()), new kj(t, e), Bj(t, n.id), l && t.one("error", () => {
+ Tj(t.el(), e, r.signal, Oj(t)), Mj(t, e), kj(t, e), t.on("dispose", () => r.abort()), new Aj(t, e), Vj(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- Jj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ Yj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, eM(r), i ? Yj(i) : (e.pause(), Kj(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, tM(r), i ? Xj(i) : (e.pause(), qj(e), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var cM = /* @__PURE__ */ new WeakMap(), lM = null, uM = null, dM = null;
-function fM() {
- lM &&= (clearInterval(lM), null), uM &&= (clearInterval(uM), null), dM &&= (clearTimeout(dM), null);
+var lM = /* @__PURE__ */ new WeakMap(), uM = null, dM = null, fM = null;
+function pM() {
+ uM &&= (clearInterval(uM), null), dM &&= (clearInterval(dM), null), fM &&= (clearTimeout(fM), null);
}
async function Ise(e, t, n, r = {}) {
- let i = sj();
+ let i = cj();
if (i && !i.isDisposed()) return i;
- let a = QA(), o = r.resume ?? null;
+ let a = ej(), o = r.resume ?? null;
o?.autoplay && (n = !0);
let s = () => r.source ? Promise.resolve(r.source) : Ase(e), c;
try {
- c = await sM();
+ c = await cM();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
- o && o.time > 0 && (t.currentTime = Math.min(o.time, En(t.duration) || o.time));
+ o && o.time > 0 && (t.currentTime = Math.min(o.time, On(t.duration) || o.time));
}, { once: !0 }), t.src = e.src, n && t.play().catch(() => {});
}).catch(() => {}), null;
}
@@ -32751,7 +32758,7 @@ async function Ise(e, t, n, r = {}) {
preload: "metadata",
language: "zh-CN",
responsive: !0,
- poster: r.poster || so(e, a.settings().javImage),
+ poster: r.poster || lo(e, a.settings().javImage),
controlBar: {
pictureInPictureToggle: !0,
currentTimeDisplay: !1,
@@ -32764,15 +32771,15 @@ async function Ise(e, t, n, r = {}) {
} }
}
});
- cj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Wj("item", e), ose(l), l.on("loadedmetadata", () => {
+ lj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Gj("item", e), ose(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
- let u = En(e.duration), d = {
+ let u = On(e.duration), d = {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = cse(fj(f, e.duration)), m = 0, h = !1, g = () => sj() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = cse(pj(f, e.duration)), m = 0, h = !1, g = () => cj() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -32783,23 +32790,23 @@ async function Ise(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- cM.set(l, y), y.updateStats = () => {
+ lM.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = nM(), h = s ? _j(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = rM(), h = s ? vj(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = yj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = bj(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = uj(t);
- mj(d.speed, x), mj(d.activity, C), mj(d.buffer, w);
+ let w = dj(t);
+ hj(d.speed, x), hj(d.activity, C), hj(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
- `${_ ? kn(_) : "—"} · ${h.length} 请求`,
- `最近一秒网络活动 ${C ? kn(C) : "0 B"}`
+ `${_ ? jn(_) : "—"} · ${h.length} 请求`,
+ `最近一秒网络活动 ${C ? jn(C) : "0 B"}`
] : [
"已下载",
- O ? `${kn(S)}${f > 0 ? ` / ${kn(f)}` : ""}` : `${S.toFixed(0)} 秒`,
- O ? `最近一秒下载 ${C ? kn(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`
+ O ? `${jn(S)}${f > 0 ? ` / ${jn(f)}` : ""}` : `${S.toFixed(0)} 秒`,
+ O ? `最近一秒下载 ${C ? jn(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`
];
n.innerHTML = `<dl>${[
["视频 ID / 会话", c && !r.source ? `${e.id} / ${c.slice(0, 8)}` : `${e.id}`],
@@ -32809,21 +32816,21 @@ async function Ise(e, t, n, r = {}) {
[
"连接速度",
D,
- gj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ _j(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- gj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ _j(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- gj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ _j(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
- ["播放时间", `${On(t.currentTime)} / ${On(u || l.duration())}`],
+ ["播放时间", `${An(t.currentTime)} / ${An(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
- ].map(([e, t, n]) => `<dt>${B(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${B(t)}</span></dd>`).join("")}</dl>`;
+ ].map(([e, t, n]) => `<dt>${z(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${z(t)}</span></dd>`).join("")}</dl>`;
}, l.on([
"loadstart",
"loadedmetadata",
@@ -32835,15 +32842,15 @@ async function Ise(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = yj(l, e.id, nM(), r ? null : p), a = r ? bj(i) : use(i, uj(t));
- n.innerHTML = `${z("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;
+ let i = bj(l, e.id, rM(), r ? null : p), a = r ? xj(i) : use(i, dj(t));
+ n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), uM && clearInterval(uM), uM = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), dM && clearInterval(dM), dM = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (dM && clearTimeout(dM), dM = setTimeout(() => {
- e.hidden = !0, uM &&= (clearInterval(uM), null);
+ e && (fM && clearTimeout(fM), fM = setTimeout(() => {
+ e.hidden = !0, dM &&= (clearInterval(dM), null);
}, 1400));
};
return l.on([
@@ -32862,29 +32869,29 @@ async function Ise(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Lj(l, t, e.height, r.qualities ?? null);
+ let n = Rj(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = fj(r, e.duration));
- }).catch(() => {}), Rj(l, e, { thumbnail: !r.source }), Cse(l, e), zj(l), r.source || Bj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = pj(r, e.duration));
+ }).catch(() => {}), zj(l, e, { thumbnail: !r.source }), Cse(l, e), Bj(l), r.source || Vj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
- let e = En(l.el().querySelector("video")?.duration) || En(l.duration());
+ let e = On(l.el().querySelector("video")?.duration) || On(l.duration());
l.currentTime(Math.min(o.time, e || o.time));
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Lse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function pM(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Lse), e.querySelector(":scope > #playerStatsBtn")) return;
+var mM = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function hM(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", mM), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
n.innerHTML = lse(), e.insertBefore(n.content, t);
}
-function mM(e, t) {
- let n = cM.get(e);
+function gM(e, t) {
+ let n = lM.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -32896,26 +32903,26 @@ function mM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), lM &&= (clearInterval(lM), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), uM &&= (clearInterval(uM), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(hj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), lM && clearInterval(lM), lM = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(gj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), uM && clearInterval(uM), uM = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(hj, t), s = () => document.removeEventListener(hj, t);
+ document.addEventListener(gj, t), s = () => document.removeEventListener(gj, t);
}
let c = e.el().querySelector("video"), l = c ? bse(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, fM()));
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, pM()));
};
return e.one("dispose", d), d;
}
-function hM(e, t) {
+function _M(e, t) {
if (t.kind === "immerse") return Fse(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = QA(), c = t.chrome === !1 ? null : e.parentElement;
- c && pM(c, e);
- let l = Wj(n, r, i?.index ?? null), u = {
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = ej(), c = t.chrome === !1 ? null : e.parentElement;
+ c && hM(c, e);
+ let l = Gj(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
time: Tse(l, r),
@@ -32931,45 +32938,45 @@ function hM(e, t) {
checkSourceStatus: !1,
size: i?.size,
poster: r.thumb_url,
- mediaPromise: rn(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)
+ mediaPromise: on(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)
};
else {
- let t = so(r, s.settings().javImage);
+ let t = lo(r, s.settings().javImage);
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (Uj(m), d ? (sj() === d && (cj(null), fM()), Yj(d)) : Kj(m));
+ p(), !(d && a?.(d)) && (Wj(m), d ? (cj() === d && (lj(null), pM()), Xj(d)) : qj(m));
};
return Ise(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, Ese(l, m), n === "follow" ? Dse(r, m) : (m.addEventListener("play", () => {
- rn("/api/play", {
+ on("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), Jj(r, m, {
+ }, { once: !0 }), Yj(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = mM(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = gM(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
//#endregion
//#region src/player/playback.ts
-function gM(e) {
+function vM(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function _M(e, t) {
+function yM(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/player/preview-player.ts
-function vM(e, t, n) {
+function bM(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return sM().then((a) => {
+ return cM().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -32994,82 +33001,82 @@ function vM(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (Lj(o, e), Rj(o, null, { thumbnail: !1 }), zj(o));
+ r || o.isDisposed() || (Rj(o, e), zj(o, null, { thumbnail: !1 }), Bj(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, Yj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, Xj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
//#endregion
//#region src/react/catalog-grid/catalog-view.ts
-var yM = "peach.catalog-view.v1", bM = /* @__PURE__ */ new Set(), xM = "cards";
-function SM() {
+var xM = "peach.catalog-view.v1", SM = /* @__PURE__ */ new Set(), CM = "cards";
+function wM() {
try {
- return localStorage.getItem(yM) === "list" ? "list" : "cards";
+ return localStorage.getItem(xM) === "list" ? "list" : "cards";
} catch {
- return xM;
+ return CM;
}
}
-function CM(e) {
- xM = e === "list" ? "list" : "cards";
+function TM(e) {
+ CM = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(yM, xM);
+ localStorage.setItem(xM, CM);
} catch {}
- bM.forEach((e) => e());
+ SM.forEach((e) => e());
}
-function wM(e) {
- bM.add(e);
+function EM(e) {
+ SM.add(e);
let t = (t) => {
- (t.key === yM || t.key === null) && e();
+ (t.key === xM || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- bM.delete(e), removeEventListener("storage", t);
+ SM.delete(e), removeEventListener("storage", t);
};
}
-var TM = () => (0, F.useSyncExternalStore)(wM, SM, () => "cards");
-function EM(e, t) {
+var DM = () => (0, P.useSyncExternalStore)(EM, wM, () => "cards");
+function OM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var DM = (e, t) => [
+var kM = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], OM = (e, t) => [
+], AM = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function kM(e, t, n, r, i) {
+async function jM(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
- let o = await V(`/api/items?${a}`, i), s = {
+ let o = await B(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await V("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var AM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, jM = (e, t) => {
+var MM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, NM = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function MM(e) {
- let t = EM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function PM(e) {
+ let t = OM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: DM(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => kM(t, e, n, r, i),
+ queryKey: kM(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => jM(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: AM(n)
+ getNextPageParam: MM(n)
};
}
-function NM(e) {
+function FM(e) {
return {
- queryKey: OM(e.entityKey || "", e.revision || 0),
+ queryKey: AM(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -33084,13 +33091,13 @@ function NM(e) {
};
},
initialPageParam: 0,
- getNextPageParam: jM
+ getNextPageParam: NM
};
}
-async function PM(e, t) {
- if (e.mode !== "catalog" || e.wall || SM() === "list") return;
- let n = MM(e);
- await U.fetchInfiniteQuery({
+async function IM(e, t) {
+ if (e.mode !== "catalog" || e.wall || wM() === "list") return;
+ let n = PM(e);
+ await H.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -33098,11 +33105,11 @@ async function PM(e, t) {
})
});
}
-function FM(e) {
+function LM(e) {
let t = JSON.stringify(e);
- return U.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
+ return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function IM(e, t, n) {
+function RM(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -33117,24 +33124,24 @@ function IM(e, t, n) {
return !0;
}) : [...e];
}
-var LM = (e, t) => !!e && !!Pa(e, t);
-function RM(e, t) {
- let n = (e) => LM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => LM(e, t)) || e[e.length - 1];
+var zM = (e, t) => !!e && !!Ia(e, t);
+function BM(e, t) {
+ let n = (e) => zM(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => zM(e, t)) || e[e.length - 1];
}
-function zM(e, { collapse: t, mix: n, javImage: r }) {
+function VM(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = IM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = RM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = RM(e, r);
+ let t = BM(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -33147,16 +33154,16 @@ function zM(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function BM(e, t, n) {
+function Lse(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function VM(e, t) {
+function Rse(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function HM(e, t) {
+function zse(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -33169,17 +33176,17 @@ function HM(e, t) {
strip: null
}), r;
}
-function UM(e, t) {
- WM((t) => t.id === e, t);
+function HM(e, t) {
+ UM((t) => t.id === e, t);
}
-function WM(e, t) {
- U.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
+function UM(e, t) {
+ H.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
...n,
...t
} : n)
- } : n), U.setQueriesData({
+ } : n), H.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (n) => !n || !n.pages.some((t) => t.items.some(e)) ? n : {
@@ -33193,35 +33200,35 @@ function WM(e, t) {
} : n)
});
}
-var GM = (e) => Math.min(Math.max(e || 0, 0), 100), KM = (e) => Math.round(GM(e) / 20), Rse = (e) => {
- let t = KM(e);
+var WM = (e) => Math.min(Math.max(e || 0, 0), 100), GM = (e) => Math.round(WM(e) / 20), Bse = (e) => {
+ let t = GM(e);
return t ? `${t} 星` : "未评分";
-}, qM = (e, t) => t === KM(e) ? 0 : t * 20, JM = (e) => ["item", e], YM = (e) => [
+}, KM = (e, t) => t === GM(e) ? 0 : t * 20, qM = (e) => ["item", e], JM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], zse = (e, t) => [
+], Vse = (e, t) => [
"item-related",
e,
t
-], Bse = (e) => `/api/item?id=${e}`, Vse = (e, t) => `/api/related?id=${e}&limit=${t}`, XM = "/api/playlist", ZM = "/api/feedback", QM = "/api/item-tag", $M = "/api/watch-later", eN = "/api/quality-goal", tN = "/api/preference", nN = class extends Error {};
-async function rN(e, t) {
- let n = await V(Bse(e), t);
- if (n.error) throw new nN(n.error);
+], Hse = (e) => `/api/item?id=${e}`, Use = (e, t) => `/api/related?id=${e}&limit=${t}`, YM = "/api/playlist", XM = "/api/feedback", ZM = "/api/item-tag", QM = "/api/watch-later", $M = "/api/quality-goal", eN = "/api/preference", tN = class extends Error {};
+async function nN(e, t) {
+ let n = await B(Hse(e), t);
+ if (n.error) throw new tN(n.error);
return n;
}
-async function iN(e, t, n) {
+async function rN(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([rN(r, n), t.mixRelated(r)]);
- return U.setQueryData(JM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([nN(r, n), t.mixRelated(r)]);
+ return H.setQueryData(qM(i.id), i), {
kind: "mix",
seedId: r,
- title: `Mix · ${uo(i, t.tagLabel)}`,
+ title: `Mix · ${po(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return aN(await V(`${XM}?id=${e.playlistId}`, n));
- let r = await V(`/api/${e.kind}?id=${e.seedId}`, n);
+ if (e.kind === "playlist") return iN(await B(`${YM}?id=${e.playlistId}`, n));
+ let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
kind: e.kind,
@@ -33231,19 +33238,19 @@ async function iN(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var aN = (e) => ({
+var iN = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), oN = (e) => e.disposal === "vanished";
-function sN(e, t) {
+}), aN = (e) => e.disposal === "vanished";
+function oN(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !oN(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !aN(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Hse(e, t) {
+function Wse(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -33251,20 +33258,20 @@ function Hse(e, t) {
part_label: n
};
}
-function cN(e, t) {
+function sN(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function lN(e, t) {
+async function cN(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = YM(n);
+ let o = JM(n);
try {
- let r = n.fresh ? void 0 : U.getQueryData(o);
- a = !r && n.kind === "mix", i = r || await U.fetchQuery({
+ let r = n.fresh ? void 0 : H.getQueryData(o);
+ a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => iN(n, e.helpers, t),
+ queryFn: () => rN(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -33276,21 +33283,21 @@ async function lN(e, t) {
return;
}
}
- let o = i ? sN(i, e.id) : e.id;
+ let o = i ? oN(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? U.getQueryData(JM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(qM(o)) : void 0;
try {
- s = c || await U.fetchQuery({
- queryKey: JM(o),
- queryFn: () => rN(o, t),
+ s = c || await H.fetchQuery({
+ queryKey: qM(o),
+ queryFn: () => nN(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof nN) {
+ if (e instanceof tN) {
r.redirect({ kind: "gone" });
return;
}
@@ -33301,9 +33308,9 @@ async function lN(e, t) {
id: Number(s.follow_item_id)
});
}
-function Use(e) {
+function Gse(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
- let t = Sn(e.name);
+ let t = wn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
}, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({
id: null,
@@ -33323,112 +33330,112 @@ function Use(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Wse(e, t) {
+function Kse(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
- let r = Sn(t.tagLabel(e.k)), i = n.get(r);
- (!i || Sn(e.k) === r && Sn(i.k) !== r) && n.set(r, e);
+ let r = wn(t.tagLabel(e.k)), i = n.get(r);
+ (!i || wn(e.k) === r && wn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var uN = (e, t) => (e.tags || []).some((e) => Sn(e.k) === Sn(t)), dN = (e, t) => ({
+var lN = (e, t) => (e.tags || []).some((e) => wn(e.k) === wn(t)), uN = (e, t) => ({
...e,
- tags: (e.tags || []).filter((e) => Sn(e.k) !== Sn(t))
-}), fN = (e, t) => uN(e, t.k) ? e : {
+ tags: (e.tags || []).filter((e) => wn(e.k) !== wn(t))
+}), dN = (e, t) => lN(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, pN = "peach.recentTags";
-function mN() {
+}, fN = "peach.recentTags";
+function pN() {
try {
- let e = JSON.parse(localStorage.getItem(pN) || "[]");
+ let e = JSON.parse(localStorage.getItem(fN) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function hN(e) {
+function mN(e) {
try {
- let t = mN().filter((t) => Sn(t) !== Sn(e));
- localStorage.setItem(pN, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = pN().filter((t) => wn(t) !== wn(e));
+ localStorage.setItem(fN, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Gse(e, t, n) {
- let r = Sn(e), i = new Map(t.map((e) => [Sn(e.k), e])), a = t.filter((e) => !r || Sn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Sn(e)) || {
+function qse(e, t, n) {
+ let r = wn(e), i = new Map(t.map((e) => [wn(e.k), e])), a = t.filter((e) => !r || wn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(wn(e)) || {
k: e,
n: 0
- }).filter((e, t, n) => n.findIndex((t) => Sn(t.k) === Sn(e.k)) === t).slice(0, 12), s = a.some((e) => Sn(e.k) === r);
+ }).filter((e, t, n) => n.findIndex((t) => wn(t.k) === wn(e.k)) === t).slice(0, 12), s = a.some((e) => wn(e.k) === r);
return {
recent: o,
results: a,
create: r && !s ? e.trim() : ""
};
}
-var Kse = {
+var Jse = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, qse = {
+}, Yse = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Jse(e) {
+function Xse(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: qse[e.kind],
+ title: Yse[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var gN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Yse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(gN(e.part_label))}</small>` : "";
-function Xse(e, t, n, r) {
+var hN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Zse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(hN(e.part_label))}</small>` : "";
+function Qse(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Zse = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Qse(e, t) {
+var $se = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function ece(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function $se(e) {
+function tce(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function _N(e, t) {
+function gN(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var ece = (e, t, n) => [
+var nce = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function tce(e) {
+function rce(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var nce = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function rce(e, t = Math.random) {
+var ice = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function ace(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function ice(e, t) {
- return rce(((await V(`/api/items?${e}`)).items || []).filter((e) => nce(e, t)));
+async function oce(e, t) {
+ return ace(((await B(`/api/items?${e}`)).items || []).filter((e) => ice(e, t)));
}
-var vN = (e) => U.ensureQueryData({
- queryKey: JM(e),
- queryFn: ({ signal: t }) => rN(e, t)
+var _N = (e) => H.ensureQueryData({
+ queryKey: qM(e),
+ queryFn: ({ signal: t }) => nN(e, t)
});
-function ace(e, t) {
+function sce(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function oce(e) {
+function cce(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -33437,306 +33444,306 @@ function oce(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function sce(e, t, n) {
+function lce(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function cce(e, t) {
+function uce(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var lce = 15e3, yN = {
+var dce = 15e3, vN = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, bN = null, xN = null, SN = yN, CN = /* @__PURE__ */ new Set(), wN = 0, TN = 0, EN = 0, DN = "", ON = [], kN = 0, AN = !1, jN = !1, MN = null, NN = /* @__PURE__ */ new Set(), PN = "", FN = null, IN = 0, LN = null, RN = !1;
-function zN() {
- if (!bN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return bN;
+}, yN = null, bN = null, xN = vN, SN = /* @__PURE__ */ new Set(), CN = 0, wN = 0, TN = 0, EN = "", DN = [], ON = 0, kN = !1, AN = !1, jN = null, MN = /* @__PURE__ */ new Set(), NN = "", PN = null, FN = 0, IN = null, LN = !1;
+function RN() {
+ if (!yN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return yN;
}
-function uce(e) {
- return CN.add(e), () => {
- CN.delete(e);
+function fce(e) {
+ return SN.add(e), () => {
+ SN.delete(e);
};
}
-function dce() {
- for (let e of [...CN]) e();
+function pce() {
+ for (let e of [...SN]) e();
}
-function BN() {
- (0, It.flushSync)(dce);
+function zN() {
+ (0, Lt.flushSync)(pce);
}
-function VN() {
- let e = FN ? vj(FN.id) : 0;
- return e ? `${PN} · ${bj(e)}` : PN;
+function BN() {
+ let e = PN ? yj(PN.id) : 0;
+ return e ? `${NN} · ${xj(e)}` : NN;
}
-function HN(e, t = null) {
- clearInterval(IN), IN = 0, e === null ? (SN = {
- ...SN,
+function VN(e, t = null) {
+ clearInterval(FN), FN = 0, e === null ? (xN = {
+ ...xN,
loading: null
- }, BN()) : (PN = e, FN = t, SN = {
- ...SN,
- loading: VN()
- }, BN(), IN = window.setInterval(() => {
- FN = ON[kN] ?? null, SN = {
- ...SN,
- loading: VN()
- }, BN();
+ }, zN()) : (NN = e, PN = t, xN = {
+ ...xN,
+ loading: BN()
+ }, zN(), FN = window.setInterval(() => {
+ PN = DN[ON] ?? null, xN = {
+ ...xN,
+ loading: BN()
+ }, zN();
}, 500));
}
-function fce(e) {
+function mce(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), xN.track.append(t);
- let r = Zj(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), bN.track.append(t);
+ let r = Qj(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => eM(r),
+ release: () => tM(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return NN.add(a), a;
+ return MN.add(a), a;
}
-function pce(e, t) {
+function hce(e, t) {
return new Promise((n) => {
- e.release = hM(e.video, {
+ e.release = _M(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- SN.open && YN(1);
+ xN.open && JN(1);
}
}), e.gone.then(n);
});
}
-function UN(e) {
- e && !e.disposed && (e.disposed = !0, NN.delete(e), e.leave(), e.release(), e.el.remove(), MN === e && (MN = null));
+function HN(e) {
+ e && !e.disposed && (e.disposed = !0, MN.delete(e), e.leave(), e.release(), e.el.remove(), jN === e && (jN = null));
}
-var WN = [
+var UN = [
"loadeddata",
"canplay",
"error"
];
-function mce(e) {
+function gce(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), WN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), UN.forEach((e) => t.removeEventListener(e, i)), n());
};
- WN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, lce);
+ UN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, dce);
e.gone.then(i);
});
}
-function GN(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = sce(e.videoWidth, e.videoHeight, n);
+function WN(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lce(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var KN = () => xN?.track.querySelectorAll("video").forEach(GN);
-function hce(e) {
- delete e.dataset.fit, e.readyState >= 1 ? GN(e) : e.addEventListener("loadedmetadata", () => GN(e), { once: !0 });
+var GN = () => bN?.track.querySelectorAll("video").forEach(WN);
+function _ce(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? WN(e) : e.addEventListener("loadedmetadata", () => WN(e), { once: !0 });
}
-function gce(e) {
- SN = {
- ...SN,
+function vce(e) {
+ xN = {
+ ...xN,
wide: e
- }, BN(), KN();
+ }, zN(), GN();
}
-var qN = () => {
- let e = DN;
- return U.fetchQuery({
- queryKey: ece(e, TN, EN),
- queryFn: () => ice(e, zN().sourceOffline),
+var KN = () => {
+ let e = EN;
+ return H.fetchQuery({
+ queryKey: nce(e, wN, TN),
+ queryFn: () => oce(e, RN().sourceOffline),
staleTime: Infinity
});
};
-function _ce(e, t) {
- let n = () => En(e.duration) || En(t.duration);
+function yce(e, t) {
+ let n = () => On(e.duration) || On(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && xN && (xN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), LN = {
+ t && bN && (bN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), IN = {
video: e,
duration: n
};
}
-async function JN(e = 0) {
- let t = ON[kN];
- if (!t || AN) return;
- let n = wN;
- zN().route(t.id), AN = !0, HN(e ? "切换中" : "加载中", t);
+async function qN(e = 0) {
+ let t = DN[ON];
+ if (!t || kN) return;
+ let n = CN;
+ RN().route(t.id), kN = !0, VN(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await vN(t.id).catch((e) => {
- if (!(e instanceof nN)) throw e;
- }), n !== wN) return;
- let i = MN, a = !!(e && i);
- a || UN(i);
- let o = fce(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, hce(o.video), await pce(o, t), await mce(o), o.disposed || (gce(cce(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await _N(t.id).catch((e) => {
+ if (!(e instanceof tN)) throw e;
+ }), n !== CN) return;
+ let i = jN, a = !!(e && i);
+ a || HN(i);
+ let o = mce(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, _ce(o.video), await hce(o, t), await gce(o), o.disposed || (vce(uce(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), UN(i), o.el.style.transform = ""), o.disposed)) return;
- MN = o, r = null, o.video.play()?.catch(() => {}), SN = {
- ...SN,
+ })), await new Promise((e) => setTimeout(e, 210)), HN(i), o.el.style.transform = ""), o.disposed)) return;
+ jN = o, r = null, o.video.play()?.catch(() => {}), xN = {
+ ...xN,
idle: !1,
shown: {
item: t,
- index: kN,
- length: ON.length
+ index: ON,
+ length: DN.length
}
- }, _ce(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), HN(null);
+ }, yce(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), VN(null);
} catch {
- UN(r), n === wN && HN(null);
+ HN(r), n === CN && VN(null);
} finally {
- n === wN && (AN = !1);
+ n === CN && (kN = !1);
}
}
-async function YN(e) {
- if (AN || !SN.open) return;
- let t = wN;
- if (kN += e, HN("切换中", ON[kN] ?? null), kN >= ON.length - 3 && !jN) {
- jN = !0;
+async function JN(e) {
+ if (kN || !xN.open) return;
+ let t = CN;
+ if (ON += e, VN("切换中", DN[ON] ?? null), ON >= DN.length - 3 && !AN) {
+ AN = !0;
try {
- EN += 1;
- let e = await qN();
- t === wN && (ON = ace(ON, e));
+ TN += 1;
+ let e = await KN();
+ t === CN && (DN = sce(DN, e));
} catch {} finally {
- jN = !1;
+ AN = !1;
}
}
- t === wN && (kN >= ON.length && (kN = 0), kN < 0 && (kN = ON.length - 1), await JN(e));
+ t === CN && (ON >= DN.length && (ON = 0), ON < 0 && (ON = DN.length - 1), await qN(e));
}
-async function vce(e) {
- let t = ++wN;
- XN(), TN += 1, EN = 0, DN = tce(zN().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), SN = {
- ...SN,
+async function bce(e) {
+ let t = ++CN;
+ YN(), wN += 1, TN = 0, EN = rce(RN().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), xN = {
+ ...xN,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), HN("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), VN("加载内容");
try {
- let n = await qN();
+ let n = await KN();
if (e && !n.some((t) => t.id === e)) {
- let t = await vN(e).catch((e) => {
- if (e instanceof nN) return null;
+ let t = await _N(e).catch((e) => {
+ if (e instanceof tN) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== wN) return;
- if (ON = n, !ON.length) {
- ZN(), zN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== CN) return;
+ if (DN = n, !DN.length) {
+ XN(), RN().warn("当前筛选下没有可直接播放的内容");
return;
}
- kN = Math.max(0, ON.findIndex((t) => t.id === e)), await JN();
+ ON = Math.max(0, DN.findIndex((t) => t.id === e)), await qN();
} catch {
- if (t !== wN) return;
- HN(null), ZN();
+ if (t !== CN) return;
+ VN(null), XN();
}
}
-function XN() {
- clearInterval(IN), IN = 0, rP(), tP = null, LN = null, RN = !1, [...NN].forEach(UN), AN = !1;
+function YN() {
+ clearInterval(FN), FN = 0, nP(), eP = null, IN = null, LN = !1, [...MN].forEach(HN), kN = !1;
}
-function ZN() {
- SN.open && (wN++, XN(), SN = yN, document.body.removeAttribute("data-immerse-open"), BN(), zN().closed());
+function XN() {
+ xN.open && (CN++, YN(), xN = vN, document.body.removeAttribute("data-immerse-open"), zN(), RN().closed());
}
-var QN = 0, $N = null, eP = 0, tP = null, nP = 0;
-function rP() {
- clearTimeout(QN), QN = 0, $N = null;
+var ZN = 0, QN = null, $N = 0, eP = null, tP = 0;
+function nP() {
+ clearTimeout(ZN), ZN = 0, QN = null;
}
-function yce(e) {
- let t = MN?.video;
+function xce(e) {
+ let t = jN?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- $N && $N.side === n && r - $N.at <= 280 ? (rP(), _M(t, zN().seekSeconds() * n)) : (QN && (clearTimeout(QN), QN = 0, gM(t)), $N = {
+ QN && QN.side === n && r - QN.at <= 280 ? (nP(), yM(t, RN().seekSeconds() * n)) : (ZN && (clearTimeout(ZN), ZN = 0, vM(t)), QN = {
side: n,
at: r
- }, QN = window.setTimeout(() => {
- QN = 0, $N = null, SN.open && gM(MN?.video);
+ }, ZN = window.setTimeout(() => {
+ ZN = 0, QN = null, xN.open && vM(jN?.video);
}, 280));
}
-function bce() {
- Date.now() < eP || gM(MN?.video);
+function Sce() {
+ Date.now() < $N || vM(jN?.video);
}
-var iP = (e) => xN?.bar.toggleAttribute("data-scrubbing", e);
-function aP(e) {
- xN && (xN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var rP = (e) => bN?.bar.toggleAttribute("data-scrubbing", e);
+function iP(e) {
+ bN && (bN.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function oP(e) {
+function aP(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- tP = null;
+ eP = null;
return;
}
- let n = MN?.video;
- tP = {
+ let n = jN?.video;
+ eP = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function sP(e) {
- if (!tP || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - tP.x, n = e.touches[0].clientY - tP.y;
- if (!tP.axis) {
+function oP(e) {
+ if (!eP || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - eP.x, n = e.touches[0].clientY - eP.y;
+ if (!eP.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- tP.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", tP.axis === "x" && iP(!0);
+ eP.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", eP.axis === "x" && rP(!0);
}
- if (tP.axis !== "x") return;
- let r = MN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), tP.to = Math.min(i, Math.max(0, tP.from + t / window.innerWidth * i)), aP(tP.to / i));
+ if (eP.axis !== "x") return;
+ let r = jN?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), eP.to = Math.min(i, Math.max(0, eP.from + t / window.innerWidth * i)), iP(eP.to / i));
}
-function cP(e) {
- if (!tP) return;
- let t = tP;
- if (tP = null, eP = Date.now() + 700, iP(!1), t.axis === "x") {
- let e = MN?.video;
+function sP(e) {
+ if (!eP) return;
+ let t = eP;
+ if (eP = null, $N = Date.now() + 700, rP(!1), t.axis === "x") {
+ let e = jN?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (rP(), YN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), yce(n.clientX));
+ Math.abs(i) > 60 ? (nP(), JN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xce(n.clientX));
}
-function lP() {
- tP = null, iP(!1);
+function cP() {
+ eP = null, rP(!1);
}
-function uP(e) {
+function lP(e) {
let t = Date.now();
- t - nP < 260 || (nP = t, YN(e.deltaY > 0 ? 1 : -1));
+ t - tP < 260 || (tP = t, JN(e.deltaY > 0 ? 1 : -1));
}
-function dP(e) {
- let t = xN.bar.getBoundingClientRect();
+function uP(e) {
+ let t = bN.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function xce(e) {
- LN?.duration() && (RN = !0, iP(!0), e.currentTarget.setPointerCapture(e.pointerId), aP(dP(e)), e.preventDefault());
+function Cce(e) {
+ IN?.duration() && (LN = !0, rP(!0), e.currentTarget.setPointerCapture(e.pointerId), iP(uP(e)), e.preventDefault());
}
-function Sce(e) {
- RN && aP(dP(e));
+function wce(e) {
+ LN && iP(uP(e));
}
-function Cce(e) {
- if (!RN) return;
- RN = !1, iP(!1);
- let t = LN?.duration();
- LN && t && (LN.video.currentTime = t * dP(e));
+function Tce(e) {
+ if (!LN) return;
+ LN = !1, rP(!1);
+ let t = IN?.duration();
+ IN && t && (IN.video.currentTime = t * uP(e));
}
-function wce() {
- RN = !1, iP(!1);
+function Ece() {
+ LN = !1, rP(!1);
}
-async function fP(e, t) {
- let n = await H(ZM, {
+async function dP(e, t) {
+ let n = await V(XM, {
id: e,
kind: t
- }), r = U.getQueryData(JM(e));
- if (!r) return UM(e, {
+ }), r = H.getQueryData(qM(e));
+ if (!r) return HM(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -33745,7 +33752,7 @@ async function fP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return U.setQueryData(JM(e), i), UM(e, {
+ return H.setQueryData(qM(e), i), HM(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -33753,7 +33760,7 @@ async function fP(e, t) {
o_count: i.o_count
}), n;
}
-var Tce = [
+var Dce = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -33770,35 +33777,35 @@ var Tce = [
label: "记一次高潮"
}
];
-function pP(e) {
- return Nt({
- queryKey: JM(e ?? 0),
- queryFn: ({ signal: t }) => rN(e, t),
+function fP(e) {
+ return Pt({
+ queryKey: qM(e ?? 0),
+ queryFn: ({ signal: t }) => nN(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Ece({ kind: e, glyph: t, label: n, id: r }) {
- let i = pP(r), a = Pt({
+function Oce({ kind: e, glyph: t, label: n, id: r }) {
+ let i = fP(r), a = Ft({
mutationFn: async (t) => {
- let n = U.getQueryData(JM(t))?.feedback || null;
+ let n = H.getQueryData(qM(t))?.feedback || null;
return {
- result: await fP(t, e),
+ result: await dP(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- zN().toast(_N(e, t), { undo: async () => {
- e === "o" ? await fP(r, "o-undo") : (t.feedback && await fP(r, t.feedback), n && await fP(r, n));
+ RN().toast(gN(e, t), { undo: async () => {
+ e === "o" ? await dP(r, "o-undo") : (t.feedback && await dP(r, t.feedback), n && await dP(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- YN(1);
+ JN(1);
}, 260);
},
- onError: (e) => zN().failure("更新反馈", e)
+ onError: (e) => RN().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-action": "",
- children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-immerse-circle": "",
title: n,
@@ -33811,46 +33818,46 @@ function Ece({ kind: e, glyph: t, label: n, id: r }) {
onClick: () => {
r != null && !a.isPending && a.mutate(r);
},
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${t}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${t}` })
})
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-immerse-label": "",
children: [
e === "dislike" ? "不喜欢" : null,
e === "seen" ? i?.feedback === "seen" ? "已看" : "看过" : null,
- e === "o" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, I.jsx)("b", { children: i?.o_count || 0 })] }) : null
+ e === "o" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, F.jsx)("b", { children: i?.o_count || 0 })] }) : null
]
})]
});
}
-function Dce({ shown: e }) {
- let t = e?.item ?? null, n = pP(t?.id ?? null), r = n ? oce(n) : null, i = zN(), a = (e) => {
- e.preventDefault(), n && (ZN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function kce({ shown: e }) {
+ let t = e?.item ?? null, n = fP(t?.id ?? null), r = n ? cce(n) : null, i = RN(), a = (e) => {
+ e.preventDefault(), n && (XN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (ZN(), i.openItem(t.id));
- }, s = r ? Ya(r.name, r.ref, Aa(r.name), r.kind || "performer") : "";
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ t && (XN(), i.openItem(t.id));
+ }, s = r ? Za(r.name, r.ref, Ma(r.name), r.kind || "performer") : "";
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-ui": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-author": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-immerse-avatar": "",
"aria-label": "打开资料",
onClick: a,
dangerouslySetInnerHTML: { __html: s }
}),
- /* @__PURE__ */ (0, I.jsx)("a", {
+ /* @__PURE__ */ (0, F.jsx)("a", {
href: "#",
onClick: a,
children: r?.who ?? ""
}),
- /* @__PURE__ */ (0, I.jsx)("span", { children: e && t ? `· ${Dn(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })
+ /* @__PURE__ */ (0, F.jsx)("span", { children: e && t ? `· ${kn(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })
]
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-immerse-title": "",
onClick: o,
@@ -33858,250 +33865,250 @@ function Dce({ shown: e }) {
})]
});
}
-var Oce = { __html: vs("媒体加载中") };
-function kce({ view: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => {
+var Ace = { __html: bs("媒体加载中") };
+function jce({ view: e }) {
+ let t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = (0, P.useRef)(null), i = (0, P.useRef)(null);
+ (0, P.useLayoutEffect)(() => {
let e = t.current;
- return xN = {
+ return bN = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", oP, { passive: !0 }), e.addEventListener("touchmove", sP, { passive: !1 }), e.addEventListener("touchend", cP, { passive: !1 }), e.addEventListener("touchcancel", lP, { passive: !0 }), e.addEventListener("wheel", uP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", oP), e.removeEventListener("touchmove", sP), e.removeEventListener("touchend", cP), e.removeEventListener("touchcancel", lP), e.removeEventListener("wheel", uP), xN = null;
+ }, e.addEventListener("touchstart", aP, { passive: !0 }), e.addEventListener("touchmove", oP, { passive: !1 }), e.addEventListener("touchend", sP, { passive: !1 }), e.addEventListener("touchcancel", cP, { passive: !0 }), e.addEventListener("wheel", lP, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", aP), e.removeEventListener("touchmove", oP), e.removeEventListener("touchend", sP), e.removeEventListener("touchcancel", cP), e.removeEventListener("wheel", lP), bN = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: t,
"data-immerse": "",
"data-idle": o(e.idle),
"data-wide": o(e.wide),
hidden: !e.open,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-stage": "",
"data-wide": o(e.wide),
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: bce
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ onClick: Sce
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-immerse-actions": "",
- children: Tce.map((e) => /* @__PURE__ */ (0, I.jsx)(Ece, {
+ children: Dce.map((e) => /* @__PURE__ */ (0, F.jsx)(Oce, {
...e,
id: a
}, e.kind))
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-immerse-loader": "",
role: "status",
"aria-live": "polite",
hidden: e.loading === null,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Oce
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
+ dangerouslySetInnerHTML: Ace
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.loading ?? "" })]
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: ZN,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ onClick: XN,
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-x" })
})
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: xce,
- onPointerMove: Sce,
- onPointerUp: Cce,
- onPointerCancel: wce,
- children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
+ onPointerDown: Cce,
+ onPointerMove: wce,
+ onPointerUp: Tce,
+ onPointerCancel: Ece,
+ children: /* @__PURE__ */ (0, F.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Dce, { shown: e.shown })
+ /* @__PURE__ */ (0, F.jsx)(kce, { shown: e.shown })
]
});
}
-var Ace = {
- open: vce,
- close: ZN,
- isOpen: () => SN.open,
- activeVideo: () => SN.open ? MN?.video ?? null : null
+var Mce = {
+ open: bce,
+ close: XN,
+ isOpen: () => xN.open,
+ activeVideo: () => xN.open ? jN?.video ?? null : null
};
-function jce(e) {
- if (!SN.open) return;
+function Nce(e) {
+ if (!xN.open) return;
let t = e.target;
- (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && YN(1), e.key === "ArrowUp" && YN(-1)));
+ (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && JN(1), e.key === "ArrowUp" && JN(-1)));
}
-function Mce(e) {
- let t = !bN;
- return bN = e, t && (document.addEventListener("keydown", jce), addEventListener("resize", () => {
- SN.open && KN();
+function Pce(e) {
+ let t = !yN;
+ return yN = e, t && (document.addEventListener("keydown", Nce), addEventListener("resize", () => {
+ xN.open && GN();
}), addEventListener("pagehide", () => {
- NN.forEach((e) => eM(e.session));
- })), Ace;
+ MN.forEach((e) => tM(e.session));
+ })), Mce;
}
-function Nce() {
- let e = (0, F.useSyncExternalStore)(uce, () => SN);
- return bN ? /* @__PURE__ */ (0, I.jsx)(kce, { view: e }) : null;
+function Fce() {
+ let e = (0, P.useSyncExternalStore)(fce, () => xN);
+ return yN ? /* @__PURE__ */ (0, F.jsx)(jce, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var mP = {
+var pP = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Pce = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Fce(e) {
- let t = mP[e.path] ? "cleanup" : e.section;
+}, Ice = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Lce(e) {
+ let t = pP[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Ice = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function hP(e) {
+var Rce = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function mP(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = mP[e.path] ?? "";
+ let n = pP[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Fce(e),
+ pressed: Lce(e),
crumb: n,
- compact: Pce.has(e.path) || e.section === "configuration",
+ compact: Ice.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Ice(e.trash),
+ text: Rce(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var gP = (e) => e.replace(/[&<>"']/g, (e) => ({
+var hP = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), _P = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${gP(e)}"/></svg>`, vP = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Lce(e) {
- let t = hP(e);
+})[e]), gP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${hP(e)}"/></svg>`, _P = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function zce(e) {
+ let t = mP(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${gP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${_P(r)}<span>${gP(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${_P("chevron-right")}</li><li aria-current="true"><span>${gP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? vP : `<span data-lede-text="">${gP(t.lede.text)}</span>${t.lede.total ? Rce : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${gP(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${hP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${gP(r)}<span>${hP(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${gP("chevron-right")}</li><li aria-current="true"><span>${hP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? _P : `<span data-lede-text="">${hP(t.lede.text)}</span>${t.lede.total ? Bce : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${hP(t.title)}</h2>` + i;
}
-var Rce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Bce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function yP({ name: e }) {
- let { wide: t, viewBox: n } = nn(e);
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function vP({ name: e }) {
+ let { wide: t, viewBox: n } = rn(e);
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: n,
className: t ? "iconwide" : void 0,
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function zce({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function Vce({ name: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#${e}` })
});
}
//#endregion
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Bce = (e, t) => {
+var Hce = (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;
-}, Vce = (e, t) => ({
+}, Uce = (e, t) => ({
classGroupId: e,
validator: t
-}), bP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), yP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), xP = "-", SP = [], Hce = "arbitrary..", Uce = (e) => {
- let t = Gce(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), bP = "-", xP = [], Wce = "arbitrary..", Gce = (e) => {
+ let t = qce(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Wce(e);
- let n = e.split(xP);
- return CP(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Kce(e);
+ let n = e.split(bP);
+ return SP(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Bce(i, t) : t : i || SP;
+ return t ? i ? Hce(i, t) : t : i || xP;
}
- return n[e] || SP;
+ return n[e] || xP;
}
};
-}, CP = (e, t, n) => {
+}, SP = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = CP(e, t + 1, i);
+ let n = SP(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(xP) : e.slice(t).join(xP), s = a.length;
+ let o = t === 0 ? e.join(bP) : e.slice(t).join(bP), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Wce = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Kce = (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 ? Hce + r : void 0;
-})(), Gce = (e) => {
+ return r ? Wce + r : void 0;
+})(), qce = (e) => {
let { theme: t, classGroups: n } = e;
- return Kce(n, t);
-}, Kce = (e, t) => {
- let n = bP();
+ return Jce(n, t);
+}, Jce = (e, t) => {
+ let n = yP();
for (let r in e) {
let i = e[r];
- wP(i, n, r, t);
+ CP(i, n, r, t);
}
return n;
-}, wP = (e, t, n, r) => {
+}, CP = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- qce(i, t, n, r);
+ Yce(i, t, n, r);
}
-}, qce = (e, t, n, r) => {
- typeof e == "string" ? Jce(e, t, n) : typeof e == "function" ? Yce(e, t, n, r) : Xce(e, t, n, r);
-}, Jce = (e, t, n) => {
- let r = e === "" ? t : TP(t, e);
- r.classGroupId = n;
}, Yce = (e, t, n, r) => {
- Zce(e) ? wP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Vce(n, e)));
-}, Xce = (e, t, n, r) => {
+ typeof e == "string" ? Xce(e, t, n) : typeof e == "function" ? Zce(e, t, n, r) : Qce(e, t, n, r);
+}, Xce = (e, t, n) => {
+ let r = e === "" ? t : wP(t, e);
+ r.classGroupId = n;
+}, Zce = (e, t, n, r) => {
+ $ce(e) ? CP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Uce(n, e)));
+}, Qce = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- wP(o, TP(t, a), n, r);
+ CP(o, wP(t, a), n, r);
}
-}, TP = (e, t) => {
- let n = e, r = t.split(xP), i = r.length;
+}, wP = (e, t) => {
+ let n = e, r = t.split(bP), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = bP(), n.nextPart.set(t, i)), n = i;
+ i || (i = yP(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Zce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Qce = (e) => {
+}, $ce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ele = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -34119,19 +34126,19 @@ var Bce = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, EP = "!", DP = ":", $ce = [], OP = (e, t, n, r, i) => ({
+}, TP = "!", EP = ":", tle = [], DP = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), ele = (e) => {
+}), nle = (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 === DP) {
+ if (o === EP) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -34143,13 +34150,13 @@ var Bce = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(EP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(EP) && (c = s.slice(1), l = !0);
+ s.endsWith(TP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(TP) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return OP(t, l, c, u);
+ return DP(t, l, c, u);
};
if (t) {
- let e = t + DP, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : OP($ce, !1, t, void 0, !0);
+ let e = t + EP, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : DP(tle, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -34159,7 +34166,7 @@ var Bce = (e, t) => {
});
}
return r;
-}, tle = (e) => {
+}, rle = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -34171,18 +34178,18 @@ var Bce = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, nle = (e) => ({
- cache: Qce(e.cacheSize),
- parseClassName: ele(e),
- sortModifiers: tle(e),
- postfixLookupClassGroupIds: rle(e),
- ...Uce(e)
-}), rle = (e) => {
+}, ile = (e) => ({
+ cache: ele(e.cacheSize),
+ parseClassName: nle(e),
+ sortModifiers: rle(e),
+ postfixLookupClassGroupIds: ale(e),
+ ...Gce(e)
+}), ale = (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;
-}, ile = /\s+/, ale = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ile), l = "";
+}, ole = /\s+/, sle = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ole), 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) {
@@ -34202,7 +34209,7 @@ var Bce = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + EP : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + TP : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -34213,34 +34220,34 @@ var Bce = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, ole = (...e) => {
+}, cle = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = kP(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = OP(n)) && (i && (i += " "), i += r);
return i;
-}, kP = (e) => {
+}, OP = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = kP(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = OP(e[r])) && (n && (n += " "), n += t);
return n;
-}, AP = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = nle(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, kP = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = ile(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 = ale(e, n);
+ let a = sle(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(ole(...e));
-}, sle = [], jP = (e) => {
- let t = (t) => t[e] || sle;
+ return a = o, (...e) => a(cle(...e));
+}, lle = [], AP = (e) => {
+ let t = (t) => t[e] || lle;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, MP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, NP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cle = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, lle = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ule = /\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$/, dle = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, fle = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ple = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, PP = (e) => cle.test(e), FP = (e) => !!e && !Number.isNaN(Number(e)), IP = (e) => !!e && Number.isInteger(Number(e)), LP = (e) => e.endsWith("%") && FP(e.slice(0, -1)), RP = (e) => lle.test(e), zP = () => !0, mle = (e) => ule.test(e) && !dle.test(e), BP = () => !1, hle = (e) => fle.test(e), gle = (e) => ple.test(e), _le = (e) => !VP(e) && !KP(e), vle = (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)), yle = (e) => XP(e, eF, BP), VP = (e) => MP.test(e), HP = (e) => XP(e, tF, mle), UP = (e) => XP(e, Dle, FP), ble = (e) => XP(e, rF, zP), xle = (e) => XP(e, nF, BP), WP = (e) => XP(e, QP, BP), Sle = (e) => XP(e, $P, gle), GP = (e) => XP(e, iF, hle), KP = (e) => NP.test(e), qP = (e) => ZP(e, tF), Cle = (e) => ZP(e, nF), JP = (e) => ZP(e, QP), wle = (e) => ZP(e, eF), Tle = (e) => ZP(e, $P), YP = (e) => ZP(e, iF, !0), Ele = (e) => ZP(e, rF, !0), XP = (e, t, n) => {
- let r = MP.exec(e);
+}, jP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, MP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ule = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, dle = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fle = /\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$/, ple = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, mle = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, hle = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, NP = (e) => ule.test(e), PP = (e) => !!e && !Number.isNaN(Number(e)), FP = (e) => !!e && Number.isInteger(Number(e)), IP = (e) => e.endsWith("%") && PP(e.slice(0, -1)), LP = (e) => dle.test(e), RP = () => !0, gle = (e) => fle.test(e) && !ple.test(e), zP = () => !1, _le = (e) => mle.test(e), vle = (e) => hle.test(e), yle = (e) => !BP(e) && !GP(e), ble = (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)), xle = (e) => YP(e, $P, zP), BP = (e) => jP.test(e), VP = (e) => YP(e, eF, gle), HP = (e) => YP(e, kle, PP), Sle = (e) => YP(e, nF, RP), Cle = (e) => YP(e, tF, zP), UP = (e) => YP(e, ZP, zP), wle = (e) => YP(e, QP, vle), WP = (e) => YP(e, rF, _le), GP = (e) => MP.test(e), KP = (e) => XP(e, eF), Tle = (e) => XP(e, tF), qP = (e) => XP(e, ZP), Ele = (e) => XP(e, $P), Dle = (e) => XP(e, QP), JP = (e) => XP(e, rF, !0), Ole = (e) => XP(e, nF, !0), YP = (e, t, n) => {
+ let r = jP.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, ZP = (e, t, n = !1) => {
- let r = NP.exec(e);
+}, XP = (e, t, n = !1) => {
+ let r = MP.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, QP = (e) => e === "position" || e === "percentage", $P = (e) => e === "image" || e === "url", eF = (e) => e === "length" || e === "size" || e === "bg-size", tF = (e) => e === "length", Dle = (e) => e === "number", nF = (e) => e === "family-name", rF = (e) => e === "number" || e === "weight", iF = (e) => e === "shadow", aF = () => {
- let e = jP("color"), t = jP("font"), n = jP("text"), r = jP("font-weight"), i = jP("tracking"), a = jP("leading"), o = jP("breakpoint"), s = jP("container"), c = jP("spacing"), l = jP("radius"), u = jP("shadow"), d = jP("inset-shadow"), f = jP("text-shadow"), p = jP("drop-shadow"), m = jP("blur"), h = jP("perspective"), g = jP("aspect"), _ = jP("ease"), v = jP("animate"), y = () => [
+}, ZP = (e) => e === "position" || e === "percentage", QP = (e) => e === "image" || e === "url", $P = (e) => e === "length" || e === "size" || e === "bg-size", eF = (e) => e === "length", kle = (e) => e === "number", tF = (e) => e === "family-name", nF = (e) => e === "number" || e === "weight", rF = (e) => e === "shadow", iF = () => {
+ let e = AP("color"), t = AP("font"), n = AP("text"), r = AP("font-weight"), i = AP("tracking"), a = AP("leading"), o = AP("breakpoint"), s = AP("container"), c = AP("spacing"), l = AP("radius"), u = AP("shadow"), d = AP("inset-shadow"), f = AP("text-shadow"), p = AP("drop-shadow"), m = AP("blur"), h = AP("perspective"), g = AP("aspect"), _ = AP("ease"), v = AP("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -34265,8 +34272,8 @@ var Bce = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- KP,
- VP
+ GP,
+ BP
], S = () => [
"auto",
"hidden",
@@ -34278,43 +34285,43 @@ var Bce = (e, t) => {
"contain",
"none"
], w = () => [
- KP,
- VP,
+ GP,
+ BP,
c
], T = () => [
- PP,
+ NP,
"full",
"auto",
...w()
], E = () => [
- IP,
+ FP,
"none",
"subgrid",
- KP,
- VP
+ GP,
+ BP
], D = () => [
"auto",
{ span: [
"full",
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
] },
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
], O = () => [
- IP,
+ FP,
"auto",
- KP,
- VP
+ GP,
+ BP
], k = () => [
"auto",
"min",
"max",
"fr",
- KP,
- VP
+ GP,
+ BP
], A = () => [
"start",
"end",
@@ -34334,7 +34341,7 @@ var Bce = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- PP,
+ NP,
"auto",
"full",
"dvw",
@@ -34347,9 +34354,9 @@ var Bce = (e, t) => {
"max",
"fit",
...w()
- ], N = () => [
+ ], te = () => [
s,
- PP,
+ NP,
"screen",
"full",
"dvw",
@@ -34359,8 +34366,8 @@ var Bce = (e, t) => {
"max",
"fit",
...w()
- ], te = () => [
- PP,
+ ], ne = () => [
+ NP,
"screen",
"full",
"lh",
@@ -34371,50 +34378,50 @@ var Bce = (e, t) => {
"max",
"fit",
...w()
- ], P = () => [
+ ], N = () => [
e,
- KP,
- VP
- ], ne = () => [
+ GP,
+ BP
+ ], re = () => [
...b(),
- JP,
- WP,
- { position: [KP, VP] }
- ], re = () => ["no-repeat", { repeat: [
+ qP,
+ UP,
+ { position: [GP, BP] }
+ ], ie = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], F = () => [
+ ] }], P = () => [
"auto",
"cover",
"contain",
- wle,
- yle,
- { size: [KP, VP] }
- ], I = () => [
- LP,
- qP,
- HP
- ], ie = () => [
+ Ele,
+ xle,
+ { size: [GP, BP] }
+ ], F = () => [
+ IP,
+ KP,
+ VP
+ ], ae = () => [
"",
"none",
"full",
l,
+ GP,
+ BP
+ ], oe = () => [
+ "",
+ PP,
KP,
VP
- ], ae = () => [
- "",
- FP,
- qP,
- HP
- ], oe = () => [
+ ], se = () => [
"solid",
"dashed",
"dotted",
"double"
- ], se = () => [
+ ], ce = () => [
"normal",
"multiply",
"screen",
@@ -34431,33 +34438,33 @@ var Bce = (e, t) => {
"saturation",
"color",
"luminosity"
- ], ce = () => [
- FP,
- LP,
- JP,
- WP
], le = () => [
+ PP,
+ IP,
+ qP,
+ UP
+ ], ue = () => [
"",
"none",
m,
- KP,
- VP
- ], ue = () => [
- "none",
- FP,
- KP,
- VP
+ GP,
+ BP
], de = () => [
"none",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
], fe = () => [
- FP,
- KP,
- VP
+ "none",
+ PP,
+ GP,
+ BP
], pe = () => [
PP,
+ GP,
+ BP
+ ], me = () => [
+ NP,
"full",
...w()
];
@@ -34471,17 +34478,17 @@ var Bce = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [RP],
- breakpoint: [RP],
- color: [zP],
- container: [RP],
- "drop-shadow": [RP],
+ blur: [LP],
+ breakpoint: [LP],
+ color: [RP],
+ container: [LP],
+ "drop-shadow": [LP],
ease: [
"in",
"out",
"in-out"
],
- font: [_le],
+ font: [yle],
"font-weight": [
"thin",
"extralight",
@@ -34493,7 +34500,7 @@ var Bce = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [RP],
+ "inset-shadow": [LP],
leading: [
"none",
"tight",
@@ -34510,11 +34517,11 @@ var Bce = (e, t) => {
"distant",
"none"
],
- radius: [RP],
- shadow: [RP],
- spacing: ["px", FP],
- text: [RP],
- "text-shadow": [RP],
+ radius: [LP],
+ shadow: [LP],
+ spacing: ["px", PP],
+ text: [LP],
+ "text-shadow": [LP],
tracking: [
"tighter",
"tight",
@@ -34528,9 +34535,9 @@ var Bce = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- PP,
- VP,
- KP,
+ NP,
+ BP,
+ GP,
g
] }],
container: ["container"],
@@ -34538,15 +34545,15 @@ var Bce = (e, t) => {
"",
"normal",
"size",
- KP,
- VP
+ GP,
+ BP
] }],
- "container-named": [vle],
+ "container-named": [ble],
columns: [{ columns: [
- FP,
+ PP,
"auto",
- VP,
- KP,
+ BP,
+ GP,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -34643,13 +34650,13 @@ var Bce = (e, t) => {
"collapse"
],
z: [{ z: [
- IP,
+ FP,
"auto",
- KP,
- VP
+ GP,
+ BP
] }],
basis: [{ basis: [
- PP,
+ NP,
"full",
"auto",
s,
@@ -34667,32 +34674,32 @@ var Bce = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- FP,
PP,
+ NP,
"auto",
"initial",
"none",
- VP
+ BP
] }],
grow: [{ grow: [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
shrink: [{ shrink: [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
order: [{ order: [
- IP,
+ FP,
"first",
"last",
"none",
- KP,
- VP
+ GP,
+ BP
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -34754,12 +34761,12 @@ var Bce = (e, t) => {
"space-y": [{ "space-y": w() }],
"space-y-reverse": ["space-y-reverse"],
size: [{ size: ee() }],
- "inline-size": [{ inline: ["auto", ...N()] }],
- "min-inline-size": [{ "min-inline": ["auto", ...N()] }],
- "max-inline-size": [{ "max-inline": ["none", ...N()] }],
- "block-size": [{ block: ["auto", ...te()] }],
- "min-block-size": [{ "min-block": ["auto", ...te()] }],
- "max-block-size": [{ "max-block": ["none", ...te()] }],
+ "inline-size": [{ inline: ["auto", ...te()] }],
+ "min-inline-size": [{ "min-inline": ["auto", ...te()] }],
+ "max-inline-size": [{ "max-inline": ["none", ...te()] }],
+ "block-size": [{ block: ["auto", ...ne()] }],
+ "min-block-size": [{ "min-block": ["auto", ...ne()] }],
+ "max-block-size": [{ "max-block": ["none", ...ne()] }],
w: [{ w: [
s,
"screen",
@@ -34799,15 +34806,15 @@ var Bce = (e, t) => {
"font-size": [{ text: [
"base",
n,
- qP,
- HP
+ KP,
+ VP
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Ele,
- ble
+ Ole,
+ Sle
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -34819,15 +34826,15 @@ var Bce = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- LP,
- VP
+ IP,
+ BP
] }],
"font-family": [{ font: [
+ Tle,
Cle,
- xle,
t
] }],
- "font-features": [{ "font-features": [VP] }],
+ "font-features": [{ "font-features": [BP] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -34836,14 +34843,14 @@ var Bce = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- KP,
- VP
+ GP,
+ BP
] }],
"line-clamp": [{ "line-clamp": [
- FP,
+ PP,
"none",
- KP,
- UP
+ GP,
+ HP
] }],
leading: [{ leading: [
"none",
@@ -34852,16 +34859,16 @@ var Bce = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- KP,
- VP
+ GP,
+ BP
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- KP,
- VP
+ GP,
+ BP
] }],
"text-alignment": [{ text: [
"left",
@@ -34871,28 +34878,28 @@ var Bce = (e, t) => {
"start",
"end"
] }],
- "placeholder-color": [{ placeholder: P() }],
- "text-color": [{ text: P() }],
+ "placeholder-color": [{ placeholder: N() }],
+ "text-color": [{ text: N() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- FP,
+ PP,
"from-font",
"auto",
- KP,
- HP
+ GP,
+ VP
] }],
- "text-decoration-color": [{ decoration: P() }],
+ "text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
- FP,
+ PP,
"auto",
- KP,
- VP
+ GP,
+ BP
] }],
"text-transform": [
"uppercase",
@@ -34913,9 +34920,9 @@ var Bce = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
] }],
"vertical-align": [{ align: [
"baseline",
@@ -34926,8 +34933,8 @@ var Bce = (e, t) => {
"text-bottom",
"sub",
"super",
- KP,
- VP
+ GP,
+ BP
] }],
whitespace: [{ whitespace: [
"normal",
@@ -34955,8 +34962,8 @@ var Bce = (e, t) => {
] }],
content: [{ content: [
"none",
- KP,
- VP
+ GP,
+ BP
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -34974,9 +34981,9 @@ var Bce = (e, t) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: ne() }],
- "bg-repeat": [{ bg: re() }],
- "bg-size": [{ bg: F() }],
+ "bg-position": [{ bg: re() }],
+ "bg-repeat": [{ bg: ie() }],
+ "bg-size": [{ bg: P() }],
"bg-image": [{ bg: [
"none",
{
@@ -34991,142 +34998,142 @@ var Bce = (e, t) => {
"l",
"tl"
] },
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
],
radial: [
"",
- KP,
- VP
+ GP,
+ BP
],
conic: [
"",
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
]
},
- Tle,
- Sle
+ Dle,
+ wle
] }],
- "bg-color": [{ bg: P() }],
- "gradient-from-pos": [{ from: I() }],
- "gradient-via-pos": [{ via: I() }],
- "gradient-to-pos": [{ to: I() }],
- "gradient-from": [{ from: P() }],
- "gradient-via": [{ via: P() }],
- "gradient-to": [{ to: P() }],
- rounded: [{ rounded: ie() }],
- "rounded-s": [{ "rounded-s": ie() }],
- "rounded-e": [{ "rounded-e": ie() }],
- "rounded-t": [{ "rounded-t": ie() }],
- "rounded-r": [{ "rounded-r": ie() }],
- "rounded-b": [{ "rounded-b": ie() }],
- "rounded-l": [{ "rounded-l": ie() }],
- "rounded-ss": [{ "rounded-ss": ie() }],
- "rounded-se": [{ "rounded-se": ie() }],
- "rounded-ee": [{ "rounded-ee": ie() }],
- "rounded-es": [{ "rounded-es": ie() }],
- "rounded-tl": [{ "rounded-tl": ie() }],
- "rounded-tr": [{ "rounded-tr": ie() }],
- "rounded-br": [{ "rounded-br": ie() }],
- "rounded-bl": [{ "rounded-bl": ie() }],
- "border-w": [{ border: ae() }],
- "border-w-x": [{ "border-x": ae() }],
- "border-w-y": [{ "border-y": ae() }],
- "border-w-s": [{ "border-s": ae() }],
- "border-w-e": [{ "border-e": ae() }],
- "border-w-bs": [{ "border-bs": ae() }],
- "border-w-be": [{ "border-be": ae() }],
- "border-w-t": [{ "border-t": ae() }],
- "border-w-r": [{ "border-r": ae() }],
- "border-w-b": [{ "border-b": ae() }],
- "border-w-l": [{ "border-l": ae() }],
- "divide-x": [{ "divide-x": ae() }],
+ "bg-color": [{ bg: N() }],
+ "gradient-from-pos": [{ from: F() }],
+ "gradient-via-pos": [{ via: F() }],
+ "gradient-to-pos": [{ to: F() }],
+ "gradient-from": [{ from: N() }],
+ "gradient-via": [{ via: N() }],
+ "gradient-to": [{ to: N() }],
+ rounded: [{ rounded: ae() }],
+ "rounded-s": [{ "rounded-s": ae() }],
+ "rounded-e": [{ "rounded-e": ae() }],
+ "rounded-t": [{ "rounded-t": ae() }],
+ "rounded-r": [{ "rounded-r": ae() }],
+ "rounded-b": [{ "rounded-b": ae() }],
+ "rounded-l": [{ "rounded-l": ae() }],
+ "rounded-ss": [{ "rounded-ss": ae() }],
+ "rounded-se": [{ "rounded-se": ae() }],
+ "rounded-ee": [{ "rounded-ee": ae() }],
+ "rounded-es": [{ "rounded-es": ae() }],
+ "rounded-tl": [{ "rounded-tl": ae() }],
+ "rounded-tr": [{ "rounded-tr": ae() }],
+ "rounded-br": [{ "rounded-br": ae() }],
+ "rounded-bl": [{ "rounded-bl": ae() }],
+ "border-w": [{ border: oe() }],
+ "border-w-x": [{ "border-x": oe() }],
+ "border-w-y": [{ "border-y": oe() }],
+ "border-w-s": [{ "border-s": oe() }],
+ "border-w-e": [{ "border-e": oe() }],
+ "border-w-bs": [{ "border-bs": oe() }],
+ "border-w-be": [{ "border-be": oe() }],
+ "border-w-t": [{ "border-t": oe() }],
+ "border-w-r": [{ "border-r": oe() }],
+ "border-w-b": [{ "border-b": oe() }],
+ "border-w-l": [{ "border-l": oe() }],
+ "divide-x": [{ "divide-x": oe() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": ae() }],
+ "divide-y": [{ "divide-y": oe() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...oe(),
+ ...se(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...oe(),
+ ...se(),
"hidden",
"none"
] }],
- "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() }],
+ "border-color": [{ border: N() }],
+ "border-color-x": [{ "border-x": N() }],
+ "border-color-y": [{ "border-y": N() }],
+ "border-color-s": [{ "border-s": N() }],
+ "border-color-e": [{ "border-e": N() }],
+ "border-color-bs": [{ "border-bs": N() }],
+ "border-color-be": [{ "border-be": N() }],
+ "border-color-t": [{ "border-t": N() }],
+ "border-color-r": [{ "border-r": N() }],
+ "border-color-b": [{ "border-b": N() }],
+ "border-color-l": [{ "border-l": N() }],
+ "divide-color": [{ divide: N() }],
"outline-style": [{ outline: [
- ...oe(),
+ ...se(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"outline-w": [{ outline: [
"",
- FP,
- qP,
- HP
+ PP,
+ KP,
+ VP
] }],
- "outline-color": [{ outline: P() }],
+ "outline-color": [{ outline: N() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
- YP,
- GP
+ JP,
+ WP
] }],
- "shadow-color": [{ shadow: P() }],
+ "shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- YP,
- GP
+ JP,
+ WP
] }],
- "inset-shadow-color": [{ "inset-shadow": P() }],
- "ring-w": [{ ring: ae() }],
+ "inset-shadow-color": [{ "inset-shadow": N() }],
+ "ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
- "ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [FP, HP] }],
- "ring-offset-color": [{ "ring-offset": P() }],
- "inset-ring-w": [{ "inset-ring": ae() }],
- "inset-ring-color": [{ "inset-ring": P() }],
+ "ring-color": [{ ring: N() }],
+ "ring-offset-w": [{ "ring-offset": [PP, VP] }],
+ "ring-offset-color": [{ "ring-offset": N() }],
+ "inset-ring-w": [{ "inset-ring": oe() }],
+ "inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- YP,
- GP
+ JP,
+ WP
] }],
- "text-shadow-color": [{ "text-shadow": P() }],
+ "text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"mix-blend": [{ "mix-blend": [
- ...se(),
+ ...ce(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": se() }],
+ "bg-blend": [{ "bg-blend": ce() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -35141,51 +35148,51 @@ var Bce = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [FP] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
- "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": ce() }],
- "mask-image-t-to-pos": [{ "mask-t-to": ce() }],
- "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": ce() }],
- "mask-image-r-to-pos": [{ "mask-r-to": ce() }],
- "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": ce() }],
- "mask-image-b-to-pos": [{ "mask-b-to": ce() }],
- "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": ce() }],
- "mask-image-l-to-pos": [{ "mask-l-to": ce() }],
- "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": ce() }],
- "mask-image-x-to-pos": [{ "mask-x-to": ce() }],
- "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": ce() }],
- "mask-image-y-to-pos": [{ "mask-y-to": ce() }],
- "mask-image-y-from-color": [{ "mask-y-from": P() }],
- "mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [KP, VP] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
- "mask-image-radial-from-color": [{ "mask-radial-from": P() }],
- "mask-image-radial-to-color": [{ "mask-radial-to": P() }],
+ "mask-image-linear-pos": [{ "mask-linear": [PP] }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": le() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": le() }],
+ "mask-image-linear-from-color": [{ "mask-linear-from": N() }],
+ "mask-image-linear-to-color": [{ "mask-linear-to": N() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": le() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": le() }],
+ "mask-image-t-from-color": [{ "mask-t-from": N() }],
+ "mask-image-t-to-color": [{ "mask-t-to": N() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": le() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": le() }],
+ "mask-image-r-from-color": [{ "mask-r-from": N() }],
+ "mask-image-r-to-color": [{ "mask-r-to": N() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": le() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": le() }],
+ "mask-image-b-from-color": [{ "mask-b-from": N() }],
+ "mask-image-b-to-color": [{ "mask-b-to": N() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": le() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": le() }],
+ "mask-image-l-from-color": [{ "mask-l-from": N() }],
+ "mask-image-l-to-color": [{ "mask-l-to": N() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": le() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": le() }],
+ "mask-image-x-from-color": [{ "mask-x-from": N() }],
+ "mask-image-x-to-color": [{ "mask-x-to": N() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": le() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": le() }],
+ "mask-image-y-from-color": [{ "mask-y-from": N() }],
+ "mask-image-y-to-color": [{ "mask-y-to": N() }],
+ "mask-image-radial": [{ "mask-radial": [GP, BP] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": le() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": le() }],
+ "mask-image-radial-from-color": [{ "mask-radial-from": N() }],
+ "mask-image-radial-to-color": [{ "mask-radial-to": N() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"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": [FP] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
- "mask-image-conic-from-color": [{ "mask-conic-from": P() }],
- "mask-image-conic-to-color": [{ "mask-conic-to": P() }],
+ "mask-image-conic-pos": [{ "mask-conic": [PP] }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": le() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": le() }],
+ "mask-image-conic-from-color": [{ "mask-conic-from": N() }],
+ "mask-image-conic-to-color": [{ "mask-conic-to": N() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
@@ -35199,117 +35206,117 @@ var Bce = (e, t) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: ne() }],
- "mask-repeat": [{ mask: re() }],
- "mask-size": [{ mask: F() }],
+ "mask-position": [{ mask: re() }],
+ "mask-repeat": [{ mask: ie() }],
+ "mask-size": [{ mask: P() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- KP,
- VP
+ GP,
+ BP
] }],
filter: [{ filter: [
"",
"none",
- KP,
- VP
+ GP,
+ BP
] }],
- blur: [{ blur: le() }],
+ blur: [{ blur: ue() }],
brightness: [{ brightness: [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
contrast: [{ contrast: [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- YP,
- GP
+ JP,
+ WP
] }],
- "drop-shadow-color": [{ "drop-shadow": P() }],
+ "drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"hue-rotate": [{ "hue-rotate": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
invert: [{ invert: [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
saturate: [{ saturate: [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
sepia: [{ sepia: [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- KP,
- VP
+ GP,
+ BP
] }],
- "backdrop-blur": [{ "backdrop-blur": le() }],
+ "backdrop-blur": [{ "backdrop-blur": ue() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -35325,56 +35332,56 @@ var Bce = (e, t) => {
"shadow",
"transform",
"none",
- KP,
- VP
+ GP,
+ BP
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- FP,
+ PP,
"initial",
- KP,
- VP
+ GP,
+ BP
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- KP,
- VP
+ GP,
+ BP
] }],
delay: [{ delay: [
- FP,
- KP,
- VP
+ PP,
+ GP,
+ BP
] }],
animate: [{ animate: [
"none",
v,
- KP,
- VP
+ GP,
+ BP
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- KP,
- VP
+ GP,
+ BP
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: ue() }],
- "rotate-x": [{ "rotate-x": ue() }],
- "rotate-y": [{ "rotate-y": ue() }],
- "rotate-z": [{ "rotate-z": ue() }],
- scale: [{ scale: de() }],
- "scale-x": [{ "scale-x": de() }],
- "scale-y": [{ "scale-y": de() }],
- "scale-z": [{ "scale-z": de() }],
+ rotate: [{ rotate: de() }],
+ "rotate-x": [{ "rotate-x": de() }],
+ "rotate-y": [{ "rotate-y": de() }],
+ "rotate-z": [{ "rotate-z": de() }],
+ scale: [{ scale: fe() }],
+ "scale-x": [{ "scale-x": fe() }],
+ "scale-y": [{ "scale-y": fe() }],
+ "scale-z": [{ "scale-z": fe() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: fe() }],
- "skew-x": [{ "skew-x": fe() }],
- "skew-y": [{ "skew-y": fe() }],
+ skew: [{ skew: pe() }],
+ "skew-x": [{ "skew-x": pe() }],
+ "skew-y": [{ "skew-y": pe() }],
transform: [{ transform: [
- KP,
- VP,
+ GP,
+ BP,
"",
"none",
"gpu",
@@ -35382,19 +35389,19 @@ var Bce = (e, t) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: pe() }],
- "translate-x": [{ "translate-x": pe() }],
- "translate-y": [{ "translate-y": pe() }],
- "translate-z": [{ "translate-z": pe() }],
+ translate: [{ translate: me() }],
+ "translate-x": [{ "translate-x": me() }],
+ "translate-y": [{ "translate-y": me() }],
+ "translate-z": [{ "translate-z": me() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- IP,
- KP,
- VP
+ FP,
+ GP,
+ BP
] }],
- accent: [{ accent: P() }],
+ accent: [{ accent: N() }],
appearance: [{ appearance: ["none", "auto"] }],
- "caret-color": [{ caret: P() }],
+ "caret-color": [{ caret: N() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
@@ -35440,8 +35447,8 @@ var Bce = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- KP,
- VP
+ GP,
+ BP
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -35452,8 +35459,8 @@ var Bce = (e, t) => {
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
- "scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
- "scrollbar-track-color": [{ "scrollbar-track": P() }],
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
+ "scrollbar-track-color": [{ "scrollbar-track": N() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
@@ -35527,17 +35534,17 @@ var Bce = (e, t) => {
"scroll",
"contents",
"transform",
- KP,
- VP
+ GP,
+ BP
] }],
- fill: [{ fill: ["none", ...P()] }],
+ fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
- FP,
- qP,
- HP,
- UP
+ PP,
+ KP,
+ VP,
+ HP
] }],
- stroke: [{ stroke: ["none", ...P()] }],
+ stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
@@ -35793,16 +35800,16 @@ var Bce = (e, t) => {
"selection"
]
};
-}, Ole = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (oF(e, "cacheSize", t), oF(e, "prefix", n), oF(e, "experimentalParseClassName", r), sF(e.theme, a.theme), sF(e.classGroups, a.classGroups), sF(e.conflictingClassGroups, a.conflictingClassGroups), sF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), oF(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), oF(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), cF(e.theme, i.theme), cF(e.classGroups, i.classGroups), cF(e.conflictingClassGroups, i.conflictingClassGroups), cF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), lF(e, i, "postfixLookupClassGroups"), lF(e, i, "orderSensitiveModifiers"), e), oF = (e, t, n) => {
+}, Ale = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (aF(e, "cacheSize", t), aF(e, "prefix", n), aF(e, "experimentalParseClassName", r), oF(e.theme, a.theme), oF(e.classGroups, a.classGroups), oF(e.conflictingClassGroups, a.conflictingClassGroups), oF(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), aF(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), aF(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), sF(e.theme, i.theme), sF(e.classGroups, i.classGroups), sF(e.conflictingClassGroups, i.conflictingClassGroups), sF(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), cF(e, i, "postfixLookupClassGroups"), cF(e, i, "orderSensitiveModifiers"), e), aF = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, oF = (e, t) => {
+ if (t) for (let n in t) aF(e, n, t[n]);
}, sF = (e, t) => {
- if (t) for (let n in t) oF(e, n, t[n]);
-}, cF = (e, t) => {
- if (t) for (let n in t) lF(e, t, n);
-}, lF = (e, t, n) => {
+ if (t) for (let n in t) cF(e, t, n);
+}, cF = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, kle = (e, ...t) => typeof e == "function" ? AP(aF, e, ...t) : AP(() => Ole(aF(), e), ...t), Ale = [
+}, jle = (e, ...t) => typeof e == "function" ? kP(iF, e, ...t) : kP(() => Ale(iF(), e), ...t), Mle = [
"large-title",
"display-1",
"display-2",
@@ -35816,18 +35823,18 @@ var Bce = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], jle = [
+], Nle = [
"regular",
"medium",
"semibold",
"bold"
-], uF = kle({ extend: { classGroups: { "font-size": [{ text: Ale.flatMap((e) => jle.map((t) => `${e}-${t}`)) }] } } });
-function dF(e) {
+], lF = jle({ extend: { classGroups: { "font-size": [{ text: Mle.flatMap((e) => Nle.map((t) => `${e}-${t}`)) }] } } });
+function uF(e) {
return e;
}
//#endregion
//#region src/react/components/pill-tab.tsx
-var Mle = typeof window < "u" ? F.useLayoutEffect : F.useEffect, fF = dF({
+var Ple = typeof window < "u" ? P.useLayoutEffect : P.useEffect, dF = uF({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -35849,9 +35856,9 @@ var Mle = typeof window < "u" ? F.useLayoutEffect : F.useEffect, fF = dF({
gray: "text-text-primary"
}
});
-function pF({ children: e, className: t, ref: n, container: r, ...i }) {
- let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Mle(() => {
+function fF({ children: e, className: t, ref: n, container: r, ...i }) {
+ let a = (0, P.useRef)(null), [o, s] = (0, P.useState)(null);
+ Ple(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -35884,10 +35891,10 @@ function pF({ children: e, className: t, ref: n, container: r, ...i }) {
}, [i.dir, r]);
let c = (e) => {
a.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
- }, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
+ }, l = o && /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: uF("pointer-events-none absolute left-0 top-0", fF.radius[o.variant], fF.thumb[o.variant]),
+ className: lF("pointer-events-none absolute left-0 top-0", dF.radius[o.variant], dF.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -35895,78 +35902,78 @@ function pF({ children: e, className: t, ref: n, container: r, ...i }) {
"--pill-height": `${o.height}px`
}
});
- return r === void 0 ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ return r === void 0 ? /* @__PURE__ */ (0, F.jsxs)("div", {
ref: c,
role: "group",
- className: uF("relative inline-flex items-center gap-1", t),
+ className: lF("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
- }) : r ? (0, It.createPortal)(l, r) : null;
+ }) : r ? (0, Lt.createPortal)(l, r) : null;
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var mF = null, hF = null, gF = /* @__PURE__ */ new Set();
-function Nle(e) {
- return gF.add(e), () => {
- gF.delete(e);
+var pF = null, mF = null, hF = /* @__PURE__ */ new Set();
+function Fle(e) {
+ return hF.add(e), () => {
+ hF.delete(e);
};
}
-function Ple() {
- for (let e of [...gF]) e();
+function Ile() {
+ for (let e of [...hF]) e();
}
-var Fle = { render(e) {
- hF = e, (0, It.flushSync)(Ple);
+var Lle = { render(e) {
+ mF = e, (0, Lt.flushSync)(Ile);
} };
-function Ile(e) {
- return mF = e, hF = null, Fle;
+function Rle(e) {
+ return pF = e, mF = null, Lle;
}
-function Lle() {
- let e = (0, F.useSyncExternalStore)(Nle, () => hF);
- return mF && e ? /* @__PURE__ */ (0, I.jsx)(Rle, {
- host: mF,
+function zle() {
+ let e = (0, P.useSyncExternalStore)(Fle, () => mF);
+ return pF && e ? /* @__PURE__ */ (0, F.jsx)(Ble, {
+ host: pF,
props: e
}) : null;
}
-function Rle({ host: e, props: t }) {
- let n = hP(t);
- return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(zle, {
+function Ble({ host: e, props: t }) {
+ let n = mP(t);
+ return n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(Vle, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Ble, {
+ n.crumb ? /* @__PURE__ */ (0, F.jsx)(Hle, {
host: e,
label: n.crumb
}) : null,
- /* @__PURE__ */ (0, I.jsx)("h2", {
+ /* @__PURE__ */ (0, F.jsx)("h2", {
"data-manage-title": "",
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Vle, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, F.jsx)(Ule, {
host: e,
lede: n.lede
})
] }) : null;
}
-function zle({ host: e, pressed: t, menu: n }) {
- let r = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
+function Vle({ host: e, pressed: t, menu: n }) {
+ let r = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
if (!e || !t) return;
let n = t.offsetLeft, i = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : i > e.scrollLeft + e.clientWidth && (e.scrollLeft = i - e.clientWidth);
- }, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
+ }, [t, n]), /* @__PURE__ */ (0, F.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(pF, {
+ children: /* @__PURE__ */ (0, F.jsx)(fF, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
children: n.map(([n, r, i]) => {
let a = n === t;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-manage": n,
"aria-pressed": a,
@@ -35974,36 +35981,36 @@ function zle({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(yP, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, F.jsx)(vP, { name: i }), /* @__PURE__ */ (0, F.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Ble({ host: e, label: t }) {
- return /* @__PURE__ */ (0, I.jsx)("nav", {
+function Hle({ host: e, label: t }) {
+ return /* @__PURE__ */ (0, F.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
- children: /* @__PURE__ */ (0, I.jsxs)("ol", { children: [/* @__PURE__ */ (0, I.jsxs)("li", { children: [/* @__PURE__ */ (0, I.jsx)("a", {
+ children: /* @__PURE__ */ (0, F.jsxs)("ol", { children: [/* @__PURE__ */ (0, F.jsxs)("li", { children: [/* @__PURE__ */ (0, F.jsx)("a", {
href: "/data-cleanup",
onClick: (t) => {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, F.jsx)("li", {
"aria-current": "true",
- children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
+ children: /* @__PURE__ */ (0, F.jsx)("span", { children: t })
})] })
});
}
-function Vle({ host: e, lede: t }) {
- return /* @__PURE__ */ (0, I.jsx)("p", {
+function Ule({ host: e, lede: t }) {
+ return /* @__PURE__ */ (0, F.jsx)("p", {
className: "mono",
"data-manage-lede": "",
- children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: t.kind === "skeleton" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: vP }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Hle, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: _P }
+ }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Wle, { text: t.text }), t.total ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -36013,40 +36020,40 @@ function Vle({ host: e, lede: t }) {
}) : null] })
});
}
-function Hle({ text: e }) {
- let t = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
- Es(t.current, e);
- }, [e]), /* @__PURE__ */ (0, I.jsx)("span", {
+function Wle({ text: e }) {
+ let t = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
+ Os(t.current, e);
+ }, [e]), /* @__PURE__ */ (0, F.jsx)("span", {
ref: t,
"data-lede-text": ""
});
}
//#endregion
//#region src/core/text-lang.ts
-var Ule = /[぀-ヿㇰ-ㇿヲ-゚]/, Wle = /[㐀-鿿豈-﫿]/, Gle = /[A-Za-z]/;
-function _F(e) {
+var Gle = /[぀-ヿㇰ-ㇿヲ-゚]/, Kle = /[㐀-鿿豈-﫿]/, qle = /[A-Za-z]/;
+function gF(e) {
let t = String(e ?? "");
- if (Ule.test(t)) return "ja";
- if (!Wle.test(t) && Gle.test(t)) return "en";
+ if (Gle.test(t)) return "ja";
+ if (!Kle.test(t) && qle.test(t)) return "en";
}
-var Kle = (e) => {
- let t = _F(e);
+var Jle = (e) => {
+ let t = gF(e);
return t ? ` lang="${t}"` : "";
-}, qle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Jle = (e, t = e?.name) => {
+}, Yle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Xle = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(qle, "") : n;
-}, Yle = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Xle = (e) => {
+ return e?.is_jav ? n.replace(Yle, "") : n;
+}, Zle = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Qle = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Yle) || t[0] || "";
+ return t.find(Zle) || t[0] || "";
};
-function vF(e, t = e?.name) {
- let n = Jle(e, t), r = String(e?.code || "").trim().toUpperCase();
+function _F(e, t = e?.name) {
+ let n = Xle(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Xle(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Qle(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -36057,27 +36064,27 @@ function vF(e, t = e?.name) {
badges: f
};
}
-var yF = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = vF(e, t);
+var vF = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = _F(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function bF(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = vF(e, t);
- if (!n) return B(r);
- let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${B(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Kle(r)}>${B(r)}</span>` : ""}`;
+function yF(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = _F(e, t);
+ if (!n) return z(r);
+ let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Jle(r)}>${z(r)}</span>` : ""}`;
}
//#endregion
//#region src/react/activity/tasks.ts
-var xF = "/api/tasks", SF = ["tasks"], Zle = (e, t) => V(`${xF}?${new URLSearchParams({
+var bF = "/api/tasks", xF = ["tasks"], $le = (e, t) => B(`${bF}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Qle(...e) {
+function eue(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -36085,26 +36092,26 @@ function Qle(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var $le = 2e3, eue = 1e4, CF = (e) => e?.running?.length ? $le : eue, wF = (e) => V(xF, e);
-async function tue(e) {
- await U.fetchQuery({
- queryKey: SF,
- queryFn: () => wF(e)
+var tue = 2e3, nue = 1e4, SF = (e) => e?.running?.length ? tue : nue, CF = (e) => B(bF, e);
+async function rue(e) {
+ await H.fetchQuery({
+ queryKey: xF,
+ queryFn: () => CF(e)
});
}
-var nue = {
+var iue = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, rue = {
+}, aue = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, iue = (e) => rue[e] || e, TF = {
+}, oue = (e) => aue[e] || e, wF = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -36181,7 +36188,7 @@ var nue = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, aue = [
+}, sue = [
"gone_count",
"unclear_count",
"source_failed",
@@ -36203,14 +36210,14 @@ var nue = {
"paused_count",
"miss",
"incomplete"
-], oue = ["face_match_unavailable"], EF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || oue.some((t) => e.result_summary?.[t] === !0) || aue.some((t) => Number(e.result_summary?.[t]) > 0);
-function sue(e) {
+], cue = ["face_match_unavailable"], TF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || cue.some((t) => e.result_summary?.[t] === !0) || sue.some((t) => Number(e.result_summary?.[t]) > 0);
+function lue(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var DF = /* @__PURE__ */ new Set(["library-processing"]);
-function cue(e, t = !0) {
- if (!EF(e) && e.status !== "failed" || DF.has(e.task_key) && !t) return null;
+var EF = /* @__PURE__ */ new Set(["library-processing"]);
+function uue(e, t = !0) {
+ if (!TF(e) && e.status !== "failed" || EF.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -36228,12 +36235,12 @@ function cue(e, t = !0) {
label: n[1]
} : null;
}
-function lue(e) {
+function due(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) DF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) EF.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function uue(e) {
+function fue(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -36242,7 +36249,7 @@ function uue(e) {
}
return t;
}
-function due(e, t) {
+function pue(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -36264,12 +36271,12 @@ function due(e, t) {
}
return n;
}
-var fue = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !EF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), OF = (e) => e.status === "pending" || e.status === "running";
-function pue(e) {
+var mue = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !TF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), DF = (e) => e.status === "pending" || e.status === "running";
+function hue(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, jF(e.error) || BF(o) || (OF(e) && i > 0 ? `${AF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, AF(e.error) || zF(o) || (DF(e) && i > 0 ? `${kF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function kF(e) {
+function OF(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -36278,19 +36285,19 @@ function kF(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function AF(e, t) {
+function kF(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function mue(e) {
+function gue(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function jF(e) {
- let t = mue(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
- return n ? en(n[1]) : t;
+function AF(e) {
+ let t = gue(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+ return n ? tn(n[1]) : t;
}
-var MF = {
+var jF = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -36307,11 +36314,11 @@ var MF = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, NF = {
+}, MF = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, PF = {
+}, NF = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -36322,8 +36329,8 @@ var MF = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, FF = (e) => MF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${NF[t.toLowerCase()]} 资料页` : `已保存来自 ${NF[t.toLowerCase()]} 的资料`);
-function IF(e) {
+}, PF = (e) => jF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${MF[t.toLowerCase()]} 资料页` : `已保存来自 ${MF[t.toLowerCase()]} 的资料`);
+function FF(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -36333,7 +36340,7 @@ function IF(e) {
minute: "2-digit"
});
}
-var LF = /* @__PURE__ */ new Set([
+var IF = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -36342,14 +36349,14 @@ var LF = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function RF(e) {
- let t = zF(e);
+function LF(e) {
+ let t = RF(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function zF(e) {
- return Object.entries(e || {}).filter(([e, t]) => !LF.has(e) && (e in TF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? jF(String(t)) : e === "outcome" || e === "result" ? FF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${TF[e]} ${kn(Number(t))}` : e === "operation" ? `操作:${PF[String(t)] || "批量操作"}` : `${TF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function RF(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !IF.has(e) && (e in wF || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? AF(String(t)) : e === "outcome" || e === "result" ? PF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${wF[e]} ${jn(Number(t))}` : e === "operation" ? `操作:${NF[String(t)] || "批量操作"}` : `${wF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var BF = (e) => RF(e).join(" · "), VF = dF({
+var zF = (e) => LF(e).join(" · "), BF = uF({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -36370,37 +36377,37 @@ var BF = (e) => RF(e).join(" · "), VF = dF({
small: "size-4 shrink-0"
}
});
-function HF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)("button", {
+function VF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
ref: i,
type: r,
- className: uF(VF.base, VF.size[t], n),
+ className: lF(BF.base, BF.size[t], n),
...a,
- children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: VF.icon[t],
+ children: /* @__PURE__ */ (0, F.jsx)(e, {
+ className: BF.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/glass-drift.tsx
-function UF() {
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function HF() {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-drift": "b",
- children: /* @__PURE__ */ (0, I.jsx)("span", {})
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {})
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-drift": "a",
- children: /* @__PURE__ */ (0, I.jsx)("span", {})
+ children: /* @__PURE__ */ (0, F.jsx)("span", {})
})]
});
}
//#endregion
//#region src/react/components/use-stuck.ts
-function WF(e) {
- (0, F.useEffect)(() => {
+function UF(e) {
+ (0, P.useEffect)(() => {
let t = e.current;
if (!t) return;
let n = 0, r = () => {
@@ -36417,14 +36424,14 @@ function WF(e) {
}
//#endregion
//#region src/react/components/use-horizontal-scroller.ts
-function GF(e, t = !0) {
- let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
+function WF(e, t = !0) {
+ let [n, r] = (0, P.useState)(null), i = (0, P.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
if (!n || !t) return;
n.dataset.horizontalScroll = "";
- let e = oc(n);
+ let e = cc(n);
return () => {
e.destroy(), delete n.dataset.horizontalScroll, delete n.dataset.overflowLeft, delete n.dataset.overflowRight;
};
@@ -36432,17 +36439,17 @@ function GF(e, t = !0) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-var KF = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var GF = ({ className: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: e,
- dangerouslySetInnerHTML: { __html: vs("正在处理") }
+ dangerouslySetInnerHTML: { __html: bs("正在处理") }
});
-function qF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(HF, {
+function KF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(VF, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? KF : t,
+ icon: n && r === "spinner" ? GF : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -36452,9 +36459,9 @@ function qF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function JF({ title: e, children: t }) {
- let n = (0, F.useRef)(null);
- return WF(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+function qF({ title: e, children: t }) {
+ let n = (0, P.useRef)(null);
+ return UF(n), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36462,63 +36469,63 @@ function JF({ title: e, children: t }) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",
children: [
- /* @__PURE__ */ (0, I.jsx)("h3", {
+ /* @__PURE__ */ (0, F.jsx)("h3", {
className: "mr-1 text-body-medium",
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(UF, {})
+ /* @__PURE__ */ (0, F.jsx)(HF, {})
]
});
}
-function YF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = GF(), p = GF(u);
- return WF(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function JF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, P.useRef)(null), f = WF(), p = WF(u);
+ return UF(d), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: uF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: lF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
- n === null ? null : /* @__PURE__ */ (0, I.jsx)("div", {
+ n === null ? null : /* @__PURE__ */ (0, F.jsx)("div", {
ref: f,
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: uF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: lF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: uF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: lF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(UF, {})
+ /* @__PURE__ */ (0, F.jsx)(HF, {})
]
});
}
-var XF = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function ZF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
- return /* @__PURE__ */ (0, I.jsx)("button", {
+var YF = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function XF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: uF(XF, r),
+ className: lF(YF, r),
onClick: n,
children: e
});
}
-var QF = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function $F({ children: e, onPress: t, busy: n = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)("button", {
+var ZF = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function QF({ children: e, onPress: t, busy: n = !1 }) {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: QF,
+ className: ZF,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36529,13 +36536,13 @@ function $F({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-var eI = (e, t) => [
+var $F = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function tI(e, t, n) {
+function eI(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -36559,27 +36566,27 @@ function tI(e, t, n) {
h: e.offsetHeight
};
}
-function nI(e, t, n, r, { axis: i = "x" } = {}) {
- let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
+function tI(e, t, n, r, { axis: i = "x" } = {}) {
+ let a = (0, P.useRef)(null), o = (0, P.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? tI(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? eI(u, l, i) : null;
if (!d || !d.w || !d.h) {
- Sc(s), s.hidden = !0, a.current = null;
+ wc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && eI(f, d)) && bc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && $F(f, d)) && Sc(s, o ? f : null, d, i);
}, [
e,
t,
n,
i
- ]), s = (0, F.useRef)(!1);
- return (0, F.useLayoutEffect)(() => {
+ ]), s = (0, P.useRef)(!1);
+ return (0, P.useLayoutEffect)(() => {
let t = e.current;
t && !s.current && (t.hidden = !0), o(null, s.current), s.current = !0;
- }, [o, r]), (0, F.useEffect)(() => {
+ }, [o, r]), (0, P.useEffect)(() => {
let r = e.current?.parentElement, s = 0, c = () => {
s ||= requestAnimationFrame(() => {
s = 0, o(null, !1);
@@ -36590,8 +36597,8 @@ function nI(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? tI(o, r, i) : null, l = a.current;
- (!s || !l || !eI(s, l)) && c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? eI(o, r, i) : null, l = a.current;
+ (!s || !l || !$F(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36610,20 +36617,20 @@ function nI(e, t, n, r, { axis: i = "x" } = {}) {
o,
r
]), {
- hover: (0, F.useCallback)((e) => {
+ hover: (0, P.useCallback)((e) => {
e.pointerType !== "touch" && o(e.currentTarget, !0);
}, [o]),
- leave: (0, F.useCallback)((e) => {
+ leave: (0, P.useCallback)((e) => {
e.pointerType !== "touch" && o(null, !0);
}, [o]),
- sync: (0, F.useCallback)(() => {
- Sc(e.current), o(null, !1);
+ sync: (0, P.useCallback)(() => {
+ wc(e.current), o(null, !1);
}, [e, o])
};
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var rI = dF({
+var nI = uF({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -36679,43 +36686,43 @@ var rI = dF({
}
});
function q({ 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, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
ref: c,
type: s,
- className: uF(rI.base, rI.size[t], rI.variant[e], n && rI.iconOnlySize[t], o),
+ className: lF(nI.base, nI.size[t], nI.variant[e], n && nI.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: rI.icon[t],
+ r ? /* @__PURE__ */ (0, F.jsx)(r, {
+ className: nI.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: rI.label[t],
+ !n && a != null && /* @__PURE__ */ (0, F.jsx)("span", {
+ className: nI.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: rI.icon[t],
+ !n && i ? /* @__PURE__ */ (0, F.jsx)(i, {
+ className: nI.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function iI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
- return /* @__PURE__ */ (0, I.jsxs)("a", {
+function rI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+ return /* @__PURE__ */ (0, F.jsxs)("a", {
ref: s,
- className: uF(rI.base, rI.size[t], rI.variant[e], n && rI.iconOnlySize[t], o),
+ className: lF(nI.base, nI.size[t], nI.variant[e], n && nI.iconOnlySize[t], o),
...c,
children: [
- r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: rI.icon[t],
+ r ? /* @__PURE__ */ (0, F.jsx)(r, {
+ className: nI.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: rI.label[t],
+ !n && a != null && /* @__PURE__ */ (0, F.jsx)("span", {
+ className: nI.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: rI.icon[t],
+ !n && i ? /* @__PURE__ */ (0, F.jsx)(i, {
+ className: nI.icon[t],
"aria-hidden": !0
}) : null
]
@@ -36723,14 +36730,14 @@ function iI({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var aI = Symbol("default");
-function oI({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
+var iI = Symbol("default");
+function aI({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ P.createElement(n.Provider, { value: r }, t);
return t;
}
-function sI(e) {
+function oI(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, F.useMemo)(() => {
+ return (0, P.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -36762,11 +36769,11 @@ function sI(e) {
c
]);
}
-function cI(e, t) {
- let n = (0, F.useContext)(e);
+function sI(e, t) {
+ let n = (0, P.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || aI;
+ let e = t || iI;
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}.`);
@@ -36775,8 +36782,8 @@ function cI(e, t) {
}
return n;
}
-function lI(e, t, n) {
- let { ref: r, ...i } = cI(n, e.slot) || {}, a = Wx((0, F.useMemo)(() => Fx(t, r), [t, r])), o = K(i, e);
+function cI(e, t, n) {
+ let { ref: r, ...i } = sI(n, e.slot) || {}, a = Hx((0, P.useMemo)(() => Nx(t, r), [t, r])), o = K(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,
@@ -36794,56 +36801,56 @@ function lI(e, t, n) {
...e.style
}), [o, a];
}
-function uI(e = !0) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
+function lI(e = !0) {
+ let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return Db(() => {
+ return Ab(() => {
r.current || n(!1);
}, []), [i, t];
}
-function dI(e) {
+function uI(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function fI(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => Fx(n, a), [n, a]);
- Db(() => {}, [e, r]);
+function dI(e, t, n) {
+ let { render: r, ...i } = t, a = (0, P.useRef)(null), o = (0, P.useMemo)(() => Nx(n, a), [n, a]);
+ Ab(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ P.createElement(e, s);
}
-var pI = {}, mI = new Proxy({}, { get(e, t) {
+var fI = {}, pI = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = pI[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(fI.bind(null, t)), pI[t] = n), n;
-} }), hI = /*#__PURE__*/ (0, F.createContext)(null), gI = /*#__PURE__*/ (0, F.createContext)(null), _I = /*#__PURE__*/ (0, F.createContext)(null), vI = {
+ let n = fI[t];
+ return n || (n = /*#__PURE__*/ (0, P.forwardRef)(dI.bind(null, t)), fI[t] = n), n;
+} }), mI = /*#__PURE__*/ (0, P.createContext)(null), hI = /*#__PURE__*/ (0, P.createContext)(null), gI = /*#__PURE__*/ (0, P.createContext)(null), _I = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return yI(e, null, t);
+ return vI(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return yI(e, t, n);
+ return vI(e, t, n);
}
};
-function yI(e, t, n) {
- return ib({
+function vI(e, t, n) {
+ return ob({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ F.createElement(F.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ P.createElement(P.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ F.createElement(F.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ P.createElement(P.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, bI(e, t, n));
+ }), r, yI(e, t, n));
}
});
}
-function bI(e, t, n) {
+function yI(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);
@@ -36857,30 +36864,30 @@ function bI(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, F.isValidElement)(t) && s.push(/*#__PURE__*/ (0, F.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, P.isValidElement)(t) && s.push(/*#__PURE__*/ (0, P.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var xI = /*#__PURE__*/ (0, F.createContext)(vI);
-function SI(e) {
- return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
+var bI = /*#__PURE__*/ (0, P.createContext)(_I);
+function xI(e) {
+ return (0, P.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var CI = /*#__PURE__*/ (0, F.createContext)({}), wI = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, CI);
- let { elementType: n = "label", ...r } = e, i = mI[n];
- return /*#__PURE__*/ F.createElement(i, {
+var SI = /*#__PURE__*/ (0, P.createContext)({}), CI = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, SI);
+ let { elementType: n = "label", ...r } = e, i = pI[n];
+ return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), TI = /*#__PURE__*/ (0, F.createContext)(null), EI = /*#__PURE__*/ (0, F.createContext)({}), DI = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, EI);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = _ie(e, t);
- i = kI(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = LT(e), { hoverProps: l, isHovered: u } = VT({
+}), wI = /*#__PURE__*/ (0, P.createContext)(null), TI = /*#__PURE__*/ (0, P.createContext)({}), EI = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, TI);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = bie(e, t);
+ i = OI(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = IT(e), { hoverProps: l, isHovered: u } = BT({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -36890,24 +36897,24 @@ var CI = /*#__PURE__*/ (0, F.createContext)({}), wI = /*#__PURE__*/ Yx(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = sI({
+ }, f = oI({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Nx(i.id), m = Nx(), h = i["aria-labelledby"];
+ }), p = jx(i.id), m = jx(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, F.useRef)(r);
- (0, F.useEffect)(() => {
+ let g = (0, P.useRef)(r);
+ (0, P.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && OC(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && AC(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = LS(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(mI.button, {
+ let _ = FS(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ P.createElement(pI.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -36921,62 +36928,62 @@ var CI = /*#__PURE__*/ (0, F.createContext)({}), wI = /*#__PURE__*/ Yx(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(TI.Provider, { value: { id: m } }, f.children));
-}), OI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function kI(e, t) {
+ }, /*#__PURE__*/ P.createElement(wI.Provider, { value: { id: m } }, f.children));
+}), DI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function OI(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !OI.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !DI.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 AI = /*#__PURE__*/ (0, F.createContext)({}), jI = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, AI);
- let { children: n, level: r = 3, className: i, ...a } = e, o = mI[`h${r}`];
- return /*#__PURE__*/ F.createElement(o, {
+var kI = /*#__PURE__*/ (0, P.createContext)({}), AI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, kI);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = pI[`h${r}`];
+ return /*#__PURE__*/ P.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), MI = /*#__PURE__*/ (0, F.createContext)({}), NI = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, MI);
- let { elementType: n = "span", ...r } = e, i = mI[n];
- return /*#__PURE__*/ F.createElement(i, {
+}), jI = /*#__PURE__*/ (0, P.createContext)({}), MI = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, jI);
+ let { elementType: n = "span", ...r } = e, i = pI[n];
+ return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), PI = /*#__PURE__*/ (0, F.createContext)(null), FI = /*#__PURE__*/ (0, F.createContext)(null), II = /*#__PURE__*/ (0, F.createContext)(null), LI = /*#__PURE__*/ (0, F.createContext)(null), hue = /*#__PURE__*/ (0, F.createContext)(null), RI = /*#__PURE__*/ (0, F.createContext)(null);
-function gue(e, t) {
- let { validationBehavior: n } = cI(FI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(hue), a = Wx((0, F.useMemo)(() => Fx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...dI(e),
+}), NI = /*#__PURE__*/ (0, P.createContext)(null), PI = /*#__PURE__*/ (0, P.createContext)(null), FI = /*#__PURE__*/ (0, P.createContext)(null), II = /*#__PURE__*/ (0, P.createContext)(null), _ue = /*#__PURE__*/ (0, P.createContext)(null), LI = /*#__PURE__*/ (0, P.createContext)(null);
+function vue(e, t) {
+ let { validationBehavior: n } = sI(PI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useContext)(_ue), a = Hx((0, P.useMemo)(() => Nx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...uI(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Eie(o, i, a) : aw(o, uw(e), a), a];
+ return [i ? Oie(o, i, a) : iw(o, lw(e), a), a];
}
-var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var yue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = lI(r, t, II);
- let [i, a] = gue(e, n);
- return /*#__PURE__*/ F.createElement(RI.Provider, { value: {
+ [e, t] = cI(r, t, FI);
+ let [i, a] = vue(e, n);
+ return /*#__PURE__*/ P.createElement(LI.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(vue, {
+ } }, /*#__PURE__*/ P.createElement(bue, {
...e,
ref: t
}));
-}), vue = /*#__PURE__*/ (0, F.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, F.useContext)(RI), { isFocused: p, isFocusVisible: m, focusProps: h } = LT(), g = a || o, { hoverProps: _, isHovered: v } = VT({
+}), bue = /*#__PURE__*/ (0, P.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, P.useContext)(LI), { isFocused: p, isFocusVisible: m, focusProps: h } = IT(), g = a || o, { hoverProps: _, isHovered: v } = BT({
...e,
isDisabled: g
- }), y = sI({
+ }), y = oI({
...e,
defaultClassName: u,
values: {
@@ -36991,8 +36998,8 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = LS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(mI.label, {
+ }), b = FS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(pI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -37006,20 +37013,20 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(yw, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(vw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), zI = /*#__PURE__*/ (0, F.createContext)({}), BI = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, zI);
+}), RI = /*#__PURE__*/ (0, P.createContext)({}), zI = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, RI);
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 } = VT({
+ let { hoverProps: l, isHovered: u } = BT({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = LT({ within: !0 }), m = sI({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = IT({ within: !0 }), m = oI({
...e,
values: {
isHovered: u,
@@ -37030,7 +37037,7 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(pI.div, {
...K(c, p, l),
...m,
ref: t,
@@ -37043,18 +37050,18 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), VI = /*#__PURE__*/ (0, F.createContext)({}), yue = (e) => {
+}), BI = /*#__PURE__*/ (0, P.createContext)({}), xue = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, bue = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, VI);
- let { hoverProps: n, isHovered: r } = VT({
+}, Sue = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, BI);
+ let { hoverProps: n, isHovered: r } = BT({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = LT({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = IT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = sI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = oI({
...e,
values: {
isHovered: r,
@@ -37065,8 +37072,8 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(mI.input, {
- ...K(yue(e), o, n),
+ return /*#__PURE__*/ P.createElement(pI.input, {
+ ...K(xue(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -37075,24 +37082,24 @@ var _ue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), xue = 0, Sue = 100, Cue = 1;
-function wue(e) {
- let { isDisabled: t = !1, minValue: n = xue, maxValue: r = Sue, numberFormatter: i, step: a = Cue, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Cue = 0, wue = 100, Tue = 1;
+function Eue(e) {
+ let { isDisabled: t = !1, minValue: n = Cue, maxValue: r = wue, numberFormatter: i, step: a = Tue, orientation: o = "horizontal" } = e, s = (0, P.useMemo)(() => {
let e = (r - n) / 10;
- return e = pw(e, 0, e + a, a), Math.max(e, a);
+ return e = fw(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => pw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, P.useCallback)((e) => e?.map((t, i) => fw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(UI(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(UI(e.defaultValue) ?? [n]), [
+ ]), l = (0, P.useMemo)(() => c(HI(e.value)), [e.value, c]), u = (0, P.useMemo)(() => c(HI(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = WI(e.value, e.defaultValue, e.onChange), f = WI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = lw(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = UI(e.value, e.defaultValue, e.onChange), f = UI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = cw(l, u, d), [h] = (0, P.useState)(p), [g, _] = (0, P.useState)(Array(p.length).fill(!1)), v = (0, P.useRef)(Array(p.length).fill(!0)), [y, b] = (0, P.useState)(void 0), x = (0, P.useRef)(p), S = (0, P.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -37115,17 +37122,17 @@ function wue(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = pw(n, r, i, a);
- let o = HI(x.current, e, n);
+ n = fw(n, r, i, a);
+ let o = VI(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = HI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = VI(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
- let M = (0, F.useRef)(null);
+ let M = (0, P.useRef)(null);
function ee(e = p) {
switch (typeof e == "number" && (e = [e]), e.length) {
case 0: return "";
@@ -37137,29 +37144,29 @@ function wue(e) {
}
}
}
- function N(e, t) {
- A(e, P(t));
+ function te(e, t) {
+ A(e, N(t));
}
- function te(e) {
+ function ne(e) {
return Math.round((e - n) / a) * a + n;
}
- function P(e) {
- return dw(te(e * (r - n) + n), n, r);
+ function N(e) {
+ return uw(ne(e * (r - n) + n), n, r);
}
- function ne(e, t = 1) {
+ function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, pw(p[e] + i, n, r, a));
+ A(e, fw(p[e] + i, n, r, a));
}
- function re(e, t = 1) {
+ function ie(e, t = 1) {
let i = Math.max(t, a);
- A(e, pw(p[e] - i, n, r, a));
+ A(e, fw(p[e] - i, n, r, a));
}
return {
values: p,
defaultValues: e.defaultValue === void 0 ? h : u,
getThumbValue: (e) => p[e],
setThumbValue: A,
- setThumbPercent: N,
+ setThumbPercent: te,
isThumbDragging: (e) => g[e],
setThumbDragging: j,
focusedThumb: y,
@@ -37170,43 +37177,43 @@ function wue(e) {
getFormattedValue: ee,
getThumbMinValue: E,
getThumbMaxValue: D,
- getPercentValue: P,
+ getPercentValue: N,
isThumbEditable: O,
setThumbEditable: k,
- incrementThumb: ne,
- decrementThumb: re,
+ incrementThumb: re,
+ decrementThumb: ie,
step: a,
pageSize: s,
orientation: o,
isDisabled: t
};
}
-function HI(e, t, n) {
+function VI(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function UI(e) {
+function HI(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function WI(e, t, n) {
+function UI(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Slider.mjs
-var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.createContext)(null), KI = /*#__PURE__*/ (0, F.createContext)(null), Eue = /*#__PURE__*/ (0, F.createContext)(null), Due = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, Tue);
- let n = (0, F.useRef)(null), r = jie(e.formatOptions), i = wue({
+var Due = /*#__PURE__*/ (0, P.createContext)(null), WI = /*#__PURE__*/ (0, P.createContext)(null), GI = /*#__PURE__*/ (0, P.createContext)(null), Oue = /*#__PURE__*/ (0, P.createContext)(null), kue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, Due);
+ let n = (0, P.useRef)(null), r = Nie(e.formatOptions), i = Eue({
...e,
numberFormatter: r
- }), [a, o] = uI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Mie({
+ }), [a, o] = lI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Pie({
...e,
label: o
- }, i, n), d = sI({
+ }, i, n), d = oI({
...e,
values: {
orientation: i.orientation,
@@ -37214,32 +37221,32 @@ var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = LS(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(oI, { values: [
- [GI, i],
- [KI, {
+ }), f = FS(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ P.createElement(aI, { values: [
+ [WI, i],
+ [GI, {
...c,
ref: n
}],
- [Eue, u],
- [CI, {
+ [Oue, u],
+ [SI, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(mI.div, {
+ ] }, /*#__PURE__*/ P.createElement(pI.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Oue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, KI);
- let n = (0, F.useContext)(GI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = VT({
+}), Aue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, GI);
+ let n = (0, P.useContext)(WI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = BT({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = sI({
+ }), l = oI({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -37249,7 +37256,7 @@ var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(pI.div, {
...K(o, s),
...l,
ref: t,
@@ -37257,14 +37264,14 @@ var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), kue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(GI), { ref: i } = cI(KI), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = uI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Nie({
+}), jue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, P.useContext)(WI), { ref: i } = sI(GI), { index: a = 0 } = e, o = (0, P.useRef)(null), s = n || o, [c, l] = lI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Fie({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = LT(), { hoverProps: v, isHovered: y } = VT(e), b = sI({
+ }, r), { focusProps: g, isFocusVisible: _ } = IT(), { hoverProps: v, isHovered: y } = BT(e), b = oI({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -37275,8 +37282,8 @@ var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = LS(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(mI.div, {
+ }), x = FS(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ P.createElement(pI.div, {
...K(x, u, v),
...b,
ref: t,
@@ -37289,15 +37296,15 @@ var Tue = /*#__PURE__*/ (0, F.createContext)(null), GI = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(yw, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(vw, null, /*#__PURE__*/ P.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(oI, { values: [[CI, {
+ })), /*#__PURE__*/ P.createElement(aI, { values: [[SI, {
...f,
ref: c
}]] }, b.children));
-}), qI = {};
-qI = {
+}), KI = {};
+KI = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -37305,8 +37312,8 @@ qI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var JI = {};
-JI = {
+var qI = {};
+qI = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -37314,8 +37321,8 @@ JI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var YI = {};
-YI = {
+var JI = {};
+JI = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -37323,8 +37330,8 @@ YI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var XI = {};
-XI = {
+var YI = {};
+YI = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -37332,8 +37339,8 @@ XI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var ZI = {};
-ZI = {
+var XI = {};
+XI = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -37341,8 +37348,8 @@ ZI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var QI = {};
-QI = {
+var ZI = {};
+ZI = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -37350,8 +37357,8 @@ QI = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var $I = {};
-$I = {
+var QI = {};
+QI = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -37359,8 +37366,8 @@ $I = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var eL = {};
-eL = {
+var $I = {};
+$I = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -37368,8 +37375,8 @@ eL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var tL = {};
-tL = {
+var eL = {};
+eL = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -37377,8 +37384,8 @@ tL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var nL = {};
-nL = {
+var tL = {};
+tL = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -37386,8 +37393,8 @@ nL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var rL = {};
-rL = {
+var nL = {};
+nL = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -37395,8 +37402,8 @@ rL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var iL = {};
-iL = {
+var rL = {};
+rL = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -37404,8 +37411,8 @@ iL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var aL = {};
-aL = {
+var iL = {};
+iL = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -37413,8 +37420,8 @@ aL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var oL = {};
-oL = {
+var aL = {};
+aL = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -37422,8 +37429,8 @@ oL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var sL = {};
-sL = {
+var oL = {};
+oL = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -37431,8 +37438,8 @@ sL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var cL = {};
-cL = {
+var sL = {};
+sL = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -37440,8 +37447,8 @@ cL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var lL = {};
-lL = {
+var cL = {};
+cL = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -37449,8 +37456,8 @@ lL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var uL = {};
-uL = {
+var lL = {};
+lL = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -37458,8 +37465,8 @@ uL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var dL = {};
-dL = {
+var uL = {};
+uL = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -37467,8 +37474,8 @@ dL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var fL = {};
-fL = {
+var dL = {};
+dL = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -37476,8 +37483,8 @@ fL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var pL = {};
-pL = {
+var fL = {};
+fL = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -37485,8 +37492,8 @@ pL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var mL = {};
-mL = {
+var pL = {};
+pL = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -37494,8 +37501,8 @@ mL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var hL = {};
-hL = {
+var mL = {};
+mL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37503,8 +37510,8 @@ hL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var gL = {};
-gL = {
+var hL = {};
+hL = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -37512,8 +37519,8 @@ gL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var _L = {};
-_L = {
+var gL = {};
+gL = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -37521,8 +37528,8 @@ _L = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var vL = {};
-vL = {
+var _L = {};
+_L = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -37530,8 +37537,8 @@ vL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var yL = {};
-yL = {
+var vL = {};
+vL = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -37539,8 +37546,8 @@ yL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var bL = {};
-bL = {
+var yL = {};
+yL = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -37548,8 +37555,8 @@ bL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var xL = {};
-xL = {
+var bL = {};
+bL = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -37557,8 +37564,8 @@ xL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var SL = {};
-SL = {
+var xL = {};
+xL = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -37566,8 +37573,8 @@ SL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var CL = {};
-CL = {
+var SL = {};
+SL = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -37575,8 +37582,8 @@ CL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var wL = {};
-wL = {
+var CL = {};
+CL = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -37584,8 +37591,8 @@ wL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var TL = {};
-TL = {
+var wL = {};
+wL = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -37593,8 +37600,8 @@ TL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var EL = {};
-EL = {
+var TL = {};
+TL = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -37602,52 +37609,52 @@ EL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var DL = {};
-DL = {
- "ar-AE": qI,
- "bg-BG": JI,
- "cs-CZ": YI,
- "da-DK": XI,
- "de-DE": ZI,
- "el-GR": QI,
- "en-US": $I,
- "es-ES": eL,
- "et-EE": tL,
- "fi-FI": nL,
- "fr-FR": rL,
- "he-IL": iL,
- "hr-HR": aL,
- "hu-HU": oL,
- "it-IT": sL,
- "ja-JP": cL,
- "ko-KR": lL,
- "lt-LT": uL,
- "lv-LV": dL,
- "nb-NO": fL,
- "nl-NL": pL,
- "pl-PL": mL,
- "pt-BR": hL,
- "pt-PT": gL,
- "ro-RO": _L,
- "ru-RU": vL,
- "sk-SK": yL,
- "sl-SI": bL,
- "sr-SP": xL,
- "sv-SE": SL,
- "tr-TR": CL,
- "uk-UA": wL,
- "zh-CN": TL,
- "zh-TW": EL
+var EL = {};
+EL = {
+ "ar-AE": KI,
+ "bg-BG": qI,
+ "cs-CZ": JI,
+ "da-DK": YI,
+ "de-DE": XI,
+ "el-GR": ZI,
+ "en-US": QI,
+ "es-ES": $I,
+ "et-EE": eL,
+ "fi-FI": tL,
+ "fr-FR": nL,
+ "he-IL": rL,
+ "hr-HR": iL,
+ "hu-HU": aL,
+ "it-IT": oL,
+ "ja-JP": sL,
+ "ko-KR": cL,
+ "lt-LT": lL,
+ "lv-LV": uL,
+ "nb-NO": dL,
+ "nl-NL": fL,
+ "pl-PL": pL,
+ "pt-BR": mL,
+ "pt-PT": hL,
+ "ro-RO": gL,
+ "ru-RU": _L,
+ "sk-SK": vL,
+ "sl-SI": yL,
+ "sr-SP": bL,
+ "sv-SE": xL,
+ "tr-TR": SL,
+ "uk-UA": CL,
+ "zh-CN": wL,
+ "zh-TW": TL
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var OL = /*#__PURE__*/ (0, F.createContext)({}), kL = /*#__PURE__*/ (0, F.createContext)(null), Aue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(kL);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
+var DL = /*#__PURE__*/ (0, P.createContext)({}), OL = /*#__PURE__*/ (0, P.createContext)(null), Mue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { render: n } = (0, P.useContext)(OL);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, n(e, t));
});
-function AL(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Aue, { target: e });
+function kL(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, P.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ P.createElement(Mue, { target: e });
}, [
t?.target,
r,
@@ -37655,7 +37662,7 @@ function AL(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function jL(e, t, n) {
+function AL(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;
@@ -37673,18 +37680,18 @@ function jL(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, P.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var ML = /*#__PURE__*/ (0, F.createContext)({}), jue = /*#__PURE__*/ (0, F.createContext)(null);
-function NL(e) {
- let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(jue.Provider, { value: t }, e.children);
+var jL = /*#__PURE__*/ (0, P.createContext)({}), Nue = /*#__PURE__*/ (0, P.createContext)(null);
+function ML(e) {
+ let t = (0, P.useRef)({});
+ return /*#__PURE__*/ P.createElement(Nue.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var PL = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), FL = /*#__PURE__*/ (0, F.createContext)({}), Mue = /*#__PURE__*/ rS(class extends Xy {
+var NL = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), PL = /*#__PURE__*/ (0, P.createContext)({}), Pue = /*#__PURE__*/ tS(class extends Qy {
static {
this.type = "separator";
}
@@ -37697,15 +37704,15 @@ var PL = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), FL = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = lI(e, t, FL);
+ [e, t] = cI(e, t, PL);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = mI[c], { separatorProps: u } = Bae({
+ let l = pI[c], { separatorProps: u } = Hae({
...s,
elementType: n,
orientation: r
- }), d = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(l, {
+ }), d = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(l, {
render: e.render,
...K(d, u),
style: i,
@@ -37716,13 +37723,13 @@ var PL = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), FL = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function IL(e) {
- let t = F.version.split(".");
+function FL(e) {
+ let t = P.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 LL = class {
+var IL = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -37766,23 +37773,23 @@ var LL = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, RL = class e extends Set {
+}, LL = 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 Nue(e, t) {
+function Fue(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function zL(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = lw((0, F.useMemo)(() => BL(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => BL(e.defaultSelectedKeys, new RL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function RL(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, P.useRef)(!1), [, s] = (0, P.useState)(!1), c = (0, P.useRef)(null), l = (0, P.useRef)(null), [, u] = (0, P.useState)(null), [d, f] = cw((0, P.useMemo)(() => zL(e.selectedKeys), [e.selectedKeys]), (0, P.useMemo)(() => zL(e.defaultSelectedKeys, new LL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, P.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, F.useRef)(i);
- return (0, F.useEffect)(() => {
+ let g = (0, P.useRef)(i);
+ return (0, P.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -37806,18 +37813,18 @@ function zL(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Nue(e, d)) && f(e);
+ (r || !Fue(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function BL(e, t) {
- return e ? e === "all" ? "all" : new RL(e) : t;
+function zL(e, t) {
+ return e ? e === "all" ? "all" : new LL(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var VL = class e {
+var BL = 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;
}
@@ -37873,7 +37880,7 @@ var VL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && TT(this.collection, n, e) < 0) && (e = n);
+ (!e || n && wT(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37881,7 +37888,7 @@ var VL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && TT(this.collection, n, e) > 0) && (e = n);
+ (!e || n && wT(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37900,10 +37907,10 @@ var VL = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new RL([t], t, t);
+ if (this.state.selectedKeys === "all") n = new LL([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new RL(e, r, t);
+ n = new LL(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);
}
@@ -37911,7 +37918,7 @@ var VL = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? TT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? wT(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);
@@ -37937,19 +37944,19 @@ var VL = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new RL(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new LL(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 RL([t], t, t) : new RL();
+ let n = this.canSelectItem(t) ? new LL([t], t, t) : new LL();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new RL();
+ let t = new LL();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -37961,7 +37968,7 @@ var VL = 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(ST(xT(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(xT(bT(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -37972,7 +37979,7 @@ var VL = 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 RL());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new LL());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -38013,13 +38020,13 @@ var VL = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Pue = class {
+}, Iue = class {
build(e, t) {
- return this.context = t, HL(() => this.iterateCollection(e));
+ return this.context = t, VL(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (F.isValidElement(t) && t.type === F.Fragment) yield* this.iterateCollection({
+ if (P.isValidElement(t) && t.type === P.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -38032,7 +38039,7 @@ var VL = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- F.Children.forEach(t, (t) => {
+ P.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -38060,9 +38067,9 @@ var VL = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (F.isValidElement(e.element) && e.element.type === F.Fragment) {
+ if (P.isValidElement(e.element) && e.element.type === P.Fragment) {
let i = [];
- F.Children.forEach(e.element.props.children, (e) => {
+ P.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -38081,7 +38088,7 @@ var VL = class e {
}
i = t.renderer(e.value);
}
- if (F.isValidElement(i)) {
+ if (P.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -38097,10 +38104,10 @@ var VL = class e {
...a,
key: l,
index: s,
- wrapper: Fue(e.wrapper, a.wrapper)
+ wrapper: Lue(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 <${UL(t.type)}> in <${UL(r?.type ?? "unknown parent type")}>. Only <${UL(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 <${HL(t.type)}> in <${HL(r?.type ?? "unknown parent type")}>. Only <${HL(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -38122,7 +38129,7 @@ var VL = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: HL(function* () {
+ childNodes: VL(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -38141,7 +38148,7 @@ var VL = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function HL(e) {
+function VL(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -38149,19 +38156,19 @@ function HL(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Fue(e, t) {
+function Lue(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function UL(e) {
+function HL(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function WL(e, t, n) {
- let r = (0, F.useMemo)(() => new Pue(), []), { children: i, items: a, collection: o } = e;
- return (0, F.useMemo)(() => o || t(r.build({
+function UL(e, t, n) {
+ let r = (0, P.useMemo)(() => new Iue(), []), { children: i, items: a, collection: o } = e;
+ return (0, P.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -38175,29 +38182,29 @@ function WL(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function GL(e) {
- let { filter: t, layoutDelegate: n } = e, r = zL(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = WL(e, (0, F.useCallback)((e) => t ? new LL(t(e)) : new LL(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new VL(a, r, { layoutDelegate: n }), [
+function WL(e) {
+ let { filter: t, layoutDelegate: n } = e, r = RL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = UL(e, (0, P.useCallback)((e) => t ? new IL(t(e)) : new IL(e), [t]), (0, P.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, P.useMemo)(() => new BL(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return KL(a, o), {
+ return GL(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Iue(e, t) {
- let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return KL(n, r), {
+function Rue(e, t) {
+ let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return GL(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function KL(e, t) {
- let n = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
+function GL(e, t) {
+ let n = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -38223,15 +38230,15 @@ function KL(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function qL(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = xS((e) => {
+function KL(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, P.useRef)(null), s = yS((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- Db(() => {
+ Ab(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: MC(t?.current),
+ root: PC(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -38247,42 +38254,42 @@ function qL(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var JL = /*#__PURE__*/ (0, F.createContext)(null), YL = /*#__PURE__*/ (0, F.createContext)(null), Lue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, JL);
- let n = (0, F.useContext)(YL);
- return n ? /*#__PURE__*/ F.createElement(XL, {
+var qL = /*#__PURE__*/ (0, P.createContext)(null), JL = /*#__PURE__*/ (0, P.createContext)(null), zue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, qL);
+ let n = (0, P.useContext)(JL);
+ return n ? /*#__PURE__*/ P.createElement(YL, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(eS, { content: /*#__PURE__*/ F.createElement(sS, e) }, (n) => /*#__PURE__*/ F.createElement(Rue, {
+ }) : /*#__PURE__*/ P.createElement(Qx, { content: /*#__PURE__*/ P.createElement(aS, e) }, (n) => /*#__PURE__*/ P.createElement(Bue, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Rue({ props: e, listBoxRef: t, collection: n }) {
+function Bue({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(xI), i = GL({
+ let { layoutDelegate: r } = (0, P.useContext)(bI), i = WL({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(XL, {
+ return /*#__PURE__*/ P.createElement(YL, {
state: i,
props: e,
listBoxRef: t
});
}
-function XL({ state: e, props: t, listBoxRef: n }) {
- [t, n] = lI(t, n, hI);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Iue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = kS(), { disabledBehavior: p, disabledKeys: m } = l, h = AT({
+function YL({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = cI(t, n, mI);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Rue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = DS(), { disabledBehavior: p, disabledKeys: m } = l, h = kT({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(xI), b = (0, F.useMemo)(() => t.keyboardDelegate || new Mw({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, P.useContext)(bI), b = (0, P.useMemo)(() => t.keyboardDelegate || new jw({
collection: c,
collator: h,
ref: n,
@@ -38303,14 +38310,14 @@ function XL({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = oae({
+ ]), { listBoxProps: x } = cae({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
isVirtualized: g
}, s, n);
- (0, F.useRef)(u), (0, F.useRef)(d), (0, F.useEffect)(() => {}, [u, d]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null);
+ (0, P.useRef)(u), (0, P.useRef)(d), (0, P.useEffect)(() => {}, [u, d]);
+ let S, C, w, T = !1, E = null, D = (0, P.useRef)(null);
if (u && r) {
S = r.useDraggableCollectionState({
collection: c,
@@ -38318,7 +38325,7 @@ function XL({ state: e, props: t, listBoxRef: n }) {
preview: r.renderDragPreview ? D : void 0
}), r.useDraggableCollection({}, S, n);
let e = r.DragPreview;
- E = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: D }, r.renderDragPreview) : null;
+ E = r.renderDragPreview ? /*#__PURE__*/ P.createElement(e, { ref: D }, r.renderDragPreview) : null;
}
if (d && r) {
C = r.useDroppableCollectionState({
@@ -38335,7 +38342,7 @@ function XL({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = LT(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = IT(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -38343,19 +38350,19 @@ function XL({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = sI({
+ }, ee = oI({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
values: M
- }), N = null;
- j && t.renderEmptyState && (N = /*#__PURE__*/ F.createElement("div", {
+ }), te = null;
+ j && t.renderEmptyState && (te = /*#__PURE__*/ P.createElement("div", {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = LS(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(sC, null, /*#__PURE__*/ F.createElement(mI.div, {
- ...K(te, ee, x, O, w?.collectionProps),
+ let ne = FS(t, { global: !0 });
+ return /*#__PURE__*/ P.createElement(aC, null, /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(ne, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -38365,60 +38372,60 @@ function XL({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [JL, t],
- [YL, s],
- [OL, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [qL, t],
+ [JL, s],
+ [DL, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [FL, { elementType: "div" }],
- [kL, { render: Vue }],
- [_I, {
+ [PL, { elementType: "div" }],
+ [OL, { render: Uue }],
+ [gI, {
name: "ListBoxSection",
- render: zue
+ render: Vue
}]
- ] }, /*#__PURE__*/ F.createElement(NL, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ P.createElement(ML, null, /*#__PURE__*/ P.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: jL(l, r, C),
- renderDropIndicator: AL(r, C)
- }))), N, E));
+ persistedKeys: AL(l, r, C),
+ renderDropIndicator: kL(r, C)
+ }))), te, E));
}
-function zue(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(YL), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(OL), { CollectionBranch: s } = (0, F.useContext)(xI), [c, l] = uI(), { headingProps: u, groupProps: d } = sae({
+function Vue(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, P.useContext)(JL), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(DL), { CollectionBranch: s } = (0, P.useContext)(bI), [c, l] = lI(), { headingProps: u, groupProps: d } = lae({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = sI({
+ }), f = oI({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = LS(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(mI.section, {
+ }), p = FS(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ P.createElement(pI.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(ML.Provider, { value: {
+ }, /*#__PURE__*/ P.createElement(jL.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ F.createElement(s, {
+ } }, /*#__PURE__*/ P.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: AL(a, o)
+ renderDropIndicator: kL(a, o)
})));
}
-var Bue = /*#__PURE__*/ rS($y, function(e, t, n) {
- let r = Wx(t), i = (0, F.useContext)(YL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(OL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = cae({
+var Hue = /*#__PURE__*/ tS(tb, function(e, t, n) {
+ let r = Hx(t), i = (0, P.useContext)(JL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(DL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = uae({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = VT({
+ }, i, r), { hoverProps: p, isHovered: m } = BT({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Ux(e), { focusProps: g } = zx(e), _ = null;
+ }), { keyboardProps: h } = Vx(e), { focusProps: g } = Lx(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -38429,7 +38436,7 @@ var Bue = /*#__PURE__*/ rS($y, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = sI({
+ let y = o && o.isDragging(n.key), b = oI({
...e,
id: void 0,
children: e.children,
@@ -38444,11 +38451,11 @@ var Bue = /*#__PURE__*/ rS($y, function(e, t, n) {
isDropTarget: v?.isDropTarget
}
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? mI.a : mI.div, S = LS(e, { global: !0 });
- return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
+ let x = e.href ? pI.a : pI.div, S = FS(e, { global: !0 });
+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ P.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
@@ -38461,29 +38468,29 @@ var Bue = /*#__PURE__*/ rS($y, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(oI, { values: [[MI, { slots: {
- [aI]: u,
+ }, /*#__PURE__*/ P.createElement(aI, { values: [[jI, { slots: {
+ [iI]: u,
label: u,
description: d
- } }], [PL, { isSelected: f.isSelected }]] }, b.children));
+ } }], [NL, { isSelected: f.isSelected }]] }, b.children));
});
-function Vue(e, t) {
- t = Wx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(OL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Uue, {
+function Uue(e, t) {
+ t = Hx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(DL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ P.createElement(Gue, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Hue(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = sI({
+function Wue(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = oI({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(pI.div, {
...n,
...a,
role: "option",
@@ -38491,10 +38498,10 @@ function Hue(e, t) {
"data-drop-target": r || void 0
}));
}
-var Uue = /*#__PURE__*/ (0, F.forwardRef)(Hue);
-rS(Qy, function(e, t, n) {
- let r = (0, F.useContext)(YL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- qL((0, F.useMemo)(() => ({
+var Gue = /*#__PURE__*/ (0, P.forwardRef)(Wue);
+tS(eb, function(e, t, n) {
+ let r = (0, P.useContext)(JL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
+ KL((0, P.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38504,21 +38511,21 @@ rS(Qy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = sI({
+ let l = oI({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement("div", {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: IL(!0)
- }, /*#__PURE__*/ F.createElement("div", {
+ inert: FL(!0)
+ }, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -38526,8 +38533,8 @@ rS(Qy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mI.div, {
- ...K(LS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(FS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -38535,21 +38542,21 @@ rS(Qy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Wue = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Kue = /*#__PURE__*/ (0, P.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function ZL(e) {
- let [t, n] = lw(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function XL(e) {
+ let [t, n] = cw(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, P.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, F.useCallback)(() => {
+ open: (0, P.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, F.useCallback)(() => {
+ close: (0, P.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, F.useCallback)(() => {
+ toggle: (0, P.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -38558,16 +38565,16 @@ function ZL(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function QL(e, t = !0, n) {
- let [r, i] = (0, F.useState)(!0), a = r && t;
- return Db(() => {
- if (!t && e.current) return kx(db(e.current, "opacity", "0"), db(e.current, "clip", "rect(0 0 0 0)"), db(e.current, "clip-path", "inset(50%)"), db(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), Db(() => {
+function ZL(e, t = !0, n) {
+ let [r, i] = (0, P.useState)(!0), a = r && t;
+ return Ab(() => {
+ if (!t && e.current) return Dx(pb(e.current, "opacity", "0"), pb(e.current, "clip", "rect(0 0 0 0)"), pb(e.current, "clip-path", "inset(50%)"), pb(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), Ab(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), eR(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), $L(e, a, n, (0, P.useCallback)(() => i(!1), [])), a;
}
-function $L(e, t, n) {
- let [r, i] = (0, F.useState)(t ? "open" : "closed");
+function QL(e, t, n) {
+ let [r, i] = (0, P.useState)(t ? "open" : "closed");
switch (r) {
case "open":
t || i("exiting");
@@ -38576,13 +38583,13 @@ function $L(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return eR(e, a, n, (0, F.useCallback)(() => {
+ return $L(e, a, n, (0, P.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function eR(e, t, n, r) {
- let i = (0, F.useRef)(null), a = xS(n);
- Db(() => {
+function $L(e, t, n, r) {
+ let i = (0, P.useRef)(null), a = yS(n);
+ Ab(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -38594,7 +38601,7 @@ function eR(e, t, n, r) {
return;
}
Promise.all([n, ...o.map((e) => e.finished)]).then(() => {
- (0, It.flushSync)(() => {
+ (0, Lt.flushSync)(() => {
r();
});
}).catch(() => {});
@@ -38608,9 +38615,9 @@ function eR(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, tR);
- let n = (0, F.useContext)(hR), r = ZL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = $L(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Xx(), { direction: c } = kS();
+var eR = /*#__PURE__*/ (0, P.createContext)(null), tR = /*#__PURE__*/ (0, P.createContext)(null), nR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, eR);
+ let n = (0, P.useContext)(mR), r = XL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = QL(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Jx(), { direction: c } = DS();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -38619,9 +38626,9 @@ var tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
+ })), /*#__PURE__*/ P.createElement(P.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Gue, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ P.createElement(que, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -38630,13 +38637,13 @@ var tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Gue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(nR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Pae({
+function que({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(tR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, P.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Iae({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = QL(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = sI({
+ }, e), g = i.popoverRef, _ = ZL(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = oI({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -38645,24 +38652,24 @@ function Gue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isEntering: v,
isExiting: t
}
- }), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- Db(() => {
+ }), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, P.useState)(i.trigger === "PreviewTrigger");
+ Ab(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
- }, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || _x() !== "pointer") && g.current && !gb(g.current) && Ox(g.current);
+ }, [g, b]), (0, P.useEffect)(() => {
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || hx() !== "pointer") && g.current && !yb(g.current) && Ex(g.current);
}, [
x,
g,
i.trigger
]);
- let C = (0, F.useMemo)(() => {
+ let C = (0, P.useMemo)(() => {
let e = y.children;
- for (let t of [tR, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [eR, ...r ?? []]) e = /*#__PURE__*/ P.createElement(t.Provider, { value: null }, e);
return e;
- }, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
+ }, [y.children, r]), [w, T] = (0, P.useState)(null), E = (0, P.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- Db(E, [E]), zE({
+ Ab(E, [E]), RE({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -38672,9 +38679,9 @@ function Gue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- Db(() => OD(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(mI.div, {
- ...K(LS(i, { global: !0 }), d),
+ Ab(() => DD(() => u(!0)), []);
+ let O = /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(FS(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -38689,40 +38696,40 @@ function Gue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(xD, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Wue.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ P.createElement(bD, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(Kue.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(xD, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(FT, {
+ } }, C), /*#__PURE__*/ P.createElement(bD, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ P.createElement(PT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(FT, {
+ }, O) : /*#__PURE__*/ P.createElement(PT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ F.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ P.createElement("div", {
"data-testid": "underlay",
...f,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ F.createElement("div", {
+ }), /*#__PURE__*/ P.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(nR.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ P.createElement(tR.Provider, { value: o }, O)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Kue = /*#__PURE__*/ (0, F.createContext)({});
+var Jue = /*#__PURE__*/ (0, P.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function iR(e) {
- let t = ZL(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function rR(e) {
+ let t = XL(e), [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -38748,7 +38755,7 @@ function iR(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var que = class {
+var Yue = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -38792,41 +38799,41 @@ var que = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function aR(e) {
- let { onExpandedChange: t } = e, [n, r] = lw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = zL(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = WL(e, (0, F.useCallback)((e) => new que(e, { expandedKeys: n }), [n]), null);
- return (0, F.useEffect)(() => {
+function iR(e) {
+ let { onExpandedChange: t } = e, [n, r] = cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = RL(e), a = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = UL(e, (0, P.useCallback)((e) => new Yue(e, { expandedKeys: n }), [n]), null);
+ return (0, P.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
collection: o,
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Jue(n, e));
+ r(Xue(n, e));
},
setExpandedKeys: r,
- selectionManager: new VL(o, i)
+ selectionManager: new BL(o, i)
};
}
-function Jue(e, t) {
+function Xue(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var oR = /*#__PURE__*/ (0, F.createContext)(null), sR = /*#__PURE__*/ (0, F.createContext)(null), cR = /*#__PURE__*/ (0, F.createContext)(null), lR = /*#__PURE__*/ (0, F.createContext)(null);
-function Yue(e) {
- let t = iR(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = gT({
+var aR = /*#__PURE__*/ (0, P.createContext)(null), oR = /*#__PURE__*/ (0, P.createContext)(null), sR = /*#__PURE__*/ (0, P.createContext)(null), cR = /*#__PURE__*/ (0, P.createContext)(null);
+function Zue(e) {
+ let t = rR(e), n = (0, P.useRef)(null), { menuTriggerProps: r, menuProps: i } = hT({
...e,
type: "menu"
- }, t, n), a = (0, F.useRef)(null);
- return Xx() ? null : /*#__PURE__*/ F.createElement(oI, { values: [
- [oR, {
+ }, t, n), a = (0, P.useRef)(null);
+ return Jx() ? null : /*#__PURE__*/ P.createElement(aI, { values: [
+ [aR, {
...i,
ref: a
}],
- [hR, t],
- [cR, t],
- [tR, {
+ [mR, t],
+ [sR, t],
+ [eR, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38834,14 +38841,14 @@ function Yue(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Gie, {
+ ] }, /*#__PURE__*/ P.createElement(qie, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Xue = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends Xy {
+var Que = /*#__PURE__*/ (0, P.createContext)(null);
+(class extends Qy {
static {
this.type = "submenutrigger";
}
@@ -38854,63 +38861,63 @@ var Xue = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var Zue = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = lI(e, t, oR), /*#__PURE__*/ F.createElement(eS, { content: /*#__PURE__*/ F.createElement(sS, e) }, (n) => /*#__PURE__*/ F.createElement(Que, {
+var $ue = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return [e, t] = cI(e, t, aR), /*#__PURE__*/ P.createElement(Qx, { content: /*#__PURE__*/ P.createElement(aS, e) }, (n) => /*#__PURE__*/ P.createElement(ede, {
props: e,
collection: n,
menuRef: t
}));
});
-function Que({ props: e, collection: t, menuRef: n }) {
- [e, n] = lI(e, n, hI);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = aR({
+function ede({ props: e, collection: t, menuRef: n }) {
+ [e, n] = cI(e, n, mI);
+ let { filter: r, ...i } = e, a = (0, P.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = iR({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(cR), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(xI), { menuProps: u } = lae({
+ }), s = (0, P.useContext)(sR), { isVirtualized: c, CollectionRoot: l } = (0, P.useContext)(bI), { menuProps: u } = dae({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = sI({
+ }, o, n), d = oI({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
values: { isEmpty: o.collection.size === 0 }
}), f = null;
- o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ F.createElement("div", {
+ o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ P.createElement("div", {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(sC, null, /*#__PURE__*/ F.createElement(mI.div, {
+ let p = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(aC, null, /*#__PURE__*/ P.createElement(pI.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [sR, o],
- [FL, { elementType: "div" }],
- [_I, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [oR, o],
+ [PL, { elementType: "div" }],
+ [gI, {
name: "MenuSection",
- render: uR
+ render: lR
}],
- [Xue, {
+ [Que, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [dR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [mI, null],
[hI, null],
- [gI, null],
- [lR, o.selectionManager],
- [cR, s ?? iR({})]
- ] }, /*#__PURE__*/ F.createElement(NL, null, /*#__PURE__*/ F.createElement(l, {
+ [cR, o.selectionManager],
+ [sR, s ?? rR({})]
+ ] }, /*#__PURE__*/ P.createElement(ML, null, /*#__PURE__*/ P.createElement(l, {
collection: o.collection,
- persistedKeys: SI(o.selectionManager.focusedKey),
+ persistedKeys: xI(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var $ue = class extends VL {
+var tde = class extends BL {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38930,11 +38937,11 @@ var $ue = class extends VL {
return this.parent.childFocusStrategy;
}
};
-function uR(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(sR), { CollectionBranch: a } = (0, F.useContext)(xI), [o, s] = uI(), { headingProps: c, groupProps: l } = dae({
+function lR(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, P.useContext)(oR), { CollectionBranch: a } = (0, P.useContext)(bI), [o, s] = lI(), { headingProps: c, groupProps: l } = pae({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = sI({
+ }), u = oI({
...e,
id: void 0,
children: void 0,
@@ -38942,31 +38949,31 @@ function uR(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(lR), f = zL(e), p = e.selectionMode == null ? d : new $ue(d, f), m = cI(fR)?.shouldCloseOnSelect, h = LS(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(mI.section, {
+ }), d = (0, P.useContext)(cR), f = RL(e), p = e.selectionMode == null ? d : new tde(d, f), m = sI(dR)?.shouldCloseOnSelect, h = FS(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ P.createElement(pI.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [ML, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [jL, {
...c,
ref: o
}],
- [lR, p],
- [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
- ] }, /*#__PURE__*/ F.createElement(a, {
+ [cR, p],
+ [dR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ ] }, /*#__PURE__*/ P.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var dR = /*#__PURE__*/ iS(Jne, uR), fR = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ rS($y, function(e, t, n) {
- [e, t] = lI(e, t, fR);
- let r = cI(fR)?.id, i = (0, F.useContext)(sR), a = Wx(t), o = (0, F.useContext)(lR), { isVirtualized: s } = (0, F.useContext)(xI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = uae({
+var uR = /*#__PURE__*/ nS(qne, lR), dR = /*#__PURE__*/ (0, P.createContext)(null), fR = /*#__PURE__*/ tS(tb, function(e, t, n) {
+ [e, t] = cI(e, t, dR);
+ let r = sI(dR)?.id, i = (0, P.useContext)(oR), a = Hx(t), o = (0, P.useContext)(cR), { isVirtualized: s } = (0, P.useContext)(bI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = fae({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = VT({ isDisabled: f.isDisabled }), h = sI({
+ }, i, a), { hoverProps: p, isHovered: m } = BT({ isDisabled: f.isDisabled }), h = oI({
...e,
id: void 0,
children: n.rendered,
@@ -38980,8 +38987,8 @@ var dR = /*#__PURE__*/ iS(Jne, uR), fR = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? mI.a : mI.div, _ = LS(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
+ }), g = e.href ? pI.a : pI.div, _ = FS(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(g, {
...K(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
@@ -38993,19 +39000,19 @@ var dR = /*#__PURE__*/ iS(Jne, uR), fR = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [MI, { slots: {
- [aI]: l,
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [jI, { slots: {
+ [iI]: l,
label: l,
description: u
} }],
- [Kue, d],
- [PL, { isSelected: f.isSelected }]
+ [Jue, d],
+ [NL, { isSelected: f.isSelected }]
] }, h.children));
});
-rS(Qy, function(e, t, n) {
- let r = (0, F.useContext)(sR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- qL((0, F.useMemo)(() => ({
+tS(eb, function(e, t, n) {
+ let r = (0, P.useContext)(oR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
+ KL((0, P.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39015,21 +39022,21 @@ rS(Qy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = sI({
+ let l = oI({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-MenuLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement("div", {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: IL(!0)
- }, /*#__PURE__*/ F.createElement("div", {
+ inert: FL(!0)
+ }, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -39037,8 +39044,8 @@ rS(Qy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mI.div, {
- ...K(LS(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(FS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -39046,82 +39053,82 @@ rS(Qy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var mR = /*#__PURE__*/ (0, F.createContext)(null), hR = /*#__PURE__*/ (0, F.createContext)(null), gR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var pR = /*#__PURE__*/ (0, P.createContext)(null), mR = /*#__PURE__*/ (0, P.createContext)(null), hR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = lI(e, t, mR);
- let { dialogProps: r, titleProps: i, contentProps: a } = qie({
+ [e, t] = cI(e, t, pR);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Yie({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(hR);
+ }, t), o = (0, P.useContext)(mR);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = sI({
+ let s = oI({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mI.section, {
+ }), c = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(pI.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [AI, { slots: {
- [aI]: {},
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [kI, { slots: {
+ [iI]: {},
title: {
...i,
level: 2
}
} }],
- [MI, { slots: {
- [aI]: {},
+ [jI, { slots: {
+ [iI]: {},
description: a
} }],
- [EI, { slots: {
- [aI]: {},
+ [TI, { slots: {
+ [iI]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), _R = typeof document < "u" && window.visualViewport;
-function ede() {
- let e = tx(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), gR = typeof document < "u" && window.visualViewport;
+function nde() {
+ let e = $b(), t = (0, P.useRef)(null), [n, r] = (0, P.useState)(() => e ? {
width: 0,
height: 0
- } : vR());
- return (0, F.useEffect)(() => {
+ } : _R());
+ return (0, P.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- _R && _R.scale > 1 || e(vR());
+ gR && gR.scale > 1 || e(_R());
}, i = (n) => {
- _R && _R.scale > 1 || vS(G(n)) && (t.current = OD((t) => {
+ gR && gR.scale > 1 || gS(G(n)) && (t.current = DD((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(vR()), zb() && Vb() && window.addEventListener("blur", i, !0), _R ? _R.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), zb() && Vb() && window.removeEventListener("blur", i, !0), _R ? _R.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(_R()), Vb() && Hb() && window.addEventListener("blur", i, !0), gR ? gR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), Vb() && Hb() && window.removeEventListener("blur", i, !0), gR ? gR.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function vR() {
+function _R() {
return {
- width: _R ? Math.min(_R.width * _R.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: _R ? _R.height * _R.scale : document.documentElement.clientHeight
+ width: gR ? Math.min(gR.width * gR.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: gR ? gR.height * gR.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var tde = /*#__PURE__*/ (0, F.createContext)(null), yR = /*#__PURE__*/ (0, F.createContext)(null), nde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(yR)) return /*#__PURE__*/ F.createElement(xR, {
+var rde = /*#__PURE__*/ (0, P.createContext)(null), vR = /*#__PURE__*/ (0, P.createContext)(null), ide = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ if ((0, P.useContext)(vR)) return /*#__PURE__*/ P.createElement(bR, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(bR, {
+ return /*#__PURE__*/ P.createElement(yR, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -39131,15 +39138,15 @@ var tde = /*#__PURE__*/ (0, F.createContext)(null), yR = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(xR, {
+ }, /*#__PURE__*/ P.createElement(bR, {
...f,
modalRef: t
}, s));
});
-function rde(e, t) {
- [e, t] = lI(e, t, tde);
- let n = (0, F.useContext)(hR), r = ZL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Wx(t), o = (0, F.useRef)(null), s = $L(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = $L(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = tx();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(ide, {
+function ade(e, t) {
+ [e, t] = cI(e, t, rde);
+ let n = (0, P.useContext)(mR), r = XL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Hx(t), o = (0, P.useRef)(null), s = QL(a, i.isOpen, e.onExit), c = (0, P.useRef)(null), l = QL(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = $b();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ P.createElement(ode, {
...e,
state: i,
isExiting: u,
@@ -39148,12 +39155,12 @@ function rde(e, t) {
onExitRef: c
});
}
-var bR = /*#__PURE__*/ (0, F.forwardRef)(rde);
-function ide({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = QL(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Sae({
+var yR = /*#__PURE__*/ (0, P.forwardRef)(ade);
+function ode({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, P.useState)(!1), s = ZL(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = wae({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(mR), f = t ? ade(d, { isEntering: c }) : d, p = sI({
+ }, i, r), d = (0, P.useContext)(pR), f = t ? sde(d, { isEntering: c }) : d, p = oI({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -39161,9 +39168,9 @@ function ide({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = ede(), h, g;
+ }), m = nde(), h, g;
if (typeof document < "u") {
- let e = jC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = NC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -39173,18 +39180,18 @@ function ide({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return Db(() => OD(() => o(!0)), []), /*#__PURE__*/ F.createElement(FT, {
+ return Ab(() => DD(() => o(!0)), []), /*#__PURE__*/ P.createElement(PT, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(mI.div, {
- ...K(LS(n, { global: !0 }), u),
+ }, /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(FS(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [yR, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [vR, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -39192,11 +39199,11 @@ function ide({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [hR, i],
- [mR, f]
+ [mR, i],
+ [pR, f]
] }, p.children)));
}
-function ade(e, t) {
+function sde(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -39213,8 +39220,8 @@ function ade(e, t) {
...t
};
}
-function xR(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(yR), s = (0, F.useContext)(hR), c = Wx((0, F.useMemo)(() => Fx(e.modalRef, n), [e.modalRef, n])), l = QL(c, o, e.onEnter), u = sI({
+function bR(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, P.useContext)(vR), s = (0, P.useContext)(mR), c = Hx((0, P.useMemo)(() => Nx(e.modalRef, n), [e.modalRef, n])), l = ZL(c, o, e.onEnter), u = oI({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -39223,21 +39230,21 @@ function xR(e) {
state: s
}
});
- return Db(() => {
+ return Ab(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(mI.div, {
- ...K(LS(e, { global: !0 }), t),
+ }), /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(FS(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(xD, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ P.createElement(bD, { onDismiss: s.close }), u.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var ode = Math.round(Math.random() * 1e10), sde = 0;
-function cde(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${ode}-${++sde}`, [e.name]), [n, r] = lw(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = QC({
+var cde = Math.round(Math.random() * 1e10), lde = 0;
+function ude(e) {
+ let t = (0, P.useMemo)(() => e.name || `radio-group-${cde}-${++lde}`, [e.name]), [n, r] = cw(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, P.useState)(n), [a, o] = (0, P.useState)(null), s = $C({
...e,
value: n
}), c = (t) => {
@@ -39260,16 +39267,16 @@ function cde(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var lde = /*#__PURE__*/ (0, F.createContext)(null), ude = /*#__PURE__*/ (0, F.createContext)(null), SR = /*#__PURE__*/ (0, F.createContext)(null), CR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, lde);
- let { validationBehavior: n } = cI(FI) || {}, r = e.validationBehavior ?? n ?? "native", i = cde({
+var dde = /*#__PURE__*/ (0, P.createContext)(null), fde = /*#__PURE__*/ (0, P.createContext)(null), xR = /*#__PURE__*/ (0, P.createContext)(null), SR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, dde);
+ let { validationBehavior: n } = sI(PI) || {}, r = e.validationBehavior ?? n ?? "native", i = ude({
...e,
validationBehavior: r
- }), [a, o] = uI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Iae({
+ }), [a, o] = lI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Rae({
...e,
label: o,
validationBehavior: r
- }, i), f = sI({
+ }, i), f = oI({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -39280,8 +39287,8 @@ var lde = /*#__PURE__*/ (0, F.createContext)(null), ude = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mI.div, {
+ }), p = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(pI.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -39290,39 +39297,39 @@ var lde = /*#__PURE__*/ (0, F.createContext)(null), ude = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [SR, i],
- [CI, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [xR, i],
+ [SI, {
...c,
ref: a,
elementType: "span"
}],
- [MI, { slots: {
+ [jI, { slots: {
description: l,
errorMessage: u
} }],
- [PI, d]
- ] }, /*#__PURE__*/ F.createElement(NL, null, f.children)));
-}), wR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [NI, d]
+ ] }, /*#__PURE__*/ P.createElement(ML, null, f.children)));
+}), CR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = lI(r, t, ude);
- let i = F.useContext(SR), a = Wx((0, F.useMemo)(() => Fx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Fae({
- ...dI(e),
+ [e, t] = cI(r, t, fde);
+ let i = P.useContext(xR), a = Hx((0, P.useMemo)(() => Nx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Lae({
+ ...uI(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(TR.Provider, { value: {
+ return /*#__PURE__*/ P.createElement(wR.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(dde, {
+ } }, /*#__PURE__*/ P.createElement(pde, {
...e,
ref: t
}));
-}), TR = /*#__PURE__*/ (0, F.createContext)(null), dde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(TR), l = F.useContext(SR), { isFocused: u, isFocusVisible: d, focusProps: f } = LT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = VT({
+}), wR = /*#__PURE__*/ (0, P.createContext)(null), pde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, P.useContext)(wR), l = P.useContext(xR), { isFocused: u, isFocusVisible: d, focusProps: f } = IT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = BT({
...e,
isDisabled: p
- }), g = sI({
+ }), g = oI({
...e,
defaultClassName: s,
values: {
@@ -39336,8 +39343,8 @@ var lde = /*#__PURE__*/ (0, F.createContext)(null), ude = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = LS(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(mI.label, {
+ }), _ = FS(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(pI.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -39349,19 +39356,19 @@ var lde = /*#__PURE__*/ (0, F.createContext)(null), ude = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(yw, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(vw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function fde(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = ZL(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function mde(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = XL(e), [i, a] = (0, P.useState)(null), o = (0, P.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = lw((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = cw((0, P.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -39373,12 +39380,12 @@ function fde(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = GL({
+ }, d = WL({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => pde(l), [l]),
+ selectedKeys: (0, P.useMemo)(() => hde(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -39388,10 +39395,10 @@ function fde(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = QC({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, P.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = $C({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
+ }), [h, g] = (0, P.useState)(!1), [_] = (0, P.useState)(l);
return {
...m,
...d,
@@ -39415,17 +39422,17 @@ function fde(e) {
setFocused: g
};
}
-function pde(e) {
+function hde(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 mde(e) {
+function gde(e) {
return e && e.__esModule ? e.default : e;
}
-var ER = /*#__PURE__*/ (0, F.createContext)(null), DR = /*#__PURE__*/ (0, F.createContext)(null), hde = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, ER);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
+var TR = /*#__PURE__*/ (0, P.createContext)(null), ER = /*#__PURE__*/ (0, P.createContext)(null), _de = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, TR);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, P.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -39439,27 +39446,27 @@ var ER = /*#__PURE__*/ (0, F.createContext)(null), DR = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(eS, { content: o }, (n) => /*#__PURE__*/ F.createElement(_de, {
+ return /*#__PURE__*/ P.createElement(Qx, { content: o }, (n) => /*#__PURE__*/ P.createElement(yde, {
props: e,
collection: n,
selectRef: t
}));
-}), gde = [
- CI,
- EI,
- MI
+}), vde = [
+ SI,
+ TI,
+ jI
];
-function _de({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = cI(FI) || {}, i = e.validationBehavior ?? r ?? "native", a = fde({
+function yde({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = sI(PI) || {}, i = e.validationBehavior ?? r ?? "native", a = mde({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = LT({ within: !0 }), c = (0, F.useRef)(null), [l, u] = uI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Lae({
- ...dI(e),
+ }), { isFocusVisible: o, focusProps: s } = IT({ within: !0 }), c = (0, P.useRef)(null), [l, u] = lI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = zae({
+ ...uI(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, F.useMemo)(() => ({
+ }, a, c), y = (0, P.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
@@ -39473,48 +39480,48 @@ function _de({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = sI({
+ ]), b = oI({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = LS(e, { global: !0 });
+ }), x = FS(e, { global: !0 });
delete x.id;
- let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(oI, { values: [
- [ER, e],
- [DR, a],
- [OR, p],
- [CI, {
+ let S = (0, P.useRef)(null);
+ return /*#__PURE__*/ P.createElement(aI, { values: [
+ [TR, e],
+ [ER, a],
+ [DR, p],
+ [SI, {
...d,
ref: l,
elementType: "span"
}],
- [EI, {
+ [TI, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [hR, a],
- [tR, {
+ [mR, a],
+ [eR, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: gde
+ clearContexts: vde
}],
- [JL, {
+ [qL, {
...m,
ref: S
}],
- [YL, a],
- [MI, { slots: {
+ [JL, a],
+ [jI, { slots: {
description: h,
errorMessage: g
} }],
- [PI, v]
- ] }, /*#__PURE__*/ F.createElement(mI.div, {
+ [NI, v]
+ ] }, /*#__PURE__*/ P.createElement(pI.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -39524,14 +39531,14 @@ function _de({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(zae, {
+ }, b.children, /*#__PURE__*/ P.createElement(Vae, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, OR);
- let n = (0, F.useContext)(DR), { placeholder: r } = cI(ER), i = n.selectedItems.map((e) => {
+for (var DR = /*#__PURE__*/ (0, P.createContext)(null), bde = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, DR);
+ let n = (0, P.useContext)(ER), { placeholder: r } = sI(TR), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -39543,59 +39550,59 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Jie(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Xie(), o = (0, P.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, P.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, F.useMemo)(() => {
+ ]), l = (0, P.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__*/ F.createElement(F.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ P.createElement(P.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = FS(mde(DL), "react-aria-components"), d = sI({
+ ]), u = NS(gde(EL), "react-aria-components"), d = oI({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, F.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, P.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mI.span, {
+ }), f = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(pI.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(MI.Provider, { value: void 0 }, d.children));
-}), yde = /*#__PURE__*/ (0, F.createContext)(null), kR = /*#__PURE__*/ (0, F.createContext)(null), bde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ P.createElement(jI.Provider, { value: void 0 }, d.children));
+}), xde = /*#__PURE__*/ (0, P.createContext)(null), OR = /*#__PURE__*/ (0, P.createContext)(null), Sde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = lI(r, t, yde);
- let i = Wx((0, F.useMemo)(() => Fx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = uw(e), o = Vae({
- ...dI(e),
+ [e, t] = cI(r, t, xde);
+ let i = Hx((0, P.useMemo)(() => Nx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = lw(e), o = Uae({
+ ...uI(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(oI, { values: [[kR, a], [AR, {
+ return /*#__PURE__*/ P.createElement(aI, { values: [[OR, a], [kR, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(xde, {
+ }]] }, /*#__PURE__*/ P.createElement(Cde, {
...e,
ref: t
}));
-}), AR = /*#__PURE__*/ (0, F.createContext)(null), xde = /*#__PURE__*/ (0, F.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, F.useContext)(AR), { isFocused: f, isFocusVisible: p, focusProps: m } = LT(), h = a || o, g = (0, F.useContext)(kR), { hoverProps: _, isHovered: v } = VT({
+}), kR = /*#__PURE__*/ (0, P.createContext)(null), Cde = /*#__PURE__*/ (0, P.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, P.useContext)(kR), { isFocused: f, isFocusVisible: p, focusProps: m } = IT(), h = a || o, g = (0, P.useContext)(OR), { hoverProps: _, isHovered: v } = BT({
...e,
isDisabled: h
- }), y = sI({
+ }), y = oI({
...e,
defaultClassName: u,
values: {
@@ -39610,8 +39617,8 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
isRequired: d || !1,
state: g
}
- }), b = LS(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(mI.label, {
+ }), b = FS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(pI.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -39624,11 +39631,11 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(yw, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(vw, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), jR = 10, MR = 5, NR = class {
+}), AR = 10, jR = 5, MR = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -39638,7 +39645,7 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > MR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > jR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > jR && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > AR && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -39717,11 +39724,11 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > MR && i) {
+ if (Math.abs(r - c.lastSwitchY) > jR && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > jR && a) {
+ if (l > AR && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -39736,7 +39743,7 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
boundaryContext: null
};
}
-}, Sde = class {
+}, wde = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -39806,8 +39813,8 @@ for (var OR = /*#__PURE__*/ (0, F.createContext)(null), vde = /*#__PURE__*/ Yx(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, PR = "row-header-column-" + Math.random().toString(36).slice(2), FR = "row-header-column-" + Math.random().toString(36).slice(2); PR === FR;) FR = "row-header-column-" + Math.random().toString(36).slice(2);
-function IR(e, t) {
+}, NR = "row-header-column-" + Math.random().toString(36).slice(2), PR = "row-header-column-" + Math.random().toString(36).slice(2); NR === PR;) PR = "row-header-column-" + Math.random().toString(36).slice(2);
+function FR(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -39891,13 +39898,13 @@ function IR(e, t) {
textValue: ""
}));
}
-var Cde = class extends Sde {
+var Tde = class extends wde {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: PR,
+ key: NR,
value: null,
textValue: "",
level: 0,
@@ -39912,7 +39919,7 @@ var Cde = class extends Sde {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: FR,
+ key: PR,
value: null,
textValue: "",
level: 0,
@@ -39939,7 +39946,7 @@ var Cde = class extends Sde {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = IR(s, a);
+ let l = FR(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -39965,10 +39972,10 @@ var Cde = class extends Sde {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return ST(this.body.childNodes)?.key ?? null;
+ return xT(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return wT(this.body.childNodes)?.key ?? null;
+ return CT(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -40000,15 +40007,15 @@ var Cde = class extends Sde {
};
//#endregion
//#region node_modules/react-stately/dist/private/table/TableUtils.mjs
-function wde(e) {
+function Ede(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function Tde(e) {
+function Dde(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function LR(e, t) {
+function IR(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -40016,19 +40023,19 @@ function LR(e, t) {
}
return e;
}
-function RR(e, t) {
- return e == null ? 2 ** 53 - 1 : LR(e, t);
+function LR(e, t) {
+ return e == null ? 2 ** 53 - 1 : IR(e, t);
}
-function zR(e, t) {
- return e == null ? 0 : LR(e, t);
+function RR(e, t) {
+ return e == null ? 0 : IR(e, t);
}
-function Ede(e, t, n, r, i) {
+function Ode(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- wde(o) ? (l = LR(o, e), s = !0) : (u = Tde(o), u <= 0 && (s = !0));
- let f = zR(t.minWidth ?? i?.(a) ?? 0, e), p = RR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Ede(o) ? (l = IR(o, e), s = !0) : (u = Dde(o), u <= 0 && (s = !0));
+ let f = RR(t.minWidth ?? i?.(a) ?? 0, e), p = LR(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -40062,14 +40069,14 @@ function Ede(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = Dde(l);
+ let u = kde(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function Dde(e) {
+function kde(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -40078,7 +40085,7 @@ function Dde(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Ode = class {
+var Ade = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -40107,32 +40114,32 @@ var Ode = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ede(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ode(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, zR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, RR(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, RR(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, LR(a.props.maxWidth, e));
}), this.columnWidths;
}
};
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function kde(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Ode({
+function jde(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, P.useState)(null), s = (0, P.useMemo)(() => new Ade({
getDefaultWidth: n,
getDefaultMinWidth: r
- }), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
+ }), [n, r]), [c, l] = (0, P.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, P.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, P.useState)(t.collection.columns);
t.collection.columns !== f && ((t.collection.columns.length !== f.length || t.collection.columns.some((e, t) => e.key !== f[t].key)) && d(s.getInitialUncontrolledWidths(l)), p(t.collection.columns));
- let m = (0, F.useMemo)(() => s.recombineColumns(t.collection.columns, u, l, c), [
+ let m = (0, P.useMemo)(() => s.recombineColumns(t.collection.columns, u, l, c), [
t.collection.columns,
u,
l,
c,
s
- ]), h = (0, F.useCallback)((e) => {
+ ]), h = (0, P.useCallback)((e) => {
o(e);
- }, [o]), g = (0, F.useCallback)((e, n) => {
+ }, [o]), g = (0, P.useCallback)((e, n) => {
let r = s.resizeColumnWidth(t.collection, u, e, n), i = new Map(Array.from(l).map(([e]) => [e, r.get(e)]));
return i.set(e, n), d(i), r;
}, [
@@ -40141,15 +40148,15 @@ function kde(e, t) {
s,
t.collection,
u
- ]), _ = (0, F.useCallback)(() => {
+ ]), _ = (0, P.useCallback)(() => {
o(null);
- }, [o]), v = (0, F.useMemo)(() => s.buildColumnWidths(i, t.collection, m), [
+ }, [o]), v = (0, P.useMemo)(() => s.buildColumnWidths(i, t.collection, m), [
i,
t.collection,
m,
s
]);
- return (0, F.useMemo)(() => ({
+ return (0, P.useMemo)(() => ({
resizingColumn: a,
updateResizedColumns: g,
startResize: h,
@@ -40171,20 +40178,20 @@ function kde(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Ade(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || zL(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Mde(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || RL(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = xT(n, t);
- e = r === "last" ? wT(i)?.key ?? null : ST(i)?.key ?? null;
+ let i = bT(n, t);
+ e = r === "last" ? CT(i)?.key ?? null : xT(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new VL(t, r), [t, r]), s = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+ let o = (0, P.useMemo)(() => new BL(t, r), [t, r]), s = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
if (!n) {
@@ -40203,7 +40210,7 @@ function Ade(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...xT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...bT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -40222,12 +40229,12 @@ function Ade(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var jde = {
+var Nde = {
ascending: "descending",
descending: "ascending"
};
-function Mde(e) {
- let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
+function Pde(e) {
+ let [t, n] = (0, P.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, P.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
selectionMode: r,
@@ -40237,11 +40244,11 @@ function Mde(e) {
i,
r,
a
- ]), c = WL(e, (0, F.useCallback)((e) => new Cde(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ade({
+ ]), c = UL(e, (0, P.useCallback)((e) => new Tde(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Mde({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = lw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -40253,7 +40260,7 @@ function Mde(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? jde[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Nde[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -40266,8 +40273,8 @@ function Mde(e) {
treeColumn: o
};
}
-function Nde(e, t) {
- let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+function Fde(e, t) {
+ let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
collection: n,
@@ -40276,10 +40283,10 @@ function Nde(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-function Pde(e) {
+function Ide(e) {
return e && e.__esModule ? e.default : e;
}
-var Fde = class extends eb {
+var Lde = class extends nb {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -40294,7 +40301,7 @@ var Fde = class extends eb {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new JR(-2);
+ return new qR(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -40320,7 +40327,7 @@ var Fde = class extends eb {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = IR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = FR(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -40401,28 +40408,28 @@ var Fde = class extends eb {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new WR(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new UR(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, BR = /*#__PURE__*/ (0, F.createContext)(null), Ide = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = Wx(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- Db(() => {
+}, zR = /*#__PURE__*/ (0, P.createContext)(null), Rde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let n = Hx(t), r = (0, P.useRef)(null), i = (0, P.useRef)(null), [a, o] = (0, P.useState)(0);
+ Ab(() => {
let e = r.current;
- for (; e && e !== n.current && !jC(e);) e = e.parentElement;
+ for (; e && e !== n.current && !NC(e);) e = e.parentElement;
i.current = e;
- }, [n]), zE({
+ }, [n]), RE({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), Db(() => {
+ }), Ab(() => {
o(i.current?.clientWidth ?? 0);
}, []);
- let s = (0, F.useMemo)(() => ({
+ let s = (0, P.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: kde,
+ useTableColumnResizeState: jde,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -40433,17 +40440,17 @@ var Fde = class extends eb {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(pI.div, {
render: e.render,
- ...LS(e, { global: !0 }),
+ ...FS(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: s }, e.children));
-}), Lde = /*#__PURE__*/ (0, F.createContext)(null), VR = /*#__PURE__*/ (0, F.createContext)(null), HR = /*#__PURE__*/ (0, F.createContext)(null), Rde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, Lde);
- let n = zL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ P.createElement(zR.Provider, { value: s }, e.children));
+}), zde = /*#__PURE__*/ (0, P.createContext)(null), BR = /*#__PURE__*/ (0, P.createContext)(null), VR = /*#__PURE__*/ (0, P.createContext)(null), Bde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, zde);
+ let n = RL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, P.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -40453,26 +40460,26 @@ var Fde = class extends eb {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Vde.Provider, { value: s }, /*#__PURE__*/ F.createElement(sS, e));
- return /*#__PURE__*/ F.createElement(eS, {
+ ]), c = /*#__PURE__*/ P.createElement(Ude.Provider, { value: s }, /*#__PURE__*/ P.createElement(aS, e));
+ return /*#__PURE__*/ P.createElement(Qx, {
content: c,
- createCollection: () => new Fde()
- }, (r) => /*#__PURE__*/ F.createElement(Bde, {
+ createCollection: () => new Lde()
+ }, (r) => /*#__PURE__*/ P.createElement(Hde, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), zde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}), Vde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.table, {
+ }) : /*#__PURE__*/ P.createElement(pI.table, {
...e,
ref: t
});
-}), UR = {
+}), HR = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -40482,26 +40489,26 @@ var Fde = class extends eb {
rtl: "ArrowRight"
}
};
-function Bde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = lI(e, t, hI);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(BR);
- t = Wx((0, F.useMemo)(() => Fx(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = lw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
- r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Mde({
+function Hde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = cI(e, t, mI);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, P.useContext)(zR);
+ t = Hx((0, P.useMemo)(() => Nx(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = cw(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ r = (0, P.useMemo)(() => r.withExpandedKeys(l), [r, l]);
+ let d = Pde({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Nde(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(xI), { dragAndDropHooks: _ } = e, { gridProps: v } = Kae({
+ }), f = Fde(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(bI), { dragAndDropHooks: _ } = e, { gridProps: v } = Jae({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
- (0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = kS(), [k] = (0, F.useState)(() => new NR());
+ (0, P.useRef)(b), (0, P.useRef)(x), (0, P.useEffect)(() => {}, [b, x]);
+ let S, C, w, T = !1, E = null, D = (0, P.useRef)(null), { direction: O } = DS(), [k] = (0, P.useState)(() => new MR());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -40509,14 +40516,14 @@ function Bde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
preview: _.renderDragPreview ? D : void 0
}), _.useDraggableCollection({}, S, t);
let e = _.DragPreview;
- E = _.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: D }, _.renderDragPreview) : null;
+ E = _.renderDragPreview ? /*#__PURE__*/ P.createElement(e, { ref: D }, _.renderDragPreview) : null;
}
if (x && _) {
C = _.useDroppableCollectionState({
collection: f.collection,
selectionManager: y
});
- let e = new Mw({
+ let e = new jw({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -40536,12 +40543,12 @@ function Bde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === UR.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === UR.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === HR.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === HR.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = LT(), ee = sI({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = IT(), ee = oI({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -40551,126 +40558,126 @@ function Bde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
isFocusVisible: M,
state: f
}
- }), N = !(!b || S?.isDisabled), te = ee.style, P = null;
- c && (P = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (te = {
- ...te,
+ }), te = !(!b || S?.isDisabled), ne = ee.style, N = null;
+ c && (N = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (ne = {
+ ...ne,
tableLayout: "fixed",
width: "min-content"
}));
- let ne = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(oI, { values: [
- [VR, f],
- [HR, P],
- [OL, {
+ let re = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(aI, { values: [
+ [BR, f],
+ [VR, N],
+ [DL, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [kL, { render: Zde }],
- [hI, null],
- [gI, null]
- ] }, /*#__PURE__*/ F.createElement(sC, null, /*#__PURE__*/ F.createElement(zde, {
- ...K(ne, ee, v, A, w?.collectionProps),
- style: te,
+ [OL, { render: $de }],
+ [mI, null],
+ [hI, null]
+ ] }, /*#__PURE__*/ P.createElement(aC, null, /*#__PURE__*/ P.createElement(Vde, {
+ ...K(re, ee, v, A, w?.collectionProps),
+ style: ne,
ref: t,
slot: e.slot || void 0,
onScroll: e.onScroll,
- "data-allows-dragging": N || void 0,
+ "data-allows-dragging": te || void 0,
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(NL, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ P.createElement(ML, null, /*#__PURE__*/ P.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: jL(y, _, C)
+ persistedKeys: AL(y, _, C)
})))), E);
}
-var Vde = /*#__PURE__*/ (0, F.createContext)(null), WR = class extends Xy {
+var Ude = /*#__PURE__*/ (0, P.createContext)(null), UR = class extends Qy {
static {
this.type = "tableheader";
}
-}, Hde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}, Wde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.thead, {
+ }) : /*#__PURE__*/ P.createElement(pI.thead, {
...e,
ref: t
});
-}), GR = /*#__PURE__*/ iS(WR, (e, t) => {
- let n = (0, F.useContext)(VR).collection, r = ib({
+}), WR = /*#__PURE__*/ nS(UR, (e, t) => {
+ let n = (0, P.useContext)(BR).collection, r = ob({
items: n.headerRows,
- children: (0, F.useCallback)((e) => {
+ children: (0, P.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(Wde, { item: e });
+ case "headerrow": return /*#__PURE__*/ P.createElement(Kde, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = WO(), { hoverProps: a, isHovered: o } = VT({
+ }), { rowGroupProps: i } = UO(), { hoverProps: a, isHovered: o } = BT({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = sI({
+ }), s = oI({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(Hde, {
- ...K(LS(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ P.createElement(Wde, {
+ ...K(FS(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(sS, {
+}, (e) => /*#__PURE__*/ P.createElement(aS, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Ude = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement("div", {
+}, e.children)), Gde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement("div", {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement("tr", {
+ }) : /*#__PURE__*/ P.createElement("tr", {
...e,
ref: t
});
});
-function Wde({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(VR), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(xI), { rowProps: a } = Qae({
+function Kde({ item: e }) {
+ let t = (0, P.useRef)(null), n = (0, P.useContext)(BR), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(bI), { rowProps: a } = eoe({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = aoe(n);
- return /*#__PURE__*/ F.createElement(Ude, {
+ }, n, t), { checkboxProps: o } = soe(n);
+ return /*#__PURE__*/ P.createElement(Gde, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(oI, { values: [[II, { slots: { selection: o } }], [LI, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [[FI, { slots: { selection: o } }], [II, { slots: { selection: o } }]] }, /*#__PURE__*/ P.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Gde = class extends Xy {
+var qde = class extends Qy {
static {
this.type = "column";
}
-}, Kde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}, Jde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.th, {
+ }) : /*#__PURE__*/ P.createElement(pI.th, {
...e,
ref: t
});
-}), KR = /*#__PURE__*/ rS(Gde, (e, t, n) => {
- let r = Wx(t), i = (0, F.useContext)(VR), { isVirtualized: a } = (0, F.useContext)(xI), { columnHeaderProps: o, isPressed: s } = Yae({
+}), GR = /*#__PURE__*/ tS(qde, (e, t, n) => {
+ let r = Hx(t), i = (0, P.useContext)(BR), { isVirtualized: a } = (0, P.useContext)(bI), { columnHeaderProps: o, isPressed: s } = Zae({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = LT(), d = (0, F.useContext)(HR), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = IT(), d = (0, P.useContext)(VR), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = VT({ isDisabled: !e.allowsSorting }), h = sI({
+ let { hoverProps: p, isHovered: m } = BT({ isDisabled: !e.allowsSorting }), h = oI({
...e,
id: void 0,
children: n.rendered,
@@ -40696,8 +40703,8 @@ var Gde = class extends Xy {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = LS(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Kde, {
+ let _ = FS(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ P.createElement(Jde, {
...K(_, o, u, p),
...h,
style: g,
@@ -40709,29 +40716,29 @@ var Gde = class extends Xy {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [[qR, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [[KR, {
column: n,
triggerRef: r
- }], [xI, vI]] }, h.children));
-}), qR = /*#__PURE__*/ (0, F.createContext)(null), qde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(HR);
+ }], [bI, _I]] }, h.children));
+}), KR = /*#__PURE__*/ (0, P.createContext)(null), Yde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let n = (0, P.useContext)(VR);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = FS(Pde(DL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(BR), { column: s, triggerRef: c } = (0, F.useContext)(qR), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Zae({
+ let r = NS(Ide(EL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, P.useContext)(zR), { column: s, triggerRef: c } = (0, P.useContext)(KR), l = (0, P.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = $ae({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = LT(), { hoverProps: _, isHovered: v } = VT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = kS(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = IT(), { hoverProps: _, isHovered: v } = BT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = DS(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = Wx(t), [w, T] = (0, F.useState)("");
- (0, F.useEffect)(() => {
+ let C = Hx(t), [w, T] = (0, P.useState)("");
+ (0, P.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = sI({
+ let E = oI({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -40741,8 +40748,8 @@ var Gde = class extends Xy {
isHovered: v,
resizableDirection: S
}
- }), D = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mI.div, {
+ }), D = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(pI.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -40751,10 +40758,10 @@ var Gde = class extends Xy {
"data-focus-visible": g || void 0,
"data-resizing": f || void 0,
"data-resizable-direction": S
- }, E.children, /*#__PURE__*/ F.createElement("input", {
+ }, E.children, /*#__PURE__*/ P.createElement("input", {
ref: l,
...K(d, m)
- }), f && p && /*#__PURE__*/ It.createPortal(/*#__PURE__*/ F.createElement("div", {
+ }), f && p && /*#__PURE__*/ Lt.createPortal(/*#__PURE__*/ P.createElement("div", {
style: {
position: "fixed",
top: 0,
@@ -40765,24 +40772,24 @@ var Gde = class extends Xy {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), JR = class extends Zy {
+}), qR = class extends $y {
static {
this.type = "tablebody";
}
-}, Jde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}, Xde = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.tbody, {
+ }) : /*#__PURE__*/ P.createElement(pI.tbody, {
...e,
ref: t
});
-}), YR = /*#__PURE__*/ iS(JR, (e, t, n) => {
- let r = (0, F.useContext)(VR), { isVirtualized: i } = (0, F.useContext)(xI), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(xI), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(OL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), JR = /*#__PURE__*/ nS(qR, (e, t, n) => {
+ let r = (0, P.useContext)(BR), { isVirtualized: i } = (0, P.useContext)(bI), a = r.collection, { CollectionBranch: o } = (0, P.useContext)(bI), { dragAndDropHooks: s, dropState: c } = (0, P.useContext)(DL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = sI({
+ }, p = oI({
...e,
id: void 0,
children: void 0,
@@ -40791,33 +40798,33 @@ var Gde = class extends Xy {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(ZR, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ P.createElement(XR, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement($R, {
+ }, /*#__PURE__*/ P.createElement(QR, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = WO(), _ = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Jde, {
+ let { rowGroupProps: g } = UO(), _ = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(Xde, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(nfe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ P.createElement(ife, null), /*#__PURE__*/ P.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: AL(s, c)
+ renderDropIndicator: kL(s, c)
}), m);
});
-(class extends Zy {
+(class extends $y {
static {
this.type = "tablefooter";
}
});
-var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yde = class extends Xy {
+var YR = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Zde = class extends Qy {
static {
this.type = "item";
}
@@ -40829,41 +40836,41 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
}
return null;
}
-}, ZR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}, XR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.tr, {
+ }) : /*#__PURE__*/ P.createElement(pI.tr, {
...e,
ref: t
});
-}), QR = /*#__PURE__*/ iS(Yde, (e, t, n) => {
- let r = Wx(t), i = (0, F.useContext)(VR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(OL), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(xI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = toe({
+}), ZR = /*#__PURE__*/ nS(Zde, (e, t, n) => {
+ let r = Hx(t), i = (0, P.useContext)(BR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(DL), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(bI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = roe({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = LT(), { isFocusVisible: _, focusProps: v } = LT({ within: !0 }), { hoverProps: y, isHovered: b } = VT({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = IT(), { isFocusVisible: _, focusProps: v } = IT({ within: !0 }), { hoverProps: y, isHovered: b } = BT({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = ioe({ key: n.key }, i), S;
+ }), { checkboxProps: x } = ooe({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = vw();
+ let C, w = (0, P.useRef)(null), { visuallyHiddenProps: T } = _w();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
dropPosition: "on"
} }, s, w));
- let E = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
+ let E = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = sI({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = oI({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -40884,20 +40891,20 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
isExpanded: j,
level: n.level + 1
}
- }), ee = LS(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(ZR, {
+ }), ee = FS(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, C && !C.isHidden && /*#__PURE__*/ P.createElement(XR, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement($R, {
+ }, /*#__PURE__*/ P.createElement(QR, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
role: "button",
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(ZR, {
+ }))), /*#__PURE__*/ P.createElement(XR, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -40913,17 +40920,17 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [II, { slots: {
- [aI]: {},
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [FI, { slots: {
+ [iI]: {},
selection: x
} }],
- [LI, { slots: {
- [aI]: {},
+ [II, { slots: {
+ [iI]: {},
selection: x
} }],
- [EI, { slots: {
- [aI]: {},
+ [TI, { slots: {
+ [iI]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -40931,43 +40938,43 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
style: { pointerEvents: "none" }
}
} }],
- [PL, { isSelected: p.isSelected }],
- [XR, { isFocusVisibleWithinRow: _ }]
- ] }, /*#__PURE__*/ F.createElement(l, {
+ [NL, { isSelected: p.isSelected }],
+ [YR, { isFocusVisibleWithinRow: _ }]
+ ] }, /*#__PURE__*/ P.createElement(l, {
collection: i.collection,
parent: n
}))));
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(sS, {
+ return /*#__PURE__*/ P.createElement(aS, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Xde = class extends Xy {
+}), Qde = class extends Qy {
static {
this.type = "cell";
}
-}, $R = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}, QR = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.td, {
+ }) : /*#__PURE__*/ P.createElement(pI.td, {
...e,
ref: t
});
-}), ez = /*#__PURE__*/ rS(Xde, (e, t, n) => {
- let r = Wx(t), i = (0, F.useContext)(VR), { dragState: a } = (0, F.useContext)(OL), { isVirtualized: o } = (0, F.useContext)(xI);
+}), $R = /*#__PURE__*/ tS(Qde, (e, t, n) => {
+ let r = Hx(t), i = (0, P.useContext)(BR), { dragState: a } = (0, P.useContext)(DL), { isVirtualized: o } = (0, P.useContext)(bI);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = qae({
+ let { gridCellProps: s, isPressed: c } = Yae({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = LT(), { hoverProps: f, isHovered: p } = VT({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(XR), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = sI({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = IT(), { hoverProps: f, isHovered: p } = BT({}), { isFocusVisibleWithinRow: m } = (0, P.useContext)(YR), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = oI({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -40986,8 +40993,8 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = LS(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement($R, {
+ }), S = FS(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ P.createElement(QR, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -41001,14 +41008,14 @@ var XR = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Yd
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(xI.Provider, { value: vI }, x.children));
+ }, /*#__PURE__*/ P.createElement(bI.Provider, { value: _I }, x.children));
});
-function Zde(e, t) {
- t = Wx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(OL), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function $de(e, t) {
+ t = Hx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(DL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(tfe, {
+ return /*#__PURE__*/ P.createElement(rfe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -41017,71 +41024,71 @@ function Zde(e, t) {
ref: t
});
}
-var Qde = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+var efe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.tr, {
+ }) : /*#__PURE__*/ P.createElement(pI.tr, {
...e,
ref: t
});
-}), $de = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(xI);
- return n ? /*#__PURE__*/ F.createElement(mI.div, {
+}), tfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(bI);
+ return n ? /*#__PURE__*/ P.createElement(pI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(mI.td, {
+ }) : /*#__PURE__*/ P.createElement(pI.td, {
...e,
ref: t
});
});
-function efe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(VR), { visuallyHiddenProps: c } = vw(), l = sI({
+function nfe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, P.useContext)(BR), { visuallyHiddenProps: c } = _w(), l = oI({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Qde, {
- ...LS(e, { global: !0 }),
+ return /*#__PURE__*/ P.createElement(efe, {
+ ...FS(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement($de, {
+ }, /*#__PURE__*/ P.createElement(tfe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
...c,
role: "button",
...n,
ref: i
}), l.children));
}
-var tfe = /*#__PURE__*/ (0, F.forwardRef)(efe);
-function nfe() {
- let e = (0, F.useContext)(VR), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(OL), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = vw();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(ZR, {
+var rfe = /*#__PURE__*/ (0, P.forwardRef)(nfe);
+function ife() {
+ let e = (0, P.useContext)(BR), { dragAndDropHooks: t, dropState: n } = (0, P.useContext)(DL), r = (0, P.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = _w();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ P.createElement(XR, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement($R, {
+ }, /*#__PURE__*/ P.createElement(QR, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
role: "button",
...o,
...i,
ref: r
})));
}
-rS(Qy, function(e, t, n) {
- let r = (0, F.useContext)(VR), { isVirtualized: i } = (0, F.useContext)(xI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- qL((0, F.useMemo)(() => ({
+tS(eb, function(e, t, n) {
+ let r = (0, P.useContext)(BR), { isVirtualized: i } = (0, P.useContext)(bI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, P.useRef)(null);
+ KL((0, P.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -41091,7 +41098,7 @@ rS(Qy, function(e, t, n) {
s,
r?.collection
]), u);
- let d = sI({
+ let d = oI({
...c,
id: void 0,
children: n.rendered,
@@ -41099,13 +41106,13 @@ rS(Qy, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ZR, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(XR, {
style: { height: 0 },
- inert: IL(!0)
- }, /*#__PURE__*/ F.createElement($R, { style: {
+ inert: FL(!0)
+ }, /*#__PURE__*/ P.createElement(QR, { style: {
padding: 0,
border: 0
- } }, /*#__PURE__*/ F.createElement("div", {
+ } }, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: u,
style: {
@@ -41113,14 +41120,14 @@ rS(Qy, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(ZR, {
- ...K(LS(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ P.createElement(XR, {
+ ...K(FS(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement($R, {
+ }, /*#__PURE__*/ P.createElement(QR, {
role: "rowheader",
...p,
style: m
@@ -41128,8 +41135,8 @@ rS(Qy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function rfe(e) {
- let [t, n] = lw(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = GL({
+function afe(e) {
+ let [t, n] = cw(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, P.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = WL({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -41152,24 +41159,24 @@ function rfe(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function ife(e) {
- let t = rfe({
+function ofe(e) {
+ let t = afe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? tz(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
- }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
- return (0, F.useEffect)(() => {
+ defaultSelectedKey: e.defaultSelectedKey ?? ez(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, P.useRef)(i);
+ return (0, P.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = tz(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = ez(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function tz(e, t) {
+function ez(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -41179,24 +41186,24 @@ function tz(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)(null), rz = /*#__PURE__*/ (0, F.createContext)(null), afe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, nz);
+var tz = /*#__PURE__*/ (0, P.createContext)(null), nz = /*#__PURE__*/ (0, P.createContext)(null), sfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, tz);
let { children: n, orientation: r = "horizontal" } = e;
- return n = (0, F.useMemo)(() => typeof n == "function" ? n({
+ return n = (0, P.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(eS, { content: n }, (n) => /*#__PURE__*/ F.createElement(ofe, {
+ }) : n, [n, r]), /*#__PURE__*/ P.createElement(Qx, { content: n }, (n) => /*#__PURE__*/ P.createElement(cfe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function ofe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = ife({
+function cfe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = ofe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = LT({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = IT({ within: !0 }), c = (0, P.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -41204,12 +41211,12 @@ function ofe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = sI({
+ ]), l = oI({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mI.div, {
+ }), u = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(pI.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -41217,20 +41224,20 @@ function ofe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [[nz, e], [rz, i]] }, l.children));
+ }, /*#__PURE__*/ P.createElement(aI, { values: [[tz, e], [nz, i]] }, l.children));
}
-var iz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(rz) ? /*#__PURE__*/ F.createElement(sfe, {
+var rz = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return (0, P.useContext)(nz) ? /*#__PURE__*/ P.createElement(lfe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(sS, e);
+ }) : /*#__PURE__*/ P.createElement(aS, e);
});
-function sfe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(rz), { CollectionRoot: r } = (0, F.useContext)(xI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = cI(nz), o = Wx(t), { tabListProps: s } = coe({
+function lfe({ props: e, forwardedRef: t }) {
+ let n = (0, P.useContext)(nz), { CollectionRoot: r } = (0, P.useContext)(bI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = sI(tz), o = Hx(t), { tabListProps: s } = uoe({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = sI({
+ }, n, o), c = oI({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -41238,30 +41245,30 @@ function sfe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = LS(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(mI.div, {
+ }), l = FS(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ P.createElement(pI.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(NL, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ P.createElement(ML, null, /*#__PURE__*/ P.createElement(r, {
collection: n.collection,
- persistedKeys: SI(n.selectionManager.focusedKey)
+ persistedKeys: xI(n.selectionManager.focusedKey)
})));
}
-var cfe = /*#__PURE__*/ rS(class extends Xy {
+var ufe = /*#__PURE__*/ tS(class extends Qy {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(rz), i = Wx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = ooe({
+ let r = (0, P.useContext)(nz), i = Hx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = coe({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = LT(), { hoverProps: f, isHovered: p } = VT({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = IT(), { hoverProps: f, isHovered: p } = BT({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = sI({
+ }), m = oI({
...e,
id: void 0,
children: n.rendered,
@@ -41274,8 +41281,8 @@ var cfe = /*#__PURE__*/ rS(class extends Xy {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? mI.a : mI.div, g = LS(e, { global: !0 });
- return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
+ }), h = n.props.href ? pI.a : pI.div, g = FS(e, { global: !0 });
+ return delete g.id, delete g.onClick, /*#__PURE__*/ P.createElement(h, {
...K(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
@@ -41284,55 +41291,55 @@ var cfe = /*#__PURE__*/ rS(class extends Xy {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(PL.Provider, { value: { isSelected: o } }, m.children));
-}), lfe = /*#__PURE__*/ Yx(function(e, t) {
- let n = (0, F.useContext)(rz), r = Wx(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ P.createElement(NL.Provider, { value: { isSelected: o } }, m.children));
+}), dfe = /*#__PURE__*/ qx(function(e, t) {
+ let n = (0, P.useContext)(nz), r = Hx(t), i = n.selectedKey === e.id, [a, o] = (0, P.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = $L(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(ufe, {
+ let s = QL(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ P.createElement(ffe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function ufe(e) {
- let t = (0, F.useContext)(rz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = loe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = LT(), d = t.selectedKey === e.id, f = QL(r) && !i, p = sI({
+function ffe(e) {
+ let t = (0, P.useContext)(nz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = doe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = IT(), d = t.selectedKey === e.id, f = ZL(r) && !i, p = oI({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: IL(!d),
+ isInert: FL(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = LS(o, { global: !0 });
+ }), m = FS(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(pI.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: IL(!d || e.inert),
+ inert: FL(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [[nz, null], [rz, null]] }, /*#__PURE__*/ F.createElement(xI.Provider, { value: vI }, p.children)));
+ }, /*#__PURE__*/ P.createElement(aI, { values: [[tz, null], [nz, null]] }, /*#__PURE__*/ P.createElement(bI.Provider, { value: _I }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
+var iz = /*#__PURE__*/ (0, P.createContext)({}), pfe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, ffe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = lI(e, t, az);
- let { hoverProps: n, isHovered: r } = VT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = LT({
+}, mfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = cI(e, t, iz);
+ let { hoverProps: n, isHovered: r } = BT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = IT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = sI({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = oI({
...e,
values: {
isHovered: r,
@@ -41343,8 +41350,8 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(mI.textarea, {
- ...K(dfe(e), o, n),
+ return /*#__PURE__*/ P.createElement(pI.textarea, {
+ ...K(pfe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -41353,18 +41360,18 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), pfe = /*#__PURE__*/ (0, F.createContext)(null), mfe = /*#__PURE__*/ Yx(function(e, t) {
- [e, t] = lI(e, t, pfe);
- let { validationBehavior: n } = cI(FI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = lI(e, i, gI);
- let [a, o] = uI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Aie({
- ...dI(e),
+}), hfe = /*#__PURE__*/ (0, P.createContext)(null), gfe = /*#__PURE__*/ qx(function(e, t) {
+ [e, t] = cI(e, t, hfe);
+ let { validationBehavior: n } = sI(PI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useRef)(null);
+ [e, i] = cI(e, i, hI);
+ let [a, o] = lI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, P.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Mie({
+ ...uI(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, F.useCallback)((e) => {
+ }, i), m = (0, P.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = sI({
+ }, [i]), h = oI({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -41373,8 +41380,8 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = LS(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(mI.div, {
+ }), g = FS(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ P.createElement(pI.div, {
...g,
...h,
ref: t,
@@ -41383,31 +41390,31 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [CI, {
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [SI, {
...l,
ref: a
}],
- [VI, {
+ [BI, {
...u,
ref: m
}],
- [az, {
+ [iz, {
...u,
ref: m
}],
- [zI, {
+ [RI, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [MI, { slots: {
+ [jI, { slots: {
description: d,
errorMessage: f
} }],
- [PI, p]
+ [NI, p]
] }, h.children));
-}), hfe = class e extends eb {
+}), _fe = class e extends nb {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -41479,16 +41486,16 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, gfe = /*#__PURE__*/ (0, F.createContext)(null), oz = /*#__PURE__*/ (0, F.createContext)(null), _fe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = lI(e, t, gfe), /*#__PURE__*/ F.createElement(eS, {
- content: /*#__PURE__*/ F.createElement(sS, e),
- createCollection: () => new hfe()
- }, (n) => /*#__PURE__*/ F.createElement(vfe, {
+}, vfe = /*#__PURE__*/ (0, P.createContext)(null), az = /*#__PURE__*/ (0, P.createContext)(null), yfe = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return [e, t] = cI(e, t, vfe), /*#__PURE__*/ P.createElement(Qx, {
+ content: /*#__PURE__*/ P.createElement(aS, e),
+ createCollection: () => new _fe()
+ }, (n) => /*#__PURE__*/ P.createElement(bfe, {
props: e,
collection: n,
treeRef: t
}));
-}), sz = {
+}), oz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41498,17 +41505,17 @@ var az = /*#__PURE__*/ (0, F.createContext)({}), dfe = (e) => {
rtl: "ArrowRight"
}
};
-function vfe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = kS(), a = AT({
+function bfe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = DS(), a = kT({
usage: "search",
sensitivity: "base"
- }), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
- (0, F.useEffect)(() => {
+ }), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, P.useRef)(o), l = (0, P.useRef)(s);
+ (0, P.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(xI), [y, b] = lw(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- (!Tfe(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = aR({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, P.useContext)(bI), [y, b] = cw(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, P.useState)(t), [C, w] = (0, P.useState)(y), [T, E] = (0, P.useState)(() => t.withExpandedKeys(C, y));
+ (!Dfe(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = iR({
...e,
selectionMode: u,
expandedKeys: y,
@@ -41516,29 +41523,29 @@ function vfe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = uoe({
+ }), { gridProps: O } = foe({
...e,
isVirtualized: g,
layoutDelegate: _
- }, D, n), k, A, j, M = !1, ee = null, N = (0, F.useRef)(null);
+ }, D, n), k, A, j, M = !1, ee = null, te = (0, P.useRef)(null);
if (o && r) {
k = r.useDraggableCollectionState({
collection: D.collection,
selectionManager: D.selectionManager,
- preview: r.renderDragPreview ? N : void 0
+ preview: r.renderDragPreview ? te : void 0
}), r.useDraggableCollection({}, k, n);
let e = r.DragPreview;
- ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
+ ee = r.renderDragPreview ? /*#__PURE__*/ P.createElement(e, { ref: te }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new NR());
+ let [ne] = (0, P.useState)(() => new MR());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
selectionManager: D.selectionManager
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
- te.setup(e, D, i);
- let t = new Mw({
+ ne.setup(e, D, i);
+ let t = new jw({
collection: D.collection,
collator: a,
ref: n,
@@ -41549,7 +41556,7 @@ function vfe({ props: e, collection: t, treeRef: n }) {
});
j = r.useDroppableCollection({
keyboardDelegate: t,
- dropTargetDelegate: te,
+ dropTargetDelegate: ne,
onDropActivate: (e) => {
if (e.target.type === "item") {
let t = e.target.key, n = D.collection.getItem(t), i = y.has(t);
@@ -41560,95 +41567,95 @@ function vfe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === sz.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === sz.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === oz.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === oz.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = LT(), ie = {
+ let N = !(!o || k?.isDisabled), { focusProps: re, isFocused: ie, isFocusVisible: F } = IT(), ae = {
isEmpty: D.collection.size === 0,
- isFocused: re,
- isFocusVisible: I,
+ isFocused: ie,
+ isFocusVisible: F,
isDropTarget: M,
selectionMode: D.selectionManager.selectionMode,
- allowsDragging: !!P,
+ allowsDragging: !!N,
state: D
- }, ae = sI({
+ }, oe = oI({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
- values: ie
- }), oe = null;
+ values: ae
+ }), se = null;
if (D.collection.size === 0 && e.renderEmptyState) {
- let { isEmpty: t, ...n } = ie, r = e.renderEmptyState({ ...n });
- oe = /*#__PURE__*/ F.createElement("div", {
+ let { isEmpty: t, ...n } = ae, r = e.renderEmptyState({ ...n });
+ se = /*#__PURE__*/ P.createElement("div", {
role: "row",
style: { display: "contents" },
"aria-level": 1
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
role: "gridcell",
style: { display: "contents" }
}, r));
}
- let se = LS(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(sC, null, /*#__PURE__*/ F.createElement(mI.div, {
- ...K(se, ae, O, ne, j?.collectionProps),
+ let ce = FS(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(aC, null, /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(ce, oe, O, re, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
"data-empty": D.collection.size === 0 || void 0,
- "data-focused": re || void 0,
+ "data-focused": ie || void 0,
"data-drop-target": M || void 0,
- "data-focus-visible": I || void 0,
+ "data-focus-visible": F || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
- "data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [oz, D],
- [OL, {
+ "data-allows-dragging": !!N || void 0
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [az, D],
+ [DL, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [kL, { render: xfe }]
- ] }, s && /*#__PURE__*/ F.createElement(wfe, null), /*#__PURE__*/ F.createElement(NL, null, /*#__PURE__*/ F.createElement(h, {
+ [OL, { render: Cfe }]
+ ] }, s && /*#__PURE__*/ P.createElement(Efe, null), /*#__PURE__*/ P.createElement(ML, null, /*#__PURE__*/ P.createElement(h, {
collection: D.collection,
- persistedKeys: jL(D.selectionManager, r, A),
+ persistedKeys: AL(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: AL(r, A)
- }))), oe)), ee);
+ renderDropIndicator: kL(r, A)
+ }))), se)), ee);
}
-var yfe = /*#__PURE__*/ rS(class extends Xy {
+var xfe = /*#__PURE__*/ tS(class extends Qy {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(cz), n = sI({
+ let t = (0, P.useContext)(sz), n = oI({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(xI.Provider, { value: vI }, n.children);
-}), cz = /*#__PURE__*/ (0, F.createContext)(null), bfe = /*#__PURE__*/ iS(class extends Xy {
+ return /*#__PURE__*/ P.createElement(bI.Provider, { value: _I }, n.children);
+}), sz = /*#__PURE__*/ (0, P.createContext)(null), Sfe = /*#__PURE__*/ nS(class extends Qy {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(oz);
- t = Wx(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(OL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ok({
+ let r = (0, P.useContext)(az);
+ t = Hx(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, P.useContext)(DL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Dk({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = VT({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = BT({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = LT(), { isFocusVisible: b, focusProps: x } = LT({ within: !0 }), { checkboxProps: S } = aae({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = IT(), { isFocusVisible: b, focusProps: x } = IT({ within: !0 }), { checkboxProps: S } = sae({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = vw();
+ let w = null, T = (0, P.useRef)(null), E = (0, P.useRef)(null), D = (0, P.useRef)(null), { visuallyHiddenProps: O } = _w();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -41657,7 +41664,7 @@ var yfe = /*#__PURE__*/ rS(class extends Xy {
},
activateButtonRef: D
}, o, E));
- let k = a && a.isDragging(n.key), A = w?.isDropTarget, j = r.selectionManager.selectionMode, M = r.selectionManager.selectionBehavior, ee = F.useMemo(() => ({
+ let k = a && a.isDragging(n.key), A = w?.isDropTarget, j = r.selectionManager.selectionMode, M = r.selectionManager.selectionBehavior, ee = P.useMemo(() => ({
...f,
isHovered: _,
isFocusVisible: v,
@@ -41687,7 +41694,7 @@ var yfe = /*#__PURE__*/ rS(class extends Xy {
A,
M,
j
- ]), N = sI({
+ ]), te = oI({
...e,
id: void 0,
children: n.rendered,
@@ -41695,51 +41702,51 @@ var yfe = /*#__PURE__*/ rS(class extends Xy {
defaultStyle: { "--tree-item-level": h },
values: ee
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
n.textValue;
- }, [n.textValue]), (0, F.useEffect)(() => {
+ }, [n.textValue]), (0, P.useEffect)(() => {
m && T.current;
}, []);
- let te = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
- a && te.current;
+ let ne = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
+ a && ne.current;
}, []);
- let P = ib({
+ let N = ob({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
case "content": return e.render(e);
case "loader":
- case "item": return /*#__PURE__*/ F.createElement(F.Fragment, null);
+ case "item": return /*#__PURE__*/ P.createElement(P.Fragment, null);
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = Nx(), re = LS(e, { global: !0 });
- return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
+ }), re = jx(), ie = FS(e, { global: !0 });
+ return delete ie.id, delete ie.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, w && !w.isHidden && /*#__PURE__*/ P.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
"aria-expanded": c["aria-expanded"],
"aria-label": w.dropIndicatorProps["aria-label"]
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
role: "gridcell",
"aria-colindex": 1,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
role: "button",
...O,
...w.dropIndicatorProps,
ref: E
- }), c["aria-expanded"] == null ? null : /*#__PURE__*/ F.createElement("div", {
+ }), c["aria-expanded"] == null ? null : /*#__PURE__*/ P.createElement("div", {
role: "button",
...O,
- id: ne,
+ id: re,
"aria-label": u["aria-label"],
- "aria-labelledby": `${ne} ${c.id}`,
+ "aria-labelledby": `${re} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(mI.div, {
- ...K(re, c, y, g, x, C?.dragProps),
- ...N,
+ }))), /*#__PURE__*/ P.createElement(pI.div, {
+ ...K(ie, c, y, g, x, C?.dragProps),
+ ...te,
ref: t,
"data-expanded": m && p || void 0,
"data-has-child-items": m || void 0,
@@ -41754,37 +41761,37 @@ var yfe = /*#__PURE__*/ rS(class extends Xy {
"data-allows-dragging": !!a || void 0,
"data-dragging": k || void 0,
"data-drop-target": A || void 0
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(oI, { values: [
- [II, { slots: {
- [aI]: {},
+ }, /*#__PURE__*/ P.createElement(aI, { values: [
+ [FI, { slots: {
+ [iI]: {},
selection: S
} }],
- [LI, { slots: {
- [aI]: {},
+ [II, { slots: {
+ [iI]: {},
selection: S
} }],
- [EI, { slots: {
- [aI]: {},
+ [TI, { slots: {
+ [iI]: {},
chevron: {
...u,
ref: T
},
drag: {
...C?.dragButtonProps,
- ref: te,
+ ref: ne,
style: { pointerEvents: "none" }
}
} }],
- [cz, { ...ee }],
- [PL, { isSelected: f.isSelected }]
- ] }, P))));
+ [sz, { ...ee }],
+ [NL, { isSelected: f.isSelected }]
+ ] }, N))));
});
-rS(Qy, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(xI), i = (0, F.useContext)(oz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- qL((0, F.useMemo)(() => ({
+tS(eb, function(e, t, n) {
+ let { isVirtualized: r } = (0, P.useContext)(bI), i = (0, P.useContext)(az), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, P.useRef)(null);
+ KL((0, P.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -41793,25 +41800,25 @@ rS(Qy, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = Wx(t);
- let { rowProps: u, gridCellProps: d } = Ok({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = Hx(t);
+ let { rowProps: u, gridCellProps: d } = Dk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = sI({
+ }, m = oI({
...c,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-TreeLoader",
values: { level: f }
}), h = {};
- return r && (h = { display: "contents" }), /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement("div", {
+ return r && (h = { display: "contents" }), /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: IL(!0)
- }, /*#__PURE__*/ F.createElement("div", {
+ inert: FL(!0)
+ }, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
style: {
@@ -41819,22 +41826,22 @@ rS(Qy, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(mI.div, {
+ })), a && m.children && /*#__PURE__*/ P.createElement(pI.div, {
ref: t,
- ...K(LS(e), p),
+ ...K(FS(e), p),
...m,
"data-level": f
- }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", {
...d,
style: h
}, m.children)));
});
-function xfe(e, t) {
- t = Wx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(OL), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Cfe(e, t) {
+ t = Hx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(DL), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Cfe, {
+ return /*#__PURE__*/ P.createElement(Tfe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -41843,8 +41850,8 @@ function xfe(e, t) {
level: c
});
}
-function Sfe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = vw(), c = sI({
+function wfe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = _w(), c = oI({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -41853,41 +41860,41 @@ function Sfe(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(mI.div, {
+ return /*#__PURE__*/ P.createElement(pI.div, {
...c,
role: "row",
"aria-level": a,
ref: t,
"data-drop-target": r || void 0
- }, /*#__PURE__*/ F.createElement("div", { role: "gridcell" }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", { role: "gridcell" }, /*#__PURE__*/ P.createElement("div", {
...s,
role: "button",
...n,
ref: i
}), c.children));
}
-var Cfe = /*#__PURE__*/ (0, F.forwardRef)(Sfe);
-function wfe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(OL), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = vw();
- return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
+var Tfe = /*#__PURE__*/ (0, P.forwardRef)(wfe);
+function Efe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, P.useContext)(DL), n = (0, P.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = _w();
+ return !i && r["aria-hidden"] ? null : /*#__PURE__*/ P.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
style: { position: "absolute" }
- }, /*#__PURE__*/ F.createElement("div", { role: "gridcell" }, /*#__PURE__*/ F.createElement("div", {
+ }, /*#__PURE__*/ P.createElement("div", { role: "gridcell" }, /*#__PURE__*/ P.createElement("div", {
role: "button",
...a,
...r,
ref: n
})));
}
-function Tfe(e, t) {
+function Dfe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41895,7 +41902,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41903,7 +41910,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), lz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41911,7 +41918,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), uz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), lz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41919,7 +41926,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), uz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41927,7 +41934,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41935,7 +41942,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41943,7 +41950,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41951,7 +41958,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41959,7 +41966,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41967,7 +41974,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41975,7 +41982,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41983,7 +41990,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41991,7 +41998,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), Ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), Rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41999,7 +42006,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), Lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), zfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42007,7 +42014,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), dz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42015,7 +42022,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), Rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), Bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42023,7 +42030,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), zfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), Vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42031,7 +42038,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42039,7 +42046,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Ufe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42047,7 +42054,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42055,7 +42062,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), fz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42063,7 +42070,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), Ufe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), Gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42071,7 +42078,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42079,7 +42086,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), qfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42087,7 +42094,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42095,7 +42102,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), qfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Yfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42103,7 +42110,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42111,7 +42118,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42119,7 +42126,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42127,7 +42134,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Yfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Zfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42135,7 +42142,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), hz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42143,7 +42150,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), gz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42151,7 +42158,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Qfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42159,7 +42166,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), Zfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), $fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42167,7 +42174,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Qfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), epe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42175,7 +42182,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), $fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), tpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42183,7 +42190,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), epe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), npe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42191,7 +42198,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), _z = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42199,7 +42206,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), tpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), rpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42207,7 +42214,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), npe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), ipe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42215,7 +42222,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), vz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42223,7 +42230,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42231,7 +42238,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42239,7 +42246,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), xz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42247,7 +42254,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), rpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), ape = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42255,7 +42262,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), Sz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42263,7 +42270,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), ipe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), ope = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42271,7 +42278,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), ape = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), spe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42279,7 +42286,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), ope = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), cpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42287,7 +42294,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), spe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), lpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42295,7 +42302,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), cpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), upe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42303,7 +42310,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), lpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), dpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42311,7 +42318,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Cz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42319,7 +42326,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Tz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), wz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42327,7 +42334,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), upe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), fpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42335,7 +42342,7 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.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" })), dpe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, P.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" })), ppe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -42343,22 +42350,22 @@ var Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
+}, P.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" }));
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Ez({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(wI, {
+function Tz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsxs)(CI, {
"data-label": "true",
...a,
- className: uF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: lF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, I.jsx)("span", {
+ e && /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Qfe, {
+ n && /* @__PURE__ */ (0, F.jsx)(epe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -42367,33 +42374,33 @@ function Ez({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Dz({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(NI, {
+function Ez({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, F.jsx)(MI, {
slot: e ? "errorMessage" : "description",
...n,
- className: uF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: lF("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 Oz = (0, F.createContext)({});
-function kz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(Oz.Provider, {
+var Dz = (0, P.createContext)({});
+function Oz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(Dz.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(mfe, {
+ children: /* @__PURE__ */ (0, F.jsx)(gfe, {
...a,
"data-input-size": e,
- className: uF("group flex h-max w-full flex-col items-start gap-1", r),
+ className: lF("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-kz.displayName = "TextField";
-var Az = dF({
+Oz.displayName = "TextField";
+var kz = uF({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -42422,44 +42429,44 @@ var Az = dF({
].join(" "),
icon: "size-5 shrink-0"
});
-function jz({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(Oz), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(BI, {
+function Az({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, P.useContext)(Dz), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, F.jsx)(zI, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => uF(Az.field, d ? Az.fieldWithAddonSize[u] : Az.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, I.jsxs)("div", {
- className: Az.content,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: Az.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: Az.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => lF(kz.field, d ? kz.fieldWithAddonSize[u] : kz.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, F.jsxs)("div", {
+ className: kz.content,
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
+ className: kz.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, F.jsx)(t, {
+ className: kz.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(bue, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(Sue, {
ref: o,
...c,
- className: uF(Az.input, l.inputClassName, a)
+ className: lF(kz.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: Az.icon,
+ }), n ? /* @__PURE__ */ (0, F.jsx)(n, {
+ className: kz.icon,
"aria-hidden": !0
}) : null]
})
});
}
-jz.displayName = "InputBase";
-function Mz({ 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, I.jsx)(kz, {
+Az.displayName = "InputBase";
+function jz({ 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, F.jsx)(Oz, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(Ez, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ e && /* @__PURE__ */ (0, F.jsx)(Tz, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(jz, {
+ /* @__PURE__ */ (0, F.jsx)(Az, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42468,25 +42475,25 @@ function Mz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(Dz, {
+ t && /* @__PURE__ */ (0, F.jsx)(Ez, {
isInvalid: d,
children: t
})
] })
});
}
-Mz.displayName = "Input";
+jz.displayName = "Input";
//#endregion
//#region src/react/components/modal-frame.tsx
-var fpe = {
+var mpe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
-function Nz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = bx();
- return /* @__PURE__ */ (0, I.jsx)(bR, {
+function Mz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = vx();
+ return /* @__PURE__ */ (0, F.jsx)(yR, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -42494,11 +42501,11 @@ function Nz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
"data-modal-kind": n,
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(nde, {
+ children: /* @__PURE__ */ (0, F.jsx)(ide, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${fpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, I.jsx)(gR, {
+ className: `flex max-h-full w-full ${mpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, F.jsx)(hR, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -42506,8 +42513,8 @@ function Nz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function Pz({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+function Nz({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
children: e
@@ -42515,90 +42522,90 @@ function Pz({ children: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function Fz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
- let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+function Pz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+ let s = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-note-layout": "",
- className: uF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: uF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
- children: [t ? /* @__PURE__ */ (0, I.jsx)("p", {
+ className: lF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
+ className: lF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ children: [t ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
- }) : null, /* @__PURE__ */ (0, I.jsx)("p", {
+ }) : null, /* @__PURE__ */ (0, F.jsx)("p", {
className: "whitespace-pre-line text-body-2-regular wrap-anywhere",
children: i
})]
- }), n ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }), n ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-note-action": "",
className: "max-w-full shrink-0",
children: n
}) : null]
}), r] });
switch (e) {
- case "info": return /* @__PURE__ */ (0, I.jsx)("div", {
+ case "info": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "status",
- className: uF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: lF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
- case "success": return /* @__PURE__ */ (0, I.jsx)("div", {
+ case "success": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "status",
- className: uF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: lF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
- case "warning": return /* @__PURE__ */ (0, I.jsx)("div", {
+ case "warning": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "note",
- className: uF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: lF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
- case "error": return /* @__PURE__ */ (0, I.jsx)("div", {
+ case "error": return /* @__PURE__ */ (0, F.jsx)("div", {
role: "alert",
- className: uF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: lF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
- default: return /* @__PURE__ */ (0, I.jsx)("div", {
+ default: return /* @__PURE__ */ (0, F.jsx)("div", {
role: "note",
- className: uF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: lF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
}
//#endregion
//#region src/react/components/empty-state.tsx
-var ppe = {
+var hpe = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function mpe({ target: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)(q, {
+function gpe({ target: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
onClick: () => document.querySelector(e)?.focus(),
children: t
});
}
-function Iz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function Fz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${ppe[i]}`,
+ className: `flex min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${hpe[i]}`,
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "mb-2 flex size-empty-glyph shrink-0 items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(e, {
+ children: /* @__PURE__ */ (0, F.jsx)(e, {
"aria-hidden": !0,
className: "size-8 shrink-0"
})
}),
- /* @__PURE__ */ (0, I.jsx)("h3", {
+ /* @__PURE__ */ (0, F.jsx)("h3", {
className: "text-body-semibold text-pretty text-text-primary",
children: t
}),
- r == null ? null : /* @__PURE__ */ (0, I.jsx)("p", {
+ r == null ? null : /* @__PURE__ */ (0, F.jsx)("p", {
className: "max-w-empty-copy text-body-2-regular leading-empty-copy text-text-secondary",
children: r
}),
- n ? /* @__PURE__ */ (0, I.jsx)("div", {
+ n ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-2 flex flex-wrap justify-center gap-2",
children: n
}) : null
@@ -42607,45 +42614,45 @@ function Iz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
}
//#endregion
//#region src/react/components/sprite-glyph.tsx
-var Lz = /* @__PURE__ */ new Map();
-function Rz(e) {
- let t = Lz.get(e);
+var Iz = /* @__PURE__ */ new Map();
+function Lz(e) {
+ let t = Iz.get(e);
if (t) return t;
- let { wide: n, viewBox: r } = nn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+ let { wide: n, viewBox: r } = rn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: r,
className: `iconwide shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
- }) : ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
+ }) : ({ className: t }) => /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, Lz.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, Iz.set(e, i), i;
}
//#endregion
//#region src/react/components/settings-dialog-close.tsx
-function zz({ label: e, id: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsx)("button", {
+function Rz({ label: e, id: t, onPress: n }) {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: t,
"data-settings-dialog-close": "",
"aria-label": e,
onClick: n,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": "true",
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-x" })
})
});
}
//#endregion
//#region src/react/settings/busy-props.ts
-function Bz(e) {
+function zz(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -42653,55 +42660,55 @@ function Bz(e) {
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
-var Vz = ["library-shortcuts"], Hz = "/api/library-shortcuts";
-function Uz(e = !0) {
- return Nt({
- queryKey: Vz,
- queryFn: ({ signal: e }) => V(Hz, e),
+var Bz = ["library-shortcuts"], Vz = "/api/library-shortcuts";
+function Hz(e = !0) {
+ return Pt({
+ queryKey: Bz,
+ queryFn: ({ signal: e }) => B(Vz, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function Wz() {
- return Pt({
- mutationKey: Vz,
- mutationFn: (e) => H(Hz, e),
+function Uz() {
+ return Ft({
+ mutationKey: Bz,
+ mutationFn: (e) => V(Vz, e),
onSuccess: (e, t) => {
- U.setQueryData(Vz, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(Bz, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function Gz(e, t) {
+function Wz(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function hpe(e) {
- return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : pn(e.kind, e.name, e.entity_id);
+function _pe(e) {
+ return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : hn(e.kind, e.name, e.entity_id);
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
-var Kz = Rz("star"), gpe = Rz("bookmark-plus"), qz = Rz("chevron-right"), Jz = {
+var Gz = Lz("star"), vpe = Lz("bookmark-plus"), Kz = Lz("chevron-right"), qz = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, Yz = {
- all: Rz("star"),
- performer: Rz("user-round"),
- creator: Rz("user-round"),
- studio: Rz("clapperboard"),
- series: Rz("film"),
- agency: Rz("briefcase"),
- tag: Rz("tags"),
- filters: Rz("list-filter")
-}, Xz = [
+}, Jz = {
+ all: Lz("star"),
+ performer: Lz("user-round"),
+ creator: Lz("user-round"),
+ studio: Lz("clapperboard"),
+ series: Lz("film"),
+ agency: Lz("briefcase"),
+ tag: Lz("tags"),
+ filters: Lz("list-filter")
+}, Yz = [
["all", "全部"],
- ...Object.entries(Jz),
+ ...Object.entries(qz),
["filters", "保存的筛选"]
];
-function Zz({ label: e, children: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)("button", {
+function Xz({ label: e, children: t, ...n }) {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...n,
"data-entity-action": "",
@@ -42710,19 +42717,19 @@ function Zz({ label: e, children: t, ...n }) {
children: t
});
}
-function Qz({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(_pe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function Zz({ item: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(ype, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function _pe({ item: e }) {
- let t = Uz(!1), n = (0, F.useRef)(t.data), r = Wz(), i = t.data && t.data !== n.current ? Gz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Gz(t.data.favorites || [], e) : !1);
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function ype({ item: e }) {
+ let t = Hz(!1), n = (0, P.useRef)(t.data), r = Uz(), i = t.data && t.data !== n.current ? Wz(t.data.favorites || [], e) : e.favorite ?? (t.data ? Wz(t.data.favorites || [], e) : !1);
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(Zz, {
+ /* @__PURE__ */ (0, F.jsx)(Xz, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${e.name}`,
- ...Bz(r.isPending),
+ ...zz(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -42730,16 +42737,16 @@ function _pe({ item: e }) {
on: !i
});
},
- children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: r.isPending ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: vs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(Kz, {})
+ dangerouslySetInnerHTML: { __html: bs("") }
+ }) : /* @__PURE__ */ (0, F.jsx)(Gz, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ r.isError ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(r.error)
+ children: Wn(r.error)
}) : null,
- t.isError ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t.isError ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": "立即重试读取收藏",
@@ -42749,50 +42756,50 @@ function _pe({ item: e }) {
]
});
}
-function $z({ currentHref: e, kind: t }) {
- let [n, r] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+function Qz({ currentHref: e, kind: t }) {
+ let [n, r] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(qF, {
+ children: /* @__PURE__ */ (0, F.jsx)(KF, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: Kz,
+ icon: Gz,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Mz, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(vpe, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(bpe, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function vpe({ currentHref: e, kind: t, close: n }) {
- let r = Uz(), i = Wz(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
- (0, F.useEffect)(() => {
+function bpe({ currentHref: e, kind: t, close: n }) {
+ let r = Hz(), i = Uz(), [a, o] = (0, P.useState)(""), [s, c] = (0, P.useState)(t || "all"), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = (0, P.useId)(), [m, h] = (0, P.useState)(() => matchMedia("(max-width: 760px)").matches);
+ (0, P.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = nI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
- (0, F.useLayoutEffect)(() => {
- b.current && (x.current = go(b.current) || null);
- }, []), (0, F.useLayoutEffect)(() => {
- let e = oc(g.current);
+ let g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(s), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = tI(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ (0, P.useLayoutEffect)(() => {
+ b.current && (x.current = vo(b.current) || null);
+ }, []), (0, P.useLayoutEffect)(() => {
+ let e = cc(g.current);
return () => e?.destroy();
- }, []), (0, F.useLayoutEffect)(() => {
+ }, []), (0, P.useLayoutEffect)(() => {
b.current && (b.current.scrollTop = 0);
- }, [s]), (0, F.useLayoutEffect)(() => {
- v.current !== s && js(_.current, "h2"), v.current = s;
- }, [s]), (0, F.useLayoutEffect)(() => {
+ }, [s]), (0, P.useLayoutEffect)(() => {
+ v.current !== s && Ns(_.current, "h2"), v.current = s;
+ }, [s]), (0, P.useLayoutEffect)(() => {
x.current?.();
});
- let C = Xz.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = Yz.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -42806,25 +42813,25 @@ function vpe({ currentHref: e, kind: t, close: n }) {
o(""), f("筛选已保存");
} });
}, E = r.data, D = (E?.favorites || []).filter((e) => (s === "all" || e.kind === s) && e.name.toLocaleLowerCase().includes(l.trim().toLocaleLowerCase()));
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-shortcuts-panel": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
ref: _,
"data-shortcuts-head": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Rz, {
label: "关闭我的收藏",
onPress: n
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("aside", {
+ /* @__PURE__ */ (0, F.jsxs)("aside", {
"data-shortcuts-sidebar": "",
"data-settings-nav": "",
"data-glass-pane": m ? void 0 : "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: g,
"data-shortcuts-categories": "",
"data-glass-pane": m ? "" : void 0,
@@ -42833,21 +42840,21 @@ function vpe({ currentHref: e, kind: t, close: n }) {
onKeyDown: w,
onPointerLeave: S.leave,
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: y,
"data-view-glide": "",
"data-shortcuts-glide": "",
"aria-hidden": "true",
hidden: !0
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-shortcuts-caption": "",
role: "presentation",
children: "我的收藏"
}),
- Xz.map(([e, t]) => {
- let n = Yz[e] || Kz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ Yz.map(([e, t]) => {
+ let n = Jz[e] || Gz, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
id: `${p}-${e}`,
@@ -42858,12 +42865,12 @@ function vpe({ currentHref: e, kind: t, close: n }) {
onPointerEnter: S.hover,
onClick: () => c(e),
children: [
- /* @__PURE__ */ (0, I.jsx)(n, {
+ /* @__PURE__ */ (0, F.jsx)(n, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}),
- /* @__PURE__ */ (0, I.jsx)("span", { children: t }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", { children: t }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-shortcuts-count": "",
children: r
})
@@ -42871,29 +42878,29 @@ function vpe({ currentHref: e, kind: t, close: n }) {
}, e);
})
]
- }), /* @__PURE__ */ (0, I.jsxs)("nav", {
+ }), /* @__PURE__ */ (0, F.jsxs)("nav", {
"data-shortcuts-footer": "",
"aria-label": "收藏作品清单",
- children: [/* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("a", {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(Kz, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, F.jsx)(Gz, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(qz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, F.jsx)(Kz, { "aria-hidden": !0 })
]
- }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ }), /* @__PURE__ */ (0, F.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(gpe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, F.jsx)(vpe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(qz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, F.jsx)(Kz, { "aria-hidden": !0 })
]
})]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
ref: b,
"data-shortcuts-content": "",
role: "tabpanel",
@@ -42902,30 +42909,30 @@ function vpe({ currentHref: e, kind: t, close: n }) {
tabIndex: 0,
className: "flex min-h-0 min-w-0 flex-col gap-4 overflow-y-auto overscroll-contain",
children: [
- r.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
+ r.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
"aria-busy": "true",
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ r.isError ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => void r.refetch(),
children: "立即重试"
}),
- children: Hn(r.error)
+ children: Wn(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ i.isError ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(i.error)
+ children: Wn(i.error)
}) : null,
- E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(Iz, {
+ E ? s === "filters" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ E.filters.length ? null : /* @__PURE__ */ (0, F.jsx)(Fz, {
size: "compact",
- icon: Rz("list-filter"),
+ icon: Lz("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(iI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/",
onClick: n,
@@ -42933,18 +42940,18 @@ function vpe({ currentHref: e, kind: t, close: n }) {
}),
children: "在馆藏页保存当前条件,随时打开。"
}),
- E.filters.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ E.filters.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, F.jsx)("a", {
href: e.href,
onClick: n,
className: "min-w-0 flex-1 break-all text-body-regular text-text-primary underline",
children: e.name
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...Bz(i.isPending),
+ ...zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -42954,51 +42961,51 @@ function vpe({ currentHref: e, kind: t, close: n }) {
children: "删除"
})]
}, e.id)),
- e ? /* @__PURE__ */ (0, I.jsxs)("form", {
+ e ? /* @__PURE__ */ (0, F.jsxs)("form", {
onSubmit: T,
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ /* @__PURE__ */ (0, F.jsx)(jz, {
label: "筛选名称",
value: a,
onChange: o,
maxLength: 80
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
type: "submit",
disabled: !a.trim(),
- ...Bz(i.isPending),
+ ...zz(i.isPending),
children: "保存当前筛选"
}),
- d ? /* @__PURE__ */ (0, I.jsx)("span", {
+ d ? /* @__PURE__ */ (0, F.jsx)("span", {
role: "status",
className: "text-body-2-regular text-text-secondary",
children: d
}) : null
]
}) : null
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ ] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(jz, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: Rz("search"),
+ leadingIcon: Lz("search"),
value: l,
onChange: u
}),
- D.length ? null : /* @__PURE__ */ (0, I.jsx)(Iz, {
+ D.length ? null : /* @__PURE__ */ (0, F.jsx)(Fz, {
size: "compact",
- icon: Kz,
+ icon: Gz,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
- actions: l ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: l ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: () => u(""),
children: "清除搜索"
- }) : E.favorites.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : E.favorites.length ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(iI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/",
onClick: n,
@@ -43006,31 +43013,31 @@ function vpe({ currentHref: e, kind: t, close: n }) {
}),
children: l ? "试试其他名称。" : "在资料页或标签页收藏常用内容。"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-shortcuts-list": "",
- children: D.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: D.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: hpe(e),
+ children: [/* @__PURE__ */ (0, F.jsxs)("a", {
+ href: _pe(e),
"aria-label": e.name,
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(ype, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(xpe, { item: e }, e.image_url), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "truncate",
children: e.name
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : Jz[e.kind]
+ children: e.scope === "online" ? "在线标签" : qz[e.kind]
})]
})]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${e.name}`,
- ...Bz(i.isPending),
+ ...zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -43048,19 +43055,19 @@ function vpe({ currentHref: e, kind: t, close: n }) {
]
});
}
-function ype({ item: e }) {
- let t = Yz[e.kind] || Kz;
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function xpe({ item: e }) {
+ let t = Jz[e.kind] || Gz;
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
- children: [e.image_url ? /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [e.image_url ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e.image_url,
alt: "",
loading: "lazy",
decoding: "async",
"data-drop": "self",
"data-fallbacks": e.image_fallbacks?.join("|") || void 0
- }) : null, /* @__PURE__ */ (0, I.jsx)(t, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(t, {
"aria-hidden": !0,
className: "size-5"
})]
@@ -43068,20 +43075,20 @@ function ype({ item: e }) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var bpe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, eB = /^[\\/]{2}/;
-function xpe(e, t) {
+var Spe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, $z = /^[\\/]{2}/;
+function Cpe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-var tB = "popstate";
-function nB(e) {
+var eB = "popstate";
+function tB(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function Spe(e = {}) {
+function wpe(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return oB("", {
+ return aB("", {
pathname: r,
search: i,
hash: a
@@ -43092,14 +43099,14 @@ function Spe(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : sB(t);
+ return typeof t == "string" ? t : oB(t);
}
- return wpe(t, n, null, e);
+ return Epe(t, n, null, e);
}
-function rB(e, t) {
+function nB(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function iB(e, t) {
+function rB(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -43107,10 +43114,10 @@ function iB(e, t) {
} catch {}
}
}
-function Cpe() {
+function Tpe() {
return Math.random().toString(36).substring(2, 10);
}
-function aB(e, t) {
+function iB(e, t) {
return {
usr: e.state,
key: e.key,
@@ -43122,21 +43129,21 @@ function aB(e, t) {
} : void 0
};
}
-function oB(e, t, n = null, r, i) {
+function aB(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? cB(t) : t,
+ ...typeof t == "string" ? sB(t) : t,
state: n,
- key: t && t.key || r || Cpe(),
+ key: t && t.key || r || Tpe(),
mask: i
};
}
-function sB({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function oB({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function cB(e) {
+function sB(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -43146,7 +43153,7 @@ function cB(e) {
}
return t;
}
-function wpe(e, t, n, r = {}) {
+function Epe(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@ -43166,9 +43173,9 @@ function wpe(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = nB(e) ? e : oB(h.location, e, t);
+ let r = tB(e) ? e : aB(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = aB(r, l), f = h.createHref(r.mask || r);
+ let d = iB(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -43183,9 +43190,9 @@ function wpe(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = nB(e) ? e : oB(h.location, e, t);
+ let r = tB(e) ? e : aB(h.location, e, t);
n && n(r, e), l = u();
- let i = aB(r, l), d = h.createHref(r.mask || r);
+ let i = iB(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -43193,7 +43200,7 @@ function wpe(e, t, n, r = {}) {
});
}
function m(e) {
- return Tpe(i, e);
+ return Dpe(i, e);
}
let h = {
get action() {
@@ -43204,8 +43211,8 @@ function wpe(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(tB, d), c = e, () => {
- i.removeEventListener(tB, d), c = null;
+ return i.addEventListener(eB, d), c = e, () => {
+ i.removeEventListener(eB, d), c = null;
};
},
createHref(e) {
@@ -43228,29 +43235,29 @@ function wpe(e, t, n, r = {}) {
};
return h;
}
-function Tpe(e, t, n = !1) {
+function Dpe(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), rB(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : sB(t);
- return i = i.replace(/ $/, "%20"), !n && eB.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), nB(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : oB(t);
+ return i = i.replace(/ $/, "%20"), !n && $z.test(i) && (i = r + i), new URL(i, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function Epe(e, t, n = "/") {
- return Dpe(e, t, n, !1);
+function Ope(e, t, n = "/") {
+ return kpe(e, t, n, !1);
}
-function Dpe(e, t, n, r, i) {
- let a = hB((typeof t == "string" ? cB(t) : t).pathname || "/", n);
+function kpe(e, t, n, r, i) {
+ let a = mB((typeof t == "string" ? sB(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? Ope(e), s = null, c = Vpe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = Bpe(o[e], c, r);
+ let o = i ?? Ape(e), s = null, c = Upe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = Hpe(o[e], c, r);
return s;
}
-function Ope(e) {
- let t = lB(e);
- return kpe(t), t;
+function Ape(e) {
+ let t = cB(e);
+ return jpe(t), t;
}
-function lB(e, t = [], n = [], r = "", i = !1) {
+function cB(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -43260,14 +43267,14 @@ function lB(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- rB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ nB(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = yB([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (rB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), lB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = vB([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (nB(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), cB(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: Rpe(l, e.index),
+ score: Bpe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = mB(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = pB(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -43278,68 +43285,68 @@ function lB(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of uB(e.path)) a(e, t, !0, n);
+ else for (let n of lB(e.path)) a(e, t, !0, n);
}), t;
}
-function uB(e) {
+function lB(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = uB(r.join("/")), s = [];
+ let o = lB(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function kpe(e) {
- e.sort((e, t) => e.score === t.score ? zpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function jpe(e) {
+ e.sort((e, t) => e.score === t.score ? Vpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var Ape = /^:[\w-]+$/, jpe = /^:[\w-]+/, Mpe = 3.5, Npe = 3, Ppe = 2, Fpe = 1, Ipe = 10, Lpe = -2, dB = (e) => e === "*";
-function Rpe(e, t) {
+var Mpe = /^:[\w-]+$/, Npe = /^:[\w-]+/, Ppe = 3.5, Fpe = 3, Ipe = 2, Lpe = 1, Rpe = 10, zpe = -2, uB = (e) => e === "*";
+function Bpe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(dB) && (r += Lpe), t && (r += Ppe), n.filter((e) => !dB(e)).reduce((e, t) => e + (Ape.test(t) ? Npe : jpe.test(t) ? Mpe : t === "" ? Fpe : Ipe), r);
+ return n.some(uB) && (r += zpe), t && (r += Ipe), n.filter((e) => !uB(e)).reduce((e, t) => e + (Mpe.test(t) ? Fpe : Npe.test(t) ? Ppe : t === "" ? Lpe : Rpe), r);
}
-function zpe(e, t) {
+function Vpe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function Bpe(e, t, n = !1) {
+function Hpe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? pB(u, l, s.matcher, s.compiledParams) : fB(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = fB({
+ }, d = s.matcher && s.compiledParams ? fB(u, l, s.matcher, s.compiledParams) : dB(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = dB({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: yB([a, d.pathname]),
- pathnameBase: Kpe(yB([a, d.pathnameBase])),
+ pathname: vB([a, d.pathname]),
+ pathnameBase: Jpe(vB([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = yB([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = vB([a, d.pathnameBase]));
}
return o;
}
-function fB(e, t) {
+function dB(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = mB(e.path, e.caseSensitive, e.end);
- return pB(e, t, n, r);
+ let [n, r] = pB(e.path, e.caseSensitive, e.end);
+ return fB(e, t, n, r);
}
-function pB(e, t, n, r) {
+function fB(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = bB(a, 1), s = i.slice(1);
+ let a = i[0], o = yB(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = bB(a.slice(0, a.length - e.length), 1);
+ o = yB(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -43349,8 +43356,8 @@ function pB(e, t, n, r) {
pattern: e
};
}
-function mB(e, t = !1, n = !0) {
- iB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function pB(e, t = !1, n = !0) {
+ rB(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -43363,46 +43370,46 @@ function mB(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function Vpe(e) {
+function Upe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return iB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return rB(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function hB(e, t) {
+function mB(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function Hpe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? cB(e) : e, a;
- return n ? (n = vB(n), a = n.startsWith("/") || n.startsWith("\\") ? gB(n.substring(1), "/") : gB(n, t)) : a = t, {
+function Wpe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? sB(e) : e, a;
+ return n ? (n = _B(n), a = n.startsWith("/") || n.startsWith("\\") ? hB(n.substring(1), "/") : hB(n, t)) : a = t, {
pathname: a,
- search: qpe(r),
- hash: Jpe(i)
+ search: Ype(r),
+ hash: Xpe(i)
};
}
-function gB(e, t) {
- let n = bB(t).split("/");
+function hB(e, t) {
+ let n = yB(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function _B(e, t, n, r) {
+function gB(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function Upe(e) {
+function Gpe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function Wpe(e) {
- let t = Upe(e);
+function Kpe(e) {
+ let t = Gpe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function Gpe(e, t, n, r = !1) {
+function qpe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = cB(e) : (i = { ...e }, rB(!i.pathname || !i.pathname.includes("?"), _B("?", "pathname", "search", i)), rB(!i.pathname || !i.pathname.includes("#"), _B("#", "pathname", "hash", i)), rB(!i.search || !i.search.includes("#"), _B("#", "search", "hash", i)));
+ typeof e == "string" ? i = sB(e) : (i = { ...e }, nB(!i.pathname || !i.pathname.includes("?"), gB("?", "pathname", "search", i)), nB(!i.pathname || !i.pathname.includes("#"), gB("#", "pathname", "hash", i)), nB(!i.search || !i.search.includes("#"), gB("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -43414,16 +43421,16 @@ function Gpe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = Hpe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = Wpe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var vB = (e) => e.replace(/[\\/]{2,}/g, "/"), yB = (e) => vB(e.join("/"));
-function bB(e, t = 0) {
+var _B = (e) => e.replace(/[\\/]{2,}/g, "/"), vB = (e) => _B(e.join("/"));
+function yB(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var Kpe = (e) => bB(e).replace(/^\/*/, "/"), qpe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Jpe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ype = class {
+var Jpe = (e) => yB(e).replace(/^\/*/, "/"), Ype = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xpe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Zpe = class {
status;
statusText;
data;
@@ -43433,26 +43440,26 @@ var Kpe = (e) => bB(e).replace(/^\/*/, "/"), qpe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function Xpe(e) {
+function Qpe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Zpe(e) {
- return yB(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function $pe(e) {
+ return vB(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var xB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function Qpe(e, t) {
+var bB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function eme(e, t) {
let n = e;
- if (typeof n != "string" || !bpe.test(n)) return {
+ if (typeof n != "string" || !Spe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (xB) try {
- let e = new URL(window.location.href), r = eB.test(n) ? new URL(xpe(n, e.protocol)) : new URL(n), a = hB(r.pathname, t);
+ if (bB) try {
+ let e = new URL(window.location.href), r = $z.test(n) ? new URL(Cpe(n, e.protocol)) : new URL(n), a = mB(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- iB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ rB(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -43462,45 +43469,45 @@ function Qpe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var SB = new URL("http://localhost");
-function CB(e) {
+var xB = new URL("http://localhost");
+function SB(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), SB);
+ return new URL(e.createHref("/"), xB);
} catch {
- return SB;
+ return xB;
}
}
-function wB(e, t) {
+function CB(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function $pe(e, t) {
+function tme(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function TB(e, t, n, r) {
+function wB(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !wB(i, n), s = !wB(a, n);
+ let a = new URL(t, n), o = i != null && !CB(i, n), s = !CB(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !$pe(e, i) || !wB(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !tme(e, i) || !CB(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var EB = [
+var TB = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(EB);
-var eme = ["GET", ...EB];
-new Set(eme);
-var tme = [
+new Set(TB);
+var nme = ["GET", ...TB];
+new Set(nme);
+var rme = [
"about:",
"blob:",
"chrome:",
@@ -43512,85 +43519,85 @@ var tme = [
"filesystem:",
"javascript:"
];
-function nme(e) {
+function ime(e) {
try {
- return tme.includes(new URL(e).protocol);
+ return rme.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var DB = F.createContext(null);
-DB.displayName = "DataRouter";
-var rme = F.createContext(null);
-rme.displayName = "DataRouterState";
-var OB = F.createContext(null);
-OB.displayName = "DataRouterData";
-var ime = F.createContext(null);
-ime.displayName = "DataRouterNavigation";
-var ame = F.createContext(!1), ome = F.createContext({ isTransitioning: !1 });
-ome.displayName = "ViewTransition";
-var sme = F.createContext(null);
-sme.displayName = "Fetchers";
-var cme = F.createContext(null);
-cme.displayName = "Await";
-var kB = F.createContext(null);
-kB.displayName = "Navigation";
-var AB = F.createContext(null);
-AB.displayName = "Location";
-var jB = F.createContext({
+var EB = P.createContext(null);
+EB.displayName = "DataRouter";
+var ame = P.createContext(null);
+ame.displayName = "DataRouterState";
+var DB = P.createContext(null);
+DB.displayName = "DataRouterData";
+var ome = P.createContext(null);
+ome.displayName = "DataRouterNavigation";
+var sme = P.createContext(!1), cme = P.createContext({ isTransitioning: !1 });
+cme.displayName = "ViewTransition";
+var lme = P.createContext(null);
+lme.displayName = "Fetchers";
+var ume = P.createContext(null);
+ume.displayName = "Await";
+var OB = P.createContext(null);
+OB.displayName = "Navigation";
+var kB = P.createContext(null);
+kB.displayName = "Location";
+var AB = P.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-jB.displayName = "Route";
-var MB = F.createContext(!1);
-MB.displayName = "IsDataRoute";
-var NB = F.createContext(void 0);
-NB.displayName = "RouteId";
-var PB = F.createContext(null);
-PB.displayName = "RouteError";
+AB.displayName = "Route";
+var jB = P.createContext(!1);
+jB.displayName = "IsDataRoute";
+var MB = P.createContext(void 0);
+MB.displayName = "RouteId";
+var NB = P.createContext(null);
+NB.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var FB = "REACT_ROUTER_ERROR", lme = "REDIRECT", ume = "ROUTE_ERROR_RESPONSE";
-function dme(e) {
- if (e.startsWith(`${FB}:${lme}:{`)) try {
+var PB = "REACT_ROUTER_ERROR", dme = "REDIRECT", fme = "ROUTE_ERROR_RESPONSE";
+function pme(e) {
+ if (e.startsWith(`${PB}:${dme}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function fme(e) {
- if (e.startsWith(`${FB}:${ume}:{`)) try {
+function mme(e) {
+ if (e.startsWith(`${PB}:${fme}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ype(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Zpe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function IB() {
- return F.useContext(AB) != null;
+function FB() {
+ return P.useContext(kB) != null;
}
-function LB() {
- return rB(IB(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(AB).location;
+function IB() {
+ return nB(FB(), "useLocation() may be used only in the context of a <Router> component."), P.useContext(kB).location;
}
-var RB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function pme() {
- return F.useContext(MB) ? Tme() : mme();
+var LB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function hme() {
+ return P.useContext(jB) ? Dme() : gme();
}
-function mme() {
- rB(IB(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = F.useContext(DB), { basename: t, navigator: n } = F.useContext(kB), { matches: r } = F.useContext(jB), { pathname: i } = LB(), a = JSON.stringify(Wpe(r)), o = F.useRef(!1);
- return F.useLayoutEffect(() => {
+function gme() {
+ nB(FB(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = P.useContext(EB), { basename: t, navigator: n } = P.useContext(OB), { matches: r } = P.useContext(AB), { pathname: i } = IB(), a = JSON.stringify(Kpe(r)), o = P.useRef(!1);
+ return P.useLayoutEffect(() => {
o.current = !0;
- }), F.useCallback((r, s = {}) => {
- if (iB(o.current, RB), !o.current) return;
+ }), P.useCallback((r, s = {}) => {
+ if (rB(o.current, LB), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = Gpe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : yB([t, c.pathname])), TB(typeof r == "string" ? r : sB(r), n.createHref(c), CB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = qpe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : vB([t, c.pathname])), wB(typeof r == "string" ? r : oB(r), n.createHref(c), SB(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -43599,20 +43606,20 @@ function mme() {
e
]);
}
-F.createContext(null);
-function hme(e, t) {
- return zB(e, t);
+P.createContext(null);
+function _me(e, t) {
+ return RB(e, t);
}
-function zB(e, t, n) {
- rB(IB(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = F.useContext(kB), { matches: i } = F.useContext(jB), a = i[i.length - 1], o = a ? a.params : {};
+function RB(e, t, n) {
+ nB(FB(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = P.useContext(OB), { matches: i } = P.useContext(AB), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = LB(), l;
+ let c = IB(), l;
if (t) {
- let e = typeof t == "string" ? cB(t) : t;
- rB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? sB(t) : t;
+ nB(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -43620,13 +43627,13 @@ function zB(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : Epe(e, { pathname: d });
- let p = xme(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : Ope(e, { pathname: d });
+ let p = Cme(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: yB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : yB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: vB([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : vB([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ F.createElement(AB.Provider, { value: {
+ return t && p ? /* @__PURE__ */ P.createElement(kB.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -43639,14 +43646,14 @@ function zB(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function gme() {
- let e = wme(), t = Xpe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
- return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ F.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ F.createElement("pre", { style: {
+function vme() {
+ let e = Eme(), t = Qpe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+ return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ P.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ P.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var _me = /* @__PURE__ */ F.createElement(gme, null), vme = class extends F.Component {
+var yme = /* @__PURE__ */ P.createElement(vme, null), bme = class extends P.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -43654,7 +43661,7 @@ var _me = /* @__PURE__ */ F.createElement(gme, null), vme = class extends F.Comp
error: e.error
};
}
- static contextType = ame;
+ static contextType = sme;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -43675,33 +43682,33 @@ var _me = /* @__PURE__ */ F.createElement(gme, null), vme = class extends F.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = fme(e.digest);
+ let t = mme(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(jB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(MB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(NB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(PB.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ P.createElement(AB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ P.createElement(jB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ P.createElement(MB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ P.createElement(NB.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ F.createElement(yme, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ P.createElement(xme, { error: e }, t) : t;
}
-}, BB = /* @__PURE__ */ new WeakMap();
-function yme({ children: e, error: t }) {
- let { basename: n, navigator: r } = F.useContext(kB);
+}, zB = /* @__PURE__ */ new WeakMap();
+function xme({ children: e, error: t }) {
+ let { basename: n, navigator: r } = P.useContext(OB);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = dme(t.digest);
+ let e = pme(t.digest);
if (e) {
- let i = BB.get(t);
+ let i = zB.get(t);
if (i) throw i;
- let a = Qpe(e.location, n), o = a.absoluteURL || a.to;
- if (TB(e.location, o, CB(r), "allow-explicit"), nme(o)) throw Error("Invalid redirect location");
- if (xB && !BB.get(t)) {
+ let a = eme(e.location, n), o = a.absoluteURL || a.to;
+ if (wB(e.location, o, SB(r), "allow-explicit"), ime(o)) throw Error("Invalid redirect location");
+ if (bB && !zB.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw BB.set(t, n), n;
+ throw zB.set(t, n), n;
}
}
- return /* @__PURE__ */ F.createElement("meta", {
+ return /* @__PURE__ */ P.createElement("meta", {
httpEquiv: "refresh",
content: `0;url=${o}`
});
@@ -43709,11 +43716,11 @@ function yme({ children: e, error: t }) {
}
return e;
}
-function bme({ routeContext: e, match: t, children: n }) {
- let r = F.useContext(DB);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(jB.Provider, { value: e }, /* @__PURE__ */ F.createElement(MB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(NB.Provider, { value: t.route.id }, n)));
+function Sme({ routeContext: e, match: t, children: n }) {
+ let r = P.useContext(EB);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ P.createElement(AB.Provider, { value: e }, /* @__PURE__ */ P.createElement(jB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ P.createElement(MB.Provider, { value: t.route.id }, n)));
}
-function xme(e, t = [], n) {
+function Cme(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -43724,7 +43731,7 @@ function xme(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- rB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ nB(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -43744,16 +43751,16 @@ function xme(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Zpe(r.matches),
+ pattern: $pe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || _me, o && (s < 0 && c === 0 ? (Eme("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || yme, o && (s < 0 && c === 0 ? (Ome("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(bme, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ P.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ P.createElement(Sme, {
match: n,
routeContext: {
outlet: e,
@@ -43763,7 +43770,7 @@ function xme(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(vme, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ P.createElement(bme, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -43778,44 +43785,44 @@ function xme(e, t = [], n) {
}) : h();
}, null);
}
-function VB(e) {
+function BB(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function Sme(e) {
- let t = F.useContext(DB);
- return rB(t, VB(e)), t;
+function wme(e) {
+ let t = P.useContext(EB);
+ return nB(t, BB(e)), t;
}
-function Cme(e) {
- let t = F.useContext(OB);
- return rB(t, VB(e)), t;
+function Tme(e) {
+ let t = P.useContext(DB);
+ return nB(t, BB(e)), t;
}
-function HB(e) {
- let t = F.useContext(NB);
- return rB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function VB(e) {
+ let t = P.useContext(MB);
+ return nB(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function wme() {
- let e = F.useContext(PB), t = Cme("useRouteError"), n = HB("useRouteError");
+function Eme() {
+ let e = P.useContext(NB), t = Tme("useRouteError"), n = VB("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function Tme() {
- let { router: e } = Sme("useNavigate"), t = HB("useNavigate"), n = F.useRef(!1);
- return F.useLayoutEffect(() => {
+function Dme() {
+ let { router: e } = wme("useNavigate"), t = VB("useNavigate"), n = P.useRef(!1);
+ return P.useLayoutEffect(() => {
n.current = !0;
- }), F.useCallback(async (r, i = {}) => {
- iB(n.current, RB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ }), P.useCallback(async (r, i = {}) => {
+ rB(n.current, LB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var UB = {};
-function Eme(e, t, n) {
- !t && !UB[e] && (UB[e] = !0, iB(!1, n));
+var HB = {};
+function Ome(e, t, n) {
+ !t && !HB[e] && (HB[e] = !0, rB(!1, n));
}
-F.memo(Dme);
-function Dme({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = F.useContext(DB);
- return rB(a, "You must render this element inside a <DataRouterContext.Provider> element"), zB(e, void 0, {
+P.memo(kme);
+function kme({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = P.useContext(EB);
+ return nB(a, "You must render this element inside a <DataRouterContext.Provider> element"), RB(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -43823,12 +43830,12 @@ function Dme({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function WB(e) {
- rB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function UB(e) {
+ nB(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function Ome({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- rB(!IB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
- let s = e.replace(/^\/*/, "/"), c = F.useMemo(() => ({
+function Ame({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ nB(!FB(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+ let s = e.replace(/^\/*/, "/"), c = P.useMemo(() => ({
basename: s,
navigator: i,
static: a,
@@ -43840,9 +43847,9 @@ function Ome({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = cB(n));
- let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = F.useMemo(() => {
- let e = hB(l, s);
+ typeof n == "string" && (n = sB(n));
+ let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = P.useMemo(() => {
+ let e = mB(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -43864,27 +43871,27 @@ function Ome({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return iB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(kB.Provider, { value: c }, /* @__PURE__ */ F.createElement(AB.Provider, {
+ return rB(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ P.createElement(OB.Provider, { value: c }, /* @__PURE__ */ P.createElement(kB.Provider, {
children: t,
value: h
}));
}
-function GB({ children: e, location: t }) {
- return hme(KB(e), t);
+function WB({ children: e, location: t }) {
+ return _me(GB(e), t);
}
-F.Component;
-function KB(e, t = []) {
+P.Component;
+function GB(e, t = []) {
let n = [];
- return F.Children.forEach(e, (e, r) => {
- if (!F.isValidElement(e)) return;
+ return P.Children.forEach(e, (e, r) => {
+ if (!P.isValidElement(e)) return;
let i = [...t, r];
- if (e.type === F.Fragment) {
- n.push.apply(n, KB(e.props.children, i));
+ if (e.type === P.Fragment) {
+ n.push.apply(n, GB(e.props.children, i));
return;
}
- rB(e.type === WB, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ nB(e.type === UB, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- rB(!a.index || !a.children, "An index route cannot have child routes.");
+ nB(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -43903,23 +43910,23 @@ function KB(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = KB(a.children, i)), n.push(o);
+ a.children && (o.children = GB(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/react/components/board-navigation-link.tsx
-function kme(e) {
- return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
+function jme(e) {
+ return /* @__PURE__ */ (0, F.jsx)("a", { ...e });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Ame(e) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function Mme(e) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, I.jsx)("path", {
+ children: /* @__PURE__ */ (0, F.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -43927,13 +43934,13 @@ function Ame(e) {
})
});
}
-function jme(e) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function Nme(e) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, I.jsx)("path", {
+ children: /* @__PURE__ */ (0, F.jsx)("path", {
d: "M4.5 3L7.14645 5.64645C7.34171 5.84171 7.34171 6.15829 7.14645 6.35355L4.5 9",
stroke: "currentColor",
strokeWidth: "1.5",
@@ -43941,13 +43948,13 @@ function jme(e) {
})
});
}
-function qB(e) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function KB(e) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, I.jsx)("path", {
+ children: /* @__PURE__ */ (0, F.jsx)("path", {
d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",
fill: "currentColor"
})
@@ -43955,54 +43962,54 @@ function qB(e) {
}
//#endregion
//#region src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function Mme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
- let i = F.Children.toArray(e).filter(F.isValidElement);
- return /* @__PURE__ */ (0, I.jsx)("nav", {
+function Pme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+ let i = P.Children.toArray(e).filter(P.isValidElement);
+ return /* @__PURE__ */ (0, F.jsx)("nav", {
ref: r,
"aria-label": t,
- className: uF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
- children: /* @__PURE__ */ (0, I.jsx)("ol", {
+ className: lF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ children: /* @__PURE__ */ (0, F.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(jme, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, F.jsx)(Nme, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function JB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
- let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
+function qB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+ let o = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [t && /* @__PURE__ */ (0, F.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
- if (i) return /* @__PURE__ */ (0, I.jsx)("li", {
+ if (i) return /* @__PURE__ */ (0, F.jsx)("li", {
"aria-current": "page",
- className: uF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: lF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = uF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
- return /* @__PURE__ */ (0, I.jsx)("li", {
+ let s = lF("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ return /* @__PURE__ */ (0, F.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(kme, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(jme, {
href: n,
className: s,
children: o
- }) : /* @__PURE__ */ (0, I.jsx)("button", {
+ }) : /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: r,
- className: uF("cursor-pointer", s),
+ className: lF("cursor-pointer", s),
children: o
})
});
}
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
-function YB() {
- return kS().direction;
+function JB() {
+ return DS().direction;
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var XB = [
+var YB = [
"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",
@@ -44010,12 +44017,12 @@ var XB = [
"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(" "), Nme = "w-[266px]", Pme = "flex w-full flex-col gap-1 outline-none", ZB = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), QB = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Fme = "w-[266px]", Ime = "flex w-full flex-col gap-1 outline-none", XB = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), ZB = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/base/tree-view/tree-view.tsx
-function Fme({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = YB(), l = (0, F.useContext)(xI), u = l === vI && !s.dragAndDropHooks ? eV : l;
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function Lme({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = JB(), l = (0, P.useContext)(bI), u = l === _I && !s.dragAndDropHooks ? $B : l;
+ return /* @__PURE__ */ (0, F.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
if (a?.(e), e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.key !== (c === "rtl" ? "ArrowLeft" : "ArrowRight")) return;
@@ -44031,23 +44038,23 @@ function Fme({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(xI.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(bI.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(_fe, {
+ children: /* @__PURE__ */ (0, F.jsx)(yfe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => uF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === eV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => lF("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === $B ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = YB();
- return /* @__PURE__ */ (0, I.jsxs)(bfe, {
+function QB({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = JB();
+ return /* @__PURE__ */ (0, F.jsxs)(Sfe, {
...u,
ref: l,
textValue: t,
@@ -44055,11 +44062,11 @@ function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => uF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(yfe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? hz : mz : Gfe);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Lme, {
+ className: (e) => lF("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ children: [/* @__PURE__ */ (0, F.jsx)(xfe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? mz : pz : qfe);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(zme, {
state: l,
id: u,
level: c,
@@ -44067,29 +44074,29 @@ function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
branchWidth: t ? 12 : 16,
direction: d
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(DI, {
+ children: [t ? /* @__PURE__ */ (0, F.jsx)(EI, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(dz, {
+ children: /* @__PURE__ */ (0, F.jsx)(uz, {
"aria-hidden": !0,
- className: uF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: lF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: uF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
- }), f && /* @__PURE__ */ (0, I.jsx)(f, {
+ className: lF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ }), f && /* @__PURE__ */ (0, F.jsx)(f, {
"aria-hidden": !0,
- className: uF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: lF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 flex-1 truncate text-start",
- children: /* @__PURE__ */ (0, I.jsx)("bdi", { children: e })
+ children: /* @__PURE__ */ (0, F.jsx)("bdi", { children: e })
}),
- a != null && /* @__PURE__ */ (0, I.jsx)("span", {
+ a != null && /* @__PURE__ */ (0, F.jsx)("span", {
className: "ms-auto shrink-0 text-caption-1-regular text-text-tertiary",
children: a
})
@@ -44097,40 +44104,40 @@ function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var eV = {
- ...vI,
- CollectionRoot: Ime
+var $B = {
+ ..._I,
+ CollectionRoot: Rme
};
-function Ime({ collection: e, ...t }) {
- let n = (0, F.useContext)(oz);
- return n ? /* @__PURE__ */ (0, I.jsx)(Gv, {
+function Rme({ collection: e, ...t }) {
+ let n = (0, P.useContext)(az);
+ return n ? /* @__PURE__ */ (0, F.jsx)(Jv, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Rme, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, F.jsx)(Bme, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(vI.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, F.jsx)(_I.CollectionRoot, {
collection: e,
...t
});
}
-function Lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function zme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
for (; c;) c.type === "item" && (l > 1 && c.nextKey != null && s.push(l - 2), l--), c = c.parentKey == null ? null : e.collection.getItem(c.parentKey);
let u = (e) => `calc(1.125rem + ${e} * 1.25rem)`;
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
"data-tree-view-guides": !0,
className: "pointer-events-none absolute inset-0 text-foreground-icon-quaternary group-data-[show-guides=false]/tree-view:hidden",
children: [
- s.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
+ s.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-tree-view-trunk": !0,
className: "absolute -inset-y-px w-px bg-current",
style: { insetInlineStart: u(e) }
}, e)),
- n > 1 && /* @__PURE__ */ (0, I.jsxs)("span", {
+ n > 1 && /* @__PURE__ */ (0, F.jsxs)("span", {
"data-tree-view-branch": !0,
className: "absolute -inset-y-px",
style: {
@@ -44138,31 +44145,31 @@ function Lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
width: i
},
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute start-0 top-0 w-px bg-current",
style: { bottom: "calc(50% + 6px)" }
}),
- /* @__PURE__ */ (0, I.jsx)("svg", {
+ /* @__PURE__ */ (0, F.jsx)("svg", {
width: i,
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: uF("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: lF("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
- children: /* @__PURE__ */ (0, I.jsx)("path", {
+ children: /* @__PURE__ */ (0, F.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
stroke: "currentColor",
strokeWidth: "1"
})
}),
- o.nextKey != null && /* @__PURE__ */ (0, I.jsx)("span", {
+ o.nextKey != null && /* @__PURE__ */ (0, F.jsx)("span", {
"data-tree-view-tail": !0,
className: "absolute start-0 bottom-0 w-px bg-current",
style: { top: "calc(50% - 6px)" }
})
]
}),
- r && /* @__PURE__ */ (0, I.jsx)("span", {
+ r && /* @__PURE__ */ (0, F.jsx)("span", {
"data-tree-view-bridge": !0,
className: "absolute -bottom-px w-px bg-current",
style: {
@@ -44173,9 +44180,9 @@ function Lme({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Rme({ state: e, children: t }) {
- let n = Hv(), r = Vy(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(Yy.div, {
+function Bme({ state: e, children: t }) {
+ let n = Gv(), r = Uy(), [i, a] = (0, P.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, F.jsx)(Zy.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44214,7 +44221,7 @@ function Rme({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(oz.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(az.Provider, {
value: n ? e : i,
children: t
})
@@ -44222,7 +44229,7 @@ function Rme({ state: e, children: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var tV = {
+var eV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44236,21 +44243,21 @@ var tV = {
gap: "gap-1.5"
}
};
-function nV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = tV[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, I.jsx)("span", {
+function tV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = eV[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: uF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? uF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : uF("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, I.jsx)("svg", {
+ className: lF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? lF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : lF("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, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, I.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, F.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, I.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, F.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",
@@ -44264,43 +44271,43 @@ function nV({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function rV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = tV[n];
- return /* @__PURE__ */ (0, I.jsx)(_ue, {
+function nV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = eV[n];
+ return /* @__PURE__ */ (0, F.jsx)(yue, {
ref: r,
...i,
- className: (t) => uF("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, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nV, {
+ className: (t) => lF("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, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(tV, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: uF(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, F.jsx)("span", {
+ className: lF(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function iV() {
- let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+function rV() {
+ let e = (0, P.useRef)(null), t = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
node: e.current,
- control: go(e.current)
+ control: vo(e.current)
} : null);
- }), (0, F.useEffect)(() => () => {
+ }), (0, P.useEffect)(() => () => {
t.current?.control?.destroy(), t.current = null;
}, []), e;
}
//#endregion
//#region src/history/settings-route.ts
-var aV = {
+var iV = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, oV = {
+}, aV = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -44308,37 +44315,37 @@ var aV = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function sV(e) {
- return oV[e.split("/")[2]] || oV.library;
+function oV(e) {
+ return aV[e.split("/")[2]] || aV.library;
}
-var cV = ["/settings", ...Object.keys(aV).map((e) => `/settings/${e}`)], lV = (e) => cV.includes(e);
-function uV(e) {
- return aV[e.split("/")[2]] || aV.appearance;
+var sV = ["/settings", ...Object.keys(iV).map((e) => `/settings/${e}`)], cV = (e) => sV.includes(e);
+function lV(e) {
+ return iV[e.split("/")[2]] || iV.appearance;
}
-function dV(e) {
+function uV(e) {
return `/settings/${Object.entries({
- ...aV,
- ...oV
+ ...iV,
+ ...aV
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var fV = (e) => {
+var dV = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, pV = [
+}, fV = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], zme = [
+], Vme = [
"mix",
"parts",
"editions",
"playlist"
];
-function mV(e, t = "") {
+function pV(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of pV) {
- let r = fB(n, e);
+ for (let n of fV) {
+ let r = dB(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -44355,7 +44362,7 @@ function mV(e, t = "") {
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = zme.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = Vme.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@ -44379,8 +44386,8 @@ function mV(e, t = "") {
}
return null;
}
-var hV = (e, t = "") => mV(e, t)?.target ?? null, gV = (e) => lV(e.split(/[?#]/)[0]) || pV.some((t) => fB(t, e.split(/[?#]/)[0]) !== null);
-function _V(e) {
+var mV = (e, t = "") => pV(e, t)?.target ?? null, hV = (e) => cV(e.split(/[?#]/)[0]) || fV.some((t) => dB(t, e.split(/[?#]/)[0]) !== null);
+function gV(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -44388,35 +44395,35 @@ function _V(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var vV = null, yV = null;
-function bV() {
+var _V = null, vV = null;
+function yV() {
let { pathname: e, search: t, hash: n } = window.location;
- gV(e) || (vV = {
+ hV(e) || (_V = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function xV() {
- vV = null, yV = null;
+function bV() {
+ _V = null, vV = null;
}
-function Bme(e) {
- let t = _V(e);
- t && (vV = t, yV = t.pathname + t.search + (t.hash || ""));
+function Hme(e) {
+ let t = gV(e);
+ t && (_V = t, vV = t.pathname + t.search + (t.hash || ""));
}
-function SV() {
- let e = yV;
- return yV = null, e;
+function xV() {
+ let e = vV;
+ return vV = null, e;
}
-function CV(e) {
- return vV ? {
- backgroundLocation: { ...vV },
+function SV(e) {
+ return _V ? {
+ backgroundLocation: { ..._V },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/canonical-path.ts
-function wV(e) {
+function CV(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -44440,16 +44447,16 @@ function wV(e) {
}
//#endregion
//#region src/history/route-meta.ts
-var TV = {
+var wV = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(aV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(iV).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(oV).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(aV).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -44580,14 +44587,14 @@ var TV = {
title: "播放墙"
}
};
-function EV(e) {
- if (Object.hasOwn(TV, e)) return TV[e];
- let t = mV(e);
- if (t) return TV[t.path];
+function TV(e) {
+ if (Object.hasOwn(wV, e)) return wV[e];
+ let t = pV(e);
+ if (t) return wV[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(TV, `/${n}`) ? TV[`/${n}`] : null;
- let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Ut({
+ if (!r.length) return Object.hasOwn(wV, `/${n}`) ? wV[`/${n}`] : null;
+ let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Wt({
performers: "performer",
studios: "studio",
creators: "creator",
@@ -44595,126 +44602,126 @@ function EV(e) {
series: "series",
tags: "tag"
}[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(TV, i) ? {
- ...TV[i],
+ return Object.hasOwn(wV, i) ? {
+ ...wV[i],
title: a || "资料"
} : null;
}
//#endregion
//#region src/history/managed.ts
-var DV = () => {}, OV = new Promise((e) => {
- DV = e;
+var EV = () => {}, DV = new Promise((e) => {
+ EV = e;
});
-OV.catch(() => {});
-var kV = null, AV = /* @__PURE__ */ new Map(), jV = /* @__PURE__ */ new Map(), MV = 0, NV = /* @__PURE__ */ new Set();
-function Vme(e) {
- DV(e);
+DV.catch(() => {});
+var OV = null, kV = /* @__PURE__ */ new Map(), AV = /* @__PURE__ */ new Map(), jV = 0, MV = /* @__PURE__ */ new Set();
+function Ume(e) {
+ EV(e);
}
-function PV(e) {
- return AV.get(e) ?? null;
+function NV(e) {
+ return kV.get(e) ?? null;
}
-function FV(e) {
- return !!e && (AV.has(e) || jV.has(e));
+function PV(e) {
+ return !!e && (kV.has(e) || AV.has(e));
}
-var IV = () => [...AV.values()];
-function Hme(e) {
- return NV.add(e), () => {
- NV.delete(e);
+var FV = () => [...kV.values()];
+function Wme(e) {
+ return MV.add(e), () => {
+ MV.delete(e);
};
}
-function LV(e) {
- let t = IV();
- for (let n of [...NV]) n(t, e);
+function IV(e) {
+ let t = FV();
+ for (let n of [...MV]) n(t, e);
}
-async function RV(e, t, n) {
+async function LV(e, t, n) {
let { container: r } = n;
- if (BV(r), !n.isCurrent()) return !1;
- MV += 1;
+ if (zV(r), !n.isCurrent()) return !1;
+ jV += 1;
let i = {
- revision: MV,
+ revision: jV,
controller: new AbortController()
};
- jV.set(r, i);
- let a = kV;
- kV = null, a?.();
- let o = await OV;
- if (jV.get(r) !== i) return !1;
+ AV.set(r, i);
+ let a = OV;
+ OV = null, a?.();
+ let o = await DV;
+ if (AV.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
- if (jV.get(r) !== i || (jV.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : Ume(r);
- return AV.set(r, {
+ if (AV.get(r) !== i || (AV.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : Gme(r);
+ return kV.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
- }), LV(!0), !0;
+ }), IV(!0), !0;
}
-function Ume(e) {
+function Gme(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
-function zV(e, t) {
- let n = e ? AV.get(e) : void 0;
- n && (AV.set(n.container, {
+function RV(e, t) {
+ let n = e ? kV.get(e) : void 0;
+ n && (kV.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), LV(!1));
+ }), IV(!1));
}
-function BV(e, ...t) {
+function zV(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = jV.get(r);
- e && (e.controller.abort(), jV.delete(r));
- let t = AV.get(r);
- t && (AV.delete(r), n.push(t));
+ let e = AV.get(r);
+ e && (e.controller.abort(), AV.delete(r));
+ let t = kV.get(r);
+ t && (kV.delete(r), n.push(t));
}
if (n.length) {
- LV(!0);
+ IV(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function Wme() {
- let [e, ...t] = /* @__PURE__ */ new Set([...AV.keys(), ...jV.keys()]);
- e && BV(e, ...t);
+function Kme() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...kV.keys(), ...AV.keys()]);
+ e && zV(e, ...t);
}
-function Gme(e, t) {
- let n = AV.get(e);
- n?.revision === t && (AV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- LV(!1);
+function qme(e, t) {
+ let n = kV.get(e);
+ n?.revision === t && (kV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ IV(!1);
}));
}
//#endregion
//#region src/history/index.ts
-var VV = Spe({ v5Compat: !0 }), HV = 0, UV = 0, WV = {
- action: VV.action,
- location: VV.location,
- seq: HV,
- openEpoch: UV,
+var BV = wpe({ v5Compat: !0 }), VV = 0, HV = 0, UV = {
+ action: BV.action,
+ location: BV.location,
+ seq: VV,
+ openEpoch: HV,
claimed: !0
-}, GV = /* @__PURE__ */ new Set(), KV = !1, qV = !0;
-VV.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = wV(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = VV.location), HV += 1, KV || (UV += 1), e !== "REPLACE" && (qV = !1), WV = {
+}, WV = /* @__PURE__ */ new Set(), GV = !1, KV = !0;
+BV.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = CV(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = BV.location), VV += 1, GV || (HV += 1), e !== "REPLACE" && (KV = !1), UV = {
action: e,
location: t,
- seq: HV,
- openEpoch: UV,
- claimed: KV
+ seq: VV,
+ openEpoch: HV,
+ claimed: GV
};
- for (let e of [...GV]) e(WV);
+ for (let e of [...WV]) e(UV);
});
-function JV(e) {
- if (typeof e == "string") return wV(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = wV(t.href);
+function qV(e) {
+ if (typeof e == "string") return CV(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = CV(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -44724,52 +44731,52 @@ function JV(e) {
hash: r.hash
};
}
-var YV = {
+var JV = {
get navigation() {
- return WV;
+ return UV;
},
listen(e) {
- return GV.add(e), () => {
- GV.delete(e);
+ return WV.add(e), () => {
+ WV.delete(e);
};
},
- createHref: (e) => VV.createHref(e),
- createURL: (e) => VV.createURL(e),
- encodeLocation: (e) => VV.encodeLocation(e),
- go: (e) => VV.go(e),
- push: (e, t) => VV.push(JV(e), t),
- replace: (e, t) => VV.replace(JV(e), t)
+ createHref: (e) => BV.createHref(e),
+ createURL: (e) => BV.createURL(e),
+ encodeLocation: (e) => BV.encodeLocation(e),
+ go: (e) => BV.go(e),
+ push: (e, t) => BV.push(qV(e), t),
+ replace: (e, t) => BV.replace(qV(e), t)
};
-function XV(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = wV(`${r.pathname}${r.search}${r.hash}`);
- KV = !0;
+function YV(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = CV(`${r.pathname}${r.search}${r.hash}`);
+ GV = !0;
try {
- t ? VV.replace(i, n) : VV.push(i, n);
+ t ? BV.replace(i, n) : BV.push(i, n);
} finally {
- KV = !1;
+ GV = !1;
}
}
-var ZV = () => qV;
-function QV() {
- if (lV(WV.location.pathname)) {
- let e = qV ? null : fV(WV.location.state);
- return e ? _V(e.state) || e : null;
+var XV = () => KV;
+function ZV() {
+ if (cV(UV.location.pathname)) {
+ let e = KV ? null : dV(UV.location.state);
+ return e ? gV(e.state) || e : null;
}
- return qV ? null : _V(WV.location.state);
+ return KV ? null : gV(UV.location.state);
}
//#endregion
//#region src/react/providers.tsx
-var $V = null;
-function Kme() {
- return $V?.isConnected || ($V = document.createElement("div"), $V.className = "peach-react", $V.dataset.reactOverlays = "", document.body.append($V)), $V;
-}
-function eH({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)(oe, {
- client: U,
- children: /* @__PURE__ */ (0, I.jsx)(Pte, {
+var QV = null;
+function Jme() {
+ return QV?.isConnected || (QV = document.createElement("div"), QV.className = "peach-react", QV.dataset.reactOverlays = "", document.body.append(QV)), QV;
+}
+function $V({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(se, {
+ client: H,
+ children: /* @__PURE__ */ (0, F.jsx)(jte, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(MT, {
- getContainer: Kme,
+ children: /* @__PURE__ */ (0, F.jsx)(jT, {
+ getContainer: Jme,
children: e
})
})
@@ -44777,70 +44784,70 @@ function eH({ children: e }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function qme(e) {
+function Yme(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var Jme = (e) => {
+var Xme = (e) => {
switch (e) {
- case "success": return Zme;
- case "info": return $me;
- case "warning": return Qme;
- case "error": return ehe;
+ case "success": return $me;
+ case "info": return the;
+ case "warning": return ehe;
+ case "error": return nhe;
default: return null;
}
-}, Yme = Array(12).fill(0), Xme = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, Zme = Array(12).fill(0), Qme = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, Yme.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, Zme.map((e, t) => /*#__PURE__*/ P.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), Zme = /*#__PURE__*/ F.createElement("svg", {
+})))), $me = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ F.createElement("path", {
+}, /*#__PURE__*/ P.createElement("path", {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), Qme = /*#__PURE__*/ F.createElement("svg", {
+})), ehe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ F.createElement("path", {
+}, /*#__PURE__*/ P.createElement("path", {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), $me = /*#__PURE__*/ F.createElement("svg", {
+})), the = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ F.createElement("path", {
+}, /*#__PURE__*/ P.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), ehe = /*#__PURE__*/ F.createElement("svg", {
+})), nhe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
height: "20",
width: "20",
"aria-hidden": "true"
-}, /*#__PURE__*/ F.createElement("path", {
+}, /*#__PURE__*/ P.createElement("path", {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), the = /*#__PURE__*/ F.createElement("svg", {
+})), rhe = /*#__PURE__*/ P.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44851,25 +44858,25 @@ var Jme = (e) => {
strokeLinecap: "round",
strokeLinejoin: "round",
"aria-hidden": "true"
-}, /*#__PURE__*/ F.createElement("line", {
+}, /*#__PURE__*/ P.createElement("line", {
x1: "18",
y1: "6",
x2: "6",
y2: "18"
-}), /*#__PURE__*/ F.createElement("line", {
+}), /*#__PURE__*/ P.createElement("line", {
x1: "6",
y1: "6",
x2: "18",
y2: "18"
-})), nhe = () => {
- let [e, t] = F.useState(document.hidden);
- return F.useEffect(() => {
+})), ihe = () => {
+ let [e, t] = P.useState(document.hidden);
+ return P.useEffect(() => {
let e = () => {
t(document.hidden);
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, rhe = 1, ihe = 100, tH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : rhe++, nH = new class {
+}, ahe = 1, ohe = 100, eH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : ahe++, tH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44879,10 +44886,10 @@ var Jme = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - ihe;
+ let e = this.toasts.length - ohe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = tH(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = eH(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44952,14 +44959,14 @@ var Jme = (e) => {
description: typeof t.description == "function" ? void 0 : t.description
}));
let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
- if (a = ["resolve", e], F.isValidElement(e)) i = !1, this.create({
+ if (a = ["resolve", e], P.isValidElement(e)) i = !1, this.create({
id: n,
type: "default",
message: e
});
- else if (ohe(e) && !e.ok) {
+ else if (che(e) && !e.ok) {
i = !1;
- let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
+ let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !P.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -44968,7 +44975,7 @@ var Jme = (e) => {
});
} else if (e instanceof Error) {
i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !P.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -44977,7 +44984,7 @@ var Jme = (e) => {
});
} else if (t.success !== void 0) {
i = !1;
- let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
+ let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !P.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "success",
@@ -44988,7 +44995,7 @@ var Jme = (e) => {
}).catch(async (e) => {
if (a = ["reject", e], t.error !== void 0) {
i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !P.isValidElement(r) ? r : { message: r };
this.create({
id: n,
type: "error",
@@ -45001,7 +45008,7 @@ var Jme = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = tH(t);
+ let n = eH(t);
return this.create({
...t,
jsx: e(n),
@@ -45010,54 +45017,54 @@ var Jme = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), ahe = (e, t) => nH.message(e, t), ohe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rH = Object.assign(ahe, {
- success: nH.success,
- info: nH.info,
- warning: nH.warning,
- error: nH.error,
- custom: nH.custom,
- message: nH.message,
- promise: nH.promise,
- dismiss: nH.dismiss,
- loading: nH.loading
+}(), she = (e, t) => tH.message(e, t), che = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", nH = Object.assign(she, {
+ success: tH.success,
+ info: tH.info,
+ warning: tH.warning,
+ error: tH.error,
+ custom: tH.custom,
+ message: tH.message,
+ promise: tH.promise,
+ dismiss: tH.dismiss,
+ loading: tH.loading
}, {
- getHistory: () => nH.toasts,
- getToasts: () => nH.getActiveToasts()
+ getHistory: () => tH.toasts,
+ getToasts: () => tH.getActiveToasts()
});
-qme("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function iH(e) {
+Yme("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function rH(e) {
return e.label !== void 0;
}
-var she = 3, che = "24px", lhe = "16px", aH = 4e3, uhe = 356, dhe = 14, fhe = 45, phe = 200;
-function oH(...e) {
+var lhe = 3, uhe = "24px", dhe = "16px", iH = 4e3, fhe = 356, phe = 14, mhe = 45, hhe = 200;
+function aH(...e) {
return e.filter(Boolean).join(" ");
}
-function mhe(e) {
+function ghe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var hhe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || aH), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", L = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = F.useMemo(() => n.duration || y || aH, [n.duration, y]), be = F.useRef(0), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(null), [we, Te] = b.split("-"), Ee = F.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = nhe(), Oe = F.useMemo(() => e.swipeDirections ?? mhe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = pe === "loading";
- xe.current = F.useMemo(() => _e * x + Ee, [_e, Ee]), F.useEffect(() => {
- ce.current = ye;
- }, [ye]), F.useEffect(() => {
+var _he = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = P.useState(null), [O, k] = P.useState(null), [A, j] = P.useState(!1), [M, ee] = P.useState(!1), [te, ne] = P.useState(!1), [N, re] = P.useState(!1), [ie, F] = P.useState(!1), [ae, oe] = P.useState(0), [se, ce] = P.useState(0), le = P.useRef(n.duration || y || iH), ue = P.useRef(null), de = P.useRef(null), fe = c === 0, pe = c + 1 <= o, me = n.type, he = me ?? "default", I = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = P.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = P.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = P.useMemo(() => n.duration || y || iH, [n.duration, y]), xe = P.useRef(0), Se = P.useRef(0), Ce = P.useRef(0), we = P.useRef(null), [Te, Ee] = b.split("-"), De = P.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = ihe(), ke = P.useMemo(() => e.swipeDirections ?? ghe(b), [e.swipeDirections, b]), Ae = n.invert || t, je = me === "loading";
+ Se.current = P.useMemo(() => ve * x + De, [ve, De]), P.useEffect(() => {
+ le.current = be;
+ }, [be]), P.useEffect(() => {
j(!0);
- }, []), F.useEffect(() => {
- let e = ue.current;
+ }, []), P.useEffect(() => {
+ let e = de.current;
if (e) {
let t = e.getBoundingClientRect().height;
- return se(t), a((e) => [{
+ return ce(t), a((e) => [{
toastId: n.id,
height: t,
position: n.position
}, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
}
- }, [a, n.id]), F.useLayoutEffect(() => {
+ }, [a, n.id]), P.useLayoutEffect(() => {
if (!A) return;
- let e = ue.current, t = e.style.height;
+ let e = de.current, t = e.style.height;
e.style.height = "auto";
let r = e.getBoundingClientRect().height;
- e.style.height = t, se(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
+ e.style.height = t, ce(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
...e,
height: r
} : e) : [{
@@ -45075,69 +45082,69 @@ var hhe = (e) => {
n.action,
n.cancel
]);
- let je = F.useCallback(() => {
- ee(!0), ae(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
+ let Me = P.useCallback(() => {
+ ee(!0), oe(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, phe);
+ }, hhe);
}, [
n,
d,
a,
- xe
+ Se
]);
- F.useEffect(() => {
- if (n.promise && pe === "loading" || n.duration === Infinity || n.type === "loading") return;
+ P.useEffect(() => {
+ if (n.promise && me === "loading" || n.duration === Infinity || n.type === "loading") return;
let e;
- return u || i || De ? (() => {
- if (Se.current < be.current) {
- let e = (/* @__PURE__ */ new Date()).getTime() - be.current;
- ce.current -= e;
- }
- Se.current = (/* @__PURE__ */ new Date()).getTime();
- })() : ce.current !== Infinity && (be.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
- n.onAutoClose == null || n.onAutoClose.call(n, n), je();
- }, ce.current)), () => clearTimeout(e);
+ return u || i || Oe ? (() => {
+ if (Ce.current < xe.current) {
+ let e = (/* @__PURE__ */ new Date()).getTime() - xe.current;
+ le.current -= e;
+ }
+ Ce.current = (/* @__PURE__ */ new Date()).getTime();
+ })() : le.current !== Infinity && (xe.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
+ n.onAutoClose == null || n.onAutoClose.call(n, n), Me();
+ }, le.current)), () => clearTimeout(e);
}, [
u,
i,
n,
- pe,
- De,
- je
- ]), F.useEffect(() => {
- n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));
- }, [je, n.delete]);
- function Me() {
- return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: oH(C?.loader, n?.classNames?.loader, "sonner-loader"),
- "data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(Xme, {
- className: oH(C?.loader, n?.classNames?.loader),
- visible: pe === "loading"
+ me,
+ Oe,
+ Me
+ ]), P.useEffect(() => {
+ n.delete && (Me(), n.onDismiss == null || n.onDismiss.call(n, n));
+ }, [Me, n.delete]);
+ function Ne() {
+ return w?.loading ? /*#__PURE__*/ P.createElement("div", {
+ className: aH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ "data-visible": me === "loading"
+ }, w.loading) : /*#__PURE__*/ P.createElement(Qme, {
+ className: aH(C?.loader, n?.classNames?.loader),
+ visible: me === "loading"
});
}
- let Ne = n.icon || w?.[pe] || Jme(pe);
- return /*#__PURE__*/ F.createElement("li", {
+ let Pe = n.icon || w?.[me] || Xme(me);
+ return /*#__PURE__*/ P.createElement("li", {
tabIndex: 0,
- ref: ue,
- className: oH(_, he, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ ref: de,
+ className: aH(_, ge, C?.toast, n?.classNames?.toast, C?.[he], n?.classNames?.[he]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
"data-mounted": A,
"data-promise": !!n.promise,
- "data-swiped": re,
+ "data-swiped": ie,
"data-removed": M,
- "data-visible": fe,
- "data-y-position": we,
- "data-x-position": Te,
+ "data-visible": pe,
+ "data-y-position": Te,
+ "data-x-position": Ee,
"data-index": c,
- "data-front": de,
- "data-swiping": N,
- "data-dismissible": L,
- "data-type": pe,
- "data-invert": ke,
- "data-swipe-out": P,
+ "data-front": fe,
+ "data-swiping": te,
+ "data-dismissible": I,
+ "data-type": me,
+ "data-invert": Ae,
+ "data-swipe-out": N,
"data-swipe-direction": O,
"data-expanded": !!(u || S && A),
"data-testid": n.testId,
@@ -45145,103 +45152,103 @@ var hhe = (e) => {
"--index": c,
"--toasts-before": c,
"--z-index": l.length - c,
- "--offset": `${M ? ie : xe.current}px`,
- "--initial-height": S ? "auto" : `${oe}px`,
+ "--offset": `${M ? ae : Se.current}px`,
+ "--initial-height": S ? "auto" : `${se}px`,
...m,
...n.style
},
onDragEnd: () => {
- te(!1), D(null), Ce.current = null;
+ ne(!1), D(null), we.current = null;
},
onPointerDown: (e) => {
- e.button !== 2 && !Ae && L && (le.current = /* @__PURE__ */ new Date(), ae(xe.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), Ce.current = {
+ e.button !== 2 && !je && I && (ue.current = /* @__PURE__ */ new Date(), oe(Se.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (ne(!0), we.current = {
x: e.clientX,
y: e.clientY
}));
},
onPointerUp: () => {
- if (P || !L) return;
- Ce.current = null;
- let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= fhe || a > .11)) ae(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), ne(!0);
+ if (N || !I) return;
+ we.current = null;
+ let e = Number(de.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(de.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ue.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= mhe || a > .11)) oe(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), re(!0);
else {
var o, s;
- (o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
+ (o = de.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = de.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), F(!1), ne(!1), D(null);
}
},
onPointerMove: (e) => {
var t, n;
- if (!Ce.current || !L || window.getSelection()?.toString().length > 0) return;
- let r = e.clientY - Ce.current.y, i = e.clientX - Ce.current.x;
+ if (!we.current || !I || window.getSelection()?.toString().length > 0) return;
+ let r = e.clientY - we.current.y, i = e.clientX - we.current.x;
!E && (Math.abs(i) > 1 || Math.abs(r) > 1) && D(Math.abs(i) > Math.abs(r) ? "x" : "y");
let a = {
x: 0,
y: 0
}, o = (e) => 1 / (1.5 + Math.abs(e) / 20);
if (E === "y") {
- if (Oe.includes("top") || Oe.includes("bottom")) {
- if (Oe.includes("top") && r < 0 || Oe.includes("bottom") && r > 0) a.y = r;
+ if (ke.includes("top") || ke.includes("bottom")) {
+ if (ke.includes("top") && r < 0 || ke.includes("bottom") && r > 0) a.y = r;
else {
let e = r * o(r);
a.y = Math.abs(e) < Math.abs(r) ? e : r;
}
}
- } else if (E === "x" && (Oe.includes("left") || Oe.includes("right"))) {
- if (Oe.includes("left") && i < 0 || Oe.includes("right") && i > 0) a.x = i;
+ } else if (E === "x" && (ke.includes("left") || ke.includes("right"))) {
+ if (ke.includes("left") && i < 0 || ke.includes("right") && i > 0) a.x = i;
else {
let e = i * o(i);
a.x = Math.abs(e) < Math.abs(i) ? e : i;
}
}
- (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && I(!0), (t = ue.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = ue.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
+ (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && F(!0), (t = de.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = de.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
}
- }, ve && !n.jsx && pe !== "loading" ? /*#__PURE__*/ F.createElement("button", {
+ }, ye && !n.jsx && me !== "loading" ? /*#__PURE__*/ P.createElement("button", {
"aria-label": T,
- "data-disabled": Ae,
+ "data-disabled": je,
"data-close-button": !0,
- onClick: Ae || !L ? () => {} : () => {
- je(), n.onDismiss == null || n.onDismiss.call(n, n);
+ onClick: je || !I ? () => {} : () => {
+ Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: oH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? the) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: aH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? rhe) : null, (me || n.icon || n.promise) && n.icon !== null && (w?.[me] !== null || n.icon) ? /*#__PURE__*/ P.createElement("div", {
"data-icon": "",
- className: oH(C?.icon, n?.classNames?.icon)
- }, pe === "loading" ? n.icon || Me() : n.promise ? Me() : null, pe === "loading" ? null : Ne) : null, /*#__PURE__*/ F.createElement("div", {
+ className: aH(C?.icon, n?.classNames?.icon)
+ }, me === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, me === "loading" ? null : Pe) : null, /*#__PURE__*/ P.createElement("div", {
"data-content": "",
- className: oH(C?.content, n?.classNames?.content)
- }, /*#__PURE__*/ F.createElement("div", {
+ className: aH(C?.content, n?.classNames?.content)
+ }, /*#__PURE__*/ P.createElement("div", {
"data-title": "",
- className: oH(C?.title, n?.classNames?.title)
- }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
+ className: aH(C?.title, n?.classNames?.title)
+ }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ P.createElement("div", {
"data-description": "",
- className: oH(v, ge, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && iH(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: aH(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ P.isValidElement(n.cancel) ? n.cancel : n.cancel && rH(n.cancel) ? /*#__PURE__*/ P.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- iH(n.cancel) && L && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
+ rH(n.cancel) && I && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: oH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && iH(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: aH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ P.isValidElement(n.action) ? n.action : n.action && rH(n.action) ? /*#__PURE__*/ P.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- iH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
+ rH(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: oH(C?.actionButton, n?.classNames?.actionButton)
+ className: aH(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function sH() {
+function oH() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function ghe(e, t) {
+function vhe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? lhe : che;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? dhe : uhe;
function o(e) {
[
"top",
@@ -45262,18 +45269,18 @@ function ghe(e, t) {
}) : o(a);
}), n;
}
-var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = she, toastOptions: g, dir: _ = sH(), gap: v = dhe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || nH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var sH = /*#__PURE__*/ P.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = lhe, toastOptions: g, dir: _ = oH(), gap: v = phe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = P.useState([]), w = P.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = P.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = P.useState([]), [O, k] = P.useState(!1), [A, j] = P.useState(!1), [M, ee] = P.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), te = P.useRef(null), ne = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = P.useRef(null), re = P.useRef(!1), ie = P.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || tH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => nH.subscribe((e) => {
+ return P.useEffect(() => tH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
delete: !0
} : t));
}) : setTimeout(() => {
- It.flushSync(() => {
+ Lt.flushSync(() => {
C((t) => {
let n = t.findIndex((t) => t.id === e.id);
return n === -1 ? [e, ...t] : [
@@ -45287,7 +45294,7 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
});
});
});
- }), []), F.useEffect(() => {
+ }), []), P.useEffect(() => {
if (d !== "system") {
ee(d);
return;
@@ -45307,24 +45314,24 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
}
});
}
- }, [d]), F.useEffect(() => {
+ }, [d]), P.useEffect(() => {
S.length <= 1 && k(!1);
- }, [S]), F.useEffect(() => {
+ }, [S]), P.useEffect(() => {
let e = (e) => {
if (a.length > 0 && a.every((t) => e[t] || e.code === t)) {
var t;
- k(!0), (t = N.current) == null || t.focus();
+ k(!0), (t = te.current) == null || t.focus();
}
- e.code === "Escape" && (document.activeElement === N.current || N.current?.contains(document.activeElement)) && k(!1);
+ e.code === "Escape" && (document.activeElement === te.current || te.current?.contains(document.activeElement)) && k(!1);
};
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
- }, [a]), F.useEffect(() => {
- if (N.current) return () => {
- P.current && (P.current.focus({ preventScroll: !0 }), P.current = null, ne.current = !1);
+ }, [a]), P.useEffect(() => {
+ if (te.current) return () => {
+ N.current && (N.current.focus({ preventScroll: !0 }), N.current = null, re.current = !1);
};
- }, [N.current]), /*#__PURE__*/ F.createElement("section", {
+ }, [te.current]), /*#__PURE__*/ P.createElement("section", {
ref: t,
- "aria-label": b ?? `${x} ${te}`,
+ "aria-label": b ?? `${x} ${ne}`,
tabIndex: -1,
"aria-live": "polite",
"aria-relevant": "additions text",
@@ -45333,11 +45340,11 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-react-aria-top-layer": !0
}, T.map((t, n) => {
let [i, a] = t.split("-");
- return w.length ? /*#__PURE__*/ F.createElement("ol", {
+ return w.length ? /*#__PURE__*/ P.createElement("ol", {
key: t,
- dir: _ === "auto" ? sH() : _,
+ dir: _ === "auto" ? oH() : _,
tabIndex: -1,
- ref: N,
+ ref: te,
className: c,
"data-sonner-toaster": !0,
"data-sonner-theme": M,
@@ -45345,16 +45352,16 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${uhe}px`,
+ "--width": `${fhe}px`,
"--gap": `${v}px`,
...m,
- ...ghe(l, u)
+ ...vhe(l, u)
},
onBlur: (e) => {
- ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
+ re.current && !e.currentTarget.contains(e.relatedTarget) && (re.current = !1, N.current &&= (N.current.focus({ preventScroll: !0 }), null));
},
onFocus: (e) => {
- e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || ne.current || (ne.current = !0, P.current = e.relatedTarget);
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || re.current || (re.current = !0, N.current = e.relatedTarget);
},
onMouseEnter: () => k(!0),
onMouseMove: () => k(!0),
@@ -45366,7 +45373,7 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(hhe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ P.createElement(_he, {
key: n.id,
icons: y,
index: i,
@@ -45386,7 +45393,7 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
cancelButtonStyle: g?.cancelButtonStyle,
actionButtonStyle: g?.actionButtonStyle,
closeButtonAriaLabel: g?.closeButtonAriaLabel,
- removeToast: re,
+ removeToast: ie,
toasts: w.filter((e) => e.position == n.position),
heights: E.filter((e) => e.position == n.position),
setHeights: D,
@@ -45396,34 +45403,34 @@ var cH = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), lH = "/api/library-processing", uH = ["library-processing"], _he = (e, t, n) => {
+}), cH = "/api/library-processing", lH = ["library-processing"], yhe = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), V(`${lH}?${r}`, t);
-}, vhe = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), B(`${cH}?${r}`, t);
+}, bhe = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function dH(e) {
+function uH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = vhe[e.current_action || ""];
+ let t = bhe[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function fH({ what: e, source: t }) {
+function dH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var pH = (e) => !!e && [
+var fH = (e) => !!e && [
"running",
"pausing",
"paused"
-].includes(e.status), mH = (e) => e?.status === "failed" && e.outcome === "partial", hH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", gH = "/?loc=&thumb=0";
-function _H(e) {
- if (!pH(e)) return "";
+].includes(e.status), pH = (e) => e?.status === "failed" && e.outcome === "partial", mH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", hH = "/?loc=&thumb=0";
+function gH(e) {
+ if (!fH(e)) return "";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
if (e.stalled) return "等待当前文件响应,剩余时间待更新";
@@ -45433,18 +45440,18 @@ function _H(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var vH = (e) => V(lH, e);
-async function yH(e) {
- await U.fetchQuery({
- queryKey: uH,
- queryFn: () => vH(e)
+var _H = (e) => B(cH, e);
+async function vH(e) {
+ await H.fetchQuery({
+ queryKey: lH,
+ queryFn: () => _H(e)
});
}
-var yhe = 2e3, bhe = 1e4, bH = "连接中断,正在重新读取处理进度";
-function xH(e, t) {
- return pH(e) ? yhe : t ? bhe : !1;
+var xhe = 2e3, She = 1e4, yH = "连接中断,正在重新读取处理进度";
+function bH(e, t) {
+ return fH(e) ? xhe : t ? She : !1;
}
-var xhe = {
+var Che = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45453,25 +45460,25 @@ var xhe = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, SH = {
+}, xH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function She(e) {
- let t = Object.entries(e).filter(([e, t]) => SH[e] && t > 0).map(([e, t]) => `${SH[e]} ${t.toLocaleString()} 部`);
+function whe(e) {
+ let t = Object.entries(e).filter(([e, t]) => xH[e] && t > 0).map(([e, t]) => `${xH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Che(e) {
+function The(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = xhe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${kF(e.waited_seconds)}` : "";
+ let t = Che[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${OF(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function whe(e) {
- let t = e.total ? `${AF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Che(e) + (t ? ` · ${t}` : "");
+function Ehe(e) {
+ let t = e.total ? `${kF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return The(e) + (t ? ` · ${t}` : "");
}
-function The(e) {
+function Dhe(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45485,23 +45492,23 @@ function The(e) {
log: e.issues_log || ""
} : null;
}
-var CH = "peach.library-processing.announced", Ehe = 120;
-function wH(e) {
+var SH = "peach.library-processing.announced", Ohe = 120;
+function CH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < Ehe;
+ return !!e.job_id && t >= 0 && t < Ohe;
}
-function Dhe(e, t, n) {
- if (e.status === "complete" && (n || wH(e))) {
+function khe(e, t, n) {
+ if (e.status === "complete" && (n || CH(e))) {
try {
- if (e.job_id && localStorage.getItem(CH) === e.job_id) return;
- e.job_id && localStorage.setItem(CH, e.job_id);
+ if (e.job_id && localStorage.getItem(SH) === e.job_id) return;
+ e.job_id && localStorage.setItem(SH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var TH = dF({
+var wH = uF({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -45525,21 +45532,21 @@ var TH = dF({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = uF(TH.base, TH.size[t], TH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: TH.icon[t],
+function TH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = lF(wH.base, wH.size[t], wH.variant[e], a), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, F.jsx)(n, {
+ className: wH.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: TH.icon[t],
+ i != null && /* @__PURE__ */ (0, F.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, F.jsx)(r, {
+ className: wH.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, I.jsx)("a", {
+ return /* @__PURE__ */ (0, F.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -45549,7 +45556,7 @@ function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -45560,9 +45567,9 @@ function EH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/use-action.ts
-function DH(e = "") {
- let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
- (0, F.useEffect)(() => () => t.current?.abort(), []);
+function EH(e = "") {
+ let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(""), [i, a] = (0, P.useState)(e);
+ (0, P.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -45572,7 +45579,7 @@ function DH(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(Hn(e));
+ o ? o(e) : a(Wn(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -45586,22 +45593,22 @@ function DH(e = "") {
}
//#endregion
//#region src/react/library-processing/slow-item.tsx
-function OH({ state: e }) {
- let t = DH(), n = (e) => {
- t.busy || t.run(e.action, (t) => H(lH, e, "POST", t), (e) => {
- U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
+function DH({ state: e }) {
+ let t = EH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(cH, e, "POST", t), (e) => {
+ H.setQueryData(lH, e), H.invalidateQueries({ queryKey: lH });
});
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...Bz(t.busy === "skip_current"),
+ ...zz(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45612,12 +45619,12 @@ function OH({ state: e }) {
children: e.skip_requested ? "正在跳过" : "跳过这部"
})
}),
- e.skip_requested ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.skip_requested ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "status",
className: "text-caption-1-regular",
children: "当前请求结束后继续下一部。"
}) : null,
- t.error ? /* @__PURE__ */ (0, I.jsx)("p", {
+ t.error ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-caption-1-regular text-text-error-primary",
children: t.error
@@ -45625,40 +45632,40 @@ function OH({ state: e }) {
]
});
}
-function Ohe({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(Fz, {
+function Ahe({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(OH, { state: e }),
- children: fH(t)
+ action: /* @__PURE__ */ (0, F.jsx)(DH, { state: e }),
+ children: dH(t)
});
}
-function khe({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function jhe({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: fH(t)
- }), /* @__PURE__ */ (0, I.jsx)(OH, { state: e })]
+ children: dH(t)
+ }), /* @__PURE__ */ (0, F.jsx)(DH, { state: e })]
});
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Ahe = {
+var Mhe = {
selection: {
- type: Kf,
+ type: qf,
duration: .16,
bounce: 0
},
hover: {
- type: Kf,
+ type: qf,
duration: .08,
bounce: 0
}
};
-function kH(e) {
- let [t, n] = (0, F.useState)(null);
- return (0, F.useLayoutEffect)(() => {
+function OH(e) {
+ let [t, n] = (0, P.useState)(null);
+ return (0, P.useLayoutEffect)(() => {
if (!t) return;
let n = document.createElement("span");
n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;
@@ -45677,7 +45684,7 @@ function kH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = qne(n, { transform: [r, E] }, Ahe[e]);
+ l = Kne(n, { transform: [r, E] }, Mhe[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45714,26 +45721,26 @@ function kH(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function AH(e) {
- let t = kH("hover");
- return /* @__PURE__ */ (0, I.jsx)(gR, {
+function kH(e) {
+ let t = OH("hover");
+ return /* @__PURE__ */ (0, F.jsx)(hR, {
...e,
ref: t
});
}
//#endregion
//#region src/react/library-processing/processing-effort.tsx
-var jH = [
+var AH = [
"low",
"standard",
"high"
-], MH = [
+], jH = [
"低占用",
"标准",
"全速"
-], NH = Rz("snail"), PH = Rz("zap");
-function FH({ className: e }) {
- return /* @__PURE__ */ (0, I.jsxs)("svg", {
+], MH = Lz("snail"), NH = Lz("zap");
+function PH({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
viewBox: "0 0 30 24",
@@ -45743,96 +45750,96 @@ function FH({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
- /* @__PURE__ */ (0, I.jsx)("path", {
+ /* @__PURE__ */ (0, F.jsx)("path", {
transform: "translate(7 -1) scale(.85)",
d: "m12.6 3.279.84-.84A1.5 1.5 0 0 1 15.914 4l-1.883 5.333a.5.5 0 0 0 .472.667H18.5a1.5 1.5 0 0 1 1.061 2.56l-5.56 5.56"
}),
- /* @__PURE__ */ (0, I.jsx)("g", {
+ /* @__PURE__ */ (0, F.jsx)("g", {
fill: "var(--processing-effort-icon-background,var(--color-background-primary-default))",
stroke: "var(--processing-effort-icon-background,var(--color-background-primary-default))",
strokeWidth: "3",
- children: /* @__PURE__ */ (0, I.jsx)("use", {
+ children: /* @__PURE__ */ (0, F.jsx)("use", {
href: "#i-zap",
transform: "translate(0 2) scale(.85)"
})
}),
- /* @__PURE__ */ (0, I.jsx)("use", {
+ /* @__PURE__ */ (0, F.jsx)("use", {
href: "#i-zap",
transform: "translate(0 2) scale(.85)"
})
]
});
}
-var jhe = [
+var Nhe = [
+ MH,
NH,
- PH,
- FH
+ PH
];
-function Mhe({ animate: e }) {
- let [t, n] = (0, F.useState)(document.hidden);
- return (0, F.useEffect)(() => {
+function Phe({ animate: e }) {
+ let [t, n] = (0, P.useState)(document.hidden);
+ return (0, P.useEffect)(() => {
let e = () => n(document.hidden);
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
- }, []), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, []), /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-hidden": "true",
"data-effort-flow": "",
"data-motion": e && !t ? "running" : "paused",
- children: [/* @__PURE__ */ (0, I.jsxs)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("svg", {
viewBox: "0 0 240 27",
preserveAspectRatio: "none",
children: [
- /* @__PURE__ */ (0, I.jsx)("path", {
+ /* @__PURE__ */ (0, F.jsx)("path", {
className: "processing-flow-outer",
d: "M35 13 Q85 8 130 10 Q180 11 240 2 L240 25 Q180 17 130 17 Q80 18 35 13Z"
}),
- /* @__PURE__ */ (0, I.jsx)("path", {
+ /* @__PURE__ */ (0, F.jsx)("path", {
className: "processing-flow-middle",
d: "M60 13 Q120 10 170 12 L240 6 L240 22 Q180 16 130 15 Q95 17 60 13Z"
}),
- /* @__PURE__ */ (0, I.jsx)("path", {
+ /* @__PURE__ */ (0, F.jsx)("path", {
className: "processing-flow-core",
d: "M100 13 Q160 12 240 10 L240 18 Q170 14 100 13Z"
})
]
- }), Array.from({ length: 12 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("i", { style: {
+ }), Array.from({ length: 12 }, (e, t) => /* @__PURE__ */ (0, F.jsx)("i", { style: {
"--particle-y": `${(t * 7 + 3) % 25}px`,
"--particle-delay": `${-t * .13}s`
} }, t))]
});
}
-function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, jH.indexOf(e)), [a, o] = (0, F.useState)(i);
- return (0, F.useEffect)(() => {
+function FH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, AH.indexOf(e)), [a, o] = (0, P.useState)(i);
+ return (0, P.useEffect)(() => {
t || o(i);
- }, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, [i, t]), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "processing-effort-panel flex flex-col gap-3 p-2",
children: [
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-body-medium",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), MH[a]]
+ }), jH[a]]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
"aria-hidden": "true",
children: [
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(NH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, F.jsx)(MH, {}), "最慢"]
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(PH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, F.jsx)(NH, {}), "标准"]
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(FH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, F.jsx)(PH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Due, {
+ /* @__PURE__ */ (0, F.jsxs)(kue, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45841,78 +45848,78 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(jH[e]);
+ e !== i && n(AH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(wI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(CI, {
className: "processing-effort-label",
children: "处理速度"
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "processing-effort-track",
"data-max": a === 2 || void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "processing-effort-fill",
style: { "--effort-fill": `${a * 50}%` }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "processing-effort-stops",
"aria-hidden": "true",
children: [
- /* @__PURE__ */ (0, I.jsx)("i", {}),
- /* @__PURE__ */ (0, I.jsx)("i", {}),
- /* @__PURE__ */ (0, I.jsx)("i", {})
+ /* @__PURE__ */ (0, F.jsx)("i", {}),
+ /* @__PURE__ */ (0, F.jsx)("i", {}),
+ /* @__PURE__ */ (0, F.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(Mhe, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(Oue, {
+ a === 2 ? /* @__PURE__ */ (0, F.jsx)(Phe, { animate: r }) : null,
+ /* @__PURE__ */ (0, F.jsx)(Aue, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(kue, {
- "aria-label": MH[a],
+ children: /* @__PURE__ */ (0, F.jsx)(jue, {
+ "aria-label": jH[a],
className: "processing-effort-thumb"
})
})
]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex justify-between text-caption-1-regular text-text-tertiary",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "占用少" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "占用多" })]
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "占用少" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "占用多" })]
})
]
});
}
-function Nhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, jH.indexOf(e));
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+function Fhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), s = Math.max(0, AH.indexOf(e));
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, F.jsx)(q, {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${MH[s]}`,
+ "aria-label": `处理速度:${jH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: jhe[s],
- trailingIcon: lz,
+ leadingIcon: Nhe[s],
+ trailingIcon: cz,
onClick: () => {
t || o(!a);
},
- children: MH[s]
+ children: jH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ }), /* @__PURE__ */ (0, F.jsx)(nR, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: XB,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {
+ className: YB,
+ children: /* @__PURE__ */ (0, F.jsx)(kH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, F.jsx)(FH, {
value: e,
busy: t,
onChange: n,
@@ -45923,18 +45930,18 @@ function Nhe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
}
//#endregion
//#region src/react/library-processing/processing-controls.tsx
-function Phe({ state: e, disabled: t = !1 }) {
- let n = DH(), r = pH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
- t || n.busy || n.run(e.action, (t) => H(lH, e, "POST", t), (e) => {
- U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
+function Ihe({ state: e, disabled: t = !1 }) {
+ let n = EH(), r = fH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(cH, e, "POST", t), (e) => {
+ H.setQueryData(lH, e), H.invalidateQueries({ queryKey: lH });
});
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
"data-processing-controls": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(Nhe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Fhe, {
value: e.speed_mode || "standard",
busy: t || !!n.busy,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45943,15 +45950,15 @@ function Phe({ state: e, disabled: t = !1 }) {
speed_mode: t,
...r ? { job_id: e.job_id } : {}
})
- }), r ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), r ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? bz : yz,
+ leadingIcon: e.status === "paused" ? yz : vz,
"aria-label": i,
title: i,
disabled: t || !e.job_id || e.status === "pausing",
- ...Bz(n.busy === "pause" || n.busy === "resume"),
+ ...zz(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && a({
action: e.status === "paused" ? "resume" : "pause",
@@ -45959,7 +45966,7 @@ function Phe({ state: e, disabled: t = !1 }) {
});
}
}) : null]
- }), n.error ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }), n.error ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-caption-1-regular text-text-error-primary",
children: n.error
@@ -45968,13 +45975,13 @@ function Phe({ state: e, disabled: t = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function LH({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = Nt({
- queryKey: uH,
- queryFn: ({ signal: e }) => vH(e),
- refetchInterval: (e) => xH(e.state.data, r)
- }), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
- return (0, F.useEffect)(() => {
+function IH({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = Pt({
+ queryKey: lH,
+ queryFn: ({ signal: e }) => _H(e),
+ refetchInterval: (e) => bH(e.state.data, r)
+ }), [a, o] = (0, P.useState)(null), s = (0, P.useRef)(void 0), c = i.data;
+ return (0, P.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
@@ -45982,8 +45989,8 @@ function LH({ toast: e, mode: t, monitor: n }) {
"running",
"pausing",
"paused"
- ].includes(n) && !pH(c);
- r && o(c), (r || t === "notice") && Dhe(c, e, r);
+ ].includes(n) && !fH(c);
+ r && o(c), (r || t === "notice") && khe(c, e, r);
}, [
c,
t,
@@ -45996,50 +46003,50 @@ function LH({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/components/card.tsx
-var Fhe = "min-w-0", Ihe = {
+var Lhe = "min-w-0", Rhe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Lhe = {
+}, zhe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Rhe = {
+}, Bhe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, zhe = {
+}, Vhe = {
none: "",
default: "p-5"
-}, Bhe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Vhe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function RH(e = {}) {
+}, Hhe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Uhe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function LH(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Fhe,
- Ihe[t],
- Lhe[s],
- zhe[n],
- a ? Rhe[a] : "",
- r ? Bhe : "",
- i ? Vhe : "",
+ Lhe,
+ Rhe[t],
+ zhe[s],
+ Vhe[n],
+ a ? Bhe[a] : "",
+ r ? Hhe : "",
+ i ? Uhe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function zH({ label: e }) {
- return /* @__PURE__ */ (0, I.jsxs)("p", {
+function RH({ label: e }) {
+ return /* @__PURE__ */ (0, F.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex shrink-0 items-center gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, I.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, I.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ /* @__PURE__ */ (0, F.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, F.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, F.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
]
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 wrap-anywhere",
children: e
})]
@@ -46047,32 +46054,32 @@ function zH({ label: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var BH = 100, Hhe = .4;
-function VH({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * BH;
- return /* @__PURE__ */ (0, I.jsxs)("svg", {
+var zH = 100, Whe = .4;
+function BH({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * zH;
+ return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${BH} 1`,
+ viewBox: `0 0 ${zH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
- /* @__PURE__ */ (0, I.jsx)("rect", {
- width: BH,
+ /* @__PURE__ */ (0, F.jsx)("rect", {
+ width: zH,
height: 1,
className: "fill-background-tertiary-default"
}),
- /* @__PURE__ */ (0, I.jsx)("rect", {
+ /* @__PURE__ */ (0, F.jsx)("rect", {
width: o(t),
height: 1,
className: "fill-border-focus-ring"
}),
- r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
+ r.map((e) => /* @__PURE__ */ (0, F.jsx)("rect", {
x: o(e),
- width: Hhe,
+ width: Whe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46081,32 +46088,32 @@ function VH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function HH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function VH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : RH({
+ className: r ? "flex flex-col gap-1.5" : LH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(BH, {
label: e,
value: t,
max: n
- }), /* @__PURE__ */ (0, I.jsx)("p", {
+ }), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(zH, { label: e })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(RH, { label: e })
});
}
//#endregion
//#region src/react/library-processing/processing-line.tsx
-function UH(e) {
- let [t, n] = (0, F.useState)({
+function HH(e) {
+ let [t, n] = (0, P.useState)({
snapshot: e,
seconds: 0
}), r = e.waited_seconds, i = e.status === "running" && r != null && Number.isFinite(r) && r >= 0;
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
if (!i) return;
let t = performance.now(), r = window.setInterval(() => {
n({
@@ -46117,17 +46124,17 @@ function UH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return whe(a ? {
+ return Ehe(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function Uhe({ state: e }) {
- return UH(e);
+function Ghe({ state: e }) {
+ return HH(e);
}
-function Whe({ state: e }) {
- let t = UH(e);
- return /* @__PURE__ */ (0, I.jsx)(HH, {
+function Khe({ state: e }) {
+ let t = HH(e);
+ return /* @__PURE__ */ (0, F.jsx)(VH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46136,19 +46143,19 @@ function Whe({ state: e }) {
}
//#endregion
//#region src/react/components/collapse-region.tsx
-function WH({ open: e, children: t, ...n }) {
- let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
- return (0, F.useLayoutEffect)(() => {
+function UH({ open: e, children: t, ...n }) {
+ let r = (0, P.useRef)(null), i = (0, P.useRef)(!1);
+ return (0, P.useLayoutEffect)(() => {
let t = r.current;
- t && (i.current ? yo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
- }, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
+ t && (i.current ? xo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
+ }, [e]), /* @__PURE__ */ (0, F.jsx)("div", {
...n,
ref: r,
children: t
});
}
-function GH(e) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function WH(e) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
...e,
"aria-hidden": !0,
"data-collapse-chevron": "",
@@ -46158,32 +46165,32 @@ function GH(e) {
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-chevron-down" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-chevron-down" })
});
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function KH({ className: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
- className: uF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+function GH({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
+ className: lF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function qH({ className: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)("p", {
- className: uF("w-full px-3 text-body-2-medium text-text-secondary", e),
+function KH({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsx)("p", {
+ className: lF("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function Ghe({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
- className: uF("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, I.jsxs)("div", {
+function qhe({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: lF("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, F.jsxs)("div", {
className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e
- }), t && /* @__PURE__ */ (0, I.jsx)("p", {
+ }), t && /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
})]
@@ -46192,52 +46199,52 @@ function Ghe({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function Khe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
- let o = t ? /* @__PURE__ */ (0, I.jsxs)("span", {
+function Jhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+ let o = t ? /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
- }) : e, s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [r ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : e, s = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [r ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(qH, { children: o })
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)(KH, { children: o })
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, I.jsx)(qH, { children: o }), /* @__PURE__ */ (0, I.jsx)(KH, { children: a })] });
- return i ? /* @__PURE__ */ (0, I.jsx)("form", {
+ }) : /* @__PURE__ */ (0, F.jsx)(KH, { children: o }), /* @__PURE__ */ (0, F.jsx)(GH, { children: a })] });
+ return i ? /* @__PURE__ */ (0, F.jsx)("form", {
id: n,
"aria-label": e,
noValidate: !0,
onSubmit: i,
className: "flex w-full flex-col gap-2 wrap-anywhere",
children: s
- }) : /* @__PURE__ */ (0, I.jsx)("section", {
+ }) : /* @__PURE__ */ (0, F.jsx)("section", {
id: n,
"aria-label": e,
className: "flex w-full flex-col gap-2 wrap-anywhere",
children: s
});
}
-function qhe({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function Yhe({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function Jhe({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, I.jsx)("div", {
+function Xhe({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
- }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3 empty:hidden",
children: t
});
}
-function Yhe({ label: e, html: t }) {
- let [n] = (0, F.useState)(t);
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function Zhe({ label: e, html: t }) {
+ let [n] = (0, P.useState)(t);
+ return /* @__PURE__ */ (0, F.jsx)("div", {
className: "contents",
"data-skeleton": "",
"aria-busy": "true",
@@ -46245,156 +46252,156 @@ function Yhe({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function Xhe({ status: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function Qhe({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
- children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function JH({ role: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)("p", {
+function qH({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function YH({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)("p", {
+function JH({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function XH({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)("p", {
+function YH({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Zhe({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(EH, {
+function $he({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(TH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: pz,
+ trailingIcon: fz,
className: "min-w-0 max-w-full",
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
children: t
})
});
}
-function Qhe({ children: e }) {
- return /* @__PURE__ */ (0, I.jsx)("dl", {
+function ege({ children: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function $he({ term: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function tge({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, F.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, I.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, F.jsx)("dt", {
className: "flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, I.jsx)("dd", {
+ }), /* @__PURE__ */ (0, F.jsx)("dd", {
className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-left text-body-regular break-all text-text-primary",
children: t
})]
});
}
-function ZH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
- let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
- return (0, F.useLayoutEffect)(() => {
- n !== void 0 && n !== d && c.current && l.current && (vo(c.current, l.current, n), f(n));
- }, [n, d]), /* @__PURE__ */ (0, I.jsxs)("details", {
+function XH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+ let s = (0, P.useId)(), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(!1), [d, f] = (0, P.useState)(n ?? t);
+ return (0, P.useLayoutEffect)(() => {
+ n !== void 0 && n !== d && c.current && l.current && (bo(c.current, l.current, n), f(n));
+ }, [n, d]), /* @__PURE__ */ (0, F.jsxs)("details", {
ref: (e) => {
c.current = e, e && (n ?? t) && !u.current && (u.current = !0, e.open = !0);
},
- children: [/* @__PURE__ */ (0, I.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("summary", {
"aria-expanded": d,
"aria-controls": s,
onClick: (e) => {
- e.preventDefault(), c.current && l.current && (vo(c.current, l.current, !d), f(!d), a?.(!d));
+ e.preventDefault(), c.current && l.current && (bo(c.current, l.current, !d), f(!d), a?.(!d));
},
className: `${i ? "w-full" : "w-fit"} flex 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: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(dz, {
+ i ? null : /* @__PURE__ */ (0, F.jsx)(uz, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(dz, {
+ i ? /* @__PURE__ */ (0, F.jsx)(uz, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: l,
id: s,
inert: !d,
- children: /* @__PURE__ */ (0, I.jsx)("div", {
- className: uF("flex flex-col gap-2 pt-3", o),
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
+ className: lF("flex flex-col gap-2 pt-3", o),
children: r
})
})]
});
}
-function ege({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function nge({ name: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
viewBox: "0 0 24 24",
fill: "none",
className: "size-(--icon-inline) shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function QH({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
+function ZH({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(ege, { name: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(nge, { name: e });
}
//#endregion
//#region src/react/components/source-label.tsx
-var $H = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, tge = Object.fromEntries(Object.entries(Yo).map(([e, t]) => [e, function({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+var QH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, rge = Object.fromEntries(Object.entries(Zo).map(([e, t]) => [e, function({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(QH, { mark: t })
+ children: /* @__PURE__ */ (0, F.jsx)(ZH, { mark: t })
});
}]));
-function nge({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+function ige({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(QH, { mark: "database" })
+ children: /* @__PURE__ */ (0, F.jsx)(ZH, { mark: "database" })
});
}
-var eU = (e) => tge[$H(e)] ?? nge;
-function rge({ site: e, label: t }) {
- let [n, r] = (0, F.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+var $H = (e) => rge[QH(e)] ?? ige;
+function age({ site: e, label: t }) {
+ let [n, r] = (0, P.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(QH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, F.jsx)(ZH, { mark: "globe" }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
onError: () => r(!0)
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: t })]
});
}
-function tU({ source: e, label: t }) {
- let n = $H(e);
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function eU({ source: e, label: t }) {
+ let n = QH(e);
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(QH, { mark: Yo[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZH, { mark: Zo[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
@@ -46402,26 +46409,26 @@ function tU({ source: e, label: t }) {
}
//#endregion
//#region src/react/library-processing/processing-traffic.tsx
-var nU = (e) => kn(e).replace(/\s/g, ""), rU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : nU(e), ige = (e, t) => {
- if (e === t) return nU(t);
- let [n, r] = kn(e).split(" "), [i, a] = kn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${nU(e)}-${nU(t)}`;
-}, iU = (e, t, n) => e === void 0 ? ige(t, n) : `${e > 0 ? "约 " : ""}${nU(e)}`;
-function aU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = iV(), [a, o] = (0, F.useState)(!1), s = (0, F.useId)(), c = n ?? a;
+var tU = (e) => jn(e).replace(/\s/g, ""), nU = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : tU(e), oge = (e, t) => {
+ if (e === t) return tU(t);
+ let [n, r] = jn(e).split(" "), [i, a] = jn(t).split(" ");
+ return r === a ? `${n}-${i}${a}` : `${tU(e)}-${tU(t)}`;
+}, rU = (e, t, n) => e === void 0 ? oge(t, n) : `${e > 0 ? "约 " : ""}${tU(e)}`;
+function iU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = rV(), [a, o] = (0, P.useState)(!1), s = (0, P.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-processing-traffic": "",
className: "flex min-w-0 flex-col gap-2 text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
children: [
- e.workload ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ e.workload ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "flex flex-wrap gap-x-3 gap-y-1",
- children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", { children: [
"视频 ",
l(e.workload.video_files),
" 个"
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ ] }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [
"JAV 文件 ",
l(e.workload.jav_files),
" 个 · 不同番号 ",
@@ -46429,114 +46436,114 @@ function aU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
" 个"
] })]
}) : null,
- e.inventory && !e.inventory.complete ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.inventory && !e.inventory.complete ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "status",
children: "正在统计新目录…"
}) : null,
- e.inventory?.errors ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.inventory?.errors ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "status",
children: "部分目录无法读取,数量和预估不完整"
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid grid-cols-2 gap-6 py-2",
- children: [/* @__PURE__ */ (0, I.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "流量预估",
className: "flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(gz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(hz, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: iU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: rU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
- /* @__PURE__ */ (0, I.jsxs)("p", { children: [
+ /* @__PURE__ */ (0, F.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- iU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ rU(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
- t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
+ t ? null : /* @__PURE__ */ (0, F.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", nU(e.used_bytes)] }),
+ /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.partial ? "约 " : "", tU(e.used_bytes)] }),
" · 代理 ",
- nU(e.metered_used_bytes)
+ tU(e.metered_used_bytes)
] })
]
- }), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ }), e.disk ? /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "磁盘预估",
className: "flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(dpe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(ppe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", nU(e.disk.estimated_bytes)]
+ children: ["约 ", tU(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", rU(e.disk.temporary_bytes)] }) : null,
- e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, F.jsxs)("p", { children: ["抽帧临时文件约 ", nU(e.disk.temporary_bytes)] }) : null,
+ e.disk.volumes.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : nU(e.free_bytes)
- ] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ e.free_bytes == null ? "未取得" : tU(e.free_bytes)
+ ] }), e.can_fit === !1 ? /* @__PURE__ */ (0, F.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", nU(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", tU(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
- e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.disk.cache_unknown ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "status",
children: "网盘缓存占用待确认"
}) : null
]
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? kfe : lz,
+ trailingIcon: c ? jfe : cz,
onClick: () => {
o(!c), r?.(!c);
},
children: c ? "收起明细" : "查看明细"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
id: s,
hidden: !c,
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "relative min-w-0",
- children: /* @__PURE__ */ (0, I.jsx)("ul", {
+ children: /* @__PURE__ */ (0, F.jsx)("ul", {
ref: t ? void 0 : i,
className: `flex flex-col pr-2${t ? "" : " max-h-48 overflow-y-auto overscroll-contain"}`,
- children: e.sources.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
+ children: e.sources.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-separator-border py-2 last:border-b-0",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(tU, {
+ children: [e.root ? /* @__PURE__ */ (0, F.jsx)(eU, {
source: e.location,
label: e.label
- }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(QH, { mark: "globe" }), e.label]
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(ZH, { mark: "globe" }), e.label]
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
})]
}),
- e.workload?.video_files ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ e.workload?.video_files ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-text-tertiary",
children: [
"视频 ",
@@ -46546,24 +46553,24 @@ function aU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
" 个"
]
}) : null,
- e.workload?.pending_jav_titles ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ e.workload?.pending_jav_titles ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-text-tertiary",
children: [
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- rU(e.workload.metadata_average_bytes || 0),
+ nU(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap justify-between gap-x-4 text-text-tertiary",
- children: [t ? null : /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [t ? null : /* @__PURE__ */ (0, F.jsxs)("span", { children: [
"已用",
e.unobserved.length ? "约" : "",
" ",
- nU(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", iU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ tU(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["预计 ", rU(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46575,17 +46582,17 @@ function aU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var oU = "peach.library-processing.collapsed";
-function sU(e) {
+var aU = "peach.library-processing.collapsed";
+function oU(e) {
try {
- return !e || sessionStorage.getItem(oU) !== e;
+ return !e || sessionStorage.getItem(aU) !== e;
} catch {
return !0;
}
}
-function age({ value: e, max: t }) {
+function sge({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, I.jsxs)("svg", {
+ return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
"aria-label": "当前阶段完成率",
"aria-valuemin": 0,
@@ -46594,14 +46601,14 @@ function age({ value: e, max: t }) {
viewBox: "0 0 32 32",
fill: "none",
className: "size-8 shrink-0 -rotate-90 text-border-focus-ring",
- children: [/* @__PURE__ */ (0, I.jsx)("circle", {
+ children: [/* @__PURE__ */ (0, F.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
stroke: "currentColor",
strokeWidth: "3",
className: "opacity-20"
- }), /* @__PURE__ */ (0, I.jsx)("circle", {
+ }), /* @__PURE__ */ (0, F.jsx)("circle", {
cx: "16",
cy: "16",
r: "13",
@@ -46613,18 +46620,18 @@ function age({ value: e, max: t }) {
})]
});
}
-function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => sU(e?.job_id)), o = (0, F.useId)(), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(null), u = !t && mH(e), d = e?.status === "failed" && !u, f = pH(e);
- (0, F.useEffect)(() => {
- a(sU(e?.job_id)), c(!1);
+function sU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, P.useState)(() => oU(e?.job_id)), o = (0, P.useId)(), [s, c] = (0, P.useState)(!1), l = (0, P.useRef)(null), u = !t && pH(e), d = e?.status === "failed" && !u, f = fH(e);
+ (0, P.useEffect)(() => {
+ a(oU(e?.job_id)), c(!1);
}, [e?.job_id]);
let p = () => {
try {
- i && e?.job_id ? sessionStorage.setItem(oU, e.job_id) : sessionStorage.removeItem(oU);
+ i && e?.job_id ? sessionStorage.setItem(aU, e.job_id) : sessionStorage.removeItem(aU);
} catch {}
i && c(!1), a(!i);
};
- if ((0, F.useEffect)(() => {
+ if ((0, P.useEffect)(() => {
if (!n || !l.current) return;
let e = l.current, t = !1, r = () => {
!t && e.isConnected && document.documentElement.style.setProperty("--processing-toast-space", `${e.getBoundingClientRect().height + 12}px`);
@@ -46635,47 +46642,47 @@ function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
t = !0, i.disconnect(), document.documentElement.style.removeProperty("--processing-toast-space");
};
}, [n]), !t && !f && !d && !u) return null;
- let m = t ? null : dH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
- return /* @__PURE__ */ (0, I.jsxs)("aside", {
+ let m = t ? null : uH(e), h = !!t || !!e?.stalled || u || !!m, g = u ? "处理已结束,部分项目需处理" : d ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ return /* @__PURE__ */ (0, F.jsxs)("aside", {
ref: l,
"data-processing-dock": "",
"data-processing-tone": d ? "error" : h ? "warning" : "neutral",
"aria-label": "扫描任务",
role: d ? "alert" : "status",
- className: uF("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: lF("flex min-w-0 flex-col border bg-background-primary-default p-4", d ? "border-current/35 text-text-error-primary" : h ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- f && e?.total ? /* @__PURE__ */ (0, I.jsx)(age, {
+ f && e?.total ? /* @__PURE__ */ (0, F.jsx)(sge, {
value: e.checked || 0,
max: e.total
- }) : d || h ? /* @__PURE__ */ (0, I.jsx)(Hfe, {
+ }) : d || h ? /* @__PURE__ */ (0, F.jsx)(Wfe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)($fe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(tpe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0 flex-1",
- children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium",
children: g
- }), f ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }), f ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: _H(e)
+ children: gH(e)
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: GH,
+ leadingIcon: WH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": i ? "收起任务详情" : "展开任务详情",
@@ -46683,75 +46690,75 @@ function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-controls": o,
onClick: p
}),
- r ? /* @__PURE__ */ (0, I.jsx)(q, {
+ r ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: fz,
+ leadingIcon: dz,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(aU, {
+ /* @__PURE__ */ (0, F.jsx)(iU, {
traffic: e?.traffic,
detailsOpen: s,
onDetailsChange: c
}),
- m ? /* @__PURE__ */ (0, I.jsx)(khe, {
+ m ? /* @__PURE__ */ (0, F.jsx)(jhe, {
state: e,
slow: m
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(WH, {
+ /* @__PURE__ */ (0, F.jsx)(UH, {
id: o,
open: i,
"data-processing-body": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "pt-3",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: uF("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
+ className: lF("flex min-w-0 flex-col gap-2 border-t pt-3", d ? "border-border-error-default/20" : h ? "border-current/20" : "border-separator-border"),
children: [
- e?.steps?.length ? /* @__PURE__ */ (0, I.jsx)("ol", {
+ e?.steps?.length ? /* @__PURE__ */ (0, F.jsx)("ol", {
"aria-label": "处理步骤",
className: "flex min-w-0 flex-col gap-1.5",
- children: e.steps.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
+ children: e.steps.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: uF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: lF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Ffe, {
+ e.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(Lfe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Ife, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Rfe, {
"aria-hidden": !0,
- className: uF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: lF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(yw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
+ /* @__PURE__ */ (0, F.jsx)(vw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ e.status === "complete" ? /* @__PURE__ */ (0, F.jsx)("s", {
className: "wrap-anywhere",
children: e.label
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "wrap-anywhere",
children: e.label
})
]
}, e.id))
}) : null,
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(Uhe, { state: e }))
+ children: t || (d || u ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, F.jsx)(Ghe, { state: e }))
}),
- u ? /* @__PURE__ */ (0, I.jsx)("p", {
+ u ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: hH
+ children: mH
}) : null,
- f && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ f && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
children: ["当前阶段 · ", e.stage]
}) : null,
- e?.stalled && !t && !m ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e?.stalled && !t && !m ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular",
children: "当前步骤耗时较长,正在等待进展"
}) : null
@@ -46759,23 +46766,23 @@ function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})
})
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ /* @__PURE__ */ (0, F.jsx)(TH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: t || d || u ? "打开扫描与采集" : "任务详情"
}),
- u ? /* @__PURE__ */ (0, I.jsx)(EH, {
- href: gH,
+ u ? /* @__PURE__ */ (0, F.jsx)(TH, {
+ href: hH,
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "查看全部内容"
}) : null,
- f ? /* @__PURE__ */ (0, I.jsx)(Phe, {
+ f ? /* @__PURE__ */ (0, F.jsx)(Ihe, {
state: e,
disabled: !!t
}) : null
@@ -46784,37 +46791,37 @@ function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
]
});
}
-function oge(e) {
- let { job: t } = LH(e);
- return /* @__PURE__ */ (0, I.jsx)(cU, {
+function cge(e) {
+ let { job: t } = IH(e);
+ return /* @__PURE__ */ (0, F.jsx)(sU, {
state: t.data,
- problem: t.isError ? t.data ? bH : Hn(t.error) : ""
+ problem: t.isError ? t.data ? yH : Wn(t.error) : ""
});
}
//#endregion
//#region src/react/library-processing/processing-notice-visibility.ts
-var lU = "peach.library-processing.visibility", uU = /* @__PURE__ */ new Set(), dU = "";
-function sge() {
+var cU = "peach.library-processing.visibility", lU = /* @__PURE__ */ new Set(), uU = "";
+function lge() {
try {
- return sessionStorage.getItem(lU) || "";
+ return sessionStorage.getItem(cU) || "";
} catch {
- return dU;
+ return uU;
}
}
-function cge(e) {
- return uU.add(e), () => {
- uU.delete(e);
+function uge(e) {
+ return lU.add(e), () => {
+ lU.delete(e);
};
}
-function fU(e, t) {
- dU = `${t ? "shown" : "hidden"}:${e}`;
+function dU(e, t) {
+ uU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(lU, dU);
+ sessionStorage.setItem(cU, uU);
} catch {}
- uU.forEach((e) => e());
+ lU.forEach((e) => e());
}
-function pU(e) {
- let t = (0, F.useSyncExternalStore)(cge, sge, () => "");
+function fU(e) {
+ let t = (0, P.useSyncExternalStore)(uge, lge, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
@@ -46822,31 +46829,31 @@ function pU(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-dock.tsx
-var mU = "peach-library-processing";
-function lge({ toast: e }) {
- let { job: t, settled: n } = LH({
+var pU = "peach-library-processing";
+function dge({ toast: e }) {
+ let { job: t, settled: n } = IH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = pU(a), c = t.isError ? i ? bH : Hn(t.error) : "";
- return (0, F.useEffect)(() => {
- let e = pH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || wH(i));
- o || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && rH.dismiss(mU), r.current = !1) : (rH.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ }), r = (0, P.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = fU(a), c = t.isError ? i ? yH : Wn(t.error) : "";
+ return (0, P.useEffect)(() => {
+ let e = fH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || CH(i));
+ o || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && nH.dismiss(pU), r.current = !1) : (nH.custom(() => /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(cU, {
+ children: /* @__PURE__ */ (0, F.jsx)(sU, {
state: i,
problem: c,
measure: !0,
- onHide: () => fU(a, !1)
+ onHide: () => dU(a, !1)
})
}), {
- id: mU,
+ id: pU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- fU(a, !1), r.current = !1;
+ dU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46856,32 +46863,32 @@ function lge({ toast: e }) {
a,
o,
s
- ]), (0, F.useEffect)(() => () => {
- r.current && rH.dismiss(mU), r.current = !1;
+ ]), (0, P.useEffect)(() => () => {
+ r.current && nH.dismiss(pU), r.current = !1;
}, []), null;
}
//#endregion
//#region src/react/network-banner.tsx
-var uge = ["network-status"], dge = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function fge(e) {
+var fge = ["network-status"], pge = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function mge(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function pge() {
- let e = Nt({
- queryKey: uge,
- queryFn: ({ signal: e }) => V("/api/network-status", e),
- refetchInterval: (e) => fge(e.state.data),
+function hge() {
+ let e = Pt({
+ queryKey: fge,
+ queryFn: ({ signal: e }) => B("/api/network-status", e),
+ refetchInterval: (e) => mge(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
- return e.data?.state !== "offline" || !t ? null : (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
+ return e.data?.state !== "offline" || !t ? null : (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsxs)("aside", {
className: "ui-project-banner ui-project-banner-warning",
role: "status",
"data-network-offline": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", { children: [/* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: dge })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-alert" })
+ }), /* @__PURE__ */ (0, F.jsx)("p", { children: pge })] }), /* @__PURE__ */ (0, F.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
@@ -46889,15 +46896,15 @@ function pge() {
}
//#endregion
//#region src/react/client-updates.tsx
-var mge = 12e4, hge = 15e3, hU = () => document.visibilityState !== "hidden", gU = /* @__PURE__ */ new Set([
+var gge = 12e4, _ge = 15e3, mU = () => document.visibilityState !== "hidden", hU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), _U = "/settings/maintenance#releaseUpdates";
-function gge() {
+]), gU = "/settings/maintenance#releaseUpdates";
+function vge() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -46908,23 +46915,23 @@ function gge() {
return null;
}
}
-function vU() {
- let e = (0, F.useRef)(gge()), [t, n] = (0, F.useState)(null);
- return (0, F.useEffect)(() => {
+function _U() {
+ let e = (0, P.useRef)(vge()), [t, n] = (0, P.useState)(null);
+ return (0, P.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !hU()) return;
+ if (t || !mU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), hge);
+ let s = setTimeout(() => o.abort(), _ge);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
- let r = await V("/api/client-updates", o.signal);
+ let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && hU() && (r = setTimeout(a, mge)));
+ clearTimeout(s), i === o && (i = void 0, !t && mU() && (r = setTimeout(a, gge)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, hU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, mU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -46934,50 +46941,50 @@ function vU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function _ge({ navigate: e }) {
- let { snapshot: t, refresh: n } = vU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function yge({ navigate: e }) {
+ let { snapshot: t, refresh: n } = _U(), [r, i] = (0, P.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : gU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : hU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || gU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || hU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
] : [l, u]);
if (d === r) return null;
let f = l === "refresh" ? "Peach 已更新,刷新页面即可使用。" : l === "ready" ? "更新已准备好,可重启安装。" : l === "preparing" ? "正在准备更新。" : "有可用更新。";
- return (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
+ return (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsxs)("aside", {
className: "ui-project-banner peach-react",
role: "status",
"data-client-update": l,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", { children: [/* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-info" })
- }), /* @__PURE__ */ (0, I.jsxs)("p", { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-info" })
+ }), /* @__PURE__ */ (0, F.jsxs)("p", { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-copy-key": `clientUpdates.${l}.message`,
children: f
- }), l !== "refresh" && u ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), l !== "refresh" && u ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-copy-ignore": "",
children: [" Peach ", u]
- }) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : null] })] }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, F.jsx)(TH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(EH, {
+ }) : /* @__PURE__ */ (0, F.jsx)(TH, {
variant: "secondary",
size: "small",
- href: _U,
+ href: gU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(_U));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(gU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(EH, {
+ }), /* @__PURE__ */ (0, F.jsx)(TH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -46989,22 +46996,22 @@ function _ge({ navigate: e }) {
}
//#endregion
//#region src/react/router/pages/settings.tsx
-function vge() {
- let e = (0, F.useContext)(CU), { pathname: t } = LB();
- return (0, F.useEffect)(() => {
- e?.openSettings?.(uV(t));
- }, [e, t]), (0, F.useEffect)(() => () => {
+function bge() {
+ let e = (0, P.useContext)(SU), { pathname: t } = IB();
+ return (0, P.useEffect)(() => {
+ e?.openSettings?.(lV(t));
+ }, [e, t]), (0, P.useEffect)(() => () => {
queueMicrotask(() => {
- lV(YV.navigation.location.pathname) || e?.closeSettings?.();
+ cV(JV.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
//#endregion
//#region src/react/router/pages/overlay.tsx
-var yU = () => ou, yge = () => su;
-function bge() {
- let e = (0, F.useContext)(CU), t = (0, F.useSyncExternalStore)(_u, yge), n = (0, F.useSyncExternalStore)(_u, yU);
- return (0, F.useEffect)(() => {
+var vU = () => cu, xge = () => lu;
+function Sge() {
+ let e = (0, P.useContext)(SU), t = (0, P.useSyncExternalStore)(yu, xge), n = (0, P.useSyncExternalStore)(yu, vU);
+ return (0, P.useEffect)(() => {
if (!t || !n) return;
let r = !0;
return queueMicrotask(() => {
@@ -47018,42 +47025,42 @@ function bge() {
e
]), null;
}
-function bU(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(_u, yU), r = (0, F.useRef)(void 0);
+function yU(e, t = !1) {
+ let n = (0, P.useSyncExternalStore)(yu, vU), r = (0, P.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = YV.navigation;
- r.current = ou === 0 || ZV() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = JV.navigation;
+ r.current = cu === 0 || XV() ? "boot" : e && !t ? null : "history";
}
- let i = (0, F.useRef)(e);
- (0, F.useEffect)(() => {
+ let i = (0, P.useRef)(e);
+ (0, P.useEffect)(() => {
i.current = e;
});
- let a = (0, F.useRef)(!0);
- (0, F.useEffect)(() => (a.current = !0, () => {
+ let a = (0, P.useRef)(!0);
+ (0, P.useEffect)(() => (a.current = !0, () => {
a.current = !1;
- }), []), (0, F.useEffect)(() => {
+ }), []), (0, P.useEffect)(() => {
let e = r.current;
e && n !== 0 && (r.current = null, queueMicrotask(() => {
a.current && i.current(e === "boot");
}));
}, [n]);
}
-function xge() {
- let e = (0, F.useContext)(CU), t = (0, F.useRef)(e);
- return (0, F.useLayoutEffect)(() => {
+function Cge() {
+ let e = (0, P.useContext)(SU), t = (0, P.useRef)(e);
+ return (0, P.useLayoutEffect)(() => {
t.current = e;
- }, [e]), bU((t) => {
- let n = YV.navigation.location, { pathname: r, search: i } = lV(n.pathname) && fV(n.state) || n, a = hV(r, i);
- e && a && (xV(), t || Bme(YV.navigation.location.state), e.openOverlay(a));
- }, !0), (0, F.useEffect)(() => () => {
+ }, [e]), yU((t) => {
+ let n = JV.navigation.location, { pathname: r, search: i } = cV(n.pathname) && dV(n.state) || n, a = mV(r, i);
+ e && a && (bV(), t || Hme(JV.navigation.location.state), e.openOverlay(a));
+ }, !0), (0, P.useEffect)(() => () => {
queueMicrotask(() => {
- gV(YV.navigation.location.pathname) || t.current?.closeStage();
+ hV(JV.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function Sge({ path: e }) {
- SU();
- let { location: t, seq: n, action: r } = YV.navigation, i = lV(t.pathname) ? fV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
+function wge({ path: e }) {
+ xU();
+ let { location: t, seq: n, action: r } = JV.navigation, i = cV(t.pathname) ? dV(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, P.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -47064,164 +47071,164 @@ function Sge({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(xge, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, F.jsx)(Cge, {}, `${e} ${o.current.seq}`);
}
-function Cge() {
- let e = (0, F.useContext)(CU);
- return bU(() => {
+function Tge() {
+ let e = (0, P.useContext)(SU);
+ return yU(() => {
e?.follow?.ground();
}), null;
}
-function wge() {
- return /* @__PURE__ */ (0, I.jsx)(Cge, {}, SU());
+function Ege() {
+ return /* @__PURE__ */ (0, F.jsx)(Tge, {}, xU());
}
//#endregion
//#region src/react/router/router.tsx
-var xU = (0, F.createContext)(0), SU = () => (0, F.useContext)(xU), CU = (0, F.createContext)(null);
-function Tge({ children: e }) {
- let [t, n] = (0, F.useState)(() => YV.navigation);
- return (0, F.useLayoutEffect)(() => (n(YV.navigation), YV.listen((e) => {
- (0, It.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(xU.Provider, {
+var bU = (0, P.createContext)(0), xU = () => (0, P.useContext)(bU), SU = (0, P.createContext)(null);
+function Dge({ children: e }) {
+ let [t, n] = (0, P.useState)(() => JV.navigation);
+ return (0, P.useLayoutEffect)(() => (n(JV.navigation), JV.listen((e) => {
+ (0, Lt.flushSync)(() => n(e));
+ })), []), /* @__PURE__ */ (0, F.jsx)(bU.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, I.jsx)(Ome, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ame, {
location: t.location,
navigationType: t.action,
- navigator: YV,
+ navigator: JV,
children: e
})
});
}
-function Ege({ target: e }) {
- let t = pme();
- return (0, F.useLayoutEffect)(() => {
+function Oge({ target: e }) {
+ let t = hme();
+ return (0, P.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Dge(e, t, n) {
+function kge(e, t, n) {
let r = new URL(e, window.location.href);
- P6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function Oge() {
- let e = (0, F.useContext)(CU), [t, n] = (0, F.useState)(IV), r = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => (n(IV()), Hme((e, t) => {
- t ? (0, It.flushSync)(() => n(e)) : n(e);
+function Age() {
+ let e = (0, P.useContext)(SU), [t, n] = (0, P.useState)(FV), r = (0, P.useRef)(null);
+ (0, P.useLayoutEffect)(() => (n(FV()), Wme((e, t) => {
+ t ? (0, Lt.flushSync)(() => n(e)) : n(e);
})), []);
- let i = (0, F.useMemo)(() => (t) => {
- e && r.current && Dge(t, e, r.current);
+ let i = (0, P.useMemo)(() => (t) => {
+ e && r.current && kge(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ege, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(kge, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Oge, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, F.jsx)(jge, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(Age, {
+ children: /* @__PURE__ */ (0, F.jsx)(Mge, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var kge = class extends F.Component {
+var jge = class extends P.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- Gme(this.props.entry.container, this.props.entry.revision);
+ qme(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, Age = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return J6(e.path) ? (0, It.createPortal)(Mje(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Mge = (0, P.memo)(function({ entry: e, actions: t, go: n }) {
+ return q6(e.path) ? (0, Lt.createPortal)(Pje(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function jge({ children: e }) {
- let t = LB();
- SU();
- let n = QV(), r = lV(t.pathname) && !ZV() ? fV(t.state) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)(GB, {
+function Nge({ children: e }) {
+ let t = IB();
+ xU();
+ let n = ZV(), r = cV(t.pathname) && !XV() ? dV(t.state) : null;
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(WB, {
location: n ?? t,
children: [
- Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(M6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(Oje).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(Aje).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(F6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(P6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(L6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(z6).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- q6.map((e) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ K6.map((e) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
- element: V6["/"].element
+ element: B6["/"].element
}, e)),
- Object.entries(kje).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ Object.entries(jje).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: t.element
}, e)),
- pV.map((e) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ fV.map((e) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(wge, {}) : V6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, F.jsx)(Ege, {}) : B6["/"].element
}, e)),
- cV.map((e) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ sV.map((e) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, I.jsx)(WB, {
+ /* @__PURE__ */ (0, F.jsx)(UB, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(GB, {
+ /* @__PURE__ */ (0, F.jsxs)(WB, {
location: r ?? t,
- children: [pV.map((e) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ children: [fV.map((e) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Sge, { path: e })
- }, e)), /* @__PURE__ */ (0, I.jsx)(WB, {
+ element: /* @__PURE__ */ (0, F.jsx)(wge, { path: e })
+ }, e)), /* @__PURE__ */ (0, F.jsx)(UB, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(GB, { children: [cV.map((e) => /* @__PURE__ */ (0, I.jsx)(WB, {
+ /* @__PURE__ */ (0, F.jsxs)(WB, { children: [sV.map((e) => /* @__PURE__ */ (0, F.jsx)(UB, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(vge, {})
- }, e)), /* @__PURE__ */ (0, I.jsx)(WB, {
+ element: /* @__PURE__ */ (0, F.jsx)(bge, {})
+ }, e)), /* @__PURE__ */ (0, F.jsx)(UB, {
path: "*",
element: null
})] })
] });
}
-function Mge({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(eH, { children: [n, /* @__PURE__ */ (0, I.jsx)(CU.Provider, {
+function Pge({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, F.jsxs)($V, { children: [n, /* @__PURE__ */ (0, F.jsx)(SU.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(Tge, { children: [
- /* @__PURE__ */ (0, I.jsx)(Oge, {}),
- /* @__PURE__ */ (0, I.jsx)(bge, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(lge, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(pge, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(_ge, { navigate: t.navigate }) : null,
- /* @__PURE__ */ (0, I.jsx)(jge, { children: e })
+ children: /* @__PURE__ */ (0, F.jsxs)(Dge, { children: [
+ /* @__PURE__ */ (0, F.jsx)(Age, {}),
+ /* @__PURE__ */ (0, F.jsx)(Sge, {}),
+ r && t ? /* @__PURE__ */ (0, F.jsx)(dge, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, F.jsx)(hge, {}) : null,
+ r && t ? /* @__PURE__ */ (0, F.jsx)(yge, { navigate: t.navigate }) : null,
+ /* @__PURE__ */ (0, F.jsx)(Nge, { children: e })
] })
})] });
}
-var Nge = { onCaughtError: (e) => {
+var Fge = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} };
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Pge(e, t, n) {
- (0, F.useEffect)(() => {
+function Ige(e, t, n) {
+ (0, P.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -47234,9 +47241,9 @@ function Pge(e, t, n) {
n
]);
}
-function Fge(e, t) {
- let n = (0, F.useRef)(!1);
- return (0, F.useEffect)(() => {
+function Lge(e, t) {
+ let n = (0, P.useRef)(!1);
+ return (0, P.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -47248,33 +47255,33 @@ function Fge(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var wU = (0, F.createContext)("md");
-function TU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- Pge(d, () => f(!1), [l, u]);
- let p = Fge(d, l);
- return /* @__PURE__ */ (0, I.jsx)(hde, {
+var CU = (0, P.createContext)("md");
+function wU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, P.useRef)(null), u = (0, P.useRef)(null), [d, f] = (0, P.useState)(!1);
+ Ige(d, () => f(!1), [l, u]);
+ let p = Lge(d, l);
+ return /* @__PURE__ */ (0, F.jsx)(_de, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: uF("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(DI, {
+ className: lF("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)(EI, {
ref: l,
- className: uF("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, I.jsx)(vde, {
- className: uF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: lF("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, F.jsx)(bde, {
+ className: lF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(Ame, { className: uF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ }), /* @__PURE__ */ (0, F.jsx)(Mme, { className: lF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, F.jsx)(nR, {
ref: u,
isNonModal: !0,
offset: 4,
- className: uF(Nme, XB, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(Lue, {
+ className: lF(Fme, YB, "p-2", n),
+ children: /* @__PURE__ */ (0, F.jsx)(zue, {
items: a,
- className: uF(Pme, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(wU.Provider, {
+ className: lF(Ime, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, F.jsx)(CU.Provider, {
value: r,
children: i
})
@@ -47282,24 +47289,24 @@ function TU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function EU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(wU);
- return /* @__PURE__ */ (0, I.jsx)(Bue, {
+function TU({ className: e, children: t, ...n }) {
+ let r = (0, P.useContext)(CU);
+ return /* @__PURE__ */ (0, F.jsx)(Hue, {
...n,
- className: (t) => uF(ZB, 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) => lF(XB, 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/catalog-folders/catalog-folders.ts
-var DU = {
+var EU = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function OU(e, t = "", n = "") {
+function DU(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -47308,18 +47315,18 @@ function OU(e, t = "", n = "") {
return {
queryKey: ["catalog-folders", r.toString()],
staleTime: 3e4,
- queryFn: ({ signal: e }) => V(`/api/folders?${r}`, e)
+ queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function kU(e, t) {
+function OU(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
//#endregion
//#region src/react/catalog-folders/folder-rule-dialog.tsx
-function Ige({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(CU), a = DH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function Rge({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, P.useContext)(SU), a = EH(), [o, s] = (0, P.useState)(t?.purpose || "category"), [c, l] = (0, P.useState)(t?.name || ""), [u, d] = (0, P.useState)(t?.recursive ?? !0), [f, p] = (0, P.useState)(t?.future ?? !1), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -47328,74 +47335,74 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
}, y = () => {
h(null), a.setError("");
}, b = (e) => {
- U.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), hu({ pageOpens: ou + 1 });
- }, x = () => a.run("preview", (e) => H("/api/folders/preview", v, "POST", e), h), S = () => {
- m && a.run("save", (e) => H("/api/folders/rule", {
+ H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), _u({ pageOpens: cu + 1 });
+ }, x = () => a.run("preview", (e) => V("/api/folders/preview", v, "POST", e), h), S = () => {
+ m && a.run("save", (e) => V("/api/folders/rule", {
...v,
action: "save",
plan_version: m.plan_version,
expected_revision: n
}, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));
}, C = async () => {
- (0, It.flushSync)(() => _(!0)), (await zc({
+ (0, Lt.flushSync)(() => _(!0)), (await Vc({
title: "移除目录规则",
body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,
confirmLabel: "移除目录规则",
- onConfirm: () => H("/api/folders/rule", {
+ onConfirm: () => V("/api/folders/rule", {
folder: e.id,
action: "remove",
expected_revision: n
})
})).confirmed ? b("已移除目录规则") : _(!1);
- }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(Nz, {
+ }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs(t) } }), t] }) : null;
+ return g ? null : /* @__PURE__ */ (0, F.jsx)(Mz, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
},
width: "form",
label: "设置目录用途",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "peach-react",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(jI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(AI, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
- }), /* @__PURE__ */ (0, I.jsx)("p", {
+ }), /* @__PURE__ */ (0, F.jsx)("p", {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, I.jsx)(zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Rz, {
label: "关闭目录用途",
onPress: () => {
w || r();
}
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-5 p-5",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(Ez, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(TU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Tz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, F.jsx)(wU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(DU).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ children: Object.entries(EU).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(TU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(Mz, {
+ o === "category" ? null : /* @__PURE__ */ (0, F.jsx)(jz, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -47406,7 +47413,7 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, F.jsx)(nV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -47414,7 +47421,7 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, F.jsx)(nV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -47422,11 +47429,11 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
},
children: "新文件沿用此规则"
}),
- m ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ m ? /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "目录用途影响范围",
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-body-medium",
children: [
m.total,
@@ -47436,7 +47443,7 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
m.conflicts.length ? ` · 保留现有归属 ${m.conflicts.length} 项` : ""
]
}),
- m.withdrawn ? /* @__PURE__ */ (0, I.jsxs)("p", {
+ m.withdrawn ? /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [
"撤回此规则已有的 ",
@@ -47444,20 +47451,20 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
" 项关联,再按当前范围应用。"
]
}) : null,
- m.sample.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
+ m.sample.length ? /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex flex-col gap-1 text-body-2-regular text-text-secondary",
- children: m.sample.map((e) => /* @__PURE__ */ (0, I.jsx)("li", {
+ children: m.sample.map((e) => /* @__PURE__ */ (0, F.jsx)("li", {
className: "wrap-anywhere",
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ m.conflicts.length ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(ZH, {
+ extra: /* @__PURE__ */ (0, F.jsx)(XH, {
summary: "查看归属冲突",
- children: /* @__PURE__ */ (0, I.jsx)("ul", {
+ children: /* @__PURE__ */ (0, F.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
- children: m.conflicts.slice(0, 30).map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
+ children: m.conflicts.slice(0, 30).map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "wrap-anywhere",
children: [
e.name,
@@ -47471,40 +47478,40 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ a.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: a.error
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-2 border-t border-separator-border p-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
className: "mr-auto",
onClick: () => {
w || C();
},
- ...Bz(a.busy === "remove"),
+ ...zz(a.busy === "remove"),
children: "移除规则"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => {
w || r();
},
children: "取消"
}),
- m ? /* @__PURE__ */ (0, I.jsx)(q, {
+ m ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
- ...Bz(a.busy === "save"),
+ ...zz(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...Bz(a.busy === "preview"),
+ ...zz(a.busy === "preview"),
onClick: () => {
x();
},
@@ -47518,8 +47525,8 @@ function Ige({ folder: e, rule: t, revision: n, close: r }) {
}
//#endregion
//#region src/react/catalog-folders/use-folder-sticky-offset.ts
-function Lge(e, t) {
- (0, F.useLayoutEffect)(() => {
+function zge(e, t) {
+ (0, P.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
i = 0;
@@ -47542,54 +47549,54 @@ function Lge(e, t) {
}
//#endregion
//#region src/react/catalog-folders/catalog-folders-page.tsx
-function AU() {
- return IB() ? /* @__PURE__ */ (0, I.jsx)(Rge, {}) : null;
+function kU() {
+ return FB() ? /* @__PURE__ */ (0, F.jsx)(Bge, {}) : null;
}
-function Rge() {
- let e = LB(), t = (0, F.useContext)(CU);
- if (!un(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
+function Bge() {
+ let e = IB(), t = (0, P.useContext)(SU);
+ if (!fn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(HF, {
+ return /* @__PURE__ */ (0, F.jsx)(VF, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: mz,
- onClick: () => t?.navigate(kU(e, r ? {
+ icon: pz,
+ onClick: () => t?.navigate(OU(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function zge({ children: e, enabled: t }) {
- return IB() ? /* @__PURE__ */ (0, I.jsx)(Bge, {
+function Vge({ children: e, enabled: t }) {
+ return FB() ? /* @__PURE__ */ (0, F.jsx)(Hge, {
enabled: t,
children: e
- }) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: e });
}
-function Bge({ children: e, enabled: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = LB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function Hge({ children: e, enabled: t }) {
+ let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = IB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
"data-folder-browse": c ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)("aside", {
+ /* @__PURE__ */ (0, F.jsx)("aside", {
ref: r,
"data-folder-tree-host": "",
hidden: !c
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: a,
"data-folder-header-host": "",
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(jU, {
+ n && i ? /* @__PURE__ */ (0, F.jsx)(AU, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -47597,83 +47604,83 @@ function Bge({ children: e, enabled: t }) {
]
});
}
-function jU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = LB(), i = (0, F.useContext)(CU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function AU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = IB(), i = (0, P.useContext)(SU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Lge(o, e);
- let c = a.get("folder") || "", l = Nt({
- ...OU(s, c),
+ zge(o, e);
+ let c = a.get("folder") || "", l = Pt({
+ ...DU(s, c),
enabled: o
- }), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
- if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
+ }), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
+ if ((0, P.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
m && (m.hidden = !0), h && (h.hidden = !0), e || document.body.removeAttribute("data-folder-browse");
}), [
o,
m,
h,
e
- ]), (0, F.useEffect)(() => {
+ ]), (0, P.useEffect)(() => {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(kU(r, {
+ d(!1), i.navigate(OU(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Hge, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, F.jsx)(Wge, {
scope: s,
selected: c,
current: _,
go: g,
reportedError: u ? null : l.error
});
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- (0, It.createPortal)(v, m),
- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ (0, Lt.createPortal)(v, m),
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsxs)("div", {
className: "catalog-folder-heading",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(HF, {
+ children: /* @__PURE__ */ (0, F.jsx)(VF, {
"aria-label": "打开文件夹目录",
- icon: ipe,
+ icon: ope,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(Mme, {
+ /* @__PURE__ */ (0, F.jsxs)(Pme, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(JB, {
+ children: [/* @__PURE__ */ (0, F.jsx)(qB, {
current: !c,
onClick: () => g(""),
- icon: mz,
+ icon: pz,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(JB, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, F.jsx)(qB, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "folder-crumb-name",
"data-middle-truncate": "",
children: e.name
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(HF, {
+ _?.selected ? /* @__PURE__ */ (0, F.jsx)(VF, {
"aria-label": "设置目录用途",
- icon: Yfe,
+ icon: Zfe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ l.error && !u ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -47681,11 +47688,11 @@ function jU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
},
children: "立即重试"
}),
- children: Hn(l.error)
+ children: Wn(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
onClick: () => p(!0),
@@ -47693,51 +47700,51 @@ function jU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: [_.conflicts.length, " 项保留现有归属"]
}) : null,
- _?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ _?.selected ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(rV, {
+ children: [/* @__PURE__ */ (0, F.jsx)(nV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(kU(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(OU(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${DU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${EU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
- l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
+ l.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "",
"aria-busy": "true",
"aria-label": "正在读取文件夹",
className: "folder-children",
- children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
+ children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, F.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Vge, {
+ _?.children.length ? /* @__PURE__ */ (0, F.jsx)(Uge, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(Nz, {
+ /* @__PURE__ */ (0, F.jsxs)(Mz, {
isOpen: u,
onOpenChange: d,
width: "form",
label: "文件夹目录",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center justify-between border-b border-separator-border p-4",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Rz, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react relative p-4",
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Ige, {
+ f && _?.selected ? /* @__PURE__ */ (0, F.jsx)(Rge, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -47745,25 +47752,25 @@ function jU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Vge({ nodes: e, go: t }) {
- let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function Uge({ nodes: e, go: t }) {
+ let [n, r] = (0, P.useState)(!1), i = (0, P.useId)(), a = n ? e : e.slice(0, 12);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
id: i,
className: "folder-children",
"aria-label": "子文件夹",
- children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(q, {
+ children: a.map((e) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: mz,
+ leadingIcon: pz,
onClick: () => t(e.id),
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "truncate",
children: e.name
})
}, e.id))
- }), e.length > 12 ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), e.length > 12 ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
"aria-expanded": n,
@@ -47773,28 +47780,28 @@ function Vge({ nodes: e, go: t }) {
}) : null]
});
}
-function Hge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Nt(OU(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Nt({
- ...OU(e, "", u),
+function Wge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Pt(DU(e)), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)(""), u = (0, P.useDeferredValue)(c), d = Pt({
+ ...DU(e, "", u),
enabled: !!u.trim()
- }), f = iV();
- (0, F.useEffect)(() => {
+ }), f = rV();
+ (0, P.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = jt({ queries: p.map((t) => OU(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Mt({ queries: p.map((t) => DU(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)($B, {
+ return /* @__PURE__ */ (0, F.jsx)(QB, {
id: e.id,
label: e.name,
- icon: mz,
- expandedIcon: hz,
+ icon: pz,
+ expandedIcon: mz,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)($B, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, F.jsx)(QB, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -47806,21 +47813,21 @@ function Hge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
t && !String(t).endsWith(":loading") && r(String(t));
}
}, v = [a.error, ...m.map((e) => e.error)].find((e) => e && e !== i);
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ /* @__PURE__ */ (0, F.jsx)(jz, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: Cz,
+ leadingIcon: Sz,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ v ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -47830,52 +47837,52 @@ function Hge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
},
children: "立即重试"
}),
- children: Hn(v)
+ children: Wn(v)
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "folder-tree-frame relative flex min-h-0 flex-col overflow-hidden rounded-3xl",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
ref: f,
className: "folder-tree-scroller",
- children: a.error ? null : a.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: a.error ? null : a.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "",
"aria-busy": "true",
"aria-label": "正在读取目录树",
className: "flex flex-col gap-2",
- children: Array.from({ length: 8 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: Array.from({ length: 8 }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex h-8 items-center gap-2 px-3",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen size-4" }), /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-4 flex-1" })]
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { className: "skeleton-sheen size-4" }), /* @__PURE__ */ (0, F.jsx)("span", { className: "skeleton-sheen h-4 flex-1" })]
}, t))
- }) : u ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : u ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-1",
- children: d.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: d.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "",
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) : d.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(d.error)
- }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(q, {
+ children: Wn(d.error)
+ }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: mz,
+ leadingIcon: pz,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(Iz, {
+ }, e.id)) : /* @__PURE__ */ (0, F.jsx)(Fz, {
size: "compact",
- icon: Cz,
+ icon: Sz,
title: "没有匹配的文件夹",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: () => l(""),
children: "清除搜索"
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Fme, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, F.jsx)(Lme, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -47883,11 +47890,11 @@ function Hge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(Iz, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Fz, {
size: "compact",
- icon: mz,
+ icon: pz,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(iI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -47901,54 +47908,54 @@ function Hge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function Uge(e) {
- let t = GF(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(iz, {
+function Gge(e) {
+ let t = WF(OH("selection"));
+ return /* @__PURE__ */ (0, F.jsx)(rz, {
...e,
ref: t
});
}
-function MU(e) {
- let t = GF(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(CR, {
+function jU(e) {
+ let t = WF(OH("selection"));
+ return /* @__PURE__ */ (0, F.jsx)(SR, {
...e,
ref: t
});
}
-var NU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", PU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Wge = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", FU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", IU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var MU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", NU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Kge = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", PU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", FU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/catalog-grid/catalog-view-toggle.tsx
-function LU() {
- let e = TM();
- return /* @__PURE__ */ (0, I.jsxs)(CR, {
+function IU() {
+ let e = DM();
+ return /* @__PURE__ */ (0, F.jsxs)(SR, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: CM,
+ onChange: TM,
"data-entity-layout": "",
- className: FU,
- children: [/* @__PURE__ */ (0, I.jsx)(wR, {
+ className: PU,
+ children: [/* @__PURE__ */ (0, F.jsx)(CR, {
value: "cards",
"aria-label": "卡片",
- className: IU,
+ className: FU,
"data-glass-segment": "",
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(vz, {
+ children: /* @__PURE__ */ (0, F.jsx)(_z, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(wR, {
+ }), /* @__PURE__ */ (0, F.jsx)(CR, {
value: "list",
"aria-label": "列表",
- className: IU,
+ className: FU,
"data-glass-segment": "",
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(npe, {
+ children: /* @__PURE__ */ (0, F.jsx)(ipe, {
"aria-hidden": "true",
className: "size-4"
})
@@ -47958,132 +47965,132 @@ function LU() {
}
//#endregion
//#region src/react/components/icon-swap.tsx
-function RU({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = bx();
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function LU({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = vx();
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
"data-icon-swap": "",
"data-icon-state": n,
"data-motion-instant": i || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-icon": "a",
- children: /* @__PURE__ */ (0, I.jsx)(e, { className: "size-full" })
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)(e, { className: "size-full" })
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-icon": "b",
- children: /* @__PURE__ */ (0, I.jsx)(t, { className: "size-full" })
+ children: /* @__PURE__ */ (0, F.jsx)(t, { className: "size-full" })
})]
});
}
-function zU({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(RU, {
- a: Ofe,
- b: Dfe,
+function RU({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(LU, {
+ a: Afe,
+ b: kfe,
className: e
});
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var BU = (e) => typeof e == "string" ? e : "", VU = (e) => e.aliases;
-function HU(e, t = "") {
- let n = Di(e);
- return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";
+var zU = (e) => typeof e == "string" ? e : "", BU = (e) => e.aliases;
+function VU(e, t = "") {
+ let n = ki(e);
+ return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function UU(e, t = "") {
- let n = B(Br(t || e)), r = Di(e);
+function HU(e, t = "") {
+ let n = z(Hr(t || e)), r = ki(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var WU = (e) => BU(e.title).trim() || "未命名内容", GU = (e, t) => zr(e, VU(t));
-function KU(e) {
+var UU = (e) => zU(e.title).trim() || "未命名内容", WU = (e, t) => Vr(e, BU(t));
+function GU(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = BU(n.entity_name);
- return Ht("creator", r, n.entity_id), r;
+ let n = t[0], r = zU(n.entity_name);
+ return Ut("creator", r, n.entity_id), r;
}
-function qU(e, t) {
- let { src: n, fallback: r } = Vr(e), i = Br(t);
- if (!n) return `<span class="favatar none" title="没有可用头像">${B(i)}</span>`;
- let a = r ? ` data-fallbacks="${B(r)}"` : "";
- return `<img class="favatar" src="${B(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${B(i)}" data-drop-class="favatar none">`;
+function KU(e, t) {
+ let { src: n, fallback: r } = Ur(e), i = Hr(t);
+ if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
+ let a = r ? ` data-fallbacks="${z(r)}"` : "";
+ return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function JU(e, t, n) {
- let r = VU(n), i = e.credit, a = i?.poster;
+function qU(e, t, n) {
+ let r = BU(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = zr(t, r);
+ let n = Vr(t, r);
return {
- author: n || BU(e.author) || BU(e.source_label) || "创作者未取得",
- avatar: qU(t, n),
+ author: n || zU(e.author) || zU(e.source_label) || "创作者未取得",
+ avatar: KU(t, n),
credited: "",
- entityName: KU(t)
+ entityName: GU(t)
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && zr(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && Vr(c, r) || a;
return {
author: l,
- avatar: qU(c, l),
+ avatar: KU(c, l),
credited: i.credited || "",
- entityName: KU(c)
+ entityName: GU(c)
};
}
-function YU(e, t = e.primary) {
+function JU(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = BU(e.primary.version);
- i && n.push(r("version", B(i)));
- let a = BU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let i = zU(e.primary.version);
+ i && n.push(r("version", z(i)));
+ let a = zU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function XU(e, t = e.primary) {
+function YU(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => HU(e, t) || `<span>${B(t)}</span>`).join("");
- return `<span data-follow-seealso="" title="另见 ${B([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
+ let r = [...n].map(([e, t]) => VU(e, t) || `<span>${z(t)}</span>`).join("");
+ return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function ZU(e, t) {
- let n = BU(e.media_error);
+function XU(e, t) {
+ let n = zU(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Gge = 864e5, Kge = (e, t) => {
+var qge = 864e5, Jge = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Gge;
+ return Number.isFinite(n) && n - t > qge;
};
-function QU(e, t) {
- let n = BU(e.published_at);
+function ZU(e, t) {
+ let n = zU(e.published_at);
if (!n) return null;
- let r = e.published_precision === "approximate", i = nr(n);
+ let r = e.published_precision === "approximate", i = ir(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Kge(n, t) ? " · 晚于现在" : ""
+ suffix: Jge(n, t) ? " · 晚于现在" : ""
};
}
-function $U(e, t = Date.now()) {
- let n = QU(e, t);
+function QU(e, t = Date.now()) {
+ let n = ZU(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function qge(e, t = Date.now()) {
- let n = QU(e, t);
+function Yge(e, t = Date.now()) {
+ let n = ZU(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var eW = /* @__PURE__ */ new Set(), tW = [], nW = null;
-function rW() {
- if (nW = null, !tW.length) return;
- let e = tW.splice(0, 200);
- rn("/api/follow/image-dims", {
+var $U = /* @__PURE__ */ new Set(), eW = [], tW = null;
+function nW() {
+ if (tW = null, !eW.length) return;
+ let e = eW.splice(0, 200);
+ on("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), tW.length && (nW = setTimeout(rW, 800));
+ }).catch(() => {}), eW.length && (tW = setTimeout(nW, 800));
}
-function Jge(e, t, n, r) {
+function Xge(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- eW.has(i) || (eW.add(i), tW.push(t === null ? {
+ $U.has(i) || ($U.add(i), eW.push(t === null ? {
item: e,
width: n,
height: r
@@ -48092,26 +48099,26 @@ function Jge(e, t, n, r) {
width: n,
height: r,
media: t
- }), nW ||= setTimeout(rW, 800));
+ }), tW ||= setTimeout(nW, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Yge = (e) => e === "videos", iW = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Zge = (e) => e === "videos", rW = () => /* @__PURE__ */ (0, F.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Xge = Rz("shuffle"), Zge = Rz("arrow-up"), Qge = Rz("arrow-down");
-function $ge(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Yge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Qge = Lz("shuffle"), $ge = Lz("arrow-up"), e_e = Lz("arrow-down");
+function t_e(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Zge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = nI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = nI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = nI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
- return (0, F.useEffect)(() => {
+ })) : i, m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useRef)(null), _ = (0, P.useRef)(null), v = (0, P.useRef)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = tI(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = tI(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, P.useRef)(null), w = (0, P.useRef)(null), T = u?.mediaCounts ? u : null, E = tI(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ return (0, P.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cW, {
+ }, [c]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(cW, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(YF, {
+ }), /* @__PURE__ */ (0, F.jsx)(JF, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -48122,48 +48129,48 @@ function $ge(e) {
bottomClassName: "min-h-12",
bottomRef: b,
busy: e.busy,
- panes: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ panes: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: m,
"data-view-glide": "",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: h,
"data-view-glide": "round",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: C,
"data-view-glide": "round",
"aria-hidden": "true"
})
] }),
- top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(sW, {
+ top: !n && !d ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(sW, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(iW, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aW, {
+ }), d ? /* @__PURE__ */ (0, F.jsx)(rW, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(aW, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(iW, {})] }) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)(rW, {})] }) : null,
+ /* @__PURE__ */ (0, F.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: g,
role: "group",
"aria-label": u ? "状态" : "观看状态",
"data-entity-states": "",
hidden: !d,
onPointerLeave: x.leave,
- children: [p.map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [p.map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-entity-state": e.k,
"data-entity-press": "",
@@ -48173,30 +48180,30 @@ function $ge(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(iW, {}) : null]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, F.jsx)(rW, {}) : null]
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(ZF, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, F.jsxs)(XF, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => s.toggleTag(e.k),
- children: [e.label, /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [e.label, /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(oW, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, F.jsx)(oW, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(lW, { ...e })
+ bottom: /* @__PURE__ */ (0, F.jsx)(lW, { ...e })
})] });
}
-var e_e = [[
+var iW = [[
"videos",
"视频",
"play",
@@ -48208,16 +48215,16 @@ var e_e = [[
"image"
]];
function aW({ head: e, row: t, glide: n, onMedia: r }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
role: "group",
"aria-label": "在线媒体类型",
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: e_e.map(([t, i, a, o]) => {
+ children: iW.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-view": t,
"data-media-icon": o,
@@ -48228,14 +48235,14 @@ function aW({ head: e, row: t, glide: n, onMedia: r }) {
onClick: () => {
e.media !== t && r(t);
},
- dangerouslySetInnerHTML: { __html: z(a) }
+ dangerouslySetInnerHTML: { __html: R(a) }
}, t);
})
});
}
function oW({ head: e, actions: t }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ e.providers.map(([n, r]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-provider": n,
"data-entity-press": "",
@@ -48243,16 +48250,16 @@ function oW({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: HU(n) }
+ dangerouslySetInnerHTML: { __html: VU(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(iW, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(ZF, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, F.jsx)(rW, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, F.jsxs)(XF, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
pressed: e.selected,
onPress: () => t.onlineTag(e.k),
- children: [e.label, e.n ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [e.label, e.n ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": e.k,
children: e.n.toLocaleString()
}) : null]
@@ -48285,7 +48292,7 @@ function sW({ keys: e, view: t, row: n, glide: r, onView: i }) {
count: e.online.count,
symbol: "rss",
kind: "online"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: n,
role: "group",
"aria-label": e.label,
@@ -48293,7 +48300,7 @@ function sW({ keys: e, view: t, row: n, glide: r, onView: i }) {
onPointerLeave: r.leave,
children: a.map(({ value: e, text: n, count: a, symbol: o, kind: s }) => {
let c = `${n} ${Math.max(0, a || 0).toLocaleString()}`;
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-view": e,
"data-media-icon": s,
@@ -48302,24 +48309,24 @@ function sW({ keys: e, view: t, row: n, glide: r, onView: i }) {
title: c,
onPointerEnter: r.hover,
onClick: () => i(e),
- dangerouslySetInnerHTML: { __html: z(o) }
+ dangerouslySetInnerHTML: { __html: R(o) }
}, e);
})
});
}
function cW({ items: e, hidden: t, actions: n }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-combo": "",
hidden: t,
- children: e.length ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.length ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-combo-chip": "",
- children: [e.label, /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [e.label, /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": `撤掉 ${e.label}`,
onClick: () => e.kind === "untag" ? n.toggleTag(e.key) : n.clearFilter(e.key),
children: "✕"
})]
- }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, I.jsx)("button", {
+ }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-combo-clear": "",
onClick: n.clearAll,
@@ -48329,40 +48336,40 @@ function cW({ items: e, hidden: t, actions: n }) {
}
function lW(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ t === "photos" && a?.back ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-photo-back": "",
onClick: o.photoBack,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z("chevron-left") }
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
+ dangerouslySetInnerHTML: { __html: R("chevron-left") }
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(uW, {
+ /* @__PURE__ */ (0, F.jsx)(uW, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)($z, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ /* @__PURE__ */ (0, F.jsx)(Qz, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, F.jsx)(pW, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(gW, {
+ t === "photos" && a ? /* @__PURE__ */ (0, F.jsx)(gW, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(hW, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, F.jsx)(hW, {
head: e.online,
actions: o
}) : null
] });
}
function uW({ text: e, busy: t }) {
- return /* @__PURE__ */ (0, I.jsx)("h3", {
+ return /* @__PURE__ */ (0, F.jsx)("h3", {
"data-entity-readout": "",
- children: t ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: t ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"
@@ -48370,55 +48377,55 @@ function uW({ text: e, busy: t }) {
});
}
function dW({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(CR, {
+ return /* @__PURE__ */ (0, F.jsx)(SR, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: FU,
+ className: PU,
children: r.map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, I.jsx)(wR, {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, F.jsx)(CR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: IU,
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ className: FU,
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, F.jsx)(r, { className: "size-4" })
})
}, e);
})
});
}
function fW({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(qF, {
+ return /* @__PURE__ */ (0, F.jsx)(KF, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Xge,
+ icon: Qge,
onPress: e
});
}
function pW({ head: e, actions: t }) {
- let n = TM();
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ let n = DM();
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(fW, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(dW, {
+ /* @__PURE__ */ (0, F.jsx)(fW, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, F.jsx)(dW, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(LU, {}),
- /* @__PURE__ */ (0, I.jsx)(AU, {}),
- /* @__PURE__ */ (0, I.jsx)(mW, {
+ /* @__PURE__ */ (0, F.jsx)(IU, {}),
+ /* @__PURE__ */ (0, F.jsx)(kU, {}),
+ /* @__PURE__ */ (0, F.jsx)(mW, {
sorts: e.sorts,
onSort: t.setSort
})
@@ -48426,47 +48433,47 @@ function pW({ head: e, actions: t }) {
});
}
function mW({ sorts: e, onSort: t }) {
- return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
"data-entity-press": "",
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(RU, {
- a: Zge,
- b: Qge,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, F.jsx)(LU, {
+ a: $ge,
+ b: e_e,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
function hW({ head: e, actions: t }) {
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(fW, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(dW, {
+ /* @__PURE__ */ (0, F.jsx)(fW, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(dW, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
onChange: t.setPhotoLayout
- }), /* @__PURE__ */ (0, I.jsxs)("button", {
+ }), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-follow-images-only": "",
"aria-pressed": e.imagesOnly,
title: "仅显示图片",
"aria-label": "仅显示图片",
onClick: () => t.onlineImagesOnly(!e.imagesOnly),
- children: [e.imagesOnly ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [e.imagesOnly ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-view-glide": "",
"aria-hidden": "true"
- }) : null, /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z("captions-off") }
+ dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(mW, {
+ /* @__PURE__ */ (0, F.jsx)(mW, {
sorts: e.sorts,
onSort: t.onlineSort
})
@@ -48474,25 +48481,25 @@ function hW({ head: e, actions: t }) {
});
}
function gW({ head: e, actions: t, helpers: n }) {
- let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
- return (0, F.useEffect)(() => {
+ let [r, i] = (0, P.useState)(!1), a = (0, P.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
+ return (0, P.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
- }, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }, [n, o]), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(fW, {
+ e.shuffle ? /* @__PURE__ */ (0, F.jsx)(fW, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(dW, {
+ /* @__PURE__ */ (0, F.jsx)(dW, {
label: "图片布局",
value: e.layout,
options: e.layouts,
onChange: t.setPhotoLayout
}),
- o ? /* @__PURE__ */ (0, I.jsx)("span", {
+ o ? /* @__PURE__ */ (0, F.jsx)("span", {
ref: a,
"data-entity-srctools": "",
dangerouslySetInnerHTML: { __html: o }
@@ -48531,29 +48538,29 @@ function yW(e) {
var bW = "";
function xW(e) {
let t = !e.tiers, n = kW(e.comboHost);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(cW, {
+ n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(cW, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(wW, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(SW, { ...e })
+ /* @__PURE__ */ (0, F.jsx)(wW, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, F.jsx)(SW, { ...e })
]
});
}
function SW(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = nI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
- (0, F.useEffect)(() => {
+ let { actions: t, helpers: n } = e, r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(!1), u = tI(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+ (0, P.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
let d = !e.tiers, f = AW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
let e = a.current?.closest("[data-catalog-frame]");
if (!e) return;
let t = (e) => {
@@ -48567,9 +48574,9 @@ function SW(e) {
e.count,
e.layout,
e.sorts
- ]), (0, F.useLayoutEffect)(() => {
- As(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(YF, {
+ ]), (0, P.useLayoutEffect)(() => {
+ Ms(o.current, "tagbar");
+ }, [f]), /* @__PURE__ */ (0, F.jsx)(JF, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -48582,21 +48589,21 @@ function SW(e) {
bottomClassName: e.trash ? "hidden" : "min-h-12",
bottomRef: s,
busy: e.count === null || e.refreshing,
- panes: /* @__PURE__ */ (0, I.jsx)("span", {
+ panes: /* @__PURE__ */ (0, F.jsx)("span", {
ref: r,
"data-view-glide": "",
"aria-hidden": "true"
}),
- top: /* @__PURE__ */ (0, I.jsxs)("div", {
+ top: /* @__PURE__ */ (0, F.jsxs)("div", {
ref: a,
"data-catalog-scroll": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: i,
role: "group",
"aria-label": "视图",
"data-catalog-views": "",
onPointerLeave: u.leave,
- children: [e.views.map((n) => /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [e.views.map((n) => /* @__PURE__ */ (0, F.jsx)("a", {
href: n.href,
"data-catalog-view": n.k,
"data-entity-press": "",
@@ -48606,29 +48613,29 @@ function SW(e) {
e.preventDefault(), t.setView(n.k);
},
children: n.label
- }, n.k)), /* @__PURE__ */ (0, I.jsx)("span", {
+ }, n.k)), /* @__PURE__ */ (0, F.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(EW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, I.jsx)(CW, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, F.jsx)(EW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, F.jsx)(CW, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(DW, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, F.jsx)(DW, { ...e })
});
}
function CW({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, I.jsxs)(ZF, {
+ return /* @__PURE__ */ (0, F.jsxs)(XF, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => t(e.k),
- children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
@@ -48639,8 +48646,8 @@ function wW(e) {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = AW(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = AW(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? vW() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
- return (0, F.useEffect)(() => {
+ }, i = !e.tiers, a = e.empty || i, o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useCallback)((e) => () => t.moreTops(e), [t]), l = AW(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = AW(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, P.useMemo)(() => i ? vW() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ return (0, P.useEffect)(() => {
i || yW({
performers: f,
studios: p
@@ -48649,52 +48656,52 @@ function wW(e) {
i,
f,
p
- ]), (0, F.useEffect)(() => {
+ ]), (0, P.useEffect)(() => {
n.wireDrag(o.current), n.wireDrag(s.current);
}, [
n,
f,
p
- ]), /* @__PURE__ */ (0, I.jsxs)("div", {
+ ]), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-catalog-tiers": "",
hidden: !f && !p,
"aria-busy": i && e.tiersPending && !e.offscreen || void 0,
- children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [f ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(EW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, F.jsx)(EW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
"data-entity-name": e.name,
onClick: () => t.openEntity("performer", e.name),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-tier-ring": "",
dangerouslySetInnerHTML: { __html: e.ringHtml }
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-tier-name": "",
children: e.name
})]
}, e.name))
- }) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : null, p ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(EW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, F.jsx)(EW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, I.jsx)(TW, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(TW, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
function TW({ studio: e }) {
- let [t, n] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ let [t, n] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tier-mark": "",
- children: e.logo && !t ? /* @__PURE__ */ (0, I.jsx)("img", {
+ children: e.logo && !t ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e.logo,
alt: "",
width: 28,
@@ -48710,44 +48717,44 @@ function TW({ studio: e }) {
}
function EW({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
- return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ return e === "tag" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-catalog-placeholder": "tag",
"aria-hidden": "true",
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {}, e))
- }) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {}, e))
+ }) : /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-catalog-placeholder": "performer",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
- }, t) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {}), /* @__PURE__ */ (0, F.jsx)("span", { children: "\xA0" })]
+ }, t) : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-catalog-placeholder": "studio",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {}), /* @__PURE__ */ (0, F.jsx)("span", { children: "\xA0" })]
}, t)) });
}
function DW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = TM(), [o, s] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ let a = DM(), [o, s] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(OW, { count: e }), /* @__PURE__ */ (0, I.jsx)($z, { currentHref: i.currentHref })]
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(OW, { count: e }), /* @__PURE__ */ (0, F.jsx)(Qz, { currentHref: i.currentHref })]
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(fW, {
+ /* @__PURE__ */ (0, F.jsx)(fW, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(dW, {
+ n && a === "cards" ? /* @__PURE__ */ (0, F.jsx)(dW, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(LU, {}),
- /* @__PURE__ */ (0, I.jsx)(AU, {}),
- /* @__PURE__ */ (0, I.jsx)(mW, {
+ /* @__PURE__ */ (0, F.jsx)(IU, {}),
+ /* @__PURE__ */ (0, F.jsx)(kU, {}),
+ /* @__PURE__ */ (0, F.jsx)(mW, {
sorts: r,
onSort: i.setSort
})
@@ -48755,23 +48762,23 @@ function DW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
})] });
}
function OW({ count: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
- return (0, F.useLayoutEffect)(() => {
+ let t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
+ return (0, P.useLayoutEffect)(() => {
if (e === !1) return;
if (!e) {
- Us(n.current);
+ Gs(n.current);
return;
}
let i = t.current;
- i && (bW && i.dataset.popCount === void 0 && (i.dataset.popCount = bW), bW = r, Ds(i, r));
- }, [e, r]), e === !1 ? /* @__PURE__ */ (0, I.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, I.jsx)("span", {
+ i && (bW && i.dataset.popCount === void 0 && (i.dataset.popCount = bW), bW = r, ks(i, r));
+ }, [e, r]), e === !1 ? /* @__PURE__ */ (0, F.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, F.jsx)("span", {
ref: t,
"data-catalog-readout": "",
"data-count-readout": "",
role: "status"
- }, "readout") : /* @__PURE__ */ (0, I.jsx)("span", {
+ }, "readout") : /* @__PURE__ */ (0, F.jsx)("span", {
"data-catalog-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
ref: n,
"data-skeleton": "count",
"aria-hidden": !0,
@@ -48780,8 +48787,8 @@ function OW({ count: e }) {
}, "skeleton");
}
function kW(e) {
- let [t, n] = (0, F.useState)(null);
- return (0, F.useLayoutEffect)(() => {
+ let [t, n] = (0, P.useState)(null);
+ return (0, P.useLayoutEffect)(() => {
if (!e) return;
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
@@ -48795,9 +48802,9 @@ function AW(e, t, n, r, i) {
limit: r,
fetched: [],
drained: !i
- }), [o, s] = (0, F.useState)(a), c = o.key === n ? o : a();
+ }), [o, s] = (0, P.useState)(a), c = o.key === n ? o : a();
c !== o && s(c);
- let l = (0, F.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, F.useRef)(null), d = (0, F.useRef)({
+ let l = (0, P.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, P.useRef)(null), d = (0, P.useRef)({
current: c,
all: l,
more: i
@@ -48807,7 +48814,7 @@ function AW(e, t, n, r, i) {
all: l,
more: i
};
- let f = (0, F.useCallback)(() => {
+ let f = (0, P.useCallback)(() => {
let t = e.current, { current: n, all: r, more: i } = d.current;
!t || !t.clientWidth || t.scrollLeft + t.clientWidth < t.scrollWidth - 320 || (n.limit < r.length ? s((e) => e.key === n.key ? {
...e,
@@ -48821,12 +48828,12 @@ function AW(e, t, n, r, i) {
drained: !0
} : t);
})));
- }, [e]), p = (0, F.useRef)(0), m = (0, F.useCallback)(() => {
+ }, [e]), p = (0, P.useRef)(0), m = (0, P.useCallback)(() => {
p.current ||= requestAnimationFrame(() => {
p.current = 0, f();
});
}, [f]);
- return (0, F.useEffect)(() => () => cancelAnimationFrame(p.current), []), (0, F.useLayoutEffect)(m), (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => () => cancelAnimationFrame(p.current), []), (0, P.useLayoutEffect)(m), (0, P.useEffect)(() => {
let t = e.current;
return t?.addEventListener("scroll", m, { passive: !0 }), () => t?.removeEventListener("scroll", m);
}), l.slice(0, c.limit);
@@ -48835,19 +48842,19 @@ function AW(e, t, n, r, i) {
//#region src/react/components/grid-reveal.tsx
var jW = "100% 0px";
function MW(e, t) {
- let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
- a.current && Us(a.current);
- }, []), (0, F.useLayoutEffect)(() => {
+ let [n, r] = (0, P.useState)(e ? "skeleton" : "none"), [i] = (0, P.useState)(() => e ? t() : ""), a = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
+ a.current && Gs(a.current);
+ }, []), (0, P.useLayoutEffect)(() => {
if (e || n !== "skeleton") return;
let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
r(t ? "fade" : "none");
- }, [e]), (0, F.useEffect)(() => {
+ }, [e]), (0, P.useEffect)(() => {
if (n !== "fade") return;
let e = setTimeout(() => r("none"), 1e3);
return () => clearTimeout(e);
}, [n]), {
- layer: n === "none" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
+ layer: n === "none" ? null : /* @__PURE__ */ (0, F.jsx)("div", {
ref: a,
"data-grid-fade": n === "fade" ? "" : void 0,
"aria-hidden": !e || void 0,
@@ -48861,12 +48868,12 @@ function MW(e, t) {
};
}
function NW({ message: e, onRetry: t }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
e.target.closest("[data-note-action]") && t();
},
- dangerouslySetInnerHTML: { __html: _s(e, {
+ dangerouslySetInnerHTML: { __html: ys(e, {
variant: "error",
actionLabel: "立即重试"
}) }
@@ -48875,7 +48882,7 @@ function NW({ message: e, onRetry: t }) {
//#endregion
//#region src/react/components/art-slot.tsx
function PW({ artwork: e, identity: t = e.html, relayout: n }) {
- let [r, i] = (0, F.useState)({
+ let [r, i] = (0, P.useState)({
identity: t,
artwork: e
});
@@ -48883,10 +48890,10 @@ function PW({ artwork: e, identity: t = e.html, relayout: n }) {
identity: t,
artwork: e
});
- let a = r.identity === t ? r.artwork : e, o = (0, F.useRef)(null), s = (0, F.useRef)(n);
- return s.current = n, (0, F.useLayoutEffect)(() => {
+ let a = r.identity === t ? r.artwork : e, o = (0, P.useRef)(null), s = (0, P.useRef)(n);
+ return s.current = n, (0, P.useLayoutEffect)(() => {
o.current && s.current?.(o.current);
- }, [e.html]), /* @__PURE__ */ (0, I.jsx)("span", {
+ }, [e.html]), /* @__PURE__ */ (0, F.jsx)("span", {
ref: o,
"data-media-art": a.kind,
dangerouslySetInnerHTML: { __html: a.html }
@@ -48938,7 +48945,7 @@ function qW(e) {
var JW = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
- icon: Yo[e.icon || ""] || e.icon || "database",
+ icon: Zo[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
}])), YW = !1;
@@ -48960,7 +48967,7 @@ function XW() {
}])));
}
function ZW() {
- UW || BW() || (UW = !0, V("/api/libraries").then((e) => zW(e.libraries || [])).catch(() => {
+ UW || BW() || (UW = !0, B("/api/libraries").then((e) => zW(e.libraries || [])).catch(() => {
UW = !1;
}));
}
@@ -48983,7 +48990,7 @@ function $W(e) {
};
}
function eG({ names: e = !1 } = {}) {
- return XW(), e && ZW(), (0, F.useSyncExternalStore)($W, () => HW, () => HW);
+ return XW(), e && ZW(), (0, P.useSyncExternalStore)($W, () => HW, () => HW);
}
//#endregion
//#region src/react/components/row-click.ts
@@ -49013,10 +49020,10 @@ function rG(e) {
//#region src/react/components/media-card.tsx
var iG = 9 / 16, aG = "未命名视频";
function oG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
var sG = {
@@ -49033,15 +49040,15 @@ var sG = {
function lG({ item: e }) {
if (e.disposal !== "trash") return null;
let t = e.disposal_reason && cG[e.disposal_reason] || "原因未记录";
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
function uG({ item: e, actions: t }) {
- let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ let [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-resource-action": o,
"aria-label": `${s} ${e.name || "未命名资源"}`,
@@ -49051,8 +49058,8 @@ function uG({ item: e, actions: t }) {
},
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
- children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })
- }), i ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs(`正在${s}`) } }), /* @__PURE__ */ (0, F.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, F.jsx)("span", { children: s })
+ }), i ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-operation-error": "",
role: "alert",
children: i
@@ -49062,80 +49069,80 @@ function dG(e, t, n) {
return t === "short" ? iG : jA(n);
}
function fG(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = co(e), s = i[0] || "", c = qa(e);
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = uo(e), s = i[0] || "", c = Ya(e);
return {
- avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
+ avatar: r ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-avatars": "",
style: { "--media-avatar-count": Math.min(5, i.length) },
- children: i.slice(0, 5).map((e, t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: i.slice(0, 5).map((e, t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-avatar": "",
"data-entity-kind": "performer",
"data-entity-name": e,
title: `打开${c}页:${e}`,
style: { "--media-avatar-index": t },
- dangerouslySetInnerHTML: { __html: Xa(e, a[t] ?? null, "performer") }
+ dangerouslySetInnerHTML: { __html: Qa(e, a[t] ?? null, "performer") }
}, `${e}:${t}`))
- }) : t ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }) : t ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-avatar": "",
"data-entity-kind": t,
"data-entity-name": n,
title: `打开${t === "performer" ? c : "资料"}页`,
- dangerouslySetInnerHTML: { __html: Xa(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: Qa(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-avatar": "",
- dangerouslySetInnerHTML: { __html: Xa(n, null, "") }
+ dangerouslySetInnerHTML: { __html: Qa(n, null, "") }
}),
- who: r ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+ who: r ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-entity-kind": "performer",
"data-entity-name": s,
title: s,
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: s })]
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: s })]
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
- })] }) : t ? /* @__PURE__ */ (0, I.jsxs)("button", {
+ })] }) : t ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-entity-kind": t,
"data-entity-name": n,
title: n,
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }) : /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
})
};
}
function pG() {
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-preview": "",
"data-open": "",
title: "打开预览",
"aria-label": "打开预览",
- children: [/* @__PURE__ */ (0, I.jsxs)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("svg", {
viewBox: "-18 -18 36 36",
"aria-hidden": "true",
- children: [/* @__PURE__ */ (0, I.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, I.jsx)("circle", { r: "17" })]
- }), /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, F.jsx)("circle", { r: "17" })]
+ }), /* @__PURE__ */ (0, F.jsx)("svg", {
"data-media-ring-play": "",
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-play" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-play" })
})]
});
}
function mG({ item: e, actions: t, on: n, onChange: r }) {
- let [i, a] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ let [i, a] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-later": "",
- children: /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-later": "",
"aria-pressed": n,
@@ -49146,13 +49153,13 @@ function mG({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: n ? "check" : "bookmark-plus" })
})
});
}
function hG({ reason: e }) {
- let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
ref: t,
type: "button",
"data-media-next-reason": "",
@@ -49164,15 +49171,15 @@ function hG({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ }), /* @__PURE__ */ (0, F.jsx)(nR, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: XB,
- children: /* @__PURE__ */ (0, I.jsx)(gR, {
+ className: YB,
+ children: /* @__PURE__ */ (0, F.jsx)(hR, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -49185,12 +49192,12 @@ function gG(e, t) {
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = eG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+ let u = (0, P.useRef)(null), [d, f] = (0, P.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = eG(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, P.useRef)(e);
_.current = e;
- let v = (0, F.useCallback)((e) => {
+ let v = (0, P.useCallback)((e) => {
let t = _.current;
- u.current && u.current !== e && Dl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && kl(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = dG(e, t, n), w = S ? n.size : "small", T = C === iG && !!e.is_jav, E = T ? ao(e, !1) : ro(e, w, !1, n.javImage), D = T || w === "small" ? E.html : ro(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || aG, A = o.titleHtml(e, O).trim() || B(aG), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: N, who: te } = fG(e), P = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
+ u.current && u.current !== e && kl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && jl(e, t);
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = dG(e, t, n), w = S ? n.size : "small", T = C === iG && !!e.is_jav, E = T ? so(e, !1) : ao(e, w, !1, n.javImage), D = T || w === "small" ? E.html : ao(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || aG, A = o.titleHtml(e, O).trim() || z(aG), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: ne } = fG(e), N = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -49215,76 +49222,76 @@ function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}
let l = n.closest("[data-tag]");
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
- }, re = /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, ie = /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
"data-pic-portrait": C === iG ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(PW, {
+ E.html ? /* @__PURE__ */ (0, F.jsx)(PW, {
artwork: E,
identity: D,
- relayout: (e) => yl(e, w)
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ relayout: (e) => xl(e, w)
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: o.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "check" })
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
- y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
+ y && !b ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
children: `${Number(y.count).toLocaleString()} 卷`
}) : null,
- b ? /* @__PURE__ */ (0, I.jsx)("span", {
+ b ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
title: b.editions.join(" · "),
children: `${Number(b.count).toLocaleString()} 个版本`
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-duration": "",
- children: Dn(M)
+ children: kn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(uG, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)(uG, {
item: e,
actions: s
}) : null,
- ee > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ ee > 0 ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-progress": "",
role: "progressbar",
"aria-label": "观看进度",
"aria-valuemin": 0,
"aria-valuemax": 100,
"aria-valuenow": Math.round(ee * 100),
- children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${(ee * 100).toFixed(1)}%` } })
- }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("i", { style: { "--media-fill": `${(ee * 100).toFixed(1)}%` } })
+ }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-scrub": "",
- children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
+ children: /* @__PURE__ */ (0, F.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(pG, {}),
- p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsx)(pG, {}),
+ p || g.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-status": "",
- children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [p ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "bookmark" })
- }) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "bookmark" })
+ }) : null, g.length ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "heart" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(mG, {
+ i ? null : /* @__PURE__ */ (0, F.jsx)(mG, {
item: e,
actions: s,
on: p,
@@ -49293,39 +49300,39 @@ function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
on: t
})
}),
- i ? null : /* @__PURE__ */ (0, I.jsxs)("div", {
+ i ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-seek": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
e.stopPropagation(), gG(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "rotate-ccw" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
e.stopPropagation(), gG(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "rotate-cw" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "expand" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "expand" })
})
]
})
]
});
- return /* @__PURE__ */ (0, I.jsxs)("article", {
+ return /* @__PURE__ */ (0, F.jsxs)("article", {
ref: v,
"data-media-card": "",
"data-id": e.id,
@@ -49337,58 +49344,58 @@ function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-stacked": x ? "" : void 0,
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
- onClick: ne,
+ onClick: re,
onMouseDown: rG,
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-open": "",
"data-open": "",
"aria-label": `打开 ${k}${b ? "版本" : y ? "分卷" : "详情"}`
}),
- x ? /* @__PURE__ */ (0, I.jsx)("div", {
+ x ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-stack": "",
- children: re
- }) : re,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: ie
+ }) : ie,
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-meta": "",
- children: [N, /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [te, /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-text": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-title": "",
"data-open": "",
dangerouslySetInnerHTML: e.disposal === "trash" ? void 0 : { __html: A },
- children: e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-title-text": "",
dangerouslySetInnerHTML: { __html: A }
}) : null
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-byline": "",
children: [
- te,
- e.why && t !== "next" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ ne,
+ e.why && t !== "next" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-why": "",
title: e.why,
children: e.why
}) : null,
- e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsxs)("time", {
+ e.is_jav && e.release_date ? /* @__PURE__ */ (0, F.jsxs)("time", {
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "calendar" }), e.release_date]
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "hard-drive" }), Number(j) > 0 ? kn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "hard-drive" }), Number(j) > 0 ? jn(Number(j)) : "大小未知"]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, I.jsx)(hG, { reason: e.why }) : null : P.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, F.jsx)(hG, { reason: e.why }) : null : N.length || e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-tags": "",
- children: P.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: N.map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-tag": "",
disabled: !!e.follow_item_id,
@@ -49396,7 +49403,7 @@ function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(lG, { item: e })
+ /* @__PURE__ */ (0, F.jsx)(lG, { item: e })
]
})]
})
@@ -49404,8 +49411,8 @@ function _G({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
});
}
function vG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : sG[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
- return /* @__PURE__ */ (0, I.jsxs)("article", {
+ let o = (0, P.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : sG[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+ return /* @__PURE__ */ (0, F.jsxs)("article", {
ref: o,
"data-media-card": "",
"data-id": e.id,
@@ -49417,79 +49424,79 @@ function vG({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
onMouseDown: rG,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: u }), /* @__PURE__ */ (0, F.jsx)("b", { children: l })]
}),
- s ? /* @__PURE__ */ (0, I.jsx)("span", {
+ s ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
dangerouslySetInnerHTML: { __html: `<img class="poster" src="/photo-thumb?id=${e.id}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: r.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: "check" })
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(oG, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(uG, {
+ n ? null : /* @__PURE__ */ (0, F.jsx)(uG, {
item: e,
actions: i
})
]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(oG, { name: u })
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)(oG, { name: u })
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-text": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-title": "",
"data-middle-truncate": "",
title: c,
- dangerouslySetInnerHTML: { __html: B(c || "未命名资源") }
+ dangerouslySetInnerHTML: { __html: z(c || "未命名资源") }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-byline": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-who": "",
children: l
}),
- e.why ? /* @__PURE__ */ (0, I.jsx)("span", {
+ e.why ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-why": "",
children: e.why
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-size": "",
- children: Number(e.size) > 0 ? kn(Number(e.size)) : "大小未知"
+ children: Number(e.size) > 0 ? jn(Number(e.size)) : "大小未知"
})
]
}),
- e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(lG, { item: e })
+ e.disposal === "trash" ? /* @__PURE__ */ (0, F.jsx)("div", { "data-media-tags": "" }) : null,
+ /* @__PURE__ */ (0, F.jsx)(lG, { item: e })
]
})]
})]
});
}
function yG(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(vG, { ...e }) : /* @__PURE__ */ (0, I.jsx)(_G, { ...e });
+ return e.variant === "resource" ? /* @__PURE__ */ (0, F.jsx)(vG, { ...e }) : /* @__PURE__ */ (0, F.jsx)(_G, { ...e });
}
-var bG = (0, F.memo)(yG), xG = 1100, SG = 340, CG = 5e3;
+var bG = (0, P.memo)(yG), xG = 1100, SG = 340, CG = 5e3;
function wG(e, t, n) {
return new Promise((r) => {
let i = new Image();
@@ -49503,7 +49510,7 @@ function wG(e, t, n) {
});
}
function TG({ load: e, canFlip: t, referrerPolicy: n }) {
- let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
+ let [r, i] = (0, P.useState)([]), [a, o] = (0, P.useState)(0), [s, c] = (0, P.useState)(null), l = (0, P.useRef)({
live: !1,
generation: 0,
timers: /* @__PURE__ */ new Set(),
@@ -49512,7 +49519,7 @@ function TG({ load: e, canFlip: t, referrerPolicy: n }) {
armed: null,
count: 0,
at: 0
- }), u = (0, F.useRef)({
+ }), u = (0, P.useRef)({
load: e,
canFlip: t
});
@@ -49520,7 +49527,7 @@ function TG({ load: e, canFlip: t, referrerPolicy: n }) {
load: e,
canFlip: t
};
- let d = (0, F.useCallback)(() => {
+ let d = (0, P.useCallback)(() => {
let e = l.current;
e.live = !1, e.generation += 1, e.timers.forEach(clearTimeout), e.timers.clear(), e.armed = null, e.cycle !== null && clearInterval(e.cycle), e.cycle = null, e.cancels.forEach((e) => e()), e.count = 0, e.at = 0;
}, []), f = (e, t) => {
@@ -49551,7 +49558,7 @@ function TG({ load: e, canFlip: t, referrerPolicy: n }) {
p(), e.cycle = setInterval(p, xG);
}));
};
- return (0, F.useEffect)(() => d, [d]), {
+ return (0, P.useEffect)(() => d, [d]), {
faces: r,
current: a,
leaving: s,
@@ -49568,10 +49575,10 @@ function TG({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var EG = Rz("play");
+var EG = Lz("play");
function DG({ src: e }) {
- let [t, n] = (0, F.useState)(!1);
- return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
+ let [t, n] = (0, P.useState)(!1);
+ return t ? null : /* @__PURE__ */ (0, F.jsx)("img", {
"data-mix-poster": "",
src: e,
width: 640,
@@ -49584,17 +49591,17 @@ function DG({ src: e }) {
}
var OG = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
function kG({ faces: e, fallback: t, onOpenEntity: n }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-avatars": "",
- children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
className: `${OG} cursor-pointer outline-none`,
- dangerouslySetInnerHTML: { __html: Ya(e.name, e, Aa(e.name), e.kind) }
+ dangerouslySetInnerHTML: { __html: Za(e.name, e, Ma(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
className: `${OG} mt-0.5`,
@@ -49605,14 +49612,14 @@ function AG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
let b = TG({
load: i,
canFlip: a
- }), x = (0, F.useRef)(b.onPointerLeave);
+ }), x = (0, P.useRef)(b.onPointerLeave);
x.current = b.onPointerLeave;
- let S = (0, F.useRef)(null), C = (0, F.useCallback)((e) => {
+ let S = (0, P.useRef)(null), C = (0, P.useCallback)((e) => {
S.current = e, e && (e._stopHover = () => x.current());
}, []), w = c ? () => {
S.current && c(S.current);
} : void 0, T = f !== void 0 || d !== void 0;
- return /* @__PURE__ */ (0, I.jsxs)("article", {
+ return /* @__PURE__ */ (0, F.jsxs)("article", {
...y,
ref: C,
"data-mix-card": "",
@@ -49620,39 +49627,39 @@ function AG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
onMouseLeave: b.onPointerLeave,
onClick: v ? w : void 0,
className: "relative flex min-w-0 cursor-pointer flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-stack": "",
className: "relative isolate rounded-surface",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-mix-cover": "",
"data-media-pic": T ? "" : void 0,
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, I.jsx)(PW, {
+ f?.html ? /* @__PURE__ */ (0, F.jsx)(PW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(DG, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, F.jsx)(DG, { src: r }, r) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-faces": "",
hidden: !b.faces.length,
- children: b.faces.map((e, t) => /* @__PURE__ */ (0, I.jsx)("div", {
+ children: b.faces.map((e, t) => /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-face": t === b.current ? "on" : t === b.leaving ? "off" : "",
- children: h ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: h ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "",
dangerouslySetInnerHTML: { __html: h(e) }
- }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
loading: "eager"
})
}, e))
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-mix-open": "",
"aria-label": l,
@@ -49660,35 +49667,35 @@ function AG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
onClick: v ? void 0 : w,
className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(EG, {
+ children: [/* @__PURE__ */ (0, F.jsx)(EG, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
})
]
})
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-start gap-2.25",
children: [
- _ ? /* @__PURE__ */ (0, I.jsx)("span", {
+ _ ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(EG, {})
- }) : /* @__PURE__ */ (0, I.jsx)(kG, {
+ children: /* @__PURE__ */ (0, F.jsx)(EG, {})
+ }) : /* @__PURE__ */ (0, F.jsx)(kG, {
faces: o,
- fallback: Nn(e),
+ fallback: Fn(e),
onOpenEntity: s
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)("b", {
+ children: [/* @__PURE__ */ (0, F.jsx)("b", {
"data-mix-title": "",
className: "truncate text-body-bold text-text-primary",
children: e
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-caption": "",
className: "mt-0.5 truncate text-caption-1-regular text-text-secondary",
children: t
@@ -53758,13 +53765,13 @@ var sK = {
scale: 1
};
function cK(e, t, n = sK, r = !1) {
- let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
+ let i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)({
width: 0,
height: 0
- }), s = (0, F.useRef)({ ...n }), [c, l] = (0, F.useState)({
+ }), s = (0, P.useRef)({ ...n }), [c, l] = (0, P.useState)({
camera: { ...n },
size: o.current
- }), u = (0, F.useRef)({ ...n }), d = (0, F.useRef)({
+ }), u = (0, P.useRef)({ ...n }), d = (0, P.useRef)({
count: e,
finite: t,
focused: r
@@ -53774,9 +53781,9 @@ function cK(e, t, n = sK, r = !1) {
finite: t,
focused: r
};
- let f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useCallback)(() => {
+ let f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(!1), h = (0, P.useRef)(null), g = (0, P.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
- }, []), _ = (0, F.useCallback)((e, t = !1, n = !1) => {
+ }, []), _ = (0, P.useCallback)((e, t = !1, n = !1) => {
let { count: r, finite: c, focused: f } = d.current, p = nK(e, o.current, tK(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
@@ -53787,7 +53794,7 @@ function cK(e, t, n = sK, r = !1) {
size: { ...o.current }
}));
}, []);
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
let e = i.current;
if (!e) return;
let t = new ResizeObserver(([e]) => {
@@ -53799,7 +53806,7 @@ function cK(e, t, n = sK, r = !1) {
return t.observe(e), () => {
t.disconnect(), g();
};
- }, [_, g]), (0, F.useEffect)(() => {
+ }, [_, g]), (0, P.useEffect)(() => {
_(s.current, !0);
}, [
e,
@@ -53807,7 +53814,7 @@ function cK(e, t, n = sK, r = !1) {
_
]);
let v = () => matchMedia("(prefers-reduced-motion: reduce)").matches;
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
let e = i.current;
if (!e) return;
let t = 0, n = 0, r = 0, a = (e) => {
@@ -53848,7 +53855,7 @@ function cK(e, t, n = sK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || v() ? _(a, !0, n) : p.current = Gne(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = Wne(0, 1, {
duration: .42,
ease: [
.22,
@@ -53950,12 +53957,12 @@ var lK = {
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
function dK(e, t, n) {
- let [r, i] = (0, F.useState)({
+ let [r, i] = (0, P.useState)({
paused: !0,
time: 0,
duration: 0
- }), a = (0, F.useRef)(null), o = (0, F.useRef)(n);
- return o.current = n, (0, F.useEffect)(() => {
+ }), a = (0, P.useRef)(null), o = (0, P.useRef)(n);
+ return o.current = n, (0, P.useEffect)(() => {
let n = e ? t.current?.querySelector("video") : null;
if (a.current = n || null, !n) {
i({
@@ -53992,14 +53999,14 @@ function dK(e, t, n) {
//#endregion
//#region src/react/video-wall/wall-controls.tsx
function fK({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = Vy(), x = dK(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+ let b = Uy(), x = dK(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
- y(en(e));
+ y(tn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(Yy.div, {
+ return /* @__PURE__ */ (0, F.jsxs)(Zy.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -54010,36 +54017,36 @@ function fK({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
transform: "translateY(0px)"
},
transition: b ? { duration: 0 } : uK,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-control-row": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...Bz(C),
+ ...zz(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
- children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: C ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs() } }) : /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: w ? "#i-play" : "#i-player-pause" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: w ? "#i-play" : "#i-player-pause" })
})
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": "上一个视频",
title: "上一个视频",
disabled: !c,
onClick: p,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-chevron-left" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-chevron-left" })
})
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": a ? "切换分卷或版本" : "切换视频",
title: a ? "分卷与版本" : "作品列表",
@@ -54047,58 +54054,58 @@ function fK({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
"aria-controls": "wall-queue",
disabled: !s,
onClick: h,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "10.4 10.5 259.2 259.2",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-playlist" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-playlist" })
})
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": "下一个视频",
title: "下一个视频",
disabled: !l,
onClick: m,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-chevron-right" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-chevron-right" })
})
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
- ...Bz(d),
+ ...zz(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
onClick: g,
- children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: d ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs() } }) : /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-bookmark" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-bookmark" })
})
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-wall-time": "",
children: [
- x.time > 0 ? Dn(x.time) : "00:00",
+ x.time > 0 ? kn(x.time) : "00:00",
" / ",
- S > 0 ? Dn(S) : "00:00"
+ S > 0 ? kn(S) : "00:00"
]
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": "详情",
title: "打开详情",
onClick: _,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-info" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-info" })
})
})
]
- }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }), /* @__PURE__ */ (0, F.jsx)("input", {
"data-wall-seek": "",
type: "range",
"aria-label": "播放进度",
@@ -54115,35 +54122,35 @@ function fK({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
//#endregion
//#region src/react/components/mix-queue.tsx
function pK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
- let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
+ let c = (0, P.useRef)(null), l = (0, P.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
let e = c.current, t = e?.querySelector("[data-mix-item][aria-current=\"true\"]");
if (!e || !t) return;
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
(r.top < n.top || r.bottom > n.bottom) && (e.scrollTop += r.top - n.top - (n.height - r.height) / 2), (r.left < n.left || r.right > n.right) && (e.scrollLeft += r.left - n.left - (n.width - r.width) / 2);
- }, []), /* @__PURE__ */ (0, I.jsxs)("aside", {
+ }, []), /* @__PURE__ */ (0, F.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
...s,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-mix-queue-head": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", { children: [/* @__PURE__ */ (0, F.jsx)("h2", {
className: "font-semibold",
children: t
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-mix-queue-actions": "",
- children: [i, /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [i, /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-queue-close": "",
title: "关闭",
"aria-label": "关闭",
onClick: r,
- dangerouslySetInnerHTML: { __html: z("x") }
+ dangerouslySetInnerHTML: { __html: R("x") }
})]
})]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-list": "",
ref: l,
children: o
@@ -54151,61 +54158,61 @@ function pK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
});
}
function mK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
- let s = /* @__PURE__ */ (0, I.jsx)("span", {
+ let s = /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-item-text": "",
children: a
});
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-mix-row": "",
...i,
- children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-mix-item": "",
"aria-current": e ? "true" : "false",
...o,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-item-pic": "",
children: t
- }), n === void 0 ? s : /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), n === void 0 ? s : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-mix-item-meta": "",
children: [n, s]
})]
}), r]
});
}
-var hK = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var hK = ({ label: e, count: t }) => /* @__PURE__ */ (0, F.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
- /* @__PURE__ */ (0, I.jsx)("span", { children: t })
+ /* @__PURE__ */ (0, F.jsx)("span", { children: t })
]
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
function gK({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(pK, {
+ children: /* @__PURE__ */ (0, F.jsx)(pK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(mK, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(mK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? gN(e.part_label) : "",
+ e.part_label ? hN(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(PW, { artwork: ro(e, "small", !0, "cover") }),
- children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
+ pic: /* @__PURE__ */ (0, F.jsx)(PW, { artwork: ao(e, "small", !0, "cover") }),
+ children: [/* @__PURE__ */ (0, F.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, F.jsx)("span", { children: [
e.edition_label,
- e.part_label ? gN(e.part_label) : "",
- Dn(e.duration)
+ e.part_label ? hN(e.part_label) : "",
+ kn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
})
@@ -54220,10 +54227,10 @@ function _K(e = `${location.pathname}${location.search}`, t = {}) {
studios: "studio",
series: "series",
tags: "tag"
- }[r || ""], o = un(n.pathname) && n.pathname !== "/junk-files" || n.pathname === "/jav" || !!(a && i.length), s = new URLSearchParams(o ? n.search : "");
+ }[r || ""], o = fn(n.pathname) && n.pathname !== "/junk-files" || n.pathname === "/jav" || !!(a && i.length), s = new URLSearchParams(o ? n.search : "");
for (let [e, n] of Object.entries(t)) n && (o || ["jav", "loc"].includes(e)) && s.set(e, n);
- if (o && cn[n.pathname] && s.set("state", cn[n.pathname]), a && i.length) {
- let e = decodeURIComponent(i.join("/")), t = /^[0-9]+$/.test(e) ? Ut(a, Number(e)) : e;
+ if (o && un[n.pathname] && s.set("state", un[n.pathname]), a && i.length) {
+ let e = decodeURIComponent(i.join("/")), t = /^[0-9]+$/.test(e) ? Wt(a, Number(e)) : e;
t && a === "tag" ? (s.set("tag", [.../* @__PURE__ */ new Set([t, ...(s.get("tag") || "").split(",").filter(Boolean)])].join(",")), s.set("tag_match", "all")) : t && !s.has(a) && s.set(a, t);
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
@@ -54234,145 +54241,145 @@ function vK(e = `${location.pathname}${location.search}`) {
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
function yK() {
- let e = new URLSearchParams(YV.navigation.location.search).get("returnTo") || "/";
- YV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+ let e = new URLSearchParams(JV.navigation.location.search).get("returnTo") || "/";
+ JV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
//#endregion
//#region src/react/video-wall/video-wall.tsx
-var bK = /* @__PURE__ */ new Map(), xK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
- let i = ro(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
+var bK = /* @__PURE__ */ new Map(), xK = (0, P.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+ let i = ao(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
- } : e, n || r >= 1 ? "small" : "big", !0, t), a = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
+ } : e, n || r >= 1 ? "small" : "big", !0, t), a = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
a.current?.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && al(e, r);
+ e.complete && e.naturalWidth && sl(e, r);
});
- }, [r, i.html]), /* @__PURE__ */ (0, I.jsx)("span", {
+ }, [r, i.html]), /* @__PURE__ */ (0, F.jsx)("span", {
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(PW, {
+ children: /* @__PURE__ */ (0, F.jsx)(PW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && al(e, r);
+ e.complete && e.naturalWidth && sl(e, r);
})
})
});
});
function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
- let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
+ let p = String(e[0]?.id), [m] = (0, P.useState)(() => {
let e = bK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new iK()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, P.useState)(() => m?.exploration || new iK()), g = (0, P.useRef)(!1), [_, v] = (0, P.useState)(null), y = (0, P.useRef)(null), b = (0, P.useRef)(null), x = (0, P.useRef)(null), S = (0, P.useRef)(null), C = (0, P.useRef)(null), [w, T] = (0, P.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, P.useState)(m?.selectedKey || ""), [O, k] = (0, P.useState)(m?.sourceId || null), [A, j] = (0, P.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
- } : null, ee = Nt({
- queryKey: YM(M || {
+ } : null, ee = Pt({
+ queryKey: JM(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => iN(M, {
+ queryFn: ({ signal: e }) => rN(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === sN(N, O || w?.id || null)) || w, P = cK(e.length, t && !!e.length, m?.camera || {
+ }), te = M ? ee.data : void 0, ne = te?.items.find((e) => e.id === oN(te, O || w?.id || null)) || w, N = cK(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Vy(), [re, ie] = (0, F.useState)(!!m);
- (0, F.useEffect)(() => {
- if (!e.length || re || ne) return;
- let t = setTimeout(() => ie(!0), 1100);
+ }, !!w), re = Uy(), [ie, ae] = (0, P.useState)(!!m);
+ (0, P.useEffect)(() => {
+ if (!e.length || ie || re) return;
+ let t = setTimeout(() => ae(!0), 1100);
return () => clearTimeout(t);
}, [
p,
- re,
- ne
+ ie,
+ re
]);
- let ae = matchMedia("(hover:hover) and (pointer:fine)").matches, [oe, se] = (0, F.useState)(null), [ce, le] = (0, F.useState)(null), [ue, de] = (0, F.useState)(!1), [fe, pe] = (0, F.useState)(""), [me, L] = (0, F.useState)(""), [he, ge] = (0, F.useState)(!1), [_e, ve] = (0, F.useState)(null), [ye, be] = (0, F.useState)(!1), [xe] = (0, F.useState)(() => {
+ let oe = matchMedia("(hover:hover) and (pointer:fine)").matches, [se, ce] = (0, P.useState)(null), [le, ue] = (0, P.useState)(null), [de, fe] = (0, P.useState)(!1), [pe, me] = (0, P.useState)(""), [he, I] = (0, P.useState)(""), [ge, _e] = (0, P.useState)(!1), [ve, ye] = (0, P.useState)(null), [be, xe] = (0, P.useState)(!1), [Se] = (0, P.useState)(() => {
let e = document.createElement("div");
return e.className = "peach-react", e;
});
- (0, F.useLayoutEffect)(() => {
- document.body.append(xe), P.viewport.current?.focus({ preventScroll: !0 });
- }, [xe]), (0, F.useEffect)(() => () => xe.remove(), [xe]);
- let [Se, Ce] = (0, F.useState)(() => gV(YV.navigation.location.pathname)), [we, Te] = (0, F.useState)(m?.image || d), Ee = (0, F.useRef)(null), De = (0, F.useRef)(p), Oe = (0, F.useRef)(!!e.length);
- Oe.current = !!e.length;
- let ke = (0, F.useRef)({
+ (0, P.useLayoutEffect)(() => {
+ document.body.append(Se), N.viewport.current?.focus({ preventScroll: !0 });
+ }, [Se]), (0, P.useEffect)(() => () => Se.remove(), [Se]);
+ let [Ce, we] = (0, P.useState)(() => hV(JV.navigation.location.pathname)), [Te, Ee] = (0, P.useState)(m?.image || d), De = (0, P.useRef)(null), Oe = (0, P.useRef)(p), ke = (0, P.useRef)(!!e.length);
+ ke.current = !!e.length;
+ let Ae = (0, P.useRef)({
selectedId: w?.id || null,
selectedKey: E,
sourceId: O,
- image: we,
+ image: Te,
pool: p
});
- ke.current = {
+ Ae.current = {
selectedId: w?.id || null,
selectedKey: E,
sourceId: O,
- image: we,
+ image: Te,
pool: p
};
- let Ae = () => {
- Oe.current && (bK.delete(f), bK.set(f, {
- ...ke.current,
- camera: P.snapshot(),
+ let je = () => {
+ ke.current && (bK.delete(f), bK.set(f, {
+ ...Ae.current,
+ camera: N.snapshot(),
exploration: h
}), bK.size > 8 && bK.delete(bK.keys().next().value));
};
- (0, F.useLayoutEffect)(Ae);
- let je = rK(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Me = i ? je.map((e) => ({
+ (0, P.useLayoutEffect)(je);
+ let Me = rK(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, N.view.camera, N.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
- })) : t ? je : h.assign(je, e.length, n), Ne = w && (t ? QG(e.length, !0, E) : h.tile(E, e.length)), Pe = Ne ? eK(e.length, t, Ne) : /* @__PURE__ */ new Map();
- Ne && !Me.some((e) => e.key === Ne.key) && Me.push(Ne);
- let Fe = (e = !1) => {
- C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? QG(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? eK(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ Pe && !Ne.some((e) => e.key === Pe.key) && Ne.push(Pe);
+ let Ie = (e = !1) => {
+ C.current?.abort(), C.current = null, S.current?.(e), S.current = null, ce(null), fe(!1);
};
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
if (!i) {
- if (e.length) De.current === "undefined" ? (De.current = p, m && (t || m.pool === p) ? T(e.find((e) => e.id === m.selectedId) || null) : m && P.reset()) : t || De.current === p || (De.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe(""), P.reset());
+ if (e.length) Oe.current === "undefined" ? (Oe.current = p, m && (t || m.pool === p) ? T(e.find((e) => e.id === m.selectedId) || null) : m && N.reset()) : t || Oe.current === p || (Oe.current = p, C.current?.abort(), S.current?.(!0), S.current = null, ce(null), fe(!1), T(null), D(""), me(""), N.reset());
else {
- if (De.current === p) return;
- De.current = p, C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1), T(null), D(""), pe("");
+ if (Oe.current === p) return;
+ Oe.current = p, C.current?.abort(), S.current?.(!0), S.current = null, ce(null), fe(!1), T(null), D(""), me("");
}
}
}, [
t,
p,
i
- ]), (0, F.useEffect)(() => YV.listen((e) => {
- let t = gV(e.location.pathname);
- t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), Ce(t);
- }), []), (0, F.useEffect)(() => () => {
- C.current?.abort(), S.current?.(!0), Ae();
- }, []), (0, F.useEffect)(() => {
- if (Se) return;
+ ]), (0, P.useEffect)(() => JV.listen((e) => {
+ let t = hV(e.location.pathname);
+ t && (C.current?.abort(), S.current?.(!0), S.current = null, ce(null), fe(!1)), we(t);
+ }), []), (0, P.useEffect)(() => () => {
+ C.current?.abort(), S.current?.(!0), je();
+ }, []), (0, P.useEffect)(() => {
+ if (Ce) return;
let e = document.body.style.overflow;
return document.body.style.overflow = "hidden", () => {
document.body.style.overflow = e;
};
- }, [Se]);
- let Ie = (e = !0) => {
- Fe(e), le(null), T(null), D(""), k(null), j(!1), pe("");
- let t = Ee.current;
+ }, [Ce]);
+ let Le = (e = !0) => {
+ Ie(e), ue(null), T(null), D(""), k(null), j(!1), me("");
+ let t = De.current;
t && requestAnimationFrame(() => {
(y.current?.querySelector(`[data-wall-tile="${t.key}"]`))?.focus({ preventScroll: !0 });
});
- }, Le = (n, r, i = !0) => {
- w?.id !== n.id && Fe(!1), Ee.current = {
+ }, Re = (n, r, i = !0) => {
+ w?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), be(!1), P.reveal(eK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
- }, Re = () => {
- te && y.current && (Ae(), Fe(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
- }, ze = async (e = te) => {
+ }, me(""), ue(null), T(n), D(r.key), k(null), j(!1), xe(!1), N.reveal(eK(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, ze = () => {
+ ne && y.current && (je(), Ie(!0), l.wallDetails?.(ne, y.current.querySelector("[data-wall-focus]") || y.current));
+ }, Be = async (e = ne) => {
if (!e || !b.current || !l.wallPlayer) return;
- Fe(!1), pe(""), de(!0);
+ Ie(!1), me(""), fe(!0);
let t = new AbortController();
C.current = t;
let n = e.id;
@@ -54382,97 +54389,97 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
r(!1);
return;
}
- S.current = r, se(n);
+ S.current = r, ce(n);
} catch (e) {
- t.signal.aborted || pe(en(e));
+ t.signal.aborted || me(tn(e));
} finally {
- C.current === t && de(!1);
+ C.current === t && fe(!1);
}
- }, Be = () => {
- let e = cN(N || null, oe || 0);
- e && (k(e.id), ze(e));
+ }, Ve = () => {
+ let e = sN(te || null, se || 0);
+ e && (k(e.id), Be(e));
};
- (0, F.useEffect)(() => {
- ce == null || w?.id !== ce || Se || (le(null), ze(w));
+ (0, P.useEffect)(() => {
+ le == null || w?.id !== le || Ce || (ue(null), Be(w));
}, [
- ce,
+ le,
w?.id,
- Se
+ Ce
]);
- let Ve = N?.items || e, He = Ve.findIndex((e) => e.id === te?.id), Ue = (n) => {
- if (j(!1), n.id === te?.id) {
- oe ? b.current?.querySelector("video")?.play().catch((e) => pe(en(e))) : ze(n);
+ let He = te?.items || e, Ue = He.findIndex((e) => e.id === ne?.id), We = (n) => {
+ if (j(!1), n.id === ne?.id) {
+ se ? b.current?.querySelector("video")?.play().catch((e) => me(tn(e))) : Be(n);
return;
}
- if (N) {
- k(n.id), ze(n);
+ if (te) {
+ k(n.id), Be(n);
return;
}
- let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
- x: (P.view.size.width / 2 - r.x) / r.scale,
- y: (P.view.size.height / 2 - r.y) / r.scale
+ let r = N.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
+ x: (N.view.size.width / 2 - r.x) / r.scale,
+ y: (N.view.size.height / 2 - r.y) / r.scale
}, o = t ? $G(e.length, i) : h.nearest(e.length, i, a);
- o && (Le(n, o), le(n.id));
- }, We = async () => {
+ o && (Re(n, o), ue(n.id));
+ }, Ge = async () => {
if (!(r || g.current)) {
- g.current = !0, L("");
+ g.current = !0, I("");
try {
await c();
} catch (e) {
- L(en(e)), v(null);
+ I(tn(e)), v(null);
} finally {
g.current = !1;
}
}
- }, Ge = Me.some((e) => e.index < 0);
- (0, F.useEffect)(() => {
- i || t || Se || w || r || me || _ !== null || !n || (Ge || e.length - h.size < 24) && We();
+ }, Ke = Ne.some((e) => e.index < 0);
+ (0, P.useEffect)(() => {
+ i || t || Ce || w || r || he || _ !== null || !n || (Ke || e.length - h.size < 24) && Ge();
}, [
i,
t,
- Se,
+ Ce,
w,
r,
- me,
+ he,
n,
- Ge,
+ Ke,
e.length,
h.size,
_
- ]), (0, F.useEffect)(() => {
- if (_ === null || r || me) return;
+ ]), (0, P.useEffect)(() => {
+ if (_ === null || r || he) return;
if (e.length <= _ && n) {
- We();
+ Ge();
return;
}
h.prefer(_);
- let t = h.fresh(), i = P.snapshot();
- Ie(), P.pan(-t.x * i.scale - i.x, -t.y * i.scale - i.y), v(null);
+ let t = h.fresh(), i = N.snapshot();
+ Le(), N.pan(-t.x * i.scale - i.x, -t.y * i.scale - i.y), v(null);
}, [
_,
e.length,
r,
n,
- me
+ he
]);
- let Ke = async () => {
- r || g.current || (v(e.length), n && await We());
- }, qe = async () => {
- if (te && !he) {
- ge(!0);
+ let qe = async () => {
+ r || g.current || (v(e.length), n && await Ge());
+ }, Je = async () => {
+ if (ne && !ge) {
+ _e(!0);
try {
- await l.watchLater(te, (e) => ve({
- id: te.id,
+ await l.watchLater(ne, (e) => ye({
+ id: ne.id,
on: e
}));
} finally {
- ge(!1);
+ _e(!1);
}
}
- }, Je = (e) => u.displayName(e, String(e.name || e.code || "未命名视频")), Ye = te || w;
- (0, F.useLayoutEffect)(() => {
+ }, Ye = (e) => u.displayName(e, String(e.name || e.code || "未命名视频")), Xe = ne || w;
+ (0, P.useLayoutEffect)(() => {
let e = x.current;
- if (!e || !Ye?.code) return;
+ if (!e || !Xe?.code) return;
let t = !0, n = e.clientWidth, r = () => {
if (!t) return;
e.style.removeProperty("--wall-code-fit");
@@ -54493,163 +54500,163 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t = !1, i.disconnect(), document.fonts.removeEventListener("loadingdone", r);
};
}, [
- Ye?.code,
+ Xe?.code,
E,
- oe,
- ue,
- Se
+ se,
+ de,
+ Ce
]);
- let Xe = w && Ye ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ let Ze = w && Xe ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(xK, {
+ children: /* @__PURE__ */ (0, F.jsx)(xK, {
item: w,
- image: we,
+ image: Te,
big: !0
})
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(xK, {
+ children: /* @__PURE__ */ (0, F.jsx)(xK, {
item: w,
- image: we,
+ image: Te,
big: !0
})
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: b,
"data-wall-player": "",
- hidden: !oe && !ue
+ hidden: !se && !de
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-expanded-shade": "",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-wall-number": "",
- children: [oe ? "正在播放 · " : "", String((Ne?.index || 0) + 1).padStart(2, "0")]
+ children: [se ? "正在播放 · " : "", String((Pe?.index || 0) + 1).padStart(2, "0")]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-focus-head": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("b", {
+ /* @__PURE__ */ (0, F.jsx)("b", {
ref: x,
- "data-wall-code": Ye.code ? "" : void 0,
- children: Ye.code || Je(Ye)
+ "data-wall-code": Xe.code ? "" : void 0,
+ children: Xe.code || Ye(Xe)
}),
- Ye.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Je(Ye).startsWith(Ye.code) ? Je(Ye).slice(Ye.code.length).trim() : Je(Ye) }) : null,
- /* @__PURE__ */ (0, I.jsx)("span", { children: Ye.performers?.join(" · ") || Ye.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? gN(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ Xe.code ? /* @__PURE__ */ (0, F.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
+ /* @__PURE__ */ (0, F.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
+ te ? /* @__PURE__ */ (0, F.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? hN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-wall-focus-close": "",
"aria-label": "收起作品",
title: "收起",
- onClick: () => Ie(),
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ onClick: () => Le(),
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-x" })
})
}),
- fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ pe || M && ee.error && !te ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: fe || en(ee.error)
- }), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(q, {
+ children: pe || tn(ee.error)
+ }), ee.error && !te ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
onClick: () => void ee.refetch(),
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(fK, {
- item: Ye,
- playing: oe,
+ /* @__PURE__ */ (0, F.jsx)(fK, {
+ item: Xe,
+ playing: se,
frame: b,
- starting: ue,
+ starting: de,
pendingGroup: !!M && ee.isPending,
grouped: !!M,
queueOpen: A,
- queueReady: !!Ve.length && (!M || !!N),
- hasPrevious: He > 0,
- hasNext: He >= 0 && He < Ve.length - 1,
- later: _e?.id === Ye.id ? _e.on : !!Ye.watch_later,
- laterBusy: he,
- play: () => ze(),
- previous: () => Ue(Ve[He - 1]),
- next: () => Ue(Ve[He + 1]),
+ queueReady: !!He.length && (!M || !!te),
+ hasPrevious: Ue > 0,
+ hasNext: Ue >= 0 && Ue < He.length - 1,
+ later: ve?.id === Xe.id ? ve.on : !!Xe.watch_later,
+ laterBusy: ge,
+ play: () => Be(),
+ previous: () => We(He[Ue - 1]),
+ next: () => We(He[Ue + 1]),
queue: () => j(!A),
- watchLater: () => void qe(),
- details: Re,
- ended: Be,
- error: pe
+ watchLater: () => void Je(),
+ details: ze,
+ ended: Ve,
+ error: me
}),
- A ? /* @__PURE__ */ (0, I.jsx)(gK, {
- items: Ve,
- activeId: Ye.id,
- kind: N?.kind || "wall",
- label: Je,
- choose: Ue,
+ A ? /* @__PURE__ */ (0, F.jsx)(gK, {
+ items: He,
+ activeId: Xe.id,
+ kind: te?.kind || "wall",
+ label: Ye,
+ choose: We,
close: () => j(!1)
}) : null
- ] }) : null, Ze = /* @__PURE__ */ (0, I.jsxs)("div", {
+ ] }) : null, Qe = /* @__PURE__ */ (0, F.jsxs)("div", {
ref: y,
"data-video-wall": "",
"data-fullscreen": "",
"data-focused": !!w || void 0,
"data-refreshing": _ !== null || void 0,
- hidden: Se,
+ hidden: Ce,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Ie() : ye ? be(!1) : yK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? Le() : be ? xe(!1) : yK());
},
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
onClick: yK,
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-chevron-left" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-chevron-left" })
})
}),
- t ? /* @__PURE__ */ (0, I.jsxs)("aside", {
+ t ? /* @__PURE__ */ (0, F.jsxs)("aside", {
"data-wall-filter-notice": "",
className: "ui-project-banner",
role: "status",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", { children: [/* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-info" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-info" })
+ }), /* @__PURE__ */ (0, F.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
- onClick: () => YV.push(vK()),
+ onClick: () => JV.push(vK()),
children: "清除筛选"
})]
}) : null,
- ye ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ be ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-toolbar": "",
"aria-label": "播放墙工具",
children: [
- /* @__PURE__ */ (0, I.jsxs)("form", {
+ /* @__PURE__ */ (0, F.jsxs)("form", {
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n ? t.set("q", n) : t.delete("q"), Ae(), YV.push(`/wall?${t}`), be(!1);
+ n ? t.set("q", n) : t.delete("q"), je(), JV.push(`/wall?${t}`), xe(!1);
},
- children: [/* @__PURE__ */ (0, I.jsx)("svg", {
+ children: [/* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-search" })
- }), /* @__PURE__ */ (0, I.jsx)("input", {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-search" })
+ }), /* @__PURE__ */ (0, F.jsx)("input", {
type: "search",
name: "q",
"aria-label": "搜索播放墙",
@@ -54657,63 +54664,63 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(MU, {
+ /* @__PURE__ */ (0, F.jsxs)(jU, {
"aria-label": "播放墙图片",
- value: we,
- onChange: Te,
- className: NU,
- children: [/* @__PURE__ */ (0, I.jsx)(wR, {
+ value: Te,
+ onChange: Ee,
+ className: MU,
+ children: [/* @__PURE__ */ (0, F.jsx)(CR, {
value: "cover",
- className: PU,
+ className: NU,
children: "封面"
- }), /* @__PURE__ */ (0, I.jsx)(wR, {
+ }), /* @__PURE__ */ (0, F.jsx)(CR, {
value: "thumbnail",
- className: PU,
+ className: NU,
children: "缩略图"
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-tools": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
"aria-label": "缩小播放墙",
- onClick: () => P.zoom(1 / 1.2),
+ onClick: () => N.zoom(1 / 1.2),
children: "缩小"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
"aria-label": "放大播放墙",
- onClick: () => P.zoom(1.2),
+ onClick: () => N.zoom(1.2),
children: "放大"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
- onClick: P.reset,
+ onClick: N.reset,
children: "回到起点"
})
]
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-hint": "",
children: "拖动浏览 · Shift + 滚轮横移"
})
]
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
- ref: P.viewport,
+ /* @__PURE__ */ (0, F.jsx)("div", {
+ ref: N.viewport,
"data-wall-viewport": "",
tabIndex: 0,
role: "region",
"aria-label": "播放墙,拖动或方向键浏览",
- "aria-busy": i || _ !== null || r && Ge || void 0,
+ "aria-busy": i || _ !== null || r && Ke || void 0,
"data-skeleton": i ? "wall" : void 0,
- ...i || _ !== null ? {} : P.handlers,
+ ...i || _ !== null ? {} : N.handlers,
onClick: (e) => {
- w && e.target instanceof Element && !e.target.closest("[data-wall-tile]") && (A ? j(!1) : Ie());
+ w && e.target instanceof Element && !e.target.closest("[data-wall-tile]") && (A ? j(!1) : Le());
},
onKeyDown: (e) => {
if (_ !== null || e.target instanceof Element && e.target.closest("button,input,[role=\"slider\"],[data-wall-player],[data-wall-queue]")) return;
@@ -54723,13 +54730,13 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ArrowUp: [0, 200],
ArrowDown: [0, -200]
}[e.key];
- !t || e.ctrlKey || e.metaKey || e.altKey || (e.preventDefault(), P.pan(...t));
+ !t || e.ctrlKey || e.metaKey || e.altKey || (e.preventDefault(), N.pan(...t));
},
- children: /* @__PURE__ */ (0, I.jsx)("div", {
- ref: P.world,
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
+ ref: N.world,
"data-wall-world": "",
- children: Me.map((t) => {
- if (t.index < 0) return /* @__PURE__ */ (0, I.jsx)("span", {
+ children: Ne.map((t) => {
+ if (t.index < 0) return /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-skeleton": "",
"aria-hidden": "true",
style: {
@@ -54739,19 +54746,19 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"--wall-height": `${t.height}px`
}
}, t.key);
- let n = e[t.index], r = !!w && t.key === E, i = Pe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(Yy.article, {
+ let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !ie && !r, o = a ? Math.min(.34, (Math.max(0, t.x + N.view.camera.x / N.view.camera.scale) + Math.max(0, t.y + N.view.camera.y / N.view.camera.scale)) / 103.36 * .03) : 0;
+ return /* @__PURE__ */ (0, F.jsx)(Zy.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
"data-wall-id": n.id,
"data-wall-focus": r ? "" : void 0,
- "data-playing": r && (oe || ue) ? "" : void 0,
+ "data-playing": r && (se || de) ? "" : void 0,
role: r ? "group" : "button",
tabIndex: r ? -1 : 0,
- "aria-label": r ? Je(n) : `展开 ${Je(n)}`,
+ "aria-label": r ? Ye(n) : `展开 ${Ye(n)}`,
"aria-expanded": r ? void 0 : !1,
- initial: ne || m ? !1 : {
+ initial: re || m ? !1 : {
opacity: 0,
transform: a ? "translateY(-68.4px) scale(.88)" : "scale(.94)"
},
@@ -54759,8 +54766,8 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
opacity: 1,
transform: "translateY(0px) scale(1)"
},
- whileHover: ae && !ne && !r && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
- transition: ne ? { duration: 0 } : {
+ whileHover: oe && !re && !r && ie ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
+ transition: re ? { duration: 0 } : {
layout: lK,
transform: a ? {
type: "spring",
@@ -54784,125 +54791,125 @@ function SK({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
onFocus: (e) => {
if (r || e.target !== e.currentTarget) return;
- let n = e.currentTarget.getBoundingClientRect(), i = P.viewport.current?.getBoundingClientRect();
- i && (n.left < i.left || n.right > i.right || n.top < i.top || n.bottom > i.bottom) && P.reveal(t);
+ let n = e.currentTarget.getBoundingClientRect(), i = N.viewport.current?.getBoundingClientRect();
+ i && (n.left < i.left || n.right > i.right || n.top < i.top || n.bottom > i.bottom) && N.reveal(t);
},
onClick: (e) => {
- r || Le(n, t, e.detail !== 0);
+ r || Re(n, t, e.detail !== 0);
},
onKeyDown: (e) => {
- !r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Le(n, t, !1));
+ !r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));
},
- children: r ? Xe : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(xK, {
+ children: r ? Ze : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(xK, {
item: n,
- image: we,
+ image: Te,
ratio: i.width / i.height
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-tile-shade": "",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-number": "",
children: String(t.index + 1).padStart(2, "0")
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-wall-copy": "",
- children: [/* @__PURE__ */ (0, I.jsx)("b", { children: n.code || Je(n) }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.performers?.join(" · ") || n.creator || n.studio || "未归属" })]
+ children: [/* @__PURE__ */ (0, F.jsx)("b", { children: n.code || Ye(n) }), /* @__PURE__ */ (0, F.jsx)("span", { children: n.performers?.join(" · ") || n.creator || n.studio || "未归属" })]
}),
- n.duration ? /* @__PURE__ */ (0, I.jsx)("span", {
+ n.duration ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-duration": "",
- children: Dn(n.duration)
+ children: kn(n.duration)
}) : null,
- Number(n.leave_ratio) > 0 ? /* @__PURE__ */ (0, I.jsx)("span", {
+ Number(n.leave_ratio) > 0 ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-wall-progress": "",
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Yy.span, {
+ /* @__PURE__ */ (0, F.jsx)(Zy.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
- transition: { duration: ne ? 0 : .24 }
+ transition: { duration: re ? 0 : .24 }
})
] })
}, t.key);
})
})
}),
- !i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ !i && a ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: a
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
onClick: o,
children: "立即重试"
})]
}) : null,
- !i && !a && !e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ !i && !a && !e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-empty": "",
onClick: async (e) => {
let t = e.target.closest("[data-wall-load-more]");
if (!(!t || r || g.current)) {
- Ec(t);
+ Oc(t);
try {
- await We();
+ await Ge();
} finally {
- Ec(t, !1);
+ Oc(t, !1);
}
}
},
dangerouslySetInnerHTML: { __html: s }
}) : null,
- !t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
+ !t && (n || e.length > 0) ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(fW, {
+ children: /* @__PURE__ */ (0, F.jsx)(fW, {
busy: r,
- onPress: () => void Ke()
+ onPress: () => void qe()
})
}) : null,
- n && t && e.length > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ n && t && e.length > 0 ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-wall-footer": "",
- children: /* @__PURE__ */ (0, I.jsxs)(q, {
+ children: /* @__PURE__ */ (0, F.jsxs)(q, {
size: "small",
variant: "secondary",
- ...Bz(r),
- onClick: () => void We(),
- children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs() } }) : null, "载入更多"]
+ ...zz(r),
+ onClick: () => void Ge(),
+ children: [r ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs() } }) : null, "载入更多"]
})
}) : null,
- me ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ he ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: me
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ children: he
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "ghost",
- ...Bz(r),
- onClick: () => void We(),
+ ...zz(r),
+ onClick: () => void Ge(),
children: "立即重试"
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-wall-tools-button": "",
"aria-label": "播放墙工具",
title: "播放墙工具",
- "aria-expanded": ye,
- onClick: () => be(!ye),
- children: /* @__PURE__ */ (0, I.jsx)("svg", {
+ "aria-expanded": be,
+ onClick: () => xe(!be),
+ children: /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-settings" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-settings" })
})
})
]
});
- return (0, It.createPortal)(Ze, xe);
+ return (0, Lt.createPortal)(Qe, Se);
}
//#endregion
//#region src/catalog-onboarding.ts
@@ -54949,7 +54956,7 @@ async function TK(e, t) {
}
function EK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ss("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? B(wK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(wK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -54962,41 +54969,41 @@ function EK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return Ss(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
+ return ws(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
}
- return Ss("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
+ return ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
//#endregion
//#region src/react/video-wall/wall-empty.ts
function DK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || EK() : t ? Ss("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ss("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${vK()}">清除筛选</a>` });
+ return e ? r || EK() : t ? ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${vK()}">清除筛选</a>` });
}
//#endregion
//#region src/react/library-processing/processing-actions.tsx
function OK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
- let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
- return (0, F.useEffect)(() => {
+ let [a, o] = (0, P.useState)(t), [s, c] = (0, P.useState)(), [l, u] = (0, P.useState)("");
+ return (0, P.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await _he(e, t.signal, a);
+ let o = await yhe(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
i(o.traffic.inventory?.token);
}, 250));
} catch (e) {
- t.signal.aborted || (u(Hn(e)), n.confirmButton.disabled = !1);
+ t.signal.aborted || (u(Wn(e)), n.confirmButton.disabled = !1);
}
};
return i(), () => {
t.abort(), clearTimeout(r);
};
- }, [e, n]), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, [e, n]), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, F.jsx)(FH, {
value: a,
busy: i,
onChange: (e) => {
@@ -55004,11 +55011,11 @@ function OK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(aU, {
+ s ? /* @__PURE__ */ (0, F.jsx)(iU, {
traffic: s,
initial: !0
}) : null,
- l || !s ? /* @__PURE__ */ (0, I.jsx)("p", {
+ l || !s ? /* @__PURE__ */ (0, F.jsx)("p", {
role: "status",
className: "text-body-2-regular text-text-secondary",
children: l ? `流量预估未取得:${l}` : "正在估算流量…"
@@ -55017,9 +55024,9 @@ function OK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
});
}
function kK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(r);
- (0, F.useEffect)(() => () => o.current?.close(), []);
- let [u, d] = (0, F.useState)(!1), f = {
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(r);
+ (0, P.useEffect)(() => () => o.current?.close(), []);
+ let [u, d] = (0, P.useState)(!1), f = {
label: t ? "同步媒体库" : "同步这些影片",
command: t ? {} : { stage: "collect" }
}, p = [
@@ -55051,7 +55058,7 @@ function kK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
}
if (o.current) return;
l.current = r;
- let s = a.stage === "previews", u = s ? "补全预览图" : a.stage === "scan" ? "扫描文件" : a.stage === "metadata" ? "补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步媒体库", f = Lc({
+ let s = a.stage === "previews", u = s ? "补全预览图" : a.stage === "scan" ? "扫描文件" : a.stage === "metadata" ? "补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步媒体库", f = zc({
title: u,
description: `${s ? "为本地视频补全九宫格预览图,会读取视频并占用处理器" : a.stage === "scan" ? "扫描目录并登记文件,按目录设置读取视频时长和分辨率" : a.stage === "metadata" ? "读取配套资料,补全影片资料、封面和人物资料" : `${a.stage === "collect" ? "为已入库影片补全资料和视频属性" : "扫描目录发现文件,再补全资料和视频属性"}${n ? "" : ",并生成本地预览图"}`},可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。`,
body: "<div class=\"peach-react\" data-processing-prompt></div>",
@@ -55073,8 +55080,8 @@ function kK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
o.current === f && (o.current = null, c(null));
});
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(OK, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(OK, {
command: s.command,
dialog: s.dialog,
speed: r,
@@ -55083,59 +55090,59 @@ function kK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
l.current = e;
}
}), s.host) : null,
- s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(EH, {
+ s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(TH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: uz,
+ trailingIcon: lz,
disabled: e,
onClick: (e) => {
s.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : s.dialog.close();
},
children: "管理媒体库"
}), s.footer) : null,
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
- ...Bz(e),
+ children: [/* @__PURE__ */ (0, F.jsx)(q, {
+ ...zz(e),
onClick: () => m(f.command),
children: f.label
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
ref: a,
iconOnly: !0,
- leadingIcon: lz,
+ leadingIcon: cz,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": u,
- ...Bz(e),
+ ...zz(e),
onClick: () => {
e || d(!u);
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(rR, {
+ /* @__PURE__ */ (0, F.jsx)(nR, {
triggerRef: a,
isOpen: u,
onOpenChange: d,
placement: "bottom end",
offset: 4,
- className: XB,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {
+ className: YB,
+ children: /* @__PURE__ */ (0, F.jsx)(kH, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: p.map(({ label: e, description: t, command: r }) => {
let i = n && "stage" in r && r.stage === "previews";
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
disabled: i,
title: i ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: uF(ZB, QB, "text-body-2-medium"),
+ className: lF(XB, ZB, "text-body-2-medium"),
onClick: () => m(r),
- children: /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: t
})]
@@ -55149,47 +55156,47 @@ function kK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
//#endregion
//#region src/react/library-processing/library-completion.tsx
function AK(e, t) {
- return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !ro(e, "small", !1, t).html).map((e) => e.id))];
+ return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !ao(e, "small", !1, t).html).map((e) => e.id))];
}
function jK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(MK, {
+ return e.length ? /* @__PURE__ */ (0, F.jsx)(MK, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
function MK({ assetIds: e, onComplete: t, className: n }) {
- let r = Nt({
- queryKey: uH,
- queryFn: ({ signal: e }) => vH(e),
- refetchInterval: (e) => xH(e.state.data, !0)
- }), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = Pt({
- mutationFn: (t) => H(lH, {
+ let r = Pt({
+ queryKey: lH,
+ queryFn: ({ signal: e }) => _H(e),
+ refetchInterval: (e) => bH(e.state.data, !0)
+ }), [i, a] = (0, P.useState)(null), [o, s] = (0, P.useState)(""), c = (0, P.useRef)(null), l = Ft({
+ mutationFn: (t) => V(cH, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
+ a(e.job_id || null), H.setQueryData(lH, e), H.invalidateQueries({ queryKey: lH });
}
}), u = r.data;
- if ((0, F.useEffect)(() => {
- u && i && u.job_id === i && !pH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ if ((0, P.useEffect)(() => {
+ u && i && u.job_id === i && !fH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
- ]), pH(u)) return null;
- let d = l.isPending || pH(u), f = l.error ? Hn(l.error) : r.error ? bH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
- return /* @__PURE__ */ (0, I.jsx)("section", {
+ ]), fH(u)) return null;
+ let d = l.isPending || fH(u), f = l.error ? Wn(l.error) : r.error ? yH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
+ return /* @__PURE__ */ (0, F.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: uF("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ className: lF("@container", n),
+ children: /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: f ? "warning" : "neutral",
- action: /* @__PURE__ */ (0, I.jsx)("div", {
+ action: /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(kK, {
+ children: /* @__PURE__ */ (0, F.jsx)(kK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -55200,10 +55207,10 @@ function MK({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ /* @__PURE__ */ (0, F.jsx)(TH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -55225,7 +55232,7 @@ function FK(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function IK(e, t) {
- return e == null ? null : NK(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+ return e == null ? null : NK(e) ? /* @__PURE__ */ P.createElement(e, t) : e;
}
function LK(e) {
if ("cell" in e && e.cell) {
@@ -55494,7 +55501,7 @@ function rq(e) {
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var iq = /* @__PURE__ */ o(((e) => {
- var t = A(), n = Zx();
+ var t = A(), n = Yx();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -55540,26 +55547,26 @@ var iq = /* @__PURE__ */ o(((e) => {
};
})), aq = /* @__PURE__ */ o(((e, t) => {
t.exports = iq();
-})), t_e = aq();
-function n_e(e, t) {
+})), n_e = aq();
+function r_e(e, t) {
return e === t;
}
function oq(e, t = (e) => e, n) {
- let r = n?.compare ?? n_e, i = (0, F.useCallback)((t) => {
+ let r = n?.compare ?? r_e, i = (0, P.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
- }, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, t_e.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ }, [e]), a = (0, P.useCallback)(() => e.get(), [e]);
+ return (0, n_e.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/Subscribe.js
-function r_e(e) {
+function i_e(e) {
let t = oq(e.source, e.selector, { compare: nq });
return typeof e.children == "function" ? e.children(t) : e.children;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function i_e(e) {
+function a_e(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
@@ -55567,7 +55574,7 @@ function i_e(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function a_e(e) {
+function o_e(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -55597,7 +55604,7 @@ function a_e(e) {
}
};
}
-function o_e(e, t = Object.is) {
+function s_e(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -55611,8 +55618,8 @@ function o_e(e, t = Object.is) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/reactivity.js
-function s_e() {
- return a_e({
+function c_e() {
+ return o_e({
createAtom: eq,
batch: ZK
});
@@ -55669,9 +55676,9 @@ function pq(e) {
function mq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var c_e = 3;
-function l_e(e, t) {
- return hq(e, t, c_e);
+var l_e = 3;
+function u_e(e, t) {
+ return hq(e, t, l_e);
}
function hq(e, t, n) {
if (Object.is(e, t)) return !0;
@@ -55685,17 +55692,17 @@ function hq(e, t, n) {
}
return !0;
}
-function gq(e, t, n, r = l_e) {
+function gq(e, t, n, r = u_e) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
let t = sq(n, e);
return r(e, t) ? e : t;
});
}
-function u_e(e) {
+function d_e(e) {
return e instanceof Function;
}
-function d_e(e, t) {
+function f_e(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -55705,7 +55712,7 @@ function d_e(e, t) {
};
return r(e), n;
}
-var f_e = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var p_e = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -55730,7 +55737,7 @@ function vq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ..
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return f_e({
+ return p_e({
...a,
...o
});
@@ -55784,13 +55791,13 @@ function Sq(e, t, n, ...r) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function p_e(e) {
+function m_e(e) {
return e.row.getValue(e.column.id);
}
-function m_e(e) {
+function h_e(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function h_e(e) {
+function g_e(e) {
return {
table: e.table,
column: e.column,
@@ -55802,19 +55809,19 @@ function h_e(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var g_e = { assignCellPrototype: (e, t) => {
+var __e = { assignCellPrototype: (e, t) => {
xq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => p_e(e) },
- cell_renderValue: { fn: (e) => m_e(e) },
+ cell_getValue: { fn: (e) => m_e(e) },
+ cell_renderValue: { fn: (e) => h_e(e) },
cell_getContext: {
- fn: (e) => h_e(e),
+ fn: (e) => g_e(e),
memoDeps: (e) => [e]
}
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function __e(e) {
+function v_e(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -55822,7 +55829,7 @@ function __e(e) {
}
return e._columnPrototype;
}
-function v_e(e, t, n, r) {
+function y_e(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -55842,7 +55849,7 @@ function v_e(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = __e(e), u = Object.create(l);
+ let l = v_e(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
@@ -55853,7 +55860,7 @@ function v_e(e, t, n, r) {
function Cq(e) {
return e.getIsVisible?.() ?? !0;
}
-function y_e(e) {
+function b_e(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
function wq(e, t) {
@@ -55866,31 +55873,31 @@ function Tq(e, t, n, r) {
function Eq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function b_e(e) {
+function x_e(e) {
e.autoResetExpanded?.();
}
function Dq(e) {
e.autoResetPageIndex?.();
}
-function x_e(e) {
+function S_e(e) {
e.autoResetSorting?.();
}
-function S_e(e) {
+function C_e(e) {
e.autoResetCellSelection?.();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function C_e(e) {
+function w_e(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function w_e(e) {
+function T_e(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
return wq(e.table, t);
}
return [e];
}
-function T_e(e) {
+function E_e(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -55905,18 +55912,18 @@ function Oq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = v_e(e, o, r, n), c = o;
+ let o = t[a], s = y_e(e, o, r, n), c = o;
s.columns = c.columns ? Oq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function E_e(e) {
+function D_e(e) {
return Oq(e, e.options.columns);
}
-function D_e(e) {
+function O_e(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function O_e(e) {
+function k_e(e) {
let t = uq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -55924,10 +55931,10 @@ function O_e(e) {
}
return t;
}
-function k_e(e) {
+function A_e(e) {
return wq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function A_e(e) {
+function j_e(e) {
let t = uq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -55935,20 +55942,20 @@ function A_e(e) {
}
return t;
}
-function j_e(e, t) {
+function M_e(e, t) {
return e.getAllFlatColumnsById()[t];
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var M_e = {
+var N_e = {
assignColumnPrototype: (e, t) => {
xq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => C_e(e),
+ fn: (e) => w_e(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => w_e(e),
+ fn: (e) => T_e(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -55961,23 +55968,23 @@ var M_e = {
constructTableAPIs: (e) => {
bq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => T_e(e),
+ fn: () => E_e(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => E_e(e),
+ fn: () => D_e(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => D_e(e),
+ fn: () => O_e(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => O_e(e),
+ fn: () => k_e(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => k_e(e),
+ fn: () => A_e(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -55986,16 +55993,16 @@ var M_e = {
]
},
table_getAllLeafColumnsById: {
- fn: () => A_e(e),
+ fn: () => j_e(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => j_e(e, t) }
+ table_getColumn: { fn: (t) => M_e(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function N_e(e) {
+function P_e(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -56004,7 +56011,7 @@ function N_e(e) {
return e._headerPrototype;
}
function kq(e, t, n) {
- let r = N_e(e), i = Object.create(r);
+ let r = P_e(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -56020,14 +56027,14 @@ function Aq(e, t = 1) {
}
return n;
}
-function P_e(e, t) {
+function F_e(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function F_e(e, t, n, r) {
+function I_e(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function I_e(e, t) {
+function L_e(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -56035,7 +56042,7 @@ function I_e(e, t) {
function jq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: P_e(r, t),
+ id: F_e(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -56044,9 +56051,9 @@ function jq(e, t, n, r, i, a) {
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
let e = kq(n, u, {
- id: F_e(r, t, u.id, a.id),
+ id: I_e(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(I_e(s, u)) : void 0,
+ placeholderId: d ? String(L_e(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -56076,7 +56083,7 @@ function Mq(e) {
} else n.rowSpan = 1;
}
}
-function L_e(e, t, n, r) {
+function R_e(e, t, n, r) {
let i = Aq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = kq(n, t[e], {
depth: i,
@@ -56090,24 +56097,24 @@ function Nq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Nq(e.subHeaders[n], t);
t.push(e);
}
-function R_e(e) {
+function z_e(e) {
let t = [];
return Nq(e, t), t;
}
-function z_e(e) {
+function B_e(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function B_e(e) {
- return L_e(e.getAllColumns(), Tq(e, y_e(e), (e) => e.id), e);
-}
function V_e(e) {
- return [...e.getHeaderGroups()].reverse();
+ return R_e(e.getAllColumns(), Tq(e, b_e(e), (e) => e.id), e);
}
function H_e(e) {
+ return [...e.getHeaderGroups()].reverse();
+}
+function U_e(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -56115,7 +56122,7 @@ function H_e(e) {
}
return n;
}
-function U_e(e) {
+function W_e(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -56125,15 +56132,15 @@ function U_e(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var W_e = {
+var G_e = {
assignHeaderPrototype: (e, t) => {
xq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => R_e(e),
+ fn: (e) => z_e(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => z_e(e),
+ fn: (e) => B_e(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
@@ -56141,7 +56148,7 @@ var W_e = {
constructTableAPIs: (e) => {
bq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => B_e(e),
+ fn: () => V_e(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -56152,15 +56159,15 @@ var W_e = {
]
},
table_getFooterGroups: {
- fn: () => V_e(e),
+ fn: () => H_e(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => H_e(e),
+ fn: () => U_e(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => U_e(e),
+ fn: () => W_e(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
@@ -56168,7 +56175,7 @@ var W_e = {
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function G_e(e) {
+function K_e(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -56176,8 +56183,8 @@ function G_e(e) {
}
return e._rowPrototype;
}
-var K_e = (e, t, n, r, i, a, o) => {
- let s = G_e(e), c = Object.create(s);
+var q_e = (e, t, n, r, i, a, o) => {
+ let s = K_e(e), c = Object.create(s);
c._displayIndexCache = -1, c._uniqueValuesCache = uq(), c._valuesCache = uq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
@@ -56185,27 +56192,27 @@ var K_e = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function q_e() {
+function J_e() {
return (e) => vq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => J_e(e, e.options.data),
+ fn: () => Y_e(e, e.options.data),
onAfterUpdate: _q(() => {
- b_e(e), Dq(e), x_e(e), S_e(e);
+ x_e(e), Dq(e), S_e(e), C_e(e);
})
});
}
function Pq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = K_e(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = q_e(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Pq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function J_e(e, t) {
+function Y_e(e, t) {
let n = {
rows: [],
flatRows: [],
@@ -56215,63 +56222,63 @@ function J_e(e, t) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function Y_e(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? q_e()(e)), e._rowModels.coreRowModel();
-}
function X_e(e) {
- return e.getCoreRowModel();
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? J_e()(e)), e._rowModels.coreRowModel();
}
function Z_e(e) {
- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
+ return e.getCoreRowModel();
}
function Q_e(e) {
- return e.getFilteredRowModel();
+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
function $_e(e) {
- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
+ return e.getFilteredRowModel();
}
function eve(e) {
- return e.getGroupedRowModel();
+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
function tve(e) {
- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
+ return e.getGroupedRowModel();
}
function nve(e) {
- return e.getSortedRowModel();
+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
function rve(e) {
- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
+ return e.getSortedRowModel();
}
function ive(e) {
- return e.getExpandedRowModel();
+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
function ave(e) {
- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+ return e.getExpandedRowModel();
}
function ove(e) {
+ return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+}
+function sve(e) {
return e.getPaginatedRowModel();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var sve = { constructTableAPIs: (e) => {
+var cve = { constructTableAPIs: (e) => {
bq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => Y_e(e) },
- table_getPreFilteredRowModel: { fn: () => X_e(e) },
- table_getFilteredRowModel: { fn: () => Z_e(e) },
- table_getPreGroupedRowModel: { fn: () => Q_e(e) },
- table_getGroupedRowModel: { fn: () => $_e(e) },
- table_getPreSortedRowModel: { fn: () => eve(e) },
- table_getSortedRowModel: { fn: () => tve(e) },
- table_getPreExpandedRowModel: { fn: () => nve(e) },
- table_getExpandedRowModel: { fn: () => rve(e) },
- table_getPrePaginatedRowModel: { fn: () => ive(e) },
- table_getPaginatedRowModel: { fn: () => ave(e) },
- table_getRowModel: { fn: () => ove(e) }
+ table_getCoreRowModel: { fn: () => X_e(e) },
+ table_getPreFilteredRowModel: { fn: () => Z_e(e) },
+ table_getFilteredRowModel: { fn: () => Q_e(e) },
+ table_getPreGroupedRowModel: { fn: () => $_e(e) },
+ table_getGroupedRowModel: { fn: () => eve(e) },
+ table_getPreSortedRowModel: { fn: () => tve(e) },
+ table_getSortedRowModel: { fn: () => nve(e) },
+ table_getPreExpandedRowModel: { fn: () => rve(e) },
+ table_getExpandedRowModel: { fn: () => ive(e) },
+ table_getPrePaginatedRowModel: { fn: () => ave(e) },
+ table_getPaginatedRowModel: { fn: () => ove(e) },
+ table_getRowModel: { fn: () => sve(e) }
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function cve(e) {
+function lve(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -56279,8 +56286,8 @@ function cve(e) {
}
return e._cellPrototype;
}
-function lve(e, t, n) {
- let r = cve(n), i = Object.create(r);
+function uve(e, t, n) {
+ let r = lve(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -56288,40 +56295,40 @@ function lve(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function uve(e) {
+function dve(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function dve(e) {
+function fve(e) {
let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Eq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function fve(e, t) {
+function pve(e, t) {
if (dq(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function pve(e, t) {
+function mve(e, t) {
if (dq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function mve(e, t) {
+function hve(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function hve(e) {
- return d_e(e.subRows, (e) => e.subRows);
-}
function gve(e) {
+ return f_e(e.subRows, (e) => e.subRows);
+}
+function _ve(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function _ve(e) {
+function vve(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function vve(e) {
+function yve(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -56330,17 +56337,17 @@ function vve(e) {
}
return t.reverse();
}
-function yve(e) {
+function bve(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = lve(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = uve(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function bve(e) {
+function xve(e) {
let t = uq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -56348,53 +56355,53 @@ function bve(e) {
}
return t;
}
-function xve(e, t, n, r) {
+function Sve(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function Sve(e, t, n) {
+function Cve(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var Cve = {
+var wve = {
assignRowPrototype: (e, t) => {
xq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => uve(e) },
+ row_getDisplayIndex: { fn: (e) => dve(e) },
row_getAllCellsByColumnId: {
- fn: (e) => bve(e),
+ fn: (e) => xve(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => yve(e),
+ fn: (e) => bve(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => hve(e),
+ fn: (e) => gve(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => _ve(e) },
- row_getParentRows: { fn: (e) => vve(e) },
- row_getUniqueValues: { fn: (e, t) => pve(e, t) },
- row_getValue: { fn: (e, t) => fve(e, t) },
- row_renderValue: { fn: (e, t) => mve(e, t) }
+ row_getParentRow: { fn: (e) => vve(e) },
+ row_getParentRows: { fn: (e) => yve(e) },
+ row_getUniqueValues: { fn: (e, t) => mve(e, t) },
+ row_getValue: { fn: (e, t) => pve(e, t) },
+ row_renderValue: { fn: (e, t) => hve(e, t) }
});
},
constructTableAPIs: (e) => {
bq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => dve(e),
+ fn: () => fve(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => xve(t, e, n, r) },
- table_getRow: { fn: (t, n) => Sve(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => Sve(t, e, n, r) },
+ table_getRow: { fn: (t, n) => Cve(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => gve(e),
+ fn: () => _ve(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -56418,7 +56425,7 @@ function Iq(e, t, n = (e, t) => e === t) {
Fq(e, t, n), e._reactivity.commit?.();
});
}
-function wve(e) {
+function Tve(e) {
let t = cq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
@@ -56430,7 +56437,7 @@ function wve(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function Tve(e, t) {
+function Eve(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -56463,20 +56470,20 @@ function Tve(e, t) {
});
}
function Lq(e, t, n) {
- let r = Tve(e, sq(t, e.options));
+ let r = Eve(e, sq(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Iq(e, r.state ?? null);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var Eve = {
- coreCellsFeature: g_e,
- coreColumnsFeature: M_e,
- coreHeadersFeature: W_e,
- coreRowModelsFeature: sve,
- coreRowsFeature: Cve,
+var Dve = {
+ coreCellsFeature: __e,
+ coreColumnsFeature: N_e,
+ coreHeadersFeature: G_e,
+ coreRowModelsFeature: cve,
+ coreRowsFeature: wve,
coreTablesFeature: { constructTableAPIs: (e) => {
bq("coreTablesFeature", e, {
- table_reset: { fn: () => wve(e) },
+ table_reset: { fn: () => Tve(e) },
table_setOptions: { fn: (t) => Lq(e, t) }
});
} }
@@ -56504,17 +56511,17 @@ function zq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function Dve(e, t = {}) {
+function Ove(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
}), cq(t);
}
-function Ove(e) {
+function kve(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...Eve,
+ ...Dve,
..._
},
_headerGroupInstanceInitFns: [],
@@ -56552,7 +56559,7 @@ function Ove(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = Dve(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = Ove(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -56567,7 +56574,7 @@ function Ove(e) {
return r;
}, { debugName: `table/atoms/${n}` });
}
- Fq(v), v.store = i_e(t.createReadonlyAtom(() => {
+ Fq(v), v.store = a_e(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -56586,7 +56593,7 @@ function Ove(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function kve() {
+function Ave() {
return uq();
}
function Bq(e, t) {
@@ -56608,12 +56615,12 @@ function Vq(e) {
function Hq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function Ave(e) {
+function jve(e) {
return (t) => {
Bq(e, t.target.checked);
};
}
-function jve(e) {
+function Mve(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
@@ -56629,16 +56636,16 @@ function Uq(e) {
}
return t;
}
-function Mve(e) {
+function Nve(e) {
return e.getAllFlatColumns().filter((e) => Sq(e, "getIsVisible", Vq));
}
-function Nve(e) {
+function Pve(e) {
return e.getAllLeafColumns().filter((e) => Sq(e, "getIsVisible", Vq));
}
function Wq(e, t) {
gq(e, "columnVisibility", t);
}
-function Pve(e, t) {
+function Fve(e, t) {
Wq(e, t ? uq() : Object.assign(uq(), cq(e.initialState.columnVisibility ?? {})));
}
function Gq(e, t) {
@@ -56653,10 +56660,10 @@ function Gq(e, t) {
function Kq(e) {
return !e.getAllLeafColumns().some((e) => !Sq(e, "getIsVisible", Vq));
}
-function Fve(e) {
+function Ive(e) {
return e.getAllLeafColumns().some((e) => Sq(e, "getIsVisible", Vq));
}
-function Ive(e) {
+function Lve(e) {
return (t) => {
Gq(e, t.target.checked);
};
@@ -56665,7 +56672,7 @@ function Ive(e) {
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var qq = {
getInitialState: (e) => ({
- columnVisibility: kve(),
+ columnVisibility: Ave(),
...e
}),
getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: fq("columnVisibility", e) }),
@@ -56680,14 +56687,14 @@ var qq = {
]
},
column_getCanHide: { fn: (e) => Hq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => Ave(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => jve(e) },
column_toggleVisibility: { fn: (e, t) => Bq(e, t) }
});
},
assignRowPrototype: (e, t) => {
xq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => jve(e),
+ fn: (e) => Mve(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -56703,7 +56710,7 @@ var qq = {
constructTableAPIs: (e) => {
bq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => Mve(e),
+ fn: () => Nve(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -56713,7 +56720,7 @@ var qq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => Nve(e),
+ fn: () => Pve(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -56723,11 +56730,11 @@ var qq = {
]
},
table_setColumnVisibility: { fn: (t) => Wq(e, t) },
- table_resetColumnVisibility: { fn: (t) => Pve(e, t) },
+ table_resetColumnVisibility: { fn: (t) => Fve(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => Gq(e, t) },
table_getIsAllColumnsVisible: { fn: () => Kq(e) },
- table_getIsSomeColumnsVisible: { fn: () => Fve(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => Ive(e) }
+ table_getIsSomeColumnsVisible: { fn: () => Ive(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => Lve(e) }
});
}
}, Jq = 0, Yq = 10;
@@ -56737,7 +56744,7 @@ function Xq() {
pageSize: Yq
};
}
-function Lve(e) {
+function Rve(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? Jq) === Jq) return;
$q(e, !0);
@@ -56746,7 +56753,7 @@ function Lve(e) {
function Zq(e, t) {
gq(e, "pagination", t);
}
-function Rve(e, t) {
+function zve(e, t) {
Zq(e, t ? Xq() : cq(e.initialState.pagination ?? Xq()));
}
function Qq(e, t) {
@@ -56761,7 +56768,7 @@ function Qq(e, t) {
function $q(e, t) {
Qq(e, t ? Jq : e.initialState.pagination?.pageIndex ?? Jq);
}
-function zve(e, t) {
+function Bve(e, t) {
eJ(e, t ? Yq : e.initialState.pagination?.pageSize ?? Yq);
}
function eJ(e, t) {
@@ -56774,31 +56781,31 @@ function eJ(e, t) {
};
});
}
-function Bve(e) {
+function Vve(e) {
let t = tJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function Vve(e) {
+function Hve(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function Hve(e) {
+function Uve(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Jq, n = tJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function Uve(e) {
+function Wve(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Jq, n = tJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function Wve(e) {
+function Gve(e) {
return Qq(e, (e) => e - 1);
}
-function Gve(e) {
+function Kve(e) {
return Qq(e, (e) => e + 1);
}
-function Kve(e) {
+function qve(e) {
return Qq(e, 0);
}
-function qve(e) {
+function Jve(e) {
let t = tJ(e);
if (!(!Number.isFinite(t) || t <= 0)) return Qq(e, t - 1);
}
@@ -56824,35 +56831,35 @@ var rJ = {
getDefaultTableOptions: (e) => ({ onPaginationChange: fq("pagination", e) }),
constructTableAPIs: (e) => {
bq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => Lve(e) },
+ table_autoResetPageIndex: { fn: () => Rve(e) },
table_setPagination: { fn: (t) => Zq(e, t) },
- table_resetPagination: { fn: (t) => Rve(e, t) },
+ table_resetPagination: { fn: (t) => zve(e, t) },
table_setPageIndex: { fn: (t) => Qq(e, t) },
table_resetPageIndex: { fn: (t) => $q(e, t) },
table_setPageSize: { fn: (t) => eJ(e, t) },
table_getPageCount: { fn: () => tJ(e) },
- table_resetPageSize: { fn: (t) => zve(e, t) },
- table_getPageOptions: { fn: () => Bve(e) },
- table_getCanPreviousPage: { fn: () => Vve(e) },
- table_getCanNextPage: { fn: () => Hve(e) },
- table_getCanLastPage: { fn: () => Uve(e) },
- table_previousPage: { fn: () => Wve(e) },
- table_nextPage: { fn: () => Gve(e) },
- table_firstPage: { fn: () => Kve(e) },
- table_lastPage: { fn: () => qve(e) },
+ table_resetPageSize: { fn: (t) => Bve(e, t) },
+ table_getPageOptions: { fn: () => Vve(e) },
+ table_getCanPreviousPage: { fn: () => Hve(e) },
+ table_getCanNextPage: { fn: () => Uve(e) },
+ table_getCanLastPage: { fn: () => Wve(e) },
+ table_previousPage: { fn: () => Gve(e) },
+ table_nextPage: { fn: () => Kve(e) },
+ table_firstPage: { fn: () => qve(e) },
+ table_lastPage: { fn: () => Jve(e) },
table_getRowCount: { fn: () => nJ(e) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function Jve() {
+function Yve() {
return uq();
}
function iJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function Yve(e, t) {
+function Xve(e, t) {
e._lastSelectedRowId = null, iJ(e, t ? uq() : Object.assign(uq(), cq(e.initialState.rowSelection ?? {})));
}
function aJ(e, t, n) {
@@ -56880,10 +56887,10 @@ function oJ(e, t, n) {
}), a;
});
}
-function Xve(e) {
+function Zve(e) {
return e.getCoreRowModel();
}
-function Zve(e) {
+function Qve(e) {
let t = e.getCoreRowModel();
return Sq(e, "getIsSomeRowsSelected", uJ) ? xJ(t, e) : {
rows: [],
@@ -56891,7 +56898,7 @@ function Zve(e) {
rowsById: uq()
};
}
-function Qve(e) {
+function $ve(e) {
let t = e.getFilteredRowModel();
return Sq(e, "getIsSomeRowsSelected", uJ) ? xJ(t, e) : {
rows: [],
@@ -56899,7 +56906,7 @@ function Qve(e) {
rowsById: uq()
};
}
-function $ve(e) {
+function eye(e) {
let t = e.getSortedRowModel();
return Sq(e, "getIsSomeRowsSelected", uJ) ? xJ(t, e) : {
rows: [],
@@ -56930,15 +56937,15 @@ function lJ(e) {
function uJ(e) {
return Sq(e, "getSelectedRowIds", sJ).length > 0;
}
-function eye(e) {
+function tye(e) {
return e.getPaginatedRowModel().flatRows.filter((e) => mJ(e)).some((e) => fJ(e) || Sq(e, "getIsSomeSelected", pJ));
}
-function tye(e) {
+function nye(e) {
return (t) => {
aJ(e, t.target.checked);
};
}
-function nye(e) {
+function rye(e) {
return (t) => {
oJ(e, t.target.checked);
};
@@ -56957,7 +56964,7 @@ function fJ(e) {
function pJ(e) {
return CJ(e) === "some";
}
-function rye(e) {
+function iye(e) {
return CJ(e) === "all";
}
function mJ(e) {
@@ -56972,15 +56979,15 @@ function gJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function iye(e, t) {
+function aye(e, t) {
let n = mJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- (!(a.options.enableRowRangeSelection !== !1 && s !== null && gJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !aye(e, s, o, t)) && dJ(e, o, t), a._lastSelectedRowId = e.id;
+ (!(a.options.enableRowRangeSelection !== !1 && s !== null && gJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !oye(e, s, o, t)) && dJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function aye(e, t, n, r) {
+function oye(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
@@ -57076,7 +57083,7 @@ var wJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: Jve(),
+ rowSelection: Yve(),
...e
}),
getDefaultTableOptions: (e) => ({
@@ -57103,7 +57110,7 @@ var wJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => rye(e),
+ fn: (e) => iye(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -57113,26 +57120,26 @@ var wJ = {
row_getCanSelect: { fn: (e) => mJ(e) },
row_getCanSelectSubRows: { fn: (e) => hJ(e) },
row_getCanMultiSelect: { fn: (e) => gJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => iye(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => aye(e, t) }
});
},
constructTableAPIs: (e) => {
bq("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => iJ(e, t) },
- table_resetRowSelection: { fn: (t) => Yve(e, t) },
+ table_resetRowSelection: { fn: (t) => Xve(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => aJ(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => oJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => Xve(e) },
+ table_getPreSelectedRowModel: { fn: () => Zve(e) },
table_getSelectedRowModel: {
- fn: () => Zve(e),
+ fn: () => Qve(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => Qve(e),
+ fn: () => $ve(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => $ve(e),
+ fn: () => eye(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -57162,33 +57169,33 @@ var wJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => eye(e),
+ fn: () => tye(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => tye(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => nye(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => nye(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => rye(e) }
});
}
-}, oye = /([0-9]+)/gm;
+}, sye = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function sye(e) {
+function cye(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var TJ = /* @__PURE__ */ sye({ sort: (e, t) => cye(e, t) });
-function cye(e, t) {
+var TJ = /* @__PURE__ */ cye({ sort: (e, t) => lye(e, t) });
+function lye(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function lye() {
+function uye() {
return [];
}
function EJ(e, t) {
@@ -57197,7 +57204,7 @@ function EJ(e, t) {
function DJ(e, t) {
EJ(e, t ? [] : cq(e.initialState.sorting ?? []));
}
-function uye(e) {
+function dye(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && DJ(e);
}
function OJ(e) {
@@ -57208,7 +57215,7 @@ function OJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(oye).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(sye).length > 1)) {
r = "alphanumeric";
break;
}
@@ -57229,7 +57236,7 @@ function kJ(e) {
}
function AJ(e) {
let t = e.table._rowModelFns.sortFns;
- return u_e(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? OJ(e) : t?.[e.columnDef.sortFn] ?? TJ;
+ return d_e(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? OJ(e) : t?.[e.columnDef.sortFn] ?? TJ;
}
function jJ(e, t, n) {
let r = NJ(e, n && FJ(e)), i = t !== void 0;
@@ -57267,13 +57274,13 @@ function IJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function dye(e) {
+function fye(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function fye(e) {
+function pye(e) {
EJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function pye(e) {
+function mye(e) {
let t = PJ(e);
return (n) => {
t && jJ(e, void 0, FJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -57284,7 +57291,7 @@ function pye(e) {
var LJ = {
getInitialState(e) {
return {
- sorting: lye(),
+ sorting: uye(),
...e
};
},
@@ -57312,34 +57319,34 @@ var LJ = {
column_getCanSort: { fn: (e) => PJ(e) },
column_getCanMultiSort: { fn: (e) => FJ(e) },
column_getIsSorted: { fn: (e) => IJ(e) },
- column_getSortIndex: { fn: (e) => dye(e) },
- column_clearSorting: { fn: (e) => fye(e) },
- column_getToggleSortingHandler: { fn: (e) => pye(e) }
+ column_getSortIndex: { fn: (e) => fye(e) },
+ column_clearSorting: { fn: (e) => pye(e) },
+ column_getToggleSortingHandler: { fn: (e) => mye(e) }
});
},
constructTableAPIs(e) {
bq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => uye(e) },
+ table_autoResetSorting: { fn: () => dye(e) },
table_setSorting: { fn: (t) => EJ(e, t) },
table_resetSorting: { fn: (t) => DJ(e, t) }
});
}
-}, mye = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+}, hye = typeof window > "u" ? P.useEffect : P.useLayoutEffect;
function RJ(e, t) {
- let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = Ove({
+ let [{ table: n, rootSource: r }] = (0, P.useState)(() => {
+ let t = kve({
...e,
features: {
- coreReactivityFeature: s_e(),
+ coreReactivityFeature: c_e(),
...e.features
}
});
- return t.Subscribe = ((e) => r_e({
+ return t.Subscribe = ((e) => i_e({
...e,
source: e.source ?? t.store
})), t.FlexRender = LK, {
table: t,
- rootSource: o_e(t.store, nq)
+ rootSource: s_e(t.store, nq)
};
}), i = n;
Lq(i, (t) => ({
@@ -57347,9 +57354,9 @@ function RJ(e, t) {
...e
}), { syncExternalState: !1 });
let a = i.options.state, o = r.get(), s = oq(r, t, { compare: nq });
- return mye(() => {
+ return hye(() => {
r.markCommitted(o), Iq(i, a ?? null, nq);
- }), (0, F.useMemo)(() => ({
+ }), (0, P.useMemo)(() => ({
...n,
options: e,
state: s
@@ -57362,18 +57369,18 @@ function RJ(e, t) {
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
function zJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
- className: uF("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(Rde, {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
+ className: lF("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, F.jsx)(Bde, {
ref: r,
...i,
- className: uF("bui-table", e === "sm" && "bui-table-sm", t)
+ className: lF("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/catalog-grid/catalog-table-columns.ts
-var BJ = "peach.catalog-column-widths.v1", VJ = "peach.catalog-column-visibility.v1", hye = {
+var BJ = "peach.catalog-column-widths.v1", VJ = "peach.catalog-column-visibility.v1", gye = {
select: {
width: 48,
min: 48,
@@ -57439,13 +57446,13 @@ var BJ = "peach.catalog-column-widths.v1", VJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, gye = {
+}, _ye = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, _ye = {
+}, vye = {
select: "选择",
name: "作品",
dur: "时长",
@@ -57475,11 +57482,11 @@ var BJ = "peach.catalog-column-widths.v1", VJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: _ye[e],
- ...hye[e],
+ label: vye[e],
+ ...gye[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: gye[e] !== !1
+ visible: _ye[e] !== !1
}));
function UJ(e) {
try {
@@ -57489,7 +57496,7 @@ function UJ(e) {
return {};
}
}
-function vye() {
+function yye() {
let e = UJ(BJ), t = UJ(VJ);
return HJ.filter((e) => e.id !== "select" && (e.required || (typeof t[e.id] == "boolean" ? t[e.id] === !0 : e.visible))).map((t) => {
let n = e[t.id], r = typeof n == "number" && Number.isFinite(n) && !(t.flex && n === t.width);
@@ -57511,23 +57518,23 @@ function GJ() {
return !1;
}
}
-function yye(e) {
+function bye(e) {
try {
e ? localStorage.setItem(WJ, "1") : localStorage.removeItem(WJ);
} catch {}
}
-var bye = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var xye = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
//#endregion
//#region src/catalog-content-skeleton.ts
function KJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><b class=\"skeleton-sheen\"></b><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function xye(e) {
- let t = vye(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${B(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${KJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${B(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (GJ() ? bye : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
+function Sye(e) {
+ let t = yye(), n = t.some((e) => e.width === null), r = t.reduce((e, t) => e + (t.width ?? t.min), 0), i = t.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = t.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${t.map((e) => `<td>${KJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}"><div data-list-skeleton aria-hidden="true"><div data-list-skeleton-tools><i class="skeleton-sheen"></i></div>` + (GJ() ? xye : "") + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div></div>`;
}
function qJ(e, t) {
- return SM() === "list" ? xye(e) : Fs(e, {
+ return wM() === "list" ? Sye(e) : Ls(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -57536,11 +57543,11 @@ function qJ(e, t) {
//#endregion
//#region src/react/components/data-table-frame.tsx
function JJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
- let i = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+ let i = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
- go(e), sc(e);
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ vo(e), lc(e);
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: i,
"data-board-data-table": !0,
"data-resizable-table": r ? "" : void 0,
@@ -57551,7 +57558,7 @@ function JJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let r = t.closest("[role=\"row\"][data-key]");
r && nG(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(Ide, {
+ children: r ? /* @__PURE__ */ (0, F.jsx)(Rde, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -57562,17 +57569,17 @@ function JJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
//#endregion
//#region src/react/components/select.tsx
function YJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(TU, {
+ if (e == null) return /* @__PURE__ */ (0, F.jsx)(wU, {
...r,
size: n,
renderValue: t
});
- let i = n === "sm" ? "me-0.5" : "me-0.75", a = (n) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let i = n === "sm" ? "me-0.5" : "me-0.75", a = (n) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, I.jsx)(TU, {
+ return /* @__PURE__ */ (0, F.jsx)(wU, {
...r,
size: n,
renderValue: a
@@ -57581,25 +57588,25 @@ function YJ({ prefix: e, renderValue: t, size: n, ...r }) {
//#endregion
//#region src/react/components/table-pagination.tsx
function XJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
- return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
+ return t <= 1 ? null : /* @__PURE__ */ (0, F.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
className: "inline-grid min-w-0 max-w-full items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
disabled: e <= 1,
onClick: () => n(e - 1),
children: "上一页"
}),
- /* @__PURE__ */ (0, I.jsx)("ul", {
+ /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-wrap items-center justify-center gap-1",
- children: Jn(e, t).map((t, r) => /* @__PURE__ */ (0, I.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: Xn(e, t).map((t, r) => /* @__PURE__ */ (0, F.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, F.jsx)(q, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -57608,7 +57615,7 @@ function XJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -57622,9 +57629,9 @@ function XJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
//#region src/react/components/table-controls.tsx
function ZJ({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(YJ, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(YJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -57634,18 +57641,18 @@ function ZJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(EU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(TU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(TU, {
id: e.id,
children: e.label
}, e.id))]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: zU,
+ leadingIcon: RU,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -57664,15 +57671,15 @@ function QJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
100
] }) {
let s = Math.max(1, Math.ceil(t / n.pageSize)), c = Math.min(n.pageIndex, s - 1), l = t ? c * n.pageSize + 1 : 0, u = Math.min((c + 1) * n.pageSize, t);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-table-pagination": !0,
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "mr-auto text-body-2-regular tabular-nums text-text-secondary",
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(YJ, {
+ children: [/* @__PURE__ */ (0, F.jsx)(YJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -57682,11 +57689,11 @@ function QJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ children: o.map((e) => /* @__PURE__ */ (0, F.jsx)(TU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(XJ, {
+ }), /* @__PURE__ */ (0, F.jsx)(XJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -57713,11 +57720,11 @@ function eY(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Sye(e, t) {
+function Cye(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
- })), [r, i] = (0, F.useState)(() => {
+ })), [r, i] = (0, P.useState)(() => {
let r = $J(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
@@ -57745,11 +57752,11 @@ function Sye(e, t) {
}
};
}
-function Cye(e, t, n, r = {}) {
+function wye(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i($J(e)));
+ }), [a, o] = (0, P.useState)(() => i($J(e)));
return {
visibility: a,
change: (t) => {
@@ -57759,12 +57766,12 @@ function Cye(e, t, n, r = {}) {
};
}
function tY(e, t, n) {
- let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
+ let r = (0, P.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = Sye(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Cye(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = Cye(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = wye(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -57784,7 +57791,7 @@ function tY(e, t, n) {
}
//#endregion
//#region src/react/catalog-grid/catalog-column-widths.ts
-function wye() {
+function Tye() {
return tY("catalog", HJ, {
widths: BJ,
visibility: VJ
@@ -57792,10 +57799,10 @@ function wye() {
}
//#endregion
//#region src/react/components/rating-stars.tsx
-var nY = Rz("star");
+var nY = Lz("star");
function rY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-rating-stars": "",
"aria-hidden": !t || void 0,
children: [
@@ -57804,7 +57811,7 @@ function rY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
3,
4,
5
- ].map((e) => t ? /* @__PURE__ */ (0, I.jsx)("button", {
+ ].map((e) => t ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-rate": e,
"data-on": String(e <= a),
@@ -57816,16 +57823,16 @@ function rY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: vs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(nY, {})
- }, e) : /* @__PURE__ */ (0, I.jsx)("span", {
+ children: n === e ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: bs("正在保存评分") } }) : /* @__PURE__ */ (0, F.jsx)(nY, {})
+ }, e) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
- children: /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(nY, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(nY, {}), /* @__PURE__ */ (0, F.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(nY, {})
+ children: /* @__PURE__ */ (0, F.jsx)(nY, {})
})]
})
}, e))
@@ -57833,27 +57840,27 @@ function rY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-table-controls.tsx
-function Tye({ item: e, actions: t }) {
- let { rating: n } = e, r = DH(), i = (0, F.useRef)(0), a = KM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- UM(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
+function Eye({ item: e, actions: t }) {
+ let { rating: n } = e, r = EH(), i = (0, P.useRef)(0), a = GM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ HM(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
}, c = (n) => {
i.current = n, r.run(String(n), (r) => t.rate(e, n, s, r), () => {});
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-catalog-rating": "",
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(rY, {
+ children: [/* @__PURE__ */ (0, F.jsx)(rY, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }), r.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": "立即重试评分",
@@ -57881,21 +57888,21 @@ function iY(e) {
//#endregion
//#region src/react/components/selection-actions.tsx
function aY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
- className: uF("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
- children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, I.jsx)(q, {
+ className: lF("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
+ children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
disabled: e.disabled,
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(EH, {
+ }, e.label) : /* @__PURE__ */ (0, F.jsx)(TH, {
size: "small",
href: e.href,
- trailingIcon: uz,
+ trailingIcon: lz,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -57906,25 +57913,25 @@ function aY({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
//#endregion
//#region src/react/components/selection-popover.tsx
function oY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(aY, {
+ let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1), d = /* @__PURE__ */ (0, F.jsx)(aY, {
actions: a,
layout: o,
onNavigate: () => u(!1)
- }, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
+ }, "actions"), f = /* @__PURE__ */ (0, F.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, F.jsx)(nV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
onChange: (t) => i(e.id, t),
children: e.label
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }, e.id)) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: s
})
}, "options");
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(q, {
ref: c,
variant: "secondary",
leadingIcon: n,
@@ -57933,14 +57940,14 @@ function oY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ }), /* @__PURE__ */ (0, F.jsx)(nR, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: uF(XB, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(AH, {
+ className: lF(YB, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, F.jsx)(kH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -57952,11 +57959,11 @@ function oY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
//#region src/react/components/table-column-controls.tsx
function sY({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(oY, {
+ children: [/* @__PURE__ */ (0, F.jsx)(oY, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -57976,7 +57983,7 @@ function sY({ preferences: e, label: t = "表格" }) {
label: "恢复默认显示",
onPress: () => e.change({})
}]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "medium",
onClick: e.reset,
@@ -57986,7 +57993,7 @@ function sY({ preferences: e, label: t = "表格" }) {
}
function cY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(qde, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, F.jsx)(Yde, { "aria-label": `调整${n.label}列宽` }) : null;
}
//#endregion
//#region src/react/components/table-selection-header.tsx
@@ -57999,7 +58006,7 @@ function lY(e, t) {
}
function uY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = lY(e, n);
- return /* @__PURE__ */ (0, I.jsx)(rV, {
+ return /* @__PURE__ */ (0, F.jsx)(nV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -58013,12 +58020,12 @@ function uY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-list-page.tsx
-var Eye = zq({
+var Dye = zq({
rowSortingFeature: LJ,
rowSelectionFeature: wJ,
rowPaginationFeature: rJ,
columnVisibilityFeature: qq
-}), Dye = [
+}), Oye = [
{
id: "name",
label: "名称"
@@ -58056,21 +58063,21 @@ var Eye = zq({
label: "观看时间"
}
], dY = /* @__PURE__ */ new Map();
-function Oye(e) {
- let t = wye(), n = eG(), r = EM(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+function kye(e) {
+ let t = Tye(), n = eG(), r = OM(e.filters || {}, !1), [i] = (0, P.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
- }), [a, o] = (0, F.useState)(() => dY.get(i) || {
+ }), [a, o] = (0, P.useState)(() => dY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
pageSize: 20
}
}), { sorting: s, pagination: c } = a;
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
dY.set(i, a);
}, [i, a]);
- let l = c.pageIndex * c.pageSize, u = s[0], d = Nt({
+ let l = c.pageIndex * c.pageSize, u = s[0], d = Pt({
queryKey: [
"catalog-grid",
"table",
@@ -58080,7 +58087,7 @@ function Oye(e) {
c,
s
],
- placeholderData: Oe,
+ placeholderData: ke,
queryFn: async ({ signal: t }) => {
let n = {
limit: c.pageSize,
@@ -58092,16 +58099,16 @@ function Oye(e) {
total: 0
};
let i = new URLSearchParams(r);
- return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), V(`/api/items?${i}`, t);
+ return i.set("offset", String(l)), i.set("limit", String(n.limit)), i.delete("count"), n.sort && i.set("sort", n.sort), n.dir && i.set("dir", n.dir), B(`/api/items?${i}`, t);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : AK(f, e.layout.javImage), [h] = (0, F.useState)(GJ);
- (0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && yye(m.length > 0);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : AK(f, e.layout.javImage), [h] = (0, P.useState)(GJ);
+ (0, P.useEffect)(() => {
+ d.data && !d.isPlaceholderData && bye(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
m.length
- ]), (0, F.useLayoutEffect)(() => {
+ ]), (0, P.useLayoutEffect)(() => {
if (d.isFetching) return;
let t = !0;
return queueMicrotask(() => {
@@ -58113,7 +58120,7 @@ function Oye(e) {
d.data,
d.isFetching,
e.revision
- ]), (0, F.useEffect)(() => {
+ ]), (0, P.useEffect)(() => {
!d.data || d.isPlaceholderData || l < p || c.pageIndex === 0 || o((e) => ({
...e,
pagination: {
@@ -58129,18 +58136,18 @@ function Oye(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = RJ({
- features: Eye,
- columns: (0, F.useMemo)(() => {
+ features: Dye,
+ columns: (0, P.useMemo)(() => {
let t = Rq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(uY, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, F.jsx)(uY, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(rV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(nV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -58152,7 +58159,7 @@ function Oye(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(kye, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(Aye, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -58163,14 +58170,14 @@ function Oye(e) {
header: "标签",
cell: ({ row: t }) => {
let n = t.original, r = n.follow_tags || n.tags || [];
- return r.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ return r.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-tags": "",
"data-list-tags": "",
onClick: (t) => {
let n = t.target.closest("[data-tag]");
n && !e.selectMode && e.actions.toggleTag(n.dataset.tag || "");
},
- children: r.map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: r.map((t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-tag": "",
disabled: !!n.follow_item_id,
@@ -58189,7 +58196,7 @@ function Oye(e) {
id: "dur",
header: "时长",
enableSorting: !0,
- cell: ({ row: e }) => Dn(e.original.duration) || "—"
+ cell: ({ row: e }) => kn(e.original.duration) || "—"
}),
t.display({
id: "resolution",
@@ -58203,13 +58210,13 @@ function Oye(e) {
id: "size",
header: "体积",
enableSorting: !0,
- cell: ({ row: e }) => e.original.size == null ? "—" : kn(e.original.size)
+ cell: ({ row: e }) => e.original.size == null ? "—" : jn(e.original.size)
}),
t.accessor((e) => e.rating, {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Tye, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, F.jsx)(Eye, {
item: t.original,
actions: e.actions
})
@@ -58284,45 +58291,45 @@ function Oye(e) {
for (let t of f) !!n[String(t.id)] !== e.selected.has(t.id) && e.actions.toggleSelection(t.id, !1);
}
});
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-catalog-view-mode": "list",
"data-catalog-table": "",
"aria-busy": d.isFetching || void 0,
className: "flex min-w-0 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap justify-end gap-2",
role: "toolbar",
"aria-label": "作品列表工具栏",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(sY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(ZJ, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sY, { preferences: t }), /* @__PURE__ */ (0, F.jsx)(ZJ, {
label: "作品列表",
- options: Dye,
+ options: Oye,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
})
}),
- d.isPending ? h ? /* @__PURE__ */ (0, I.jsx)("i", {
+ d.isPending ? h ? /* @__PURE__ */ (0, F.jsx)("i", {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(jK, {
+ }) : null : /* @__PURE__ */ (0, F.jsx)(jK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(d.error),
+ d.isError ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(JJ, {
+ /* @__PURE__ */ (0, F.jsx)(JJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(zJ, {
+ children: /* @__PURE__ */ (0, F.jsxs)(zJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -58333,47 +58340,47 @@ function Oye(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(GR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(KR, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(WR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)(GR, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
- children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: ({ sortDirection: n }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [IK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [IK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(qB, {})
+ children: /* @__PURE__ */ (0, F.jsx)(KB, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(cY, {
+ }), /* @__PURE__ */ (0, F.jsx)(cY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(KR, {
+ }, e.id)), /* @__PURE__ */ (0, F.jsx)(GR, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(YR, {
+ })] }), /* @__PURE__ */ (0, F.jsx)(JR, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(QR, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, F.jsxs)(ZR, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(ez, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: KJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(ez, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(QR, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, F.jsx)($R, { children: /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: KJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, F.jsx)($R, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, F.jsxs)(ZR, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(ez, { children: IK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(ez, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)($R, { children: IK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, F.jsx)($R, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(QJ, {
+ d.data ? /* @__PURE__ */ (0, F.jsx)(QJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -58384,15 +58391,15 @@ function Oye(e) {
]
});
}
-function kye({ item: e, props: t, disabled: n }) {
- let r = ro(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品", { avatar: l, who: u } = fG(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = eG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
+function Aye({ item: e, props: t, disabled: n }) {
+ let r = ao(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品", { avatar: l, who: u } = fG(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = eG({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
}), g = (n) => {
t.selectMode ? t.actions.toggleSelection(e.id, n.shiftKey) : (t.filters?.state === "trash" ? t.actions.openResource : t.actions.open)(e, n.currentTarget);
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-list-identity": "",
onClick: (e) => {
if (t.selectMode) return;
@@ -58400,46 +58407,46 @@ function kye({ item: e, props: t, disabled: n }) {
r ? t.actions.openEntity(r.dataset.entityKind || "", r.dataset.entityName || "") : n.closest("[data-open-unowned]") && t.actions.openUnowned();
},
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-list-open": "",
disabled: n,
tabIndex: -1,
"aria-hidden": "true",
onClick: g,
- children: /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(PW, {
+ r.html ? /* @__PURE__ */ (0, F.jsx)(PW, {
artwork: r,
- relayout: (e) => yl(e, "small")
- }) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
- i && !a ? /* @__PURE__ */ (0, I.jsx)("span", {
+ relayout: (e) => xl(e, "small")
+ }) : /* @__PURE__ */ (0, F.jsx)("span", { children: "无预览" }),
+ i && !a ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
children: `${Number(i.count).toLocaleString()} 卷`
}) : null,
- a ? /* @__PURE__ */ (0, I.jsx)("span", {
+ a ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
title: a.editions.join(" · "),
children: `${Number(a.count).toLocaleString()} 个版本`
}) : null,
- d > 0 ? /* @__PURE__ */ (0, I.jsx)("span", {
+ d > 0 ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-progress": "",
role: "progressbar",
"aria-label": "观看进度",
"aria-valuemin": 0,
"aria-valuemax": 100,
"aria-valuenow": Math.round(d * 100),
- children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${(d * 100).toFixed(1)}%` } })
+ children: /* @__PURE__ */ (0, F.jsx)("i", { style: { "--media-fill": `${(d * 100).toFixed(1)}%` } })
}) : null,
- e.watch_later || m.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ e.watch_later || m.length ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-status": "",
- children: [e.watch_later ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [e.watch_later ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
children: h("bookmark")
- }) : null, m.length ? /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : null, m.length ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-status": "flagged",
title: `已标记:${m.join("、")}`,
"aria-label": `已标记:${m.join("、")}`,
@@ -58450,9 +58457,9 @@ function kye({ item: e, props: t, disabled: n }) {
})
}),
l,
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-text": "",
- children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-list-name": "",
disabled: n,
@@ -58460,12 +58467,12 @@ function kye({ item: e, props: t, disabled: n }) {
"aria-label": `打开 ${s}`,
onClick: g,
dangerouslySetInnerHTML: { __html: c }
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-byline": "",
- children: [p?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [p?.name ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(QH, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(ZH, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -58475,26 +58482,26 @@ function kye({ item: e, props: t, disabled: n }) {
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
function fY(e) {
- let t = TM();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(jye, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${EM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, I.jsx)(Oye, { ...e }, n) : /* @__PURE__ */ (0, I.jsx)(Mye, { ...e }, n);
+ let t = DM();
+ if (e.mode === "items") return /* @__PURE__ */ (0, F.jsx)(Mye, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${OM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return t === "list" && !e.wall ? /* @__PURE__ */ (0, F.jsx)(kye, { ...e }, n) : /* @__PURE__ */ (0, F.jsx)(Nye, { ...e }, n);
}
-function Aye({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function jye({ name: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
function pY({ children: e, selectMode: t }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
- return (0, F.useLayoutEffect)(() => {
+ let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1);
+ return (0, P.useLayoutEffect)(() => {
let e = n.current;
if (!e) return;
let t = () => i(getComputedStyle(e).gridTemplateColumns.split(" ").filter(Boolean).length === 1), r = new ResizeObserver(t);
return r.observe(e), t(), () => r.disconnect();
- }, []), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, []), /* @__PURE__ */ (0, F.jsx)("div", {
ref: n,
"data-media-grid": "",
"data-catalog-view-mode": "cards",
@@ -58503,8 +58510,8 @@ function pY({ children: e, selectMode: t }) {
children: e
});
}
-function jye(e) {
- let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(bG, {
+function Mye(e) {
+ let { actions: t } = e, n = (0, P.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, F.jsx)(bG, {
item: i,
variant: r,
layout: e.layout,
@@ -58515,23 +58522,23 @@ function jye(e) {
actions: t,
onOpen: n
}, i.id));
- return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ return r === "next" ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(pY, {
+ }) : /* @__PURE__ */ (0, F.jsx)(pY, {
selectMode: e.selectMode,
children: i
});
}
-function Mye(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? NM(e) : MM(e), [s] = (0, F.useState)(() => e.wall ? FM(o.queryKey) : void 0), c = s || (i && e.initial ? {
+function Nye(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? FM(e) : PM(e), [s] = (0, P.useState)(() => e.wall ? LM(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0), l = Ft({
+ } : void 0), l = It({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -58541,11 +58548,11 @@ function Mye(e) {
getNextPageParam: o.getNextPageParam,
initialData: c,
refetchOnMount: i && s ? "always" : !1
- }), u = (0, F.useRef)(!1);
- (0, F.useEffect)(() => {
+ }), u = (0, P.useRef)(!1);
+ (0, P.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, F.useMemo)(() => zM(l.data?.pages || [], {
+ let { tiles: d, pageStarts: f } = (0, P.useMemo)(() => VM(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -58555,8 +58562,8 @@ function Mye(e) {
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || oK(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && ZG(e.item) ? [e.item] : []), v = a ? [] : AK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = MW(l.isPending, e.skeletonHtml), b = (0, F.useRef)(null), x = Nye(e, l.data, d, f, b);
- (0, F.useLayoutEffect)(() => {
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || oK(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && ZG(e.item) ? [e.item] : []), v = a ? [] : AK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = MW(l.isPending, e.skeletonHtml), b = (0, P.useRef)(null), x = Pye(e, l.data, d, f, b);
+ (0, P.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
return queueMicrotask(() => {
@@ -58570,7 +58577,7 @@ function Mye(e) {
p
]);
let S = !l.isPending && !l.data;
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
if (!S) return;
let t = !0;
return queueMicrotask(() => {
@@ -58579,15 +58586,15 @@ function Mye(e) {
t = !1;
};
}, [S]);
- let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
+ let C = (0, P.useCallback)((e, t) => n.open(e, t), [n]), w = (0, P.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, P.useCallback)((e) => n.openShort(e), [n]), E = (0, P.useCallback)(async () => {
let e = await l.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Fye, {
+ }, [l.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)(Iye, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(bG, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, F.jsx)(bG, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -58599,22 +58606,22 @@ function Mye(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: b,
"data-media-body": "",
"data-grid-reveal": y.fading ? "" : void 0,
children: [
!e.wall && y.layer,
- /* @__PURE__ */ (0, I.jsx)(jK, { assetIds: v }),
+ /* @__PURE__ */ (0, F.jsx)(jK, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, I.jsx)(SK, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${EM(e.filters || {}, !!e.excludeVertical)}`,
+ if (g && e.wall) return /* @__PURE__ */ (0, F.jsx)(SK, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${OM(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
busy: l.isFetchingNextPage,
loading: l.isPending || !l.data && l.isFetching,
- error: !l.data && !l.isPending ? en(l.error) : "",
+ error: !l.data && !l.isPending ? tn(l.error) : "",
retry: () => void l.refetch(),
emptyHtml: l.data && !_.length ? DK({
libraryEmpty: !!l.data.pages[0]?.libraryEmpty,
@@ -58631,8 +58638,8 @@ function Mye(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(l.error),
+ if (!l.data) return /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(l.error),
onRetry: () => void l.refetch()
});
if (!d.length) {
@@ -58640,20 +58647,20 @@ function Mye(e) {
trash: a,
libraryEmpty: !!l.data.pages[0]?.libraryEmpty
}) || "";
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-empty": "",
dangerouslySetInnerHTML: { __html: t }
});
}
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: HM(d, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(pY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Pye, {
+ children: zse(d, x).map((t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(pY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, F.jsx)(Fye, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), l.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(mY, {
+ }), l.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(mY, {
entity: i,
load: E,
enabled: () => e.canLoadMore?.() !== !1
@@ -58663,10 +58670,10 @@ function Mye(e) {
});
}
function mY({ entity: e, load: t, enabled: n, children: r }) {
- let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
+ let i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(!1), s = (0, P.useRef)(!1), [c, l] = (0, P.useState)({
busy: !1,
error: ""
- }), u = (0, F.useRef)({
+ }), u = (0, P.useRef)({
load: t,
enabled: n
});
@@ -58674,7 +58681,7 @@ function mY({ entity: e, load: t, enabled: n, children: r }) {
load: t,
enabled: n
};
- let d = (0, F.useCallback)(async (e) => {
+ let d = (0, P.useCallback)(async (e) => {
let t = i.current;
if (o.current || !t?.isConnected || !e && s.current || !u.current.enabled()) return;
o.current = !0, s.current = !1, l({
@@ -58689,17 +58696,17 @@ function mY({ entity: e, load: t, enabled: n, children: r }) {
} catch (e) {
s.current = !0, i.current && l({
busy: !1,
- error: en(e)
+ error: tn(e)
});
} finally {
o.current = !1;
}
let n = a.current;
!s.current && n && i.current?.isConnected && (n.unobserve(i.current), n.observe(i.current));
- }, []), f = (0, F.useCallback)((e) => {
+ }, []), f = (0, P.useCallback)((e) => {
i.current = e;
}, []);
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
let e = i.current;
if (!e) return;
let t = new IntersectionObserver((e) => {
@@ -58713,38 +58720,38 @@ function mY({ entity: e, load: t, enabled: n, children: r }) {
"aria-busy": !0,
"aria-disabled": !0
} : {};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)("button", {
ref: f,
type: "button",
"data-entity-more": "",
...p,
onClick: () => void d(!0),
children: r ?? "载入更多"
- }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsx)("div", {
ref: f,
"data-load-more": "",
...p,
hidden: !!c.error,
onClick: () => void d(!0),
- dangerouslySetInnerHTML: { __html: bs(ys) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(NW, {
+ dangerouslySetInnerHTML: { __html: Ss(xs) }
+ }), c.error ? /* @__PURE__ */ (0, F.jsx)(NW, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Nye(e, t, n, r, i) {
- let [a, o] = (0, F.useState)([]), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(0), u = (0, F.useRef)(0), d = (0, F.useRef)({
+function Pye(e, t, n, r, i) {
+ let [a, o] = (0, P.useState)([]), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(0), u = (0, P.useRef)(0), d = (0, P.useRef)({
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
- }), f = (0, F.useRef)([]);
- return (0, F.useEffect)(() => () => f.current.forEach((e) => e.abort()), []), (0, F.useEffect)(() => {
+ }), f = (0, P.useRef)([]);
+ return (0, P.useEffect)(() => () => f.current.forEach((e) => e.abort()), []), (0, P.useEffect)(() => {
let n = t?.pages.length || 0;
if (!e.shorts || u.current >= n) return;
u.current = n;
let r = new AbortController();
f.current.push(r);
let i = n - 1;
- V(`/api/items?${VM(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ B(`/api/items?${Rse(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@ -58753,12 +58760,12 @@ function Nye(e, t, n, r, i) {
more: e.has_more !== !1
}) : l.current = 0;
}).catch(() => {});
- }, [t]), (0, F.useLayoutEffect)(() => {
+ }, [t]), (0, P.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = BM(n.length - t, m, p);
+ let t = a.reduce((e, t) => Math.max(e, t.at), 0), u = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), f = u?.[u.length - 1], p = f ? Math.max(1, getComputedStyle(f).gridTemplateColumns.split(" ").length) : 1, m = Math.max(0, (r[s.page] ?? 0) - t), h = Lse(n.length - t, m, p);
if (!h.length) return;
- let g = IM(s.items, d.current, e.groupCollapse !== !1);
+ let g = RM(s.items, d.current, e.groupCollapse !== !1);
if (l.current = s.more ? l.current + 18 : 0, !g.length) return;
let _ = t + (h[Math.floor(Math.random() * h.length)] ?? 0);
o((e) => [...e, {
@@ -58768,28 +58775,28 @@ function Nye(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Pye({ cut: e, props: t, onOpen: n }) {
- let r = (0, F.useRef)(null), { wireDrag: i } = t;
- return (0, F.useEffect)(() => {
+function Fye({ cut: e, props: t, onOpen: n }) {
+ let r = (0, P.useRef)(null), { wireDrag: i } = t;
+ return (0, P.useEffect)(() => {
r.current && i(r.current);
- }, [i]), /* @__PURE__ */ (0, I.jsxs)("section", {
+ }, [i]), /* @__PURE__ */ (0, F.jsxs)("section", {
"data-shorts-strip": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("h2", { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)("h2", { children: [
"竖屏 ",
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-shorts-count": "",
children: `${e.total.toLocaleString()} 个`
}),
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Aye, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(jye, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "进入沉浸模式" })]
})
- ] }), /* @__PURE__ */ (0, I.jsx)("div", {
+ ] }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(bG, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, F.jsx)(bG, {
item: e,
variant: "short",
layout: t.layout,
@@ -58805,16 +58812,16 @@ function Pye({ cut: e, props: t, onOpen: n }) {
});
}
function hY(e, t, n) {
- return io(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
+ return oo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Fye({ seed: e, layout: t, helpers: n, actions: r }) {
- let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
+function Iye({ seed: e, layout: t, helpers: n, actions: r }) {
+ let i = (0, P.useRef)(/* @__PURE__ */ new Map()), a = (0, P.useRef)(t);
a.current = t;
- let o = uo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => LM(e, t.javImage)).slice(0, 9);
+ let o = po(e, n.tagLabel), s = (0, P.useCallback)(async () => {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => zM(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), hY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = hY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(AG, {
+ return /* @__PURE__ */ (0, F.jsx)(AG, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -58828,7 +58835,7 @@ function Fye({ seed: e, layout: t, helpers: n, actions: r }) {
...t,
size: "small"
}, !1).html,
- relayoutArt: (e) => yl(e, c),
+ relayoutArt: (e) => xl(e, c),
ratio: dG(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
@@ -58842,36 +58849,36 @@ function Fye({ seed: e, layout: t, helpers: n, actions: r }) {
//#endregion
//#region src/react/media-sources.ts
async function gY(e) {
- await U.fetchQuery({
- queryKey: Qn,
- queryFn: () => $n(e)
+ await H.fetchQuery({
+ queryKey: er,
+ queryFn: () => tr(e)
});
}
-var Iye = (e) => (e?.sources ?? []).filter((e) => Zt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Lye = "/api/duplicates?limit=120", _Y = ["duplicates"], vY = "/api/batch", yY = (e) => V(Lye, e), Rye = /[\s\-_.()[\]【】/\\]/;
-function zye(e) {
+var Lye = (e) => (e?.sources ?? []).filter((e) => Qt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Rye = "/api/duplicates?limit=120", _Y = ["duplicates"], vY = "/api/batch", yY = (e) => B(Rye, e), zye = /[\s\-_.()[\]【】/\\]/;
+function Bye(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !Rye.test(n[r - 1]);) --r;
+ for (; r > 0 && !zye.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Bye = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Vye(e) {
- await Promise.all([U.fetchQuery({
+var Vye = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Hye(e) {
+ await Promise.all([H.fetchQuery({
queryKey: _Y,
queryFn: () => yY(e)
}), gY(e)]);
}
-var Hye = {
+var Uye = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Uye = (e, t) => t.filter((t) => e.some((e) => e.location === t)), bY = (e, t) => Uye(e, t).filter((t) => e.some((e) => e.location !== t)), Wye = (e, t) => t.filter((t) => e.some((e) => bY(e.files, [t]).length));
-function Gye(e, t) {
+}, Wye = (e, t) => t.filter((t) => e.some((e) => e.location === t)), bY = (e, t) => Wye(e, t).filter((t) => e.some((e) => e.location !== t)), Gye = (e, t) => t.filter((t) => e.some((e) => bY(e.files, [t]).length));
+function Kye(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -58890,12 +58897,12 @@ function Gye(e, t) {
}
return n;
}
-function Kye(e, t) {
+function qye(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function qye(e, t) {
- for (let n = 0; n < e.length; n += 200) await H(vY, {
+async function Jye(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(vY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
@@ -58903,7 +58910,7 @@ async function qye(e, t) {
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var xY = "/api/media-repair", SY = ["media-repair"], CY = ["media-repair", "libraries"], Jye = {
+var xY = "/api/media-repair", SY = ["media-repair"], CY = ["media-repair", "libraries"], Yye = {
status: "idle",
library: "",
stage: "",
@@ -58915,32 +58922,32 @@ var xY = "/api/media-repair", SY = ["media-repair"], CY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, wY = (e) => V(xY, e), TY = async (e) => (await V("/api/libraries", e)).libraries || [];
-async function Yye(e) {
- await Promise.all([U.fetchQuery({
+}, wY = (e) => B(xY, e), TY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function Xye(e) {
+ await Promise.all([H.fetchQuery({
queryKey: SY,
queryFn: () => wY(e)
- }), U.fetchQuery({
+ }), H.fetchQuery({
queryKey: CY,
queryFn: () => TY(e)
})]);
}
var EY = (e) => Number(e).toLocaleString();
-function Xye(e) {
+function Zye(e) {
if (e.status === "running") {
let t = e.total ? `${EY(Math.min(e.checked || 0, e.total))} / ${EY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${EY(e.repaired)} 部,${EY(e.failed)} 部修不了` : `修好 ${EY(e.repaired)} 部` : "";
}
-var Zye = (e) => `${EY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Qye = "/api/quality-goals?limit=200", DY = ["quality-goals"], OY = (e) => V(Qye, e);
-async function $ye(e) {
- await U.fetchQuery({
+var Qye = (e) => `${EY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, $ye = "/api/quality-goals?limit=200", DY = ["quality-goals"], OY = (e) => B($ye, e);
+async function ebe(e) {
+ await H.fetchQuery({
queryKey: DY,
queryFn: () => OY(e)
});
}
-var ebe = (e) => e.has_cover ? Ha(e) : `/poster?id=${e.id}&c=4`;
+var tbe = (e) => e.has_cover ? Wa(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
function kY(e, t, n, r, i, a = i || !e.has(r)) {
@@ -58949,7 +58956,7 @@ function kY(e, t, n, r, i, a = i || !e.has(r)) {
}
//#endregion
//#region src/react/review/review.ts
-var tbe = "/api/review", nbe = "/api/review/decision", rbe = "/api/review/genre", AY = ["review"], jY = {
+var nbe = "/api/review", rbe = "/api/review/decision", ibe = "/api/review/genre", AY = ["review"], jY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -58959,11 +58966,11 @@ var tbe = "/api/review", nbe = "/api/review/decision", rbe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, ibe = Object.keys(jY), abe = "metadata_fields", MY = (e) => typeof e == "string" && Object.hasOwn(jY, e), obe = {
+}, abe = Object.keys(jY), obe = "metadata_fields", MY = (e) => typeof e == "string" && Object.hasOwn(jY, e), sbe = {
creator_tags: "creator",
western_identity: "creator"
};
-function sbe(e, t) {
+function cbe(e, t) {
let n = [["candidates", t ? "按来源数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
@@ -58984,43 +58991,43 @@ function NY(e, t) {
}
return [...n.values()];
}
-function cbe(e, t, n) {
+function lbe(e, t, n) {
return n && NY(e, t).find((e) => e.key === n)?.rows || e;
}
-function lbe(e, t) {
- let n = Yn(e.length, 20), r = Xn(t, n);
+function ube(e, t) {
+ let n = Zn(e.length, 20), r = Qn(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function ube(e) {
+function dbe(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 dbe(e, t, n, r, i, a) {
+function fbe(e, t, n, r, i, a) {
return kY(e, t, n, r, i, a);
}
-function fbe(e, t) {
+function pbe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function PY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var FY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function pbe(e, t) {
+function mbe(e, t) {
let n = PY(e, t), r = FY(e, t);
return r ? `${n} · ${r}` : n;
}
-var mbe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", hbe = (e) => String(e.tags || "").split("|").filter(Boolean), gbe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function _be(e) {
+var hbe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", gbe = (e) => String(e.tags || "").split("|").filter(Boolean), _be = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function vbe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function vbe(e, t, n, r) {
+function ybe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -59036,12 +59043,12 @@ function vbe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var ybe = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", IY = (e) => V(tbe, e);
-async function bbe(e) {
- let t = await H(nbe, e);
+var bbe = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", IY = (e) => B(nbe, e);
+async function xbe(e) {
+ let t = await V(rbe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- U.setQueryData(AY, (t) => t && {
+ H.setQueryData(AY, (t) => t && {
...t,
sections: {
...t.sections,
@@ -59057,22 +59064,22 @@ async function bbe(e) {
}
return t;
}
-function xbe(e, t) {
- return U.getQueryData(AY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
+function Sbe(e, t) {
+ return H.getQueryData(AY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
}
-var Sbe = (e, t) => H(rbe, {
+var Cbe = (e, t) => V(ibe, {
genre: e,
tag: t
});
-async function Cbe(e) {
- await U.fetchQuery({
+async function wbe(e) {
+ await H.fetchQuery({
queryKey: AY,
queryFn: () => IY(e)
});
}
-function wbe(e, t) {
+function Tbe(e, t) {
let n = new Set(t);
- n.size && U.setQueryData(AY, (t) => {
+ n.size && H.setQueryData(AY, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -59088,16 +59095,16 @@ function wbe(e, t) {
};
});
}
-var Tbe = () => U.invalidateQueries({
+var Ebe = () => H.invalidateQueries({
queryKey: AY,
exact: !0
});
-function Ebe(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${nr(e.fetched_at)} 的缓存` : e?.error || t;
+function Dbe(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${ir(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Dbe = "/api/links", LY = "/api/links/check", RY = "/api/links/prune", zY = ["links"], BY = ["links", "check"], VY = ["links", "prune"], Obe = {
+var Obe = "/api/links", LY = "/api/links/check", RY = "/api/links/prune", zY = ["links"], BY = ["links", "check"], VY = ["links", "prune"], kbe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -59108,23 +59115,23 @@ async function HY(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var UY = (e) => V(Dbe, e), WY = (e) => H(LY, { status_only: !0 }, "POST", e), kbe = ({ retry: e, checkId: t }) => HY(H(LY, e ? {
+var UY = (e) => B(Obe, e), WY = (e) => V(LY, { status_only: !0 }, "POST", e), Abe = ({ retry: e, checkId: t }) => HY(V(LY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), GY = (e) => V(RY, e), Abe = ({ checkId: e, ids: t }) => HY(H(RY, {
+} : { restart: !0 })), GY = (e) => B(RY, e), jbe = ({ checkId: e, ids: t }) => HY(V(RY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), KY = (e) => Number(e || 0).toLocaleString(), jbe = (e) => `已删除 ${KY(e.removed)} 条;${e.marked ? `已隐退女优的 ${KY(e.marked)} 条留作不可点的记录;` : ""}保留 ${KY(e.recovered)} 条未确认失效的链接。`;
-function Mbe(e) {
+})), KY = (e) => Number(e || 0).toLocaleString(), Mbe = (e) => `已删除 ${KY(e.removed)} 条;${e.marked ? `已隐退女优的 ${KY(e.marked)} 条留作不可点的记录;` : ""}保留 ${KY(e.recovered)} 条未确认失效的链接。`;
+function Nbe(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${KY(e.checked)} / ${KY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/configuration-endpoints.ts
-var qY = "/api/configuration", JY = "/api/pick-folder", YY = "/api/settings", XY = "/api/follow/schedule", ZY = "/api/feeds/schedule", QY = "/api/thumbnail-jobs", $Y = ["settings"], eX = ["follow-schedule"], tX = ["feed-schedule"], nX = ["thumbnail-jobs"], rX = "/api/media-processing", Nbe = ["media-processing"], Pbe = (e) => V(rX, e), iX = (e) => V(YY, e), Fbe = (e) => V(XY, e), Ibe = (e) => V(ZY, e), Lbe = (e) => V(QY, e);
-function Rbe(e = U) {
+var qY = "/api/configuration", JY = "/api/pick-folder", YY = "/api/settings", XY = "/api/follow/schedule", ZY = "/api/feeds/schedule", QY = "/api/thumbnail-jobs", $Y = ["settings"], eX = ["follow-schedule"], tX = ["feed-schedule"], nX = ["thumbnail-jobs"], rX = "/api/media-processing", Pbe = ["media-processing"], Fbe = (e) => B(rX, e), iX = (e) => B(YY, e), Ibe = (e) => B(XY, e), Lbe = (e) => B(ZY, e), Rbe = (e) => B(QY, e);
+function zbe(e = H) {
return e.fetchQuery({
queryKey: $Y,
queryFn: ({ signal: e }) => iX(e),
@@ -59132,21 +59139,21 @@ function Rbe(e = U) {
}).catch(() => null);
}
function aX() {
- return Pt({
- mutationFn: (e) => H(YY, e),
- onSuccess: (e) => U.setQueryData($Y, e)
+ return Ft({
+ mutationFn: (e) => V(YY, e),
+ onSuccess: (e) => H.setQueryData($Y, e)
});
}
-function zbe() {
- return Pt({
- mutationFn: (e) => H(XY, {
+function Bbe() {
+ return Ft({
+ mutationFn: (e) => V(XY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => U.setQueryData(eX, e)
+ onSuccess: (e) => H.setQueryData(eX, e)
});
}
-var Bbe = {
+var Vbe = {
follow: {
url: `${XY}/run`,
key: eX
@@ -59156,59 +59163,59 @@ var Bbe = {
key: tX
}
};
-function Vbe(e) {
- let { url: t, key: n } = Bbe[e];
- return Pt({
- mutationFn: () => H(t, {}),
- onSuccess: (e) => U.setQueryData(n, e)
+function Hbe(e) {
+ let { url: t, key: n } = Vbe[e];
+ return Ft({
+ mutationFn: () => V(t, {}),
+ onSuccess: (e) => H.setQueryData(n, e)
});
}
-var Hbe = (e) => e?.running ? 3e3 : !1;
-function Ube() {
- return Pt({
- mutationFn: (e) => H(QY, { mode: e }),
- onSuccess: (e) => U.setQueryData(nX, e)
+var Ube = (e) => e?.running ? 3e3 : !1;
+function Wbe() {
+ return Ft({
+ mutationFn: (e) => V(QY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(nX, e)
});
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Wbe = "/api/organize", Gbe = "/api/organize/preview", Kbe = "/api/organize/apply", qbe = "/api/organize/rollback", oX = ["organize"], Jbe = "/api/organize/example", Ybe = (e, t, n) => V(`${Jbe}?${new URLSearchParams({
+var Gbe = "/api/organize", Kbe = "/api/organize/preview", qbe = "/api/organize/apply", Jbe = "/api/organize/rollback", oX = ["organize"], Ybe = "/api/organize/example", Xbe = (e, t, n) => B(`${Ybe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), sX = (e) => V(Wbe, e);
-async function Xbe(e) {
- await U.fetchQuery({
+})}`, n), sX = (e) => B(Gbe, e);
+async function Zbe(e) {
+ await H.fetchQuery({
queryKey: oX,
queryFn: () => sX(e)
});
}
-var Zbe = (e) => H(Gbe, e), Qbe = (e) => H(JY, { initial: e }), $be = (e) => e.kind === "apply" ? H(Kbe, {
+var Qbe = (e) => V(Kbe, e), $be = (e) => V(JY, { initial: e }), exe = (e) => e.kind === "apply" ? V(qbe, {
...e.request,
confirm: !0
-}) : H(qbe, { confirm: !0 });
-async function exe(e) {
- U.setQueryData(oX, (t) => t && {
+}) : V(Jbe, { confirm: !0 });
+async function txe(e) {
+ H.setQueryData(oX, (t) => t && {
...t,
templates: e
});
try {
- await H(YY, { organizeTemplates: e });
+ await V(YY, { organizeTemplates: e });
} catch {}
}
-var txe = (e, t) => e && {
+var nxe = (e, t) => e && {
...e,
...t
-}, nxe = /目录模板|分隔符|盘符|`\.`/;
-function rxe(e) {
+}, rxe = /目录模板|分隔符|盘符|`\.`/;
+function ixe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var cX = (e) => Number(e || 0).toLocaleString();
-function ixe(e) {
+function axe(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${cX(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${cX(e.counts.change)} 个文件会改名或移动,${cX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function axe(e) {
+function oxe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${cX(r)} 个文件${n ? `,${cX(n)} 行未能退回` : ""}。` : `已整理 ${cX(r)} 个文件${n ? `,${cX(n)} 行未能处理` : ""}。`,
@@ -59218,45 +59225,45 @@ function axe(e) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var oxe = "/api/orphan-records", sxe = "/api/orphan-records/attach", lX = ["orphan-records"], cxe = [
+var sxe = "/api/orphan-records", cxe = "/api/orphan-records/attach", lX = ["orphan-records"], lxe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], uX = (e) => V(oxe, e), lxe = (e, t) => H(sxe, {
+], uX = (e) => B(sxe, e), uxe = (e, t) => V(cxe, {
id: e,
target: t
-}), uxe = (e) => H(vY, {
+}), dxe = (e) => V(vY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), dxe = (e) => [
+}), fxe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], fxe = (e) => [...cxe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...dxe(e)].filter(Boolean).join(" · "), pxe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", mxe = (e) => [e.name, pxe(e.duration)].filter(Boolean).join(" · "), dX = "/api/resource-sync/scan", fX = "/api/resource-sync/apply", pX = ["resource-sync", "scan"], mX = ["resource-sync", "apply"], hX = (e) => H(dX, {
+], pxe = (e) => [...lxe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...fxe(e)].filter(Boolean).join(" · "), mxe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", hxe = (e) => [e.name, mxe(e.duration)].filter(Boolean).join(" · "), dX = "/api/resource-sync/scan", fX = "/api/resource-sync/apply", pX = ["resource-sync", "scan"], mX = ["resource-sync", "apply"], hX = (e) => V(dX, {
background: !0,
status_only: !0
-}, "POST", e), hxe = () => H(dX, {
+}, "POST", e), gxe = () => V(dX, {
background: !0,
restart: !0
-}), gX = (e) => V(fX, e), gxe = (e) => H(fX, {
+}), gX = (e) => B(fX, e), _xe = (e) => V(fX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), _X = (e) => (e?.sources ?? []).some((e) => Xt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function _xe(e) {
- _X(U.getQueryData(Qn)) && await Promise.all([U.fetchQuery({
+}), _X = (e) => (e?.sources ?? []).some((e) => Zt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function vxe(e) {
+ _X(H.getQueryData(er)) && await Promise.all([H.fetchQuery({
queryKey: pX,
queryFn: () => hX(e)
- }), U.fetchQuery({
+ }), H.fetchQuery({
queryKey: mX,
queryFn: () => gX(e)
})]);
}
-var vxe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), vX = (e) => Number(e || 0).toLocaleString(), yxe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", yX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), bX = (e) => e.vanish ? `${vX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", xX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", bxe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录和 ${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。${xX(e)}${bX(e)}`, xxe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录(含回收站里的)、${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。来源根目录保留。${xX(e)}${bX(e)}`, Sxe = (e) => e.online ? [
+var yxe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), vX = (e) => Number(e || 0).toLocaleString(), bxe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", yX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), bX = (e) => e.vanish ? `${vX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", xX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", xxe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录和 ${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。${xX(e)}${bX(e)}`, Sxe = (e) => `将永久删除文件已不在盘上的 ${vX(yX(e))} 条记录(含回收站里的)、${vX(e.empty)} 个空文件夹,并清理 ${vX(e.cache?.files)} 个闲置缓存。来源根目录保留。${xX(e)}${bX(e)}`, Cxe = (e) => e.online ? [
`找不到文件 · 共 ${vX(e.total)} 项`,
e.vanish ? `${vX(e.vanish)} 项带个人记录` : "",
e.empty ? `空文件夹 ${vX(e.empty)} 个` : ""
@@ -59273,33 +59280,33 @@ function SX(e) {
].filter(Boolean).join(",")
};
}
-var Cxe = (e, t) => {
+var wxe = (e, t) => {
let { rest: n } = SX(e), r = `已永久删除 ${vX(e.purged)} 条失效记录和 ${vX(e.dirs_removed)} 个空文件夹,清理 ${vX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${vX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${vX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, wxe = "/api/review?counts=1", CX = ["review", "counts"], Txe = "/api/ads?limit=1", wX = ["junk-summary"], TX = "/api/items?state=trash&limit=1", EX = ["trash-summary"], Exe = [
+}, Txe = "/api/review?counts=1", CX = ["review", "counts"], Exe = "/api/ads?limit=1", wX = ["junk-summary"], TX = "/api/items?state=trash&limit=1", EX = ["trash-summary"], Dxe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], DX = (e) => V(wxe, e), OX = (e) => V(Txe, e), kX = (e) => {
+], DX = (e) => B(Txe, e), OX = (e) => B(Exe, e), kX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return V(t ? `${TX}&library=${encodeURIComponent(t)}` : TX, e);
+ return B(t ? `${TX}&library=${encodeURIComponent(t)}` : TX, e);
}, AX = (e) => Number(e || 0).toLocaleString();
-function Dxe(e) {
+function Oxe(e) {
let t = jY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function Oxe(e) {
+function kxe(e) {
if (!e) return "";
- let t = Exe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${AX(e.counts[t])}`);
+ let t = Dxe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${AX(e.counts[t])}`);
return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${AX(e.dismissed_total)}`), t.join(" · ");
}
-var kxe = [
+var Axe = [
[CX, ({ signal: e }) => DX(e)],
[DY, ({ signal: e }) => OY(e)],
[EX, ({ signal: e }) => kX(e)],
@@ -59308,37 +59315,37 @@ var kxe = [
[VY, ({ signal: e }) => GY(e)],
[lX, ({ signal: e }) => uX(e)]
];
-async function Axe(e) {
- let t = !!location.hash, n = kxe.map(([n, r]) => {
- if (t) return U.fetchQuery({
+async function jxe(e) {
+ let t = !!location.hash, n = Axe.map(([n, r]) => {
+ if (t) return H.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
}).catch(() => void 0);
- U.getQueryState(n) && U.prefetchQuery({
+ H.getQueryState(n) && H.prefetchQuery({
queryKey: n,
queryFn: r
});
});
await Promise.all([
...n,
- U.fetchQuery({
+ H.fetchQuery({
queryKey: wX,
queryFn: () => OX(e)
}),
- U.fetchQuery({
+ H.fetchQuery({
queryKey: _Y,
queryFn: () => yY(e)
}),
- gY(e).then(() => _xe(e)),
- yH(e),
- Yye(e),
- Xbe(e)
+ gY(e).then(() => vxe(e)),
+ vH(e),
+ Xye(e),
+ Zbe(e)
]);
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var jX = (e) => ["feed-new", e ?? "home"], jxe = 8, Mxe = 1500;
-function Nxe(e, t, n) {
+var jX = (e) => ["feed-new", e ?? "home"], Mxe = 8, Nxe = 1500;
+function Pxe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -59349,11 +59356,11 @@ function Nxe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function Pxe(e, t, n) {
+async function Fxe(e, t, n) {
let r = new URLSearchParams({ limit: String(fA().value.feedLimit) });
e && r.set("entity", String(e));
- let i = await rn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await Nxe(s, jxe, Mxe), {
+ let i = await on(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
+ return n && o.length && await Pxe(s, Mxe, Nxe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
@@ -59361,18 +59368,18 @@ async function Pxe(e, t, n) {
}
var MX = (e, t, n = !1) => ({
queryKey: jX(e),
- queryFn: () => Pxe(e, t, n),
+ queryFn: () => Fxe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), NX = (e, t) => rn("/api/feeds/discovery", {
+}), NX = (e, t) => on("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function Fxe(e) {
- U.removeQueries({ queryKey: jX(null) }), await U.fetchQuery(MX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function Ixe(e) {
+ H.removeQueries({ queryKey: jX(null) }), await H.fetchQuery(MX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
@@ -59396,7 +59403,7 @@ var PX = [
"entity",
e,
t
-], Ixe = (e, t, n, r) => [
+], Lxe = (e, t, n, r) => [
"entity-items",
e,
t,
@@ -59408,7 +59415,7 @@ var PX = [
t,
n,
r
-], RX = (e) => String(e || "").split(",").filter(Boolean), Lxe = (e, t) => RX(e).includes(t);
+], RX = (e) => String(e || "").split(",").filter(Boolean), Rxe = (e, t) => RX(e).includes(t);
function zX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...RX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
@@ -59417,7 +59424,7 @@ function zX(e, t, n, r, i = 0) {
}
async function BX(e, t, n, r, i, a, o) {
let s = zX(e, t, n, r, i);
- return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await rn(`/api/items?${s}`, a ? { signal: a } : {});
+ return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await on(`/api/items?${s}`, a ? { signal: a } : {});
}
var VX = (e) => {
let t = {
@@ -59425,16 +59432,16 @@ var VX = (e) => {
seed: e.seed
}, n = zX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Ixe(e.kind, e.name, n, e.revision),
+ queryKey: Lxe(e.kind, e.name, n, e.revision),
queryFn: ({ signal: n }) => BX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
}, HX = (e, t) => ({
queryKey: IX(e, t),
- queryFn: ({ signal: n }) => rn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
+ queryFn: ({ signal: n }) => on(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function Rxe(e, t, n, r, i, a) {
+function zxe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -59446,7 +59453,7 @@ function Rxe(e, t, n, r, i, a) {
var UX = (e, t, n, r) => ({
queryKey: LX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await rn(Rxe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await on(zxe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -59460,22 +59467,22 @@ var UX = (e, t, n, r) => ({
} : void 0,
staleTime: Infinity
}), WX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function zxe(e) {
+async function Bxe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
"entity-items",
"entity-photos"
- ]) U.removeQueries({ queryKey: [
+ ]) H.removeQueries({ queryKey: [
e,
t,
n
] });
- e.resolvedEntity?.id && U.setQueryData(IX(t, n), e.resolvedEntity), await Promise.all([
- U.fetchQuery(HX(t, n)).then((t) => !t || t.error || !t.id ? null : (U.removeQueries({ queryKey: jX(Number(t.id)) }), U.fetchQuery(MX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- U.fetchQuery(VX(e)),
- U.fetchInfiniteQuery(UX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(UX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(IX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(HX(t, n)).then((t) => !t || t.error || !t.id ? null : (H.removeQueries({ queryKey: jX(Number(t.id)) }), H.fetchQuery(MX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(VX(e)),
+ H.fetchInfiniteQuery(UX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(UX(t, n, e.media.set, "")) : null
]);
}
//#endregion
@@ -59488,9 +59495,9 @@ var GX = [
["blogger", "网黄博主"],
["animation", "动画作者"]
], KX = "mb-4 flex flex-wrap gap-2";
-function Bxe(e) {
+function Vxe(e) {
let t = GX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${KX}">${GX.map(([e, n]) => os({
+ return `<div class="peach-react"><div aria-label="身份分类" class="${KX}">${GX.map(([e, n]) => cs({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -59499,38 +59506,38 @@ function Bxe(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Vxe = "/api/follow/authors", Hxe = "/api/follow/tags", Uxe = (e) => [
+var Hxe = "/api/follow/authors", Uxe = "/api/follow/tags", Wxe = (e) => [
"follow",
"authors",
e
-], Wxe = (e, t) => [
+], Gxe = (e, t) => [
"follow",
"tags",
e,
t
];
-function Gxe(e, t, n) {
+function Kxe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Vxe}?${r}`;
+ return e && r.set("q", e), `${Hxe}?${r}`;
}
-function Kxe(e, t, n, r) {
+function qxe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Hxe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Uxe}?${i}`;
}
-var qxe = (e, t, n, r) => V(Gxe(e, t, n), r), Jxe = (e, t, n, r, i) => V(Kxe(e, t, n, r), i), Yxe = "/api/index", qX = {
+var Jxe = (e, t, n, r) => B(Kxe(e, t, n), r), Yxe = (e, t, n, r, i) => B(qxe(e, t, n, r), i), Xxe = "/api/index", qX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Xxe = {
+}, Zxe = {
performers: "performer",
creators: "creator",
studios: "studio",
@@ -59601,7 +59608,7 @@ function nZ(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Yxe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Xxe}?${a}`;
}
function rZ(e, t = XX.tags) {
let n = e.what === "people" || e.what === "online-authors" ? XX.people : t, r = {
@@ -59612,31 +59619,31 @@ function rZ(e, t = XX.tags) {
case "people": return {
...r,
queryKey: tZ(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => V(nZ(e.kind, e.q, e.category || "all", n, t), r)
+ queryFn: ({ pageParam: t, signal: r }) => B(nZ(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
queryKey: tZ("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => V(nZ("tags", e.q, e.category, n, t), r)
+ queryFn: ({ pageParam: t, signal: r }) => B(nZ("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: Uxe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => qxe(e.q, n, t, r)
+ queryKey: Wxe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => Jxe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: Wxe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => Jxe(e.q, e.category, n, t, r)
+ queryKey: Gxe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => Yxe(e.q, e.category, n, t, r)
};
}
}
-async function Zxe(e, t) {
+async function Qxe(e, t) {
let n = rZ(eZ($X(e)));
- U.removeQueries({
+ H.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), await U.fetchInfiniteQuery({
+ }), await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -59646,21 +59653,21 @@ async function Zxe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Qxe = (e) => e ? e.pages.flatMap((e) => e.items) : [], $xe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, iZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", eSe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, tSe = {
+var $xe = (e) => e ? e.pages.flatMap((e) => e.items) : [], eSe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, iZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", tSe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, nSe = {
numeric: !0,
sensitivity: "base"
};
function aZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", tSe))) {
- let e = Nn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", nSe))) {
+ let e = Fn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var oZ = dF({
+var oZ = uF({
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",
@@ -59680,19 +59687,19 @@ var oZ = dF({
}
});
function sZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
ref: r,
- className: uF(oZ.base, oZ.variant[e], oZ.color[t], n),
+ className: lF(oZ.base, oZ.variant[e], oZ.color[t], n),
...i
});
}
//#endregion
//#region src/react/index/index-people.tsx
function cZ({ html: e, face: t, company: n, big: r }) {
- let i = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
+ let i = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
- }, [t]), /* @__PURE__ */ (0, I.jsx)("span", {
+ }, [t]), /* @__PURE__ */ (0, F.jsx)("span", {
ref: i,
"data-person-ring": "",
"data-fit-native": n ? "mark" : "portrait",
@@ -59700,38 +59707,38 @@ function cZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var nSe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", rSe = Rz("rss");
+var rSe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", iSe = Lz("rss");
function lZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: RH({
+ className: LH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${nSe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${rSe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
- i ? /* @__PURE__ */ (0, I.jsx)("span", {
+ i ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-feed": "",
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(sZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(sZ, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(rSe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(iSe, {})
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-name": "",
className: "text-body-medium wrap-anywhere text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-readout": "",
className: "text-caption-1-regular",
children: t
@@ -59741,22 +59748,22 @@ function lZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
}
function uZ({ kind: e, items: t, layout: n, props: r }) {
let i = QX(e), a = n === "big";
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Xxe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(lZ, {
+ let n = t.entity_kind || Zxe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, F.jsx)(lZ, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${eSe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${tSe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(cZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(cZ, {
html: o.html,
face: o.face,
company: i,
@@ -59766,14 +59773,14 @@ function uZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function iSe({ items: e, layout: t, props: n }) {
+function aSe({ items: e, layout: t, props: n }) {
let r = t === "big";
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(lZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(lZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
@@ -59782,7 +59789,7 @@ function iSe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(cZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(cZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -59830,7 +59837,7 @@ function mZ(e) {
}
return !1;
}
-function aSe() {
+function oSe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a = (t) => {
@@ -59850,7 +59857,7 @@ function aSe() {
}), document.addEventListener("focusin", (e) => s(e.target, 0)), document.addEventListener("focusout", o), document.addEventListener("keydown", (e) => {
e.key === "Escape" && o();
}), document.addEventListener("scroll", (n) => {
- if (!t || !Uo(n, t)) return;
+ if (!t || !Go(n, t)) return;
let r = pZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && a(t) : o();
}, !0), window.addEventListener("resize", o);
@@ -59862,11 +59869,11 @@ function hZ(e) {
e.style.setProperty("--board-range-value", `${i}%`);
}
var gZ = /* @__PURE__ */ new WeakSet();
-function oSe() {
+function sSe() {
if (gZ.has(document)) return;
gZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(hZ), cSe(e), sSe(e);
+ e.querySelectorAll("input[type=range]").forEach(hZ), lSe(e), cSe(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]") && hZ(t), e(t));
@@ -59875,9 +59882,9 @@ function oSe() {
childList: !0
}), document.addEventListener("input", (e) => {
e.target instanceof HTMLInputElement && e.target.type === "range" && hZ(e.target);
- }), aSe();
+ }), oSe();
}
-function sSe(e) {
+function cSe(e) {
let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -59902,7 +59909,7 @@ function sSe(e) {
});
}
var _Z = /* @__PURE__ */ new Map();
-function cSe(e) {
+function lSe(e) {
let t = ".iconswitch,.insightswitch,.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;
@@ -59918,7 +59925,7 @@ function cSe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- bc(t, r, a, "x"), r = a, _Z.set(n, a);
+ Sc(t, r, a, "x"), r = a, _Z.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -59935,7 +59942,7 @@ function cSe(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var vZ = "/vendor/swiper/14.3.0/", yZ = null, lSe = () => yZ ??= Promise.all([new Promise((e, t) => {
+var vZ = "/vendor/swiper/14.3.0/", yZ = null, uSe = () => yZ ??= Promise.all([new Promise((e, t) => {
let n = `${vZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -59954,7 +59961,7 @@ var vZ = "/vendor/swiper/14.3.0/", yZ = null, lSe = () => yZ ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw yZ = null, e;
});
-function uSe(e, t, n) {
+function dSe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -59977,11 +59984,11 @@ function uSe(e, t, n) {
}
var bZ = (e) => {
let t = Number(e) || 0;
- return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : kn(t)).replace(" ", "\xA0") : "大小未知";
-}, dSe = (e) => e.asset?.name || e.name || "未命名图片";
-function fSe(e, t) {
+ return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : jn(t)).replace(" ", "\xA0") : "大小未知";
+}, fSe = (e) => e.asset?.name || e.name || "未命名图片";
+function pSe(e, t) {
let n = e.asset;
- if (n) return [Fn[n.location ?? ""] || n.location || "来源未知", bZ(n.size)].join(" · ");
+ if (n) return [Ln[n.location ?? ""] || n.location || "来源未知", bZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
@@ -59991,36 +59998,36 @@ function fSe(e, t) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var xZ = null, SZ = null, pSe = 0;
-function mSe() {
- return (!SZ || !xZ?.isConnected) && (SZ?.unmount(), xZ = document.createElement("div"), xZ.className = "peach-react", xZ.dataset.photoLightboxHost = "", document.body.append(xZ), SZ = (0, Lt.createRoot)(xZ)), SZ;
+var xZ = null, SZ = null, mSe = 0;
+function hSe() {
+ return (!SZ || !xZ?.isConnected) && (SZ?.unmount(), xZ = document.createElement("div"), xZ.className = "peach-react", xZ.dataset.photoLightboxHost = "", document.body.append(xZ), SZ = (0, Rt.createRoot)(xZ)), SZ;
}
async function CZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await lSe();
+ r = await uSe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = mSe();
- (0, It.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(hSe, {
+ let i = hSe();
+ (0, Lt.flushSync)(() => i.render(/* @__PURE__ */ (0, F.jsx)(gSe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++pSe)));
+ }, ++mSe)));
}
function wZ() {
- SZ && (0, It.flushSync)(() => SZ.render(null));
+ SZ && (0, Lt.flushSync)(() => SZ.render(null));
}
-function hSe({ slides: e, index: t, Swiper: n, host: r }) {
- let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
+function gSe({ slides: e, index: t, Swiper: n, host: r }) {
+ let i = e.length > 1, a = (0, P.useId)(), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useRef)(null), [_, v] = (0, P.useState)(t), [y, b] = (0, P.useState)(100), [x, S] = (0, P.useState)({}), [C, w] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, P.useState)(!1), [k, A] = (0, P.useState)({
at: t,
text: ""
});
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
let e = o.current;
e.showModal(), document.body.classList.add("photolight-open");
let r = new n(c.current, {
@@ -60058,8 +60065,8 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = uSe(e, a, b);
- let m = Pc(e, f.current, p.current), _ = (e = !1) => {
+ i(t, 0), h.current = dSe(e, a, b);
+ let m = Ic(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
g.current = {
@@ -60080,13 +60087,13 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
- }, []), (0, F.useLayoutEffect)(() => {
+ }, []), (0, P.useLayoutEffect)(() => {
m.current && hZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
let t = _;
- Ec(e), O(!0), A({
+ Oc(e), O(!0), A({
at: t,
text: ""
});
@@ -60096,17 +60103,17 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
text: await r.revealSource(M.id)
});
} finally {
- Ec(e, !1), O(!1);
+ Oc(e, !1), O(!1);
}
- }, N = (e, t) => {
+ }, te = (e, t) => {
t.naturalWidth && t.naturalHeight && !x[e] && S((n) => ({
...n,
[e]: [t.naturalWidth, t.naturalHeight]
})), h.current?.loaded(t);
- }, te = (t) => {
+ }, ne = (t) => {
C.has(t) || !e[t].thumb || e[t].thumb === e[t].src ? E((e) => new Set(e).add(t)) : w((e) => new Set(e).add(t));
- }, P = (e) => h.current?.apply(e);
- return /* @__PURE__ */ (0, I.jsxs)("dialog", {
+ }, N = (e) => h.current?.apply(e);
+ return /* @__PURE__ */ (0, F.jsxs)("dialog", {
ref: o,
"aria-label": "图片浏览",
"data-photo-lightbox": "",
@@ -60119,14 +60126,14 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && wZ();
},
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
onClick: wZ,
- dangerouslySetInnerHTML: { __html: z("x") }
+ dangerouslySetInnerHTML: { __html: R("x") }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
ref: s,
className: "swiper",
"data-photo-main": "",
@@ -60134,46 +60141,46 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
"aria-roledescription": "轮播",
"aria-label": "图片浏览",
children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "swiper-wrapper",
- children: e.map((e, t) => /* @__PURE__ */ (0, I.jsx)("div", {
+ children: e.map((e, t) => /* @__PURE__ */ (0, F.jsx)("div", {
className: "swiper-slide",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "swiper-zoom-container",
- children: T.has(t) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: T.has(t) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-missing": "",
children: "图片取不到"
- }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: C.has(t) ? e.thumb : e.src,
alt: e.name ?? "",
loading: "lazy",
referrerPolicy: "no-referrer",
- onLoad: (e) => N(t, e.currentTarget),
- onError: () => te(t)
+ onLoad: (e) => te(t, e.currentTarget),
+ onError: () => ne(t)
})
})
}, t))
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: u,
type: "button",
"data-photo-nav": "back",
"aria-label": "上一张",
- dangerouslySetInnerHTML: { __html: z("chevron-left") }
+ dangerouslySetInnerHTML: { __html: R("chevron-left") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: d,
type: "button",
"data-photo-nav": "fwd",
"aria-label": "下一张",
- dangerouslySetInnerHTML: { __html: z("chevron-left") }
+ dangerouslySetInnerHTML: { __html: R("chevron-left") }
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-photo-bar": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: f,
type: "button",
"data-photo-detail-toggle": "",
@@ -60182,28 +60189,28 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
"aria-haspopup": "dialog",
"aria-label": "图片详情",
title: "图片详情",
- dangerouslySetInnerHTML: { __html: z("info") }
+ dangerouslySetInnerHTML: { __html: R("info") }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", { children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-photo-count": "",
"aria-live": "polite",
children: `${_ + 1} / ${e.length}`
- }), i ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }), i ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: l,
"data-photo-pagination": "",
"aria-label": "选择图片"
}) : null] }),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-photo-zoom": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-zoom-step": "-1",
"aria-label": "缩小",
- onClick: () => P(y - 10),
- dangerouslySetInnerHTML: { __html: z("zoom-out") }
+ onClick: () => N(y - 10),
+ dangerouslySetInnerHTML: { __html: R("zoom-out") }
}),
- /* @__PURE__ */ (0, I.jsx)("input", {
+ /* @__PURE__ */ (0, F.jsx)("input", {
ref: m,
type: "range",
min: 10,
@@ -60211,40 +60218,40 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
step: "1",
value: y,
"aria-label": "缩放",
- onChange: (e) => P(Number(e.currentTarget.value))
+ onChange: (e) => N(Number(e.currentTarget.value))
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-zoom-step": "1",
"aria-label": "放大",
- onClick: () => P(y + 10),
- dangerouslySetInnerHTML: { __html: z("zoom-in") }
+ onClick: () => N(y + 10),
+ dangerouslySetInnerHTML: { __html: R("zoom-in") }
}),
- /* @__PURE__ */ (0, I.jsx)("b", {
+ /* @__PURE__ */ (0, F.jsx)("b", {
"data-photo-zoom-readout": "",
children: `${y}%`
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-scale": "fit",
"aria-label": "适应窗口",
title: "适应窗口",
- onClick: () => P("fit"),
- dangerouslySetInnerHTML: { __html: z("maximize") }
+ onClick: () => N("fit"),
+ dangerouslySetInnerHTML: { __html: R("maximize") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-scale": "original",
"aria-label": "原大小",
title: "原大小",
- onClick: () => P(100),
+ onClick: () => N(100),
children: "1:1"
})
]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)("section", {
+ /* @__PURE__ */ (0, F.jsxs)("section", {
ref: p,
id: a,
"data-photo-detail": "",
@@ -60253,41 +60260,41 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
"aria-labelledby": `${a}-title`,
hidden: !0,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-photo-detail-copy": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: dSe(j)
- }, _), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: fSe(j)
+ }, _), /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-detail-meta": "",
- children: fSe(j, x[_])
+ children: pSe(j, x[_])
})]
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-reveal": "",
hidden: !M || !r,
onClick: (e) => void ee(e.currentTarget),
- dangerouslySetInnerHTML: { __html: (D ? vs("正在定位") : z("folder-open")) + "<span>在资源管理器中显示</span>" }
+ dangerouslySetInnerHTML: { __html: (D ? bs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-status": "",
"aria-live": "polite",
children: k.at === _ ? k.text : ""
})
]
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: c,
className: "swiper",
"data-photo-strip": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "swiper-wrapper",
- children: e.map((e, t) => /* @__PURE__ */ (0, I.jsx)("div", {
+ children: e.map((e, t) => /* @__PURE__ */ (0, F.jsx)("div", {
className: "swiper-slide",
- children: /* @__PURE__ */ (0, I.jsx)("img", {
+ children: /* @__PURE__ */ (0, F.jsx)("img", {
src: e.thumb,
alt: "",
loading: "lazy",
@@ -60301,40 +60308,40 @@ function hSe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function gSe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(_Se, {
+function _Se(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, F.jsx)(vSe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(vSe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(xSe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, F.jsx)(ySe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, F.jsx)(SSe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
var TZ = XX.people;
-function _Se({ roster: e, props: t }) {
- let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
+function vSe({ roster: e, props: t }) {
+ let { helpers: n, actions: r } = t, i = (0, P.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(TZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ }), [n, r]), [a, o] = (0, P.useState)(TZ), s = (0, P.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, P.useCallback)(async () => {
o((e) => e + TZ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(uZ, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(uZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(mY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, F.jsx)(mY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function vSe(e) {
+function ySe(e) {
let t = MW(!e.items, e.skeletonHtml);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, I.jsx)(fY, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, F.jsx)(fY, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -60354,14 +60361,14 @@ function vSe(e) {
}) : null]
});
}
-var ySe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var bSe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), EZ = (e) => e.sample === !0, DZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, OZ = (e) => EZ(e) ? `/sample-thumb?${DZ(e)}` : `/photo-thumb?id=${e.id}`, bSe = (e) => EZ(e) ? {
+})), EZ = (e) => e.sample === !0, DZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, OZ = (e) => EZ(e) ? `/sample-thumb?${DZ(e)}` : `/photo-thumb?id=${e.id}`, xSe = (e) => EZ(e) ? {
src: `/sample-image?${DZ(e)}`,
thumb: OZ(e),
name: e.name,
@@ -60373,14 +60380,14 @@ var ySe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function xSe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(ySe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function SSe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, P.useMemo)(() => [...e.codeSets.flatMap(bSe), ...e.items], [e]), [s, c] = (0, P.useState)(() => /* @__PURE__ */ new Set()), l = (0, P.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
- }), []), u = (0, F.useCallback)((e) => {
- CZ(e, o.map(bSe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(SSe, {
+ }), []), u = (0, P.useCallback)((e) => {
+ CZ(e, o.map(xSe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, F.jsx)(CSe, {
item: e,
index: t,
lost: s.has(t),
@@ -60397,8 +60404,8 @@ function xSe({ photos: e, props: t }) {
from: t
};
}), h = p;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kZ, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(kZ, {
label: e.code,
title: e.name,
meta: [
@@ -60406,20 +60413,20 @@ function xSe({ photos: e, props: t }) {
e.release_date,
`${e.n.toLocaleString()} 张`
].filter(Boolean).join(" · ")
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(kZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, F.jsx)(kZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
...f,
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(mY, {
+ e.hasMore ? /* @__PURE__ */ (0, F.jsx)(mY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -60427,31 +60434,31 @@ function xSe({ photos: e, props: t }) {
] });
}
function kZ({ label: e, title: t, meta: n }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-photo-group": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("b", { children: e }),
- t ? /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("b", { children: e }),
+ t ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-group-title": "",
title: t,
children: t
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-photo-group-meta": "",
children: n
})
]
});
}
-function SSe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function CSe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-photo-cell": "",
"data-photo-index": t,
title: a,
onClick: () => i(t),
- children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: n ? null : /* @__PURE__ */ (0, F.jsx)("img", {
src: OZ(e),
alt: a,
loading: "lazy",
@@ -60463,30 +60470,30 @@ function SSe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/background-job.ts
-var CSe = 2e3, wSe = (e) => e, TSe = (e, t) => t;
+var wSe = 2e3, TSe = (e) => e, ESe = (e, t) => t;
function AZ(e) {
- let { queryKey: t, jobOf: n = wSe, withJob: r = TSe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
- (0, F.useEffect)(() => {
+ let { queryKey: t, jobOf: n = TSe, withJob: r = ESe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
+ (0, P.useEffect)(() => {
l.current = e;
});
- let u = Nt({
+ let u = Pt({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? CSe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? wSe : i ?? !1;
}
- }), d = Pt({
+ }), d = Ft({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
- o(!0), c(null), l.current.onStarted?.(e), U.setQueryData(t, (t) => r(t, e)), U.invalidateQueries({
+ o(!0), c(null), l.current.onStarted?.(e), H.setQueryData(t, (t) => r(t, e)), H.invalidateQueries({
queryKey: t,
exact: !0
});
},
onError: (e) => l.current.onError?.(e)
}), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
f && (f.status === "running" ? a || o(!0) : a && (o(!1), c(f), l.current.onFinish?.(f)));
}, [f, a]), {
query: u,
@@ -60500,32 +60507,32 @@ function AZ(e) {
//#endregion
//#region src/react/follow-feed/follow-check.ts
var jZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function ESe(e, t) {
+function DSe(e, t) {
return t ? jZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
//#endregion
//#region src/react/follow-feed/follow-check-button.tsx
-function DSe({ sources: e, report: t }) {
- let n = jZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = AZ({
- queryKey: vr,
- queryFn: ({ signal: e }) => Zr(e),
- start: (e) => ei(e),
- onError: (e) => i(Hn(e)),
+function OSe({ sources: e, report: t }) {
+ let n = jZ(e), [r, i] = (0, P.useState)(""), { running: a, start: o } = AZ({
+ queryKey: br,
+ queryFn: ({ signal: e }) => $r(e),
+ start: (e) => ni(e),
+ onError: (e) => i(Wn(e)),
onFinish: (e) => {
- e.status === "failed" && i(e.error || "检查失败"), bi(), U.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
+ e.status === "failed" && i(e.error || "检查失败"), Si(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
}
}), s = a || o.isPending;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
disabled: !n.length,
- ...Bz(s),
+ ...zz(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }), r ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: r
}) : null]
@@ -60533,26 +60540,26 @@ function DSe({ sources: e, report: t }) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var OSe = (e) => Number(e) > 0;
+var kSe = (e) => Number(e) > 0;
function MZ({ name: e, actions: t, children: n, ...r }) {
- return /* @__PURE__ */ (0, I.jsx)("a", {
+ return /* @__PURE__ */ (0, F.jsx)("a", {
...r,
- href: pn("creator", e),
+ href: hn("creator", e),
onClick: (n) => {
n.stopPropagation(), !(n.button || n.ctrlKey || n.metaKey || n.shiftKey || n.altKey) && (n.preventDefault(), t.openAuthor(e));
},
children: n
});
}
-var NZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var NZ = ({ provider: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: UU(e) }
+ dangerouslySetInnerHTML: { __html: HU(e) }
});
-function kSe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
- let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
- return (0, F.useEffect)(() => {
+function ASe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+ let [s, c] = (0, P.useState)(!1), [l, u] = (0, P.useState)(!1), [d, f] = (0, P.useState)(null);
+ return (0, P.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(NZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, F.jsx)(NZ, { provider: i }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -60571,29 +60578,29 @@ function kSe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function ASe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Yi(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Jge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Zi(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = $i({
+function jSe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Zi(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Xge(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? $i(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ta({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
imageView: d,
limit: 9
- }), S = (0, F.useRef)(x.faces);
+ }), S = (0, P.useRef)(x.faces);
S.current = x.faces;
let C = TG({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
- }), w = (0, F.useRef)(C.onPointerLeave);
+ }), w = (0, P.useRef)(C.onPointerLeave);
w.current = C.onPointerLeave;
- let T = (0, F.useCallback)((e) => {
+ let T = (0, P.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = JU(u, n, i), D = WU(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = ZU(u, i), j = XU(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = qU(u, n, i), D = UU(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = XU(u, i), j = YU(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
- }, N = (e, t) => {
+ }, te = (e, t) => {
e.stopPropagation(), t();
};
- return /* @__PURE__ */ (0, I.jsxs)("article", {
+ return /* @__PURE__ */ (0, F.jsxs)("article", {
ref: T,
"data-media-card": "",
"data-variant": e.variant || "grid",
@@ -60607,17 +60614,17 @@ function ASe(e) {
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-visual": "",
"data-mix-stack": x.isMix ? "" : void 0,
- children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-open": "",
"aria-label": `打开 ${D} 详情`
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(kSe, {
+ p ? /* @__PURE__ */ (0, F.jsx)(ASe, {
src: p,
fallback: m,
width: _?.width,
@@ -60625,13 +60632,13 @@ function ASe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(NZ, { provider: O }),
- x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }, p) : /* @__PURE__ */ (0, F.jsx)(NZ, { provider: O }),
+ x.faces.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
- children: C.faces.map((e, t) => /* @__PURE__ */ (0, I.jsx)("div", {
+ children: C.faces.map((e, t) => /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-face": t === C.current ? "on" : t === C.leaving ? "off" : "",
- children: /* @__PURE__ */ (0, I.jsx)("img", {
+ children: /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
loading: "eager",
@@ -60639,43 +60646,43 @@ function ASe(e) {
})
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-sources": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: UU(u.provider, u.provider_label) }
- }), j ? /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: HU(u.provider, u.provider_label) }
+ }), j ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
}) : null]
}),
- l.toggleSelection ? /* @__PURE__ */ (0, I.jsx)("span", {
+ l.toggleSelection ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
onClick: (e) => {
e.preventDefault(), e.stopPropagation(), l.toggleSelection?.(u.id, e.shiftKey);
},
- dangerouslySetInnerHTML: { __html: z("check") }
+ dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- OSe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ kSe(u.duration) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-duration": "",
- children: Dn(u.duration)
+ children: kn(u.duration)
}) : null,
- o ? null : /* @__PURE__ */ (0, I.jsxs)("div", {
+ o ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-corner": "",
- children: [x.isMix ? /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: [x.isMix ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-follow-collection": b,
- onClick: (e) => N(e, () => l.openDetail(b)),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ onClick: (e) => te(e, () => l.openDetail(b)),
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z(x.glyph) }
+ dangerouslySetInnerHTML: { __html: R(x.glyph) }
}), x.label]
- }) : null, e.variant === "next" ? null : /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : null, e.variant === "next" ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-actions": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-save": u.id,
title: M ? "已保存" : "保存到数据库",
@@ -60683,10 +60690,10 @@ function ASe(e) {
disabled: M,
"aria-busy": s === "save" || void 0,
"aria-disabled": s === "save" || void 0,
- onClick: (t) => N(t, () => e.onSave?.(u.id)),
- dangerouslySetInnerHTML: { __html: z(M ? "check" : "bookmark-plus") }
+ onClick: (t) => te(t, () => e.onSave?.(u.id)),
+ dangerouslySetInnerHTML: { __html: R(M ? "check" : "bookmark-plus") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-status": u.id,
"data-to": "seen",
@@ -60695,10 +60702,10 @@ function ASe(e) {
disabled: u.status === "seen",
"aria-busy": s === "seen" || void 0,
"aria-disabled": s === "seen" || void 0,
- onClick: (t) => N(t, () => e.onStatus?.(u.id, "seen")),
- dangerouslySetInnerHTML: { __html: z("eye") }
+ onClick: (t) => te(t, () => e.onStatus?.(u.id, "seen")),
+ dangerouslySetInnerHTML: { __html: R("eye") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-status": u.id,
"data-to": "ignored",
@@ -60707,10 +60714,10 @@ function ASe(e) {
disabled: u.status === "ignored",
"aria-busy": s === "ignored" || void 0,
"aria-disabled": s === "ignored" || void 0,
- onClick: (t) => N(t, () => e.onStatus?.(u.id, "ignored")),
- dangerouslySetInnerHTML: { __html: z("eye-off") }
+ onClick: (t) => te(t, () => e.onStatus?.(u.id, "ignored")),
+ dangerouslySetInnerHTML: { __html: R("eye-off") }
}),
- u.status === "seen" || u.status === "ignored" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ u.status === "seen" || u.status === "ignored" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-status": u.id,
"data-to": "new",
@@ -60718,8 +60725,8 @@ function ASe(e) {
"aria-label": "恢复未看",
"aria-busy": s === "new" || void 0,
"aria-disabled": s === "new" || void 0,
- onClick: (t) => N(t, () => e.onStatus?.(u.id, "new")),
- dangerouslySetInnerHTML: { __html: z("rotate-ccw") }
+ onClick: (t) => te(t, () => e.onStatus?.(u.id, "new")),
+ dangerouslySetInnerHTML: { __html: R("rotate-ccw") }
}) : null
]
})]
@@ -60727,75 +60734,75 @@ function ASe(e) {
]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-meta": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(MZ, {
+ E.entityName ? /* @__PURE__ */ (0, F.jsx)(MZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
"data-follow-avatar": "",
"aria-label": `查看 ${E.author} 的作者页`,
dangerouslySetInnerHTML: { __html: E.avatar }
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-avatar": "",
"data-follow-avatar": "",
title: "创作者头像",
dangerouslySetInnerHTML: { __html: E.avatar }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-text": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: YU(t, u) + B(D) }
+ dangerouslySetInnerHTML: { __html: JU(t, u) + z(D) }
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(MZ, {
+ E.entityName ? /* @__PURE__ */ (0, F.jsx)(MZ, {
name: E.entityName,
actions: l,
"data-follow-author": "",
title: E.author,
children: E.author
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-author": "",
title: E.author,
children: E.author
}),
- /* @__PURE__ */ (0, I.jsx)("time", {
+ /* @__PURE__ */ (0, F.jsx)("time", {
dateTime: u.published_at || "",
- title: $U(u),
- children: qge(u)
+ title: QU(u),
+ children: Yge(u)
}),
- E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
+ E.credited ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-credit": "",
title: `署名含 ${E.credited}`,
children: `署名含 ${E.credited}`
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)("span", {
+ A ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-issue": "",
children: A
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-tags": "",
"data-follow-labels": "",
- children: k.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
+ children: k.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-tag": "",
"data-tag-cat": `r34-${u.tag_types?.[e] || "unknown"}`,
"data-follow-tag": e,
- children: Al(e)
+ children: Ml(e)
}, e))
})
]
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-state": "",
"aria-live": "polite",
children: c
@@ -60803,12 +60810,12 @@ function ASe(e) {
]
});
}
-var PZ = (0, F.memo)(ASe);
+var PZ = (0, P.memo)(jSe);
//#endregion
//#region src/react/components/use-masonry-grid.ts
-function jSe(e, t) {
- let n = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => {
+function MSe(e, t) {
+ let n = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => {
let t = n.current;
if (!t) return;
let r = Array.from(t.children).filter((e) => e instanceof HTMLElement && e.hasAttribute("data-media-card"));
@@ -60870,10 +60877,10 @@ function zZ(e, t) {
}
//#endregion
//#region src/react/follow-feed/follow-feed-page.tsx
-var BZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var BZ = () => /* @__PURE__ */ (0, F.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), MSe = Rz("settings"), VZ = Rz("chevron-down"), NSe = Rz("history"), PSe = Rz("arrow-up"), FSe = Rz("arrow-down"), ISe = [[
+}), NSe = Lz("settings"), VZ = Lz("chevron-down"), PSe = Lz("history"), FSe = Lz("arrow-up"), ISe = Lz("arrow-down"), LSe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -60882,19 +60889,19 @@ var BZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function LSe(e, t, n) {
- return (0, F.useMemo)(() => {
+function RSe(e, t, n) {
+ return (0, P.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = Vi([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = Vi(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = Ui([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = Ui(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = Vi([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = Ui([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -60902,7 +60909,7 @@ function LSe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => Ji(e).forEach((e) => {
+ r.forEach((e) => Xi(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -60917,7 +60924,7 @@ function LSe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => Ji(e).has(_)),
+ visible: r.filter((e) => Xi(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -60930,20 +60937,20 @@ function LSe(e, t, n) {
n
]);
}
-function RSe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = Ii(t, r), o = Ft(a), s = Nt({
- queryKey: Li,
- queryFn: ({ signal: e }) => Ri(e)
- }), c = (0, F.useMemo)(() => Bi(o.data), [o.data]), l = (0, F.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, F.useMemo)(() => ({
+function zSe(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = Ri(t, r), o = It(a), s = Pt({
+ queryKey: zi,
+ queryFn: ({ signal: e }) => Bi(e)
+ }), c = (0, P.useMemo)(() => Hi(o.data), [o.data]), l = (0, P.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, P.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = LSe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, F.useMemo)(() => ({
- tags: zl(d.visible.flatMap(Hi).map((e) => ({ tags: e.tags || [] }))),
+ }), [c, l]), d = RSe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, P.useMemo)(() => ({
+ tags: Vl(d.visible.flatMap(Wi).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
t,
- Di(e)
+ ki(e)
]),
duration: !!c?.facets?.duration
}), [
@@ -60951,7 +60958,7 @@ function RSe(e) {
d.providers,
c
]);
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
if (!p) return;
let e = !0;
return queueMicrotask(() => {
@@ -60964,65 +60971,65 @@ function RSe(e) {
m,
i
]);
- let h = BSe(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ let h = VSe(e, !!c);
+ if (!c) return o.isError ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(HZ, {}), /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(o.error),
+ children: [/* @__PURE__ */ (0, F.jsx)(HZ, {}), /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(o.error),
onRetry: () => void o.refetch()
})]
}) : null;
let g = (e) => i.route({
...t,
...e
- }), _ = ia({
+ }), _ = oa({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, GU(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, WU(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: h.host,
"data-follow-progress": ""
}, h.generation),
- !h.busy && h.report ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ !h.busy && h.report ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
title: "检查结果",
children: h.report
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(HZ, { children: d.sources.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(HZ, { children: d.sources.length ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!1),
- children: h.starting === "check" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: h.starting === "check" ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: vs("检查中") }
+ dangerouslySetInnerHTML: { __html: bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(VSe, {
+ /* @__PURE__ */ (0, F.jsx)(HSe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(HSe, {
+ /* @__PURE__ */ (0, F.jsx)(USe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(USe, {
+ /* @__PURE__ */ (0, F.jsx)(WSe, {
facets: d,
view: t,
total: v,
@@ -61030,9 +61037,9 @@ function RSe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, I.jsx)(WSe, {
+ /* @__PURE__ */ (0, F.jsx)(GSe, {
conditions: _,
- onDrop: (e) => i.route(aa(t, e)),
+ onDrop: (e) => i.route(sa(t, e)),
onClear: () => g({
author: "",
provider: "",
@@ -61042,15 +61049,15 @@ function RSe(e) {
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, I.jsx)(GSe, { count: d.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(KSe, {
+ d.broken.length ? /* @__PURE__ */ (0, F.jsx)(KSe, { count: d.broken.length }) : null,
+ /* @__PURE__ */ (0, F.jsx)(qSe, {
retryKey: o.dataUpdatedAt,
pending: f,
facets: d,
data: c,
context: u,
props: e,
- checkAction: /* @__PURE__ */ (0, I.jsx)(q, {
+ checkAction: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
variant: "secondary",
"aria-label": "检查每个来源的更新",
@@ -61062,39 +61069,39 @@ function RSe(e) {
children: "检查更新"
})
}, a.queryKey.join("\0")),
- c.has_more || y ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ c.has_more || y ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-pagination": "",
- children: [c.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [c.has_more ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-page-action": "",
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(mY, {
+ children: c.groups.length < 500 ? /* @__PURE__ */ (0, F.jsxs)(mY, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(zSe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, o.data?.pages.length) : /* @__PURE__ */ (0, F.jsx)(BSe, {
busy: o.isFetchingNextPage,
- error: o.isFetchNextPageError ? en(o.error) : "",
+ error: o.isFetchNextPageError ? tn(o.error) : "",
load: () => {
!h.busyRef.current && !o.isFetchingNextPage && o.fetchNextPage();
}
})
- }) : null, y ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ }) : null, y ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-follow-page-action": "",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : NSe,
+ leadingIcon: h.olderBusy ? void 0 : PSe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
- children: h.olderBusy ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: h.olderBusy ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: vs("抓取中") }
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: "抓取中" })] }) : "抓更早的一页"
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: bs("抓取中") }
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: "抓取中" })] }) : "抓更早的一页"
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-backfill": "",
- children: ea(d.sources)
+ children: na(d.sources)
})]
}) : null]
}) : null
@@ -61103,16 +61110,16 @@ function RSe(e) {
] });
}
function HZ({ children: e }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-head": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
"data-follow-title": "",
children: "关注"
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(iI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(rI, {
variant: "secondary",
- leadingIcon: MSe,
+ leadingIcon: NSe,
"data-follow-manage": "",
href: UZ(),
children: "管理关注"
@@ -61120,35 +61127,35 @@ function HZ({ children: e }) {
})]
});
}
-function zSe({ busy: e, error: t, load: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+function BSe({ busy: e, error: t, load: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(NW, {
+ children: [/* @__PURE__ */ (0, F.jsx)(VZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, F.jsx)(NW, {
message: t,
onRetry: n
}) : null] });
}
-function BSe(e, t) {
- let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
+function VSe(e, t) {
+ let { helpers: n, actions: r } = e, [i, a] = (0, P.useState)(0), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(!1), m = (0, P.useRef)(!1), h = (0, P.useRef)(null), g = (0, P.useRef)({
helpers: n,
actions: r
});
return g.current = {
helpers: n,
actions: r
- }, (0, F.useEffect)(() => {
+ }, (0, P.useEffect)(() => {
let e = h.current;
if (!e) return;
let t = !0;
return g.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => V(ar, e),
+ read: (e) => B(sr, e),
busy: (e) => {
t && (m.current = e, s(e));
},
@@ -61158,10 +61165,10 @@ function BSe(e, t) {
ok: !1,
error: e.error
}] } : e;
- g.current.actions.checkReport(n), d(Si({
+ g.current.actions.checkReport(n), d(wi({
...n,
status: e.status || "done"
- })), m.current = !1, s(!1), p(!1), U.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
+ })), m.current = !1, s(!1), p(!1), H.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
}
}), () => {
t = !1;
@@ -61171,12 +61178,12 @@ function BSe(e, t) {
host: h,
busyRef: m,
starting: c,
- start: (0, F.useCallback)(async (e) => {
+ start: (0, P.useCallback)(async (e) => {
if (m.current) return;
m.current = !0, l(e ? "older" : "check"), d("");
let t = !1;
try {
- let n = await H(ar, e ? {
+ let n = await V(sr, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -61184,8 +61191,8 @@ function BSe(e, t) {
} catch (t) {
g.current.actions.checkReport({ results: [{
ok: !1,
- error: en(t)
- }] }), e && U.invalidateQueries({ queryKey: ["follow-feed"] });
+ error: tn(t)
+ }] }), e && H.invalidateQueries({ queryKey: ["follow-feed"] });
} finally {
m.current = t, l("");
}
@@ -61195,33 +61202,33 @@ function BSe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function VSe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
- let a = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
+function HSe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+ let a = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => GU(e.authorSources.get(t) || [], n);
- return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ let o = (t) => WU(e.authorSources.get(t) || [], n);
+ return e.authorOrder.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-authors-bar": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
ref: a,
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = KU(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = GU(a), c = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: qU(a, o(n)) }
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: KU(a, o(n)) }
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(MZ, {
+ return s ? /* @__PURE__ */ (0, F.jsx)(MZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
"aria-label": `查看 ${o(n)} 的作者页`,
children: c
- }, n) : /* @__PURE__ */ (0, I.jsx)("button", {
+ }, n) : /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-author": n,
"aria-pressed": t === n,
@@ -61232,34 +61239,34 @@ function VSe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function HSe({ rows: e, pressed: t, props: n, onPick: r }) {
- let i = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+function USe({ rows: e, pressed: t, props: n, onPick: r }) {
+ let i = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
n.helpers.wireDrag(i.current);
- }, [n.helpers]), e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }, [n.helpers]), e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: i,
"data-follow-works": "",
"aria-label": "按题材筛选",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-follow-work": e[0],
"aria-pressed": t === e[0],
onClick: () => r(e[0]),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-mark": "",
- "data-fallback": Mn(e[1], 2),
+ "data-fallback": Pn(e[1], 2),
dangerouslySetInnerHTML: { __html: n.helpers.workMark(e) }
}), e[1]]
}, e[0]))
}) : null;
}
-function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = nI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = nI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
- (0, F.useEffect)(() => {
+function WSe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = tI(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = tI(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+ (0, P.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(YF, {
+ return /* @__PURE__ */ (0, F.jsx)(JF, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -61268,16 +61275,16 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
},
topClassName: "gap-1.5 overflow-visible",
busy: r,
- panes: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ panes: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: c,
"data-view-glide": "",
"aria-hidden": "true"
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
ref: l,
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [m ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ top: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [m ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: d,
role: "group",
"aria-label": "媒体类型",
@@ -61297,7 +61304,7 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"image"
]].map(([e, n, r, i, o]) => {
let s = `${n} ${Math.max(0, r || 0).toLocaleString()}`;
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-media-view": e,
"data-media-icon": o,
@@ -61308,19 +61315,19 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
onClick: () => {
t.media !== e && a({ media: e });
},
- dangerouslySetInnerHTML: { __html: z(i) }
+ dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(BZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)(BZ, {})] }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: u,
role: "group",
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Ai.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [Mi.map(([e, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -61331,12 +61338,12 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(BZ, {}) : null]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, e)), v ? /* @__PURE__ */ (0, F.jsx)(BZ, {}) : null]
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: p,
"data-entity-tags": "",
children: [
- _.map(([t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ _.map(([t, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-provider": t,
"data-entity-press": "",
@@ -61344,16 +61351,16 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: UU(t, n) }
+ dangerouslySetInnerHTML: { __html: HU(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(BZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(ZF, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, F.jsx)(BZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, F.jsxs)(XF, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${oa(e.groups, n)}`,
+ "data-tag-cat": `r34-${ca(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
- children: [Al(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Ml(n), r ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": n,
children: String(r)
}) : null]
@@ -61361,56 +61368,56 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
]
})]
})] }),
- bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("h3", {
+ bottom: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, I.jsx)($z, {
+ /* @__PURE__ */ (0, F.jsx)(Qz, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(fW, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(dW, {
+ /* @__PURE__ */ (0, F.jsx)(fW, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(dW, {
label: "图片布局",
value: i.photoLayout,
- options: ISe,
+ options: LSe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
- }), /* @__PURE__ */ (0, I.jsxs)("button", {
+ }), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-follow-images-only": "",
"aria-pressed": i.imagesOnly,
title: "仅显示图片",
"aria-label": "仅显示图片",
onClick: () => s.setImagesOnly(!i.imagesOnly),
- children: [i.imagesOnly ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [i.imagesOnly ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-view-glide": "",
"aria-hidden": "true"
- }) : null, /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : null, /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z("captions-off") }
+ dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- ji.map(([e, n]) => {
+ Ni.map(([e, n]) => {
let r = t.sort === e;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": na(e, n, t.sort, t.dir) || void 0,
+ "aria-label": ia(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = ta(e, t.sort, t.dir);
+ let n = ra(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(RU, {
- a: PSe,
- b: FSe,
+ children: [n, r ? /* @__PURE__ */ (0, F.jsx)(LU, {
+ a: FSe,
+ b: ISe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -61421,15 +61428,15 @@ function USe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function WSe({ conditions: e, onDrop: t, onClear: n }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function GSe({ conditions: e, onDrop: t, onClear: n }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
- children: e.length ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e.map((e) => {
+ children: e.length ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e.map((e) => {
let n = `${e.kind === "标签" ? "" : `${e.kind} `}${e.label}`;
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-combo-chip": "",
- children: [n, /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [n, /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": `撤掉 ${n}`,
"data-follow-drop": e.key,
@@ -61438,7 +61445,7 @@ function WSe({ conditions: e, onDrop: t, onClear: n }) {
children: "✕"
})]
}, `${e.kind}:${e.key}`);
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-combo-clear": "",
onClick: n,
@@ -61446,19 +61453,19 @@ function WSe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function GSe({ count: e }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function KSe({ count: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-broken": "",
- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${z("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(UZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(UZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var UZ = () => zZ(window.location.search);
-function KSe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+function qSe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images", u = MW(e, () => c.listSkeletonHtml(s.media));
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": u.fading ? "" : void 0,
- children: [u.layer, e ? null : /* @__PURE__ */ (0, I.jsx)(qSe, {
+ children: [u.layer, e ? null : /* @__PURE__ */ (0, F.jsx)(JSe, {
facets: t,
data: n,
context: r,
@@ -61469,15 +61476,15 @@ function KSe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})]
});
}
-function qSe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function JSe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
let { view: s, actions: c } = r, l = GZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = jSe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = MSe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, I.jsx)(PZ, {
+ return /* @__PURE__ */ (0, F.jsx)(PZ, {
group: t,
authorSources: o,
media: s.media,
@@ -61491,7 +61498,7 @@ function qSe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(JSe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(YSe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -61504,9 +61511,9 @@ function qSe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
tags: [],
durMin: 0,
durMax: 0,
- media: t.groups.length ? t.groups.some((e) => Ji(e).has("video")) ? "videos" : "images" : s.media
+ media: t.groups.length ? t.groups.some((e) => Xi(e).has("video")) ? "videos" : "images" : s.media
})
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: d,
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
@@ -61515,21 +61522,21 @@ function qSe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
});
}
function WZ(e, t) {
- return Yi(e, t.media).id;
+ return Zi(e, t.media).id;
}
-function JSe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function YSe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
- actions: i ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: i ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(iI, {
+ }) : a ? r : /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -61538,55 +61545,55 @@ function JSe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var YSe = {
+var XSe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
function GZ(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = Ii(t, n).queryKey, l = (e, t, n) => n((n) => {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, P.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, P.useState)(() => /* @__PURE__ */ new Map()), c = Ri(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- U.setQueryData(c, (r) => r && ra(r, t, e, n));
- }, d = () => void U.invalidateQueries({
+ H.setQueryData(c, (r) => r && aa(r, t, e, n));
+ }, d = () => void H.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = Bi(U.getQueryData(c));
+ let t = Hi(H.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, p = Pt({
- mutationFn: ({ id: e, to: t }) => H(dr, {
+ }, p = Ft({
+ mutationFn: ({ id: e, to: t }) => V(pr, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(YSe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await H(dr, {
+ u(t, n), d(), r.toast(XSe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await V(pr, {
item: t,
to: i
}), u(t, i), d();
} });
},
onError: (e, { id: t }) => {
- l(t, en(e), s), r.failure("更新关注状态", e);
+ l(t, tn(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), m = Pt({
- mutationFn: (e) => H("/api/follow/save", { item: e }),
+ }), m = Ft({
+ mutationFn: (e) => V("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到数据库");
},
onError: (e, t) => {
- l(t, en(e), s), r.failure("保存到数据库", e);
+ l(t, tn(e), s), r.failure("保存到数据库", e);
},
onSettled: (e, t, n) => l(n, "", a)
- }), h = (0, F.useRef)({
+ }), h = (0, P.useRef)({
statusMutation: p,
saveMutation: m,
before: f
@@ -61598,38 +61605,38 @@ function GZ(e) {
}, {
busy: i,
failures: o,
- status: (0, F.useCallback)((e, t) => {
+ status: (0, P.useCallback)((e, t) => {
l(e, t, a), l(e, "", s), h.current.statusMutation.mutate({
id: e,
to: t,
was: h.current.before(e)
});
}, []),
- save: (0, F.useCallback)((e) => {
+ save: (0, P.useCallback)((e) => {
l(e, "save", a), l(e, "", s), h.current.saveMutation.mutate(e);
}, [])
};
}
//#endregion
//#region src/react/entity-body/entity-online.tsx
-function XSe(e) {
+function ZSe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = MW(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(t.error),
+ return !n && t.isError ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(t.error),
onRetry: () => {
t.refetch();
}
- }) : /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, I.jsx)(ZSe, {
+ a || !n ? null : /* @__PURE__ */ (0, F.jsx)(QSe, {
...e,
data: n
}),
- !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(mY, {
+ !a && n?.has_more ? /* @__PURE__ */ (0, F.jsx)(mY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -61639,12 +61646,12 @@ function XSe(e) {
]
});
}
-function ZSe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function QSe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = GZ({
view: e,
revision: 0,
actions: c
- }), d = (0, F.useMemo)(() => {
+ }), d = (0, P.useMemo)(() => {
let e = new Map((n.sources || []).map((e) => [e.id, e])), t = /* @__PURE__ */ new Map();
return (n.sources || []).forEach((e) => {
e.author_key && (t.has(e.author_key) || t.set(e.author_key, []), t.get(e.author_key).push(e));
@@ -61657,8 +61664,8 @@ function ZSe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-layout": o,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
- let n = Yi(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(PZ, {
+ let n = Zi(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
+ return /* @__PURE__ */ (0, F.jsx)(PZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -61671,34 +61678,34 @@ function ZSe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(QSe, {
+ }) : /* @__PURE__ */ (0, F.jsx)($Se, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: ESe(n.sources || [], e.author)
+ sources: DSe(n.sources || [], e.author)
});
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": f ? "" : void 0,
...p,
children: m
});
}
-function QSe({ searched: e, clear: t, actions: n, sources: r }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function $Se({ searched: e, clear: t, actions: n, sources: r }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
- actions: e ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: e ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(DSe, {
+ }) : r.length ? /* @__PURE__ */ (0, F.jsx)(OSe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(iI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -61744,7 +61751,7 @@ function YZ(e, t) {
y1: a + r
});
}
-function $Se(e, t) {
+function eCe(e, t) {
if (!JZ(e) || !(t > 0)) return KZ(e);
let n = Math.min(e.width, e.height * t);
return qZ({
@@ -61754,7 +61761,7 @@ function $Se(e, t) {
y1: e.height
});
}
-function eCe(e, t, n) {
+function tCe(e, t, n) {
if (!JZ(t) || !(n > 0)) return KZ(t);
let r = XZ(e, t), i = YZ({
width: r.x1 - r.x0,
@@ -61803,7 +61810,7 @@ function QZ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function tCe(e, t, n, r, i = null) {
+function nCe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -61812,7 +61819,7 @@ function tCe(e, t, n, r, i = null) {
};
return XZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function nCe(e, t) {
+function rCe(e, t) {
return JZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -61825,7 +61832,7 @@ function nCe(e, t) {
height: 0
};
}
-function rCe(e, t) {
+function iCe(e, t) {
if (!JZ(t)) return {
size: "cover",
position: "50% 50%"
@@ -61836,7 +61843,7 @@ function rCe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function iCe(e, t) {
+function aCe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -61848,17 +61855,17 @@ function iCe(e, t) {
function $Z(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function aCe(e, t) {
+function oCe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var oCe = .02, eQ = 1.08;
+var sCe = .02, eQ = 1.08;
function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
- let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
- (0, F.useEffect)(() => {
+ let s = (0, P.useRef)(null), c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1), [d, f] = (0, P.useState)(null);
+ (0, P.useEffect)(() => {
u(!1);
- }, [e]), (0, F.useEffect)(() => {
+ }, [e]), (0, P.useEffect)(() => {
let e = s.current;
if (!e) return;
let t = new ResizeObserver(() => f({
@@ -61867,7 +61874,7 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}));
return t.observe(e), () => t.disconnect();
}, []);
- let p = (0, F.useCallback)((e, t) => {
+ let p = (0, P.useCallback)((e, t) => {
let n = s.current;
return !n || !r ? {
dx: 0,
@@ -61891,14 +61898,14 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(ZZ(n.box, o.dx, o.dy, r)) : i(tCe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(ZZ(n.box, o.dx, o.dy, r)) : i(nCe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * oCe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * sCe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -61906,7 +61913,7 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(ZZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(QZ(n, e.key === "-" ? 1 / eQ : eQ, r, t)));
}
- let v = n && r ? nCe(XZ(n, r, t), r) : null, y = v ? aCe(v, d) : !1, b = v ? {
+ let v = n && r ? rCe(XZ(n, r, t), r) : null, y = v ? oCe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -61914,11 +61921,11 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
"--crop-r": `${v.left + v.width}%`,
"--crop-b": `${v.top + v.height}%`
} : void 0;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "relative inline-block max-w-full select-none",
style: b,
children: [
- /* @__PURE__ */ (0, I.jsx)("img", {
+ /* @__PURE__ */ (0, F.jsx)("img", {
ref: s,
src: e,
alt: "",
@@ -61936,24 +61943,24 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onError: () => u(!0),
className: "block max-h-crop-frame max-w-full object-contain"
}),
- l || !v ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ l || !v ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 top-0 h-(--crop-t) bg-scrim"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute inset-x-0 bottom-0 top-(--crop-b) bg-scrim"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute left-0 top-(--crop-t) h-(--crop-h) w-(--crop-l) bg-scrim"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"aria-hidden": !0,
className: "pointer-events-none absolute right-0 left-(--crop-r) top-(--crop-t) h-(--crop-h) bg-scrim"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
role: "group",
tabIndex: 0,
"aria-label": o,
@@ -61967,7 +61974,7 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
n && r && i(QZ(n, e.deltaY > 0 ? eQ : 1 / eQ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-crop-handle": !0,
"data-outside": y || void 0,
onPointerDown: m("resize"),
@@ -61978,7 +61985,7 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
})
})
] }),
- l ? /* @__PURE__ */ (0, I.jsx)("p", {
+ l ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "p-4 text-body-2-regular text-text-secondary",
children: "这张图读不出来,换一张再框。"
}) : null
@@ -61987,13 +61994,13 @@ function tQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var sCe = "/api/avatar-choices", nQ = "/api/avatar-pick", cCe = "/api/avatar-code-cover", rQ = "/api/avatar-frame", lCe = "/avatar-choice", iQ = (e, t) => [
+var cCe = "/api/avatar-choices", nQ = "/api/avatar-pick", lCe = "/api/avatar-code-cover", rQ = "/api/avatar-frame", uCe = "/avatar-choice", iQ = (e, t) => [
"avatar-choices",
e,
t
-], aQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, oQ = (e, t, n, r = "") => `${lCe}${aQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), sQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", uCe = (e, t, n) => V(sCe + aQ(e, t), n), dCe = (e) => H(cCe, { code: e });
-async function fCe(e, t, n) {
- let r = await H(rQ, {
+], aQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, oQ = (e, t, n, r = "") => `${uCe}${aQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), sQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", dCe = (e, t, n) => B(cCe + aQ(e, t), n), fCe = (e) => V(lCe, { code: e });
+async function pCe(e, t, n) {
+ let r = await V(rQ, {
kind: e,
id: t,
ref: n.ref
@@ -62006,11 +62013,11 @@ async function fCe(e, t, n) {
bases: r.bases
};
}
-var pCe = (e, t, n) => H(rQ, {
+var mCe = (e, t, n) => V(rQ, {
kind: e,
id: t,
url: n
-}), mCe = (e, t, n) => cQ(`${rQ}${aQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+}), hCe = (e, t, n) => cQ(`${rQ}${aQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
async function cQ(e, t) {
let n = await fetch(e, {
method: "POST",
@@ -62018,19 +62025,19 @@ async function cQ(e, t) {
body: t
}), r = await n.json().catch(() => null);
if (n.ok) return r;
- throw new Bn(r?.error || `请求失败(${n.status})`, n.status, r);
+ throw new Hn(r?.error || `请求失败(${n.status})`, n.status, r);
}
function lQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? eCe(e.focus, t, n) : YZ(t, n);
+ return e.focus && r ? tCe(e.focus, t, n) : YZ(t, n);
}
-var hCe = (e) => e.crop && JZ({
+var gCe = (e) => e.crop && JZ({
width: e.width,
height: e.height
});
-async function gCe(e, t, n) {
+async function _Ce(e, t, n) {
if (!("file" in n)) {
- await H(nQ, {
+ await V(nQ, {
kind: e,
id: t,
...n
@@ -62046,16 +62053,16 @@ async function gCe(e, t, n) {
await cQ(`${nQ}${aQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
var uQ = 2;
-function _Ce(e, t) {
+function vCe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按${`「${n.slice(0, uQ).join("」「")}」`}${n.length > uQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var vCe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function yCe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${vCe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var yCe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function bCe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${yCe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var dQ = (e) => e.cast > 1, bCe = (e) => dQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, xCe = {
+var dQ = (e) => e.cast > 1, xCe = (e) => dQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, SCe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -62065,7 +62072,7 @@ var dQ = (e) => e.cast > 1, bCe = (e) => dQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function SCe(e) {
+function CCe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -62076,39 +62083,39 @@ function SCe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var CCe = (e) => `${xCe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (dQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), wCe = 8, TCe = 3 / 4;
-async function ECe(e, t, n) {
+var wCe = (e) => `${SCe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (dQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), TCe = 8, ECe = 3 / 4;
+async function DCe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await fCe(e, t, n.choice) };
- case "code": return { choice: await dCe(n.code) };
- case "url": return { choice: await pCe(e, t, n.url) };
+ case "choice": return { choice: await pCe(e, t, n.choice) };
+ case "code": return { choice: await fCe(n.code) };
+ case "url": return { choice: await mCe(e, t, n.url) };
case "file": return {
- choice: await mCe(e, t, n.file),
+ choice: await hCe(e, t, n.file),
file: n.file
};
}
}
-function DCe({ kind: e, entityId: t, name: n, onPicked: r }) {
- let [i, a] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+function OCe({ kind: e, entityId: t, name: n, onPicked: r }) {
+ let [i, a] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
- children: /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(Efe, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ofe, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Mz, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(OCe, {
+ children: /* @__PURE__ */ (0, F.jsx)(kCe, {
kind: e,
entityId: t,
name: n,
@@ -62117,24 +62124,24 @@ function DCe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = iV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = iQ(e, t), m = (0, F.useRef)(!1), h = Nt({
+function kCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, P.useRef)(null), o = rV(), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(null), p = iQ(e, t), m = (0, P.useRef)(!1), h = Pt({
queryKey: p,
- queryFn: ({ signal: n }) => uCe(e, t, n),
+ queryFn: ({ signal: n }) => dCe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
- (0, F.useEffect)(() => () => {
- m.current && U.removeQueries({ queryKey: iQ(e, t) });
+ (0, P.useEffect)(() => () => {
+ m.current && H.removeQueries({ queryKey: iQ(e, t) });
}, [e, t]);
- let g = Pt({
- mutationFn: (n) => gCe(e, t, n),
+ let g = Ft({
+ mutationFn: (n) => _Ce(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
- }), _ = Pt({
- mutationFn: (n) => ECe(e, t, n),
+ }), _ = Ft({
+ mutationFn: (n) => DCe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -62155,39 +62162,39 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? Hn(g.error) : "") || (!d && _.error ? Hn(_.error) : "") || (h.error ? Hn(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : yCe(x), E = !!C && !!h.error && C === Hn(h.error), D = h.isPending || S.length > 0;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? Wn(g.error) : "") || (!d && _.error ? Wn(_.error) : "") || (h.error ? Wn(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : bCe(x), E = !!C && !!h.error && C === Wn(h.error), D = h.isPending || S.length > 0;
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(Pz, { children: /* @__PURE__ */ (0, I.jsx)(wz, { className: "size-6" }) }),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsx)(Nz, { children: /* @__PURE__ */ (0, F.jsx)(Cz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(jI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(AI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(sZ, {
+ }), !d && S.length ? /* @__PURE__ */ (0, F.jsxs)(sZ, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? bCe(d.choice) : _Ce(n, x)
+ children: d ? xCe(d.choice) : vCe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ T ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ C ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: E ? /* @__PURE__ */ (0, I.jsx)(q, {
+ action: E ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(h.isFetching),
+ ...zz(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -62197,14 +62204,14 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, {
- icon: fz,
+ /* @__PURE__ */ (0, F.jsx)(VF, {
+ icon: dz,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(ACe, {
+ }), d ? /* @__PURE__ */ (0, F.jsx)(jCe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -62213,32 +62220,32 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
g.reset(), _.reset(), f(null);
},
confirm: b
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [D ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [D ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "relative flex min-h-0 flex-1 flex-col",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
ref: o,
className: "flex min-h-0 flex-1 flex-col overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
role: "listbox",
"aria-label": "备选头像",
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: wCe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: TCe }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { className: "relative block w-full aspect-avatar-choice skeleton-sheen" }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "relative mx-auto w-2/3 rounded-sm skeleton-sheen",
children: "\xA0"
})]
- }, t)) : S.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ }, t)) : S.map((n) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: CCe(n),
- ...Bz(w),
+ title: wCe(n),
+ ...zz(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -62247,25 +62254,25 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, I.jsx)(kCe, {
+ /* @__PURE__ */ (0, F.jsx)(ACe, {
src: oQ(e, t, n.ref, sQ(n, n.ref)),
choice: n
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "truncate px-1",
children: n.label
}),
- n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
+ n.current ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(sZ, {
+ children: /* @__PURE__ */ (0, F.jsx)(sZ, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- dQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ dQ(n) ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(sZ, {
+ children: /* @__PURE__ */ (0, F.jsxs)(sZ, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -62275,9 +62282,9 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}, n.ref))
})
})
- }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-col gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsxs)("form", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("form", {
className: "flex min-w-0 items-center gap-2",
onSubmit: (e) => {
e.preventDefault(), l.trim() && !w && _.mutate({
@@ -62285,31 +62292,31 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
code: l.trim()
});
},
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, F.jsx)(jz, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...Bz(v("code")),
+ ...zz(v("code")),
children: "取封面来框"
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Bz(v("file")),
+ ...zz(v("file")),
children: "从本机选图片"
}),
- /* @__PURE__ */ (0, I.jsx)("input", {
+ /* @__PURE__ */ (0, F.jsx)("input", {
ref: a,
type: "file",
accept: "image/jpeg,image/png,image/webp,image/avif,image/gif,image/bmp,image/tiff,image/x-icon,image/vnd.microsoft.icon,image/jp2,.jpg,.jpeg,.jpe,.jfif,.png,.webp,.avif,.gif,.bmp,.dib,.tif,.tiff,.ico,.jp2,.j2k,.jpf,.jpx",
@@ -62318,25 +62325,25 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "hidden",
onChange: y
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "支持常见图片格式,动图使用第一帧"
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, F.jsx)(jz, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
disabled: !s.trim(),
- ...Bz(v("url")),
+ ...zz(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -62350,19 +62357,19 @@ function OCe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function kCe({ src: e, choice: t }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
- (0, F.useEffect)(() => {
+function ACe({ src: e, choice: t }) {
+ let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1), [a, o] = (0, P.useState)(!1);
+ (0, P.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
}, []);
let s = {
width: t.width,
height: t.height
- }, c = hCe(t) ? iCe(lQ(t, s, TCe), s) : null, l = r || a ? !0 : void 0;
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ }, c = gCe(t) ? aCe(lQ(t, s, ECe), s) : null, l = r || a ? !0 : void 0;
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
- children: [a ? null : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [a ? null : /* @__PURE__ */ (0, F.jsx)("img", {
ref: n,
loading: "lazy",
alt: "",
@@ -62377,23 +62384,23 @@ function kCe({ src: e, choice: t }) {
"--tile-height": c.height,
"--tile-width": c.width
} : void 0
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-revealed": l,
className: "reveal-skeleton pointer-events-none absolute inset-0 skeleton-sheen"
})]
});
}
-function ACe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = sQ(n, s), m = oQ(e, t, s, p), h = iV();
+function jCe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, P.useState)(o[0]), [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(null), p = sQ(n, s), m = oQ(e, t, s, p), h = rV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? rCe(d, l) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ let _ = d && l ? iCe(d, l) : null;
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [m ? /* @__PURE__ */ (0, I.jsx)(tQ, {
+ children: [m ? /* @__PURE__ */ (0, F.jsx)(tQ, {
src: m,
aspect: 1,
box: d,
@@ -62403,23 +62410,23 @@ function ACe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
u(e), JZ(e) && f(s === n.ref ? lQ(n, e, 1) : YZ(e, 1));
},
onBox: f
- }) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : null, o.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
role: "radiogroup",
"aria-label": "底图",
className: "flex flex-wrap justify-center gap-2",
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: o.map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": e === s,
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: SCe(e)
+ children: CCe(e)
}, e))
}) : null]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-crop-preview": !0,
className: "size-crop-preview shrink-0 rounded-full border border-separator-border bg-background-secondary-default bg-(image:--crop-preview) bg-(position:--crop-preview-at) bg-(length:--crop-preview-size) bg-no-repeat",
@@ -62428,26 +62435,26 @@ function ACe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"--crop-preview-size": _.size,
"--crop-preview-at": _.position
} : void 0
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: i,
- ...Bz(r),
+ ...zz(r),
children: "返回备选图片"
}),
- n.crop ? null : /* @__PURE__ */ (0, I.jsx)(q, {
+ n.crop ? null : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(r),
+ ...zz(r),
onClick: () => {
r || a(null);
},
children: "整张使用"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
disabled: !d || !l,
- ...Bz(r),
+ ...zz(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -62465,14 +62472,14 @@ function ACe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
//#region src/react/components/source-picture.tsx
var fQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
function pQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? fQ(e.code, t, r) : u ? Ha(e, !0) : e.cover_url || "";
- if ((0, F.useLayoutEffect)(() => {
+ let [r, i] = (0, P.useState)(0), [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(""), l = (0, P.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? fQ(e.code, t, r) : u ? Wa(e, !0) : e.cover_url || "";
+ if ((0, P.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
src: p,
alt: f
});
- }, [p, f]), !d) return p ? /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [p, f]), !d) return p ? /* @__PURE__ */ (0, F.jsx)("img", {
ref: l,
"data-jav-picture": n ? void 0 : "",
src: p,
@@ -62482,18 +62489,18 @@ function pQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : n ? /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: "封面未取得"
})
});
- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ if (s === p) return n ? /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => i((e) => e + 1),
children: "立即重试"
@@ -62512,25 +62519,25 @@ function pQ({ item: e, image: t, thumbnail: n = !1 }) {
alt: f
});
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m || a ? null : n ? /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ m || a ? null : n ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "relative block h-full w-full skeleton-sheen",
"aria-label": "正在读取预览"
- }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-picture-wait": "",
"data-skeleton": "image",
role: "status",
"aria-label": "正在读取图片",
- children: /* @__PURE__ */ (0, I.jsx)("span", { className: "relative skeleton-sheen" })
+ children: /* @__PURE__ */ (0, F.jsx)("span", { className: "relative skeleton-sheen" })
}),
- !m && a ? /* @__PURE__ */ (0, I.jsx)("img", {
+ !m && a ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-jav-picture": n ? void 0 : "",
"data-source-picture": "",
src: a.src,
alt: a.alt,
referrerPolicy: "no-referrer"
}) : null,
- /* @__PURE__ */ (0, I.jsx)("img", {
+ /* @__PURE__ */ (0, F.jsx)("img", {
ref: l,
"data-jav-picture": n ? void 0 : "",
"data-source-picture": "",
@@ -62548,24 +62555,24 @@ function pQ({ item: e, image: t, thumbnail: n = !1 }) {
//#endregion
//#region src/react/components/source-avatar.tsx
function mQ({ code: e, person: t, detail: n = !1 }) {
- let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
- (0, F.useEffect)(() => {
+ let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(n || typeof IntersectionObserver > "u");
+ (0, P.useEffect)(() => {
if (!r.current || i) return;
let e = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && (a(!0), e.disconnect());
}, { rootMargin: "100px" });
return e.observe(r.current), () => e.disconnect();
}, [i]);
- let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let o = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: r,
"data-source-initial": "",
- children: Nn(t.name)
- }), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
+ children: Fn(t.name)
+ }), i && t.source_actor_id ? /* @__PURE__ */ (0, F.jsx)("img", {
src: fQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
- return n ? /* @__PURE__ */ (0, I.jsx)("span", {
+ return n ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
children: o
}) : o;
@@ -62573,15 +62580,15 @@ function mQ({ code: e, person: t, detail: n = !1 }) {
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
function hQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(CU), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
- (0, F.useLayoutEffect)(() => {
+ let a = (0, P.useContext)(SU), o = (0, P.useRef)(null), [s, c] = (0, P.useState)([]), l = e?.items.length ? e.html : "";
+ (0, P.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
t,
l,
e,
i
- ]), (0, F.useEffect)(() => {
+ ]), (0, P.useEffect)(() => {
l && n(o.current?.querySelector(".feednewrow") ?? null), c([...o.current?.querySelectorAll("[data-feed-source-avatar]") ?? []]);
}, [n, l]);
let u = async (e) => {
@@ -62598,14 +62605,14 @@ function hQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
s.dataset.feedAction = e ? "unwant" : "want", s.setAttribute("aria-pressed", String(e)), s.title = e ? "取消想要" : "想要";
} else l === "ignore" ? c.remove() : c.classList.add("isread"), o.current?.querySelector("[data-feed-id]") || (t.hidden = !0, i?.(!1));
};
- return l ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ return l ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: o,
className: "contents",
onClick: (e) => {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(mQ, {
+ }), s.map((e, t) => (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(mQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -62616,12 +62623,12 @@ function hQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
//#endregion
//#region src/react/entity-hero/glyph.tsx
function gQ({ name: e }) {
- let { wide: t, viewBox: n } = nn(e);
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+ let { wide: t, viewBox: n } = rn(e);
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: n,
"aria-hidden": "true",
"data-glyph": t ? "wide" : void 0,
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
//#endregion
@@ -62635,8 +62642,8 @@ function _Q(e, t) {
}
var vQ = (e) => !!e?.isConnected && e.matches(":popover-open");
function yQ(e, t, n, r) {
- let i = (0, F.useRef)(r);
- i.current = r, (0, F.useEffect)(() => {
+ let i = (0, P.useRef)(r);
+ i.current = r, (0, P.useEffect)(() => {
if (!e) return;
let r = () => {
t.current && vQ(n.current) ? _Q(t.current, n.current) : i.current();
@@ -62654,7 +62661,7 @@ function yQ(e, t, n, r) {
]);
}
function bQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
- let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
+ let o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(!1), u = (0, P.useRef)(!1), d = (0, P.useRef)(0), f = () => {
clearTimeout(d.current), u.current = !1, vQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
clearTimeout(d.current), s.current && o.current && !vQ(s.current) && (s.current.showPopover(), _Q(o.current, s.current), l(!0));
@@ -62663,14 +62670,14 @@ function bQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return yQ(c, o, s, f), (0, F.useEffect)(() => {
+ return yQ(c, o, s, f), (0, P.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
!o.current?.contains(t) && !s.current?.contains(t) && f();
};
return addEventListener("pointerdown", e, !0), () => removeEventListener("pointerdown", e, !0);
- }, [c]), (0, F.useEffect)(() => () => clearTimeout(d.current), []), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+ }, [c]), (0, P.useEffect)(() => () => clearTimeout(d.current), []), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("button", {
ref: o,
type: "button",
"data-hero-more": i,
@@ -62692,7 +62699,7 @@ function bQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
e.key === "Escape" && vQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: s,
id: e,
popover: "manual",
@@ -62701,23 +62708,23 @@ function bQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
"data-hero-pop": "",
onPointerEnter: () => clearTimeout(d.current),
onPointerLeave: m,
- children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ children: [/* @__PURE__ */ (0, F.jsx)("p", {
"data-hero-pop-head": "",
children: r
}), a]
})] });
}
-function jCe({ following: e, busy: t, onToggle: n, tip: r }) {
- let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
+function MCe({ following: e, busy: t, onToggle: n, tip: r }) {
+ let i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), [s, c] = (0, P.useState)(!1), l = (0, P.useRef)(!1), u = () => {
vQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
!l.current && o.current && i.current && !vQ(o.current) && (o.current.showPopover(), _Q(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return yQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ return yQ(s, i, o, () => c(!1)), (0, P.useEffect)(() => {
i.current && vQ(o.current) && _Q(i.current, o.current);
- }, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
+ }, [r]), /* @__PURE__ */ (0, F.jsxs)("label", {
ref: i,
"data-entry-feed": "",
onPointerEnter: d,
@@ -62725,8 +62732,8 @@ function jCe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(gQ, { name: "rss" }),
- /* @__PURE__ */ (0, I.jsx)("input", {
+ /* @__PURE__ */ (0, F.jsx)(gQ, { name: "rss" }),
+ /* @__PURE__ */ (0, F.jsx)("input", {
ref: a,
type: "checkbox",
role: "switch",
@@ -62747,7 +62754,7 @@ function jCe({ following: e, busy: t, onToggle: n, tip: r }) {
},
onBlur: f
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: o,
role: "tooltip",
id: "entityFeedTip",
@@ -62760,29 +62767,29 @@ function jCe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function MCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
- let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+function NCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+ let [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(Yue, {
+ }, []), /* @__PURE__ */ (0, F.jsxs)(Zue, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(DI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(EI, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(gQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(rR, {
+ children: /* @__PURE__ */ (0, F.jsx)(gQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, F.jsx)(nR, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: XB,
+ className: YB,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(Zue, {
+ children: /* @__PURE__ */ (0, F.jsxs)($ue, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(dR, {
+ /* @__PURE__ */ (0, F.jsx)(uR, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -62790,28 +62797,28 @@ function MCe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(pR, {
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(fR, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, I.jsx)(Mue, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(dR, { children: /* @__PURE__ */ (0, I.jsxs)(pR, {
+ /* @__PURE__ */ (0, F.jsx)(Pue, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, F.jsx)(uR, { children: /* @__PURE__ */ (0, F.jsxs)(fR, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "plus" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var NCe = (e) => e === "studio" || e === "agency", xQ = (e) => e === "performer" || e === "creator", PCe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function FCe(e) {
+var PCe = (e) => e === "studio" || e === "agency", xQ = (e) => e === "performer" || e === "creator", FCe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function ICe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
function SQ(e) {
@@ -62827,11 +62834,11 @@ function SQ(e) {
} : null;
}
function CQ(e, t) {
- let n = Tn(e, "performer"), r = Sn(t);
- return r && [e.label, n].map(Sn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
+ let n = Dn(e, "performer"), r = wn(t);
+ return r && [e.label, n].map(wn).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var wQ = (e) => ({ site: vn(e) });
-function ICe(e, t) {
+var wQ = (e) => ({ site: bn(e) });
+function LCe(e, t) {
let n = SQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -62857,7 +62864,7 @@ function ICe(e, t) {
mark: wQ(e)
};
if (e.link_kind === "social") {
- let t = xn(r);
+ let t = Cn(r);
return {
type: "icon",
url: r,
@@ -62869,13 +62876,13 @@ function ICe(e, t) {
type: "url",
url: r,
title: e.label || "",
- text: Tn(e, t, i),
+ text: Dn(e, t, i),
mark: wQ(e)
};
});
- return [...r, ...LCe(a)];
+ return [...r, ...RCe(a)];
}
-function LCe(e) {
+function RCe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -62884,7 +62891,7 @@ function LCe(e) {
}];
}
var TQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function RCe(e) {
+function zCe(e) {
return [
[
"legal_name",
@@ -62940,7 +62947,7 @@ function RCe(e) {
}]
}] : []);
}
-function zCe(e) {
+function BCe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -63004,7 +63011,7 @@ function EQ(e, t = 4) {
rest: e.length - n
};
}
-function BCe(e) {
+function VCe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -63015,40 +63022,40 @@ function BCe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function VCe(e) {
- return Ja({
+function HCe(e) {
+ return Xa({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: Qa(e.avatar_focus),
+ style: eo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
});
}
-function HCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = xQ(e), c = NCe(e), l = s ? zCe(n.profile) : c ? RCe(n.company_profile) : [], u = ICe(n, e), d = TQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, F.useRef)(null), m = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+function UCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = xQ(e), c = PCe(e), l = s ? BCe(n.profile) : c ? zCe(n.company_profile) : [], u = LCe(n, e), d = TQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, P.useRef)(null), m = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
o.wireScroller(p.current);
- }, [o, u.length]), (0, F.useEffect)(() => {
+ }, [o, u.length]), (0, P.useEffect)(() => {
o.wireScroller(m.current);
- }, [o, f.length]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("section", {
+ }, [o, f.length]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("section", {
"data-entity-card": "",
"aria-label": "资料",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-profile": l.length ? "facts" : "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(UCe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(WCe, {
kind: e,
name: t,
helpers: o,
people: s,
company: c
- }), s && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
+ }), s && n.id ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(DCe, {
+ children: /* @__PURE__ */ (0, F.jsx)(OCe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -63056,20 +63063,20 @@ function HCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
})
}) : null]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-identity": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-title": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("h2", { children: n.canonical_name }),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(MCe, {
+ /* @__PURE__ */ (0, F.jsx)("h2", { children: n.canonical_name }),
+ e === "tag" ? null : /* @__PURE__ */ (0, F.jsx)(NCe, {
current: n.canonical_name,
- choices: FCe(n),
+ choices: ICe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(Qz, { item: {
+ n.id ? /* @__PURE__ */ (0, F.jsx)(Zz, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -63077,16 +63084,16 @@ function HCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
} }) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(WCe, {
+ /* @__PURE__ */ (0, F.jsx)(GCe, {
kind: e,
entity: n,
actions: a
}),
- n.related_identities?.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ n.related_identities?.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-w-0 flex-wrap gap-2 text-caption-1-regular text-text-secondary",
children: n.related_identities.map((e) => {
let t = `${e.relation === "same_person" ? "同一人" : "关联账号"}:${e.canonical_name}`;
- return /* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
title: t,
className: "min-w-0 max-w-full text-text-primary underline wrap-anywhere",
@@ -63095,120 +63102,120 @@ function HCe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.id);
})
}) : null,
- u.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ u.length ? /* @__PURE__ */ (0, F.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, I.jsx)(XCe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, F.jsx)(ZCe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(ZCe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, F.jsx)(QCe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(qCe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, F.jsx)(JCe, {
follow: n.follow,
entity: n,
actions: a
}) : null
]
}),
- l.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
+ l.length ? /* @__PURE__ */ (0, F.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, I.jsx)(JCe, {
+ children: l.map((e) => /* @__PURE__ */ (0, F.jsx)(YCe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(YCe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, F.jsx)(XCe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
}, e.label))
}) : null
]
- }), f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }), f.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-foot": "",
"aria-label": "同台艺人",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
ref: m,
"data-related-people": "",
- children: f.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: f.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-related-performer": e.k,
onClick: () => a.openEntity("performer", e.k),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(Nn(e.k))}</span>${VCe(e)}` }
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: `<span>${z(Fn(e.k))}</span>${HCe(e)}` }
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
})]
}, e.k))
})
}) : null]
- }), i ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(hQ, {
+ }), i ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(hQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function UCe({ kind: e, name: t, helpers: n, people: r, company: i }) {
- let [a] = (0, F.useState)(() => `${n.portraitImg()}<span>${B(Nn(t))}</span>`);
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function WCe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+ let [a] = (0, P.useState)(() => `${n.portraitImg()}<span>${z(Fn(t))}</span>`);
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
"data-fit-native": i ? "mark" : "portrait",
"data-entity-kind": e,
dangerouslySetInnerHTML: { __html: a }
});
}
-function WCe({ kind: e, entity: t, actions: n }) {
+function GCe({ kind: e, entity: t, actions: n }) {
let r = SQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
- }, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
- href: pn("agency", r.name, r.id),
+ }, a = r ? r.linked ? /* @__PURE__ */ (0, F.jsx)("a", {
+ href: hn("agency", r.name, r.id),
"data-agency": r.name,
onClick: i("agency", r.name),
children: r.name
- }) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
+ }) : r.name : null, o = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = BCe(t.name_groups);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ let e = VCe(t.name_groups);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(DQ, { entity: t }),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsx)(DQ, { entity: t }),
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "film" }), /* @__PURE__ */ (0, F.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(KCe, {
+ t.follow?.key ? /* @__PURE__ */ (0, F.jsx)(qCe, {
follow: t.follow,
actions: n
}) : null,
- a ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ a ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
}) : null,
- e ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ e ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(gQ, { name: "id-card" }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(gQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-alias-names": "",
title: "别名",
- children: e.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: _F(e),
+ children: e.names.map((e, t) => /* @__PURE__ */ (0, F.jsx)("span", {
+ lang: gF(e),
children: e
}, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(bQ, {
+ e.rest > 0 ? /* @__PURE__ */ (0, F.jsx)(bQ, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest.toLocaleString()} 个别名`,
heading: `${e.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(OQ, {
+ children: /* @__PURE__ */ (0, F.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, F.jsx)(OQ, {
label: e.label,
names: e.names
}, t)) })
@@ -63218,73 +63225,73 @@ function WCe({ kind: e, entity: t, actions: n }) {
]
});
}
- let s = t.display_aliases || [], c = e === "agency" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+ let s = t.display_aliases || [], c = e === "agency" ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
" · ",
- /* @__PURE__ */ (0, I.jsx)("b", { children: (t.member_count || 0).toLocaleString() }),
+ /* @__PURE__ */ (0, F.jsx)("b", { children: (t.member_count || 0).toLocaleString() }),
" 位艺人"
- ] }) : (t.labels || []).length ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+ ] }) : (t.labels || []).length ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
" · ",
- /* @__PURE__ */ (0, I.jsx)("b", { children: t.labels.length.toLocaleString() }),
+ /* @__PURE__ */ (0, F.jsx)("b", { children: t.labels.length.toLocaleString() }),
" 个厂牌"
] }) : null, l = t.maker;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(DQ, { entity: t }) : null,
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ e === "creator" ? /* @__PURE__ */ (0, F.jsx)(DQ, { entity: t }) : null,
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "film" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [o, c] })]
}),
- a ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ a ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "briefcase" }), /* @__PURE__ */ (0, F.jsx)("span", { children: a })]
}) : null,
- l ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ l ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
- href: pn("studio", l.name, l.id),
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "clapperboard" }), /* @__PURE__ */ (0, F.jsx)("a", {
+ href: hn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(GCe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, F.jsx)(KCe, { aliases: s }) : null
]
});
}
-function GCe({ aliases: e }) {
+function KCe({ aliases: e }) {
let { shown: t, rest: n } = EQ(e, 3);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(gQ, { name: "id-card" }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(gQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-alias-names": "",
title: "别名",
- children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
+ children: t.map((e, t) => /* @__PURE__ */ (0, F.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(bQ, {
+ n ? /* @__PURE__ */ (0, F.jsx)(bQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(OQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, F.jsx)("dl", { children: /* @__PURE__ */ (0, F.jsx)(OQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function KCe({ follow: e, actions: t }) {
+function qCe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "rss" }), /* @__PURE__ */ (0, F.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -63293,8 +63300,8 @@ function KCe({ follow: e, actions: t }) {
})]
});
}
-function qCe({ follow: e, entity: t, actions: n }) {
- let [r, i] = (0, F.useState)(""), a = async (e, t) => {
+function JCe({ follow: e, entity: t, actions: n }) {
+ let [r, i] = (0, P.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
try {
@@ -63304,15 +63311,15 @@ function qCe({ follow: e, entity: t, actions: n }) {
}
}
};
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
- ...Bz(r === e.key),
+ ...zz(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -63328,44 +63335,44 @@ function qCe({ follow: e, entity: t, actions: n }) {
});
}
function DQ({ entity: e }) {
- return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ return e.identity_labels?.length ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: "user-round" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
function OQ({ label: e, names: t }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, F.jsx)("dd", {
"data-wide": e ? void 0 : "",
- children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-pop-name": "",
- lang: _F(e.name),
- children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
+ lang: gF(e.name),
+ children: [e.name, e.reading ? /* @__PURE__ */ (0, F.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function JCe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function YCe({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("dt", { children: [/* @__PURE__ */ (0, F.jsx)(gQ, { name: e }), t] }), /* @__PURE__ */ (0, F.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function YCe({ tags: e }) {
+function XCe({ tags: e }) {
let { shown: t, rest: n } = EQ(e);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(bQ, {
+ }, e)), n ? /* @__PURE__ */ (0, F.jsx)(bQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
label: `另外 ${n.toLocaleString()} 个标签`,
heading: `${e.length.toLocaleString()} 个标签`,
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-fact-tags": "",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
@@ -63374,66 +63381,66 @@ function YCe({ tags: e }) {
}) : null] });
}
function kQ({ mark: e }) {
- if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
+ if ("brand" in e) return /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(gQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, F.jsx)(gQ, { name: e.brand })
});
- let t = z("globe") + ("site" in e ? `<img src="${B(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-icon": "",
dangerouslySetInnerHTML: { __html: t }
});
}
-function XCe({ link: e }) {
+function ZCe({ link: e }) {
switch (e.type) {
- case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
+ case "icon": return /* @__PURE__ */ (0, F.jsx)("a", {
"data-link": "icon",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(kQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, F.jsx)(kQ, { mark: e.mark })
});
- case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
+ case "gone": return /* @__PURE__ */ (0, F.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(kQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, F.jsx)(kQ, { mark: { globe: !0 } })
});
- case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
+ case "private": return /* @__PURE__ */ (0, F.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(kQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(kQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
});
- default: return /* @__PURE__ */ (0, I.jsxs)("a", {
+ default: return /* @__PURE__ */ (0, F.jsxs)("a", {
"data-link": "url",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(kQ, { mark: e.mark }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(kQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-link-label": "",
children: e.text
}),
- /* @__PURE__ */ (0, I.jsx)("svg", {
+ /* @__PURE__ */ (0, F.jsx)("svg", {
className: "ui-externalmark",
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-external-link" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-external-link" })
})
]
});
}
}
-function ZCe({ entity: e, actions: t, helpers: n }) {
- let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
+function QCe({ entity: e, actions: t, helpers: n }) {
+ let [r, i] = (0, P.useState)(!!e.feed?.following), [a, o] = (0, P.useState)(!1), s = (0, P.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
try {
@@ -63448,39 +63455,39 @@ function ZCe({ entity: e, actions: t, helpers: n }) {
await c(!e);
} }), e && t.refreshFeedAfterCheck());
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-entry-marks": "",
- children: [TQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [TQ(e).map((e, t) => /* @__PURE__ */ (0, F.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(gQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, F.jsx)(gQ, { name: e.mark }) : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-missav-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
- }), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "AV" })]
+ }), e.ordinal ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(jCe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, F.jsx)(MCe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: PCe(r)
+ tip: FCe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/use-entity-online.ts
-var QCe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function $Ce(e, t, n) {
- let [r, i] = (0, F.useState)(() => Xi(e));
- r.author !== e && i(Xi(e));
- let [a, o] = (0, F.useState)({
+var $Ce = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function ewe(e, t, n) {
+ let [r, i] = (0, P.useState)(() => Qi(e));
+ r.author !== e && i(Qi(e));
+ let [a, o] = (0, P.useState)({
author: e,
media: ""
});
@@ -63491,24 +63498,24 @@ function $Ce(e, t, n) {
let s = a.author === e ? a.media : "", c = (t) => o({
author: e,
media: t
- }), l = Ii(r, 0), u = Ft({
+ }), l = Ri(r, 0), u = It({
...l,
enabled: t && !!e
- }), d = Nt({
- queryKey: Li,
- queryFn: ({ signal: e }) => Ri(e),
+ }), d = Pt({
+ queryKey: zi,
+ queryFn: ({ signal: e }) => Bi(e),
enabled: t
- }), f = (0, F.useMemo)(() => Bi(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {
+ }), f = (0, P.useMemo)(() => Hi(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, P.useMemo)(() => {
let e = {
videos: 0,
images: 0
};
- return (f?.groups || []).forEach((t) => Ji(t).forEach((t) => {
+ return (f?.groups || []).forEach((t) => Xi(t).forEach((t) => {
e[t === "image" ? "images" : "videos"] += 1;
})), e;
}, [f]), h = m.images > m.videos ? "images" : "videos";
!s && f && !p && c(h);
- let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => Ji(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({
+ let g = s || h, _ = (0, P.useMemo)(() => (f?.groups || []).filter((e) => Xi(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, P.useMemo)(() => ({
sources: f?.sources || [],
aliases: f?.author_aliases || [],
credentials: new Set((d.data?.providers || []).filter((e) => e.present).map((e) => e.provider))
@@ -63523,22 +63530,22 @@ function $Ce(e, t, n) {
photoLayouts: n.photoLayouts,
imagesOnly: n.imagesOnly,
status: r.status,
- statuses: Ai,
+ statuses: Mi,
provider: r.provider,
providers: (y.providers || []).map((e) => [e, b.get(e) || e]),
tags: x.map(([e, t]) => ({
k: e,
- label: Al(e),
+ label: Ml(e),
n: t,
selected: r.tags.includes(e),
- cat: oa(f?.groups || [], e)
+ cat: ca(f?.groups || [], e)
})),
- sorts: ji.map(([e, t]) => ({
+ sorts: Ni.map(([e, t]) => ({
key: e,
label: t,
pressed: r.sort === e,
dir: r.sort === e ? r.dir : "",
- ariaLabel: na(e, t, r.sort, r.dir)
+ ariaLabel: ia(e, t, r.sort, r.dir)
}))
}, C = f?.counts || {}, w = r.status ? C[r.status] || 0 : Object.values(C).reduce((e, t) => e + (Number(t) || 0), 0), T = (e) => i((t) => ({
...t,
@@ -63555,15 +63562,15 @@ function $Ce(e, t, n) {
actions: {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
- sort: Ni,
- seed: QCe()
+ sort: Fi,
+ seed: $Ce()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
onlineProvider: (e) => T({ provider: r.provider === e ? "" : e }),
onlineTag: (e) => T({ tags: r.tags.includes(e) ? r.tags.filter((t) => t !== e) : [...r.tags, e] }),
onlineSort: (e) => {
- let t = ta(e, r.sort, r.dir);
+ let t = ra(e, r.sort, r.dir);
t && T(t);
}
},
@@ -63587,14 +63594,14 @@ function $Ce(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function ewe(e) {
- let { kind: t, name: n } = e, r = Nt(HX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function twe(e) {
+ let { kind: t, name: n } = e, r = Pt(HX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
- return (0, F.useLayoutEffect)(() => {
+ return (0, P.useLayoutEffect)(() => {
i && s.missing();
- }, [s, i]), (0, F.useLayoutEffect)(() => {
+ }, [s, i]), (0, P.useLayoutEffect)(() => {
if (!o) return;
let e = !0;
return queueMicrotask(() => {
@@ -63606,18 +63613,18 @@ function ewe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: Hn(r.error),
+ ]), r.isError ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: Wn(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(rwe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, F.jsx)(iwe, {
...e,
entity: r.data
});
}
function AQ(e) {
- let [t, n] = (0, F.useState)({
+ let [t, n] = (0, P.useState)({
key: e,
n: 1
});
@@ -63628,76 +63635,76 @@ function AQ(e) {
};
return n(r), r.n;
}
-var twe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function nwe(e, t) {
+var nwe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function rwe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function rwe(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = Ft(UX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || WX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function iwe(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = It(UX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || WX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : FX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : FX, [y, b] = (0, P.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, P.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = $Ce(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = ewe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = VX(e), A = Nt(k), j = AQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
- (0, F.useLayoutEffect)(() => {
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, P.useState)(0), k = VX(e), A = Pt(k), j = AQ(JSON.stringify([k.queryKey, D])), [M] = (0, P.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ (0, P.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
- let ee = (0, F.useMemo)(() => e.layout.active === M ? e.layout : {
+ let ee = (0, P.useMemo)(() => e.layout.active === M ? e.layout : {
...e.layout,
active: M
- }, [e.layout, M]), N = {
+ }, [e.layout, M]), te = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => BX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Ft({
- ...UX(t, n, re, ie),
+ }, ne = (0, P.useCallback)((e, r, a) => BX(t, n, i, te, e, r, a), [j]), [N, re] = (0, P.useState)({}), ie = v.set, ae = N[ie] || "", oe = It({
+ ...UX(t, n, ie, ae),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = AQ(JSON.stringify(LX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
- let e = ae.data?.pages;
+ }), se = oe.data?.pages[0], ce = AQ(JSON.stringify(LX(t, n, ie, ae))), le = (0, P.useMemo)(() => {
+ let e = oe.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
- revision: se,
+ revision: ce,
codeSets: t.id ? [] : WX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Nt({
+ }, [oe.data, ce]), ue = oe.refetch, de = oe.fetchNextPage, fe = Pt({
...MX(d, o.feedRowHtml),
enabled: !!d
- }), fe = (0, F.useRef)(e.feedRevision);
- (0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, U.invalidateQueries({ queryKey: jX(d) }));
+ }), pe = (0, P.useRef)(e.feedRevision);
+ (0, P.useEffect)(() => {
+ pe.current !== e.feedRevision && (pe.current = e.feedRevision, H.invalidateQueries({ queryKey: jX(d) }));
}, [d, e.feedRevision]);
- let pe = !!A.data;
- (0, F.useEffect)(() => {
+ let me = !!A.data;
+ (0, P.useEffect)(() => {
s.painted(w, E);
}, [
s,
w,
E,
j,
- ce?.revision,
- pe,
+ le?.revision,
+ me,
T.key
]);
- let me = (0, F.useRef)(!0);
- (0, F.useEffect)(() => () => {
- me.current = !1;
+ let he = (0, P.useRef)(!0);
+ (0, P.useEffect)(() => () => {
+ he.current = !1;
}, []);
- let L = (0, F.useCallback)(async () => {
- await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: IX(t, n) }), await U.invalidateQueries({ queryKey: [
+ let I = (0, P.useCallback)(async () => {
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: IX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), he = Pt({
- mutationFn: (e) => rn("/api/entity-alias", {
+ }, [t, n]), ge = Ft({
+ mutationFn: (e) => on("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
kind: t,
@@ -63705,9 +63712,9 @@ function rwe(e) {
...e
})
}),
- onSuccess: () => L()
- }), ge = Pt({
- mutationFn: ({ from: e, to: n }) => rn("/api/entity-name", {
+ onSuccess: () => I()
+ }), _e = Ft({
+ mutationFn: ({ from: e, to: n }) => on("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
@@ -63715,9 +63722,9 @@ function rwe(e) {
canonical: n
})
}),
- onSuccess: () => L()
- }), _e = Pt({
- mutationFn: (e) => rn("/api/feeds/source", {
+ onSuccess: () => I()
+ }), ve = Ft({
+ mutationFn: (e) => on("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
action: "follow",
@@ -63725,35 +63732,35 @@ function rwe(e) {
enabled: e
})
}),
- onSuccess: (e, r) => U.setQueryData(IX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(IX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
following: r
}
})
- }), ve = Pt({ mutationFn: (e) => rn("/api/follow/creator", {
+ }), ye = Ft({ mutationFn: (e) => on("/api/follow/creator", {
method: "POST",
body: JSON.stringify({
entity_id: d,
key: e
})
- }) }), ye = (0, F.useMemo)(() => ({
+ }) }), be = (0, P.useMemo)(() => ({
openEntity: s.openEntity,
chooseName: (e) => {
let n = r.canonical_name;
- e !== n && zc({
+ e !== n && Vc({
title: "更改统一名称",
body: `「${e}」将成为这份档案显示的名称,「${n}」留作别名。作品上的署名、搜索和标签都会跟着改写。`,
confirmLabel: "更改统一名称",
- onConfirm: () => ge.mutateAsync({
+ onConfirm: () => _e.mutateAsync({
from: n,
to: e
})
}).then(({ confirmed: e, result: n }) => {
let r = n;
e && r?.changed && (o.receipt(`已把统一名称更改为 ${r.canonical_name}`, { undo: async () => {
- await ge.mutateAsync({
+ await _e.mutateAsync({
from: r.canonical_name || "",
to: r.previous_name || ""
}), s.openEntity(t, r.previous_name || "");
@@ -63761,31 +63768,31 @@ function rwe(e) {
});
},
addAlias: () => {
- o.aliasForm(r.user_aliases || [], (e) => he.mutateAsync(e));
+ o.aliasForm(r.user_aliases || [], (e) => ge.mutateAsync(e));
},
follow: async (e) => {
try {
- await _e.mutateAsync(e);
+ await ve.mutateAsync(e);
} catch (t) {
throw o.failure(e ? "订阅新作" : "取消订阅新作", t), t;
}
},
refreshFeedAfterCheck: () => {
(async () => {
- for (let e = 0; e < 40 && me.current; e += 1) {
+ for (let e = 0; e < 40 && he.current; e += 1) {
await new Promise((e) => {
setTimeout(e, 3e3);
});
- let e = await rn("/api/feeds/check").catch(() => null);
+ let e = await on("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await U.invalidateQueries({ queryKey: jX(d) });
+ he.current && await H.invalidateQueries({ queryKey: jX(d) });
})();
},
feedAction: NX,
avatarPicked: () => {
- s.avatarChanged(), L().then(() => {
- me.current && O((e) => e + 1);
+ s.avatarChanged(), I().then(() => {
+ he.current && O((e) => e + 1);
});
},
openFollowAuthor: (e) => {
@@ -63796,27 +63803,27 @@ function rwe(e) {
},
confirmFollowAuthor: async (e, t) => {
try {
- await ve.mutateAsync(e);
+ await ye.mutateAsync(e);
} catch (e) {
throw o.failure("关联关注中的创作者", e), e;
}
- o.receipt(`已把关注里的 ${t} 记到 ${r.canonical_name} 名下`), await L();
+ o.receipt(`已把关注里的 ${t} 记到 ${r.canonical_name} 名下`), await I();
}
}), [
s,
- he,
- ve,
+ ge,
+ ye,
r,
d,
i,
- _e,
+ ve,
g,
o,
t,
n,
- L,
- ge
- ]), be = (0, F.useMemo)(() => ({
+ I,
+ _e
+ ]), xe = (0, P.useMemo)(() => ({
portraitImg: () => o.portraitImg(t, r),
wireScroller: o.wireDrag,
wireFeedRow: o.wireFeedRow,
@@ -63825,7 +63832,7 @@ function rwe(e) {
r,
o,
t
- ]), xe = (0, F.useMemo)(() => ({
+ ]), Se = (0, P.useMemo)(() => ({
setView: (e) => {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
@@ -63853,13 +63860,13 @@ function rwe(e) {
seed: r,
revision: e.revision
});
- await U.fetchQuery(a).catch(() => null);
+ await H.fetchQuery(a).catch(() => null);
return;
}
- let r = twe(), a = await U.fetchInfiniteQuery(UX(t, n, re, r)).catch(() => null);
- me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
+ let r = nwe(), a = await H.fetchInfiniteQuery(UX(t, n, ie, r)).catch(() => null);
+ he.current && a?.pages[0] && !a.pages[0].error && re((e) => ({
...e,
- [re]: r
+ [ie]: r
}));
},
setJavLayout: s.setJavLayout,
@@ -63879,20 +63886,20 @@ function rwe(e) {
e.jav,
e.revision,
w,
- re
- ]), Se = (0, F.useMemo)(() => ({
+ ie
+ ]), Ce = (0, P.useMemo)(() => ({
wireDrag: o.wireDrag,
wireScroller: o.wireScroller,
sourceToolsHtml: o.sourceToolsHtml,
wireSourceTools: (e) => o.wireSourceTools(e, () => {
- le();
+ ue();
})
- }), [o, le]), Ce = (r.tags || []).map((e) => ({
+ }), [o, ue]), we = (r.tags || []).map((e) => ({
k: e.k,
- label: Al(e.k),
+ label: Ml(e.k),
n: e.n,
- selected: Lxe(i.tag, e.k)
- })), we = [
+ selected: Rxe(i.tag, e.k)
+ })), Te = [
u.length,
!_,
m,
@@ -63907,40 +63914,40 @@ function rwe(e) {
videos: _ ? null : { count: r.asset_count || 0 },
photos: m ? { count: m } : null,
online: g ? { count: r.follow?.n || 0 } : null
- } : null, Te = {
+ } : null, Ee = {
sorts: o.sortKeys(i.sort || "new", i.dir || "", M),
jav: M ? {
layout: e.javLayout,
options: e.javLayouts
} : null
- }, Ee = !!oe?.id && !oe.error, De = oe && !oe.error ? {
- back: Ee,
- shuffle: !!oe.total,
+ }, De = !!se?.id && !se.error, Oe = se && !se.error ? {
+ back: De,
+ shuffle: !!se.total,
layout: e.photoLayout,
layouts: e.photoLayouts,
- setId: Ee ? Number(oe.id) : 0
- } : null, Oe = o.comboItems(i), ke = Oe.length > 0 || !!i.state, Ae = w === "videos" && !!A.data && !(A.data.items || []).length, je = () => s.route({
+ setId: De ? Number(se.id) : 0
+ } : null, ke = o.comboItems(i), Ae = ke.length > 0 || !!i.state, je = w === "videos" && !!A.data && !(A.data.items || []).length, Me = () => s.route({
...i,
state: "",
tag: "",
creator: "",
studio: "",
owner: ""
- }, FX), Me = "", Ne = !1;
- if (w === "people") Me = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
- else if (w === "online") Ne = T.busy, Me = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
+ }, FX), Ne = "", Pe = !1;
+ if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
+ else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
- Ne = !A.data;
+ Pe = !A.data;
let e = RX(i.tag).length;
- Me = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Me = Ee ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : nwe(oe, WX(oe).length) : Ne = ae.isPending;
- let Pe = (0, F.useMemo)(() => ({
+ Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
+ } else se && !se.error ? Ne = De ? `${se.title} · ${(se.total || 0).toLocaleString()} 张` : rwe(se, WX(se).length) : Pe = oe.isPending;
+ let Fe = (0, P.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
- let e = await ue();
+ let e = await de();
if (e.isError) throw e.error;
}
- }), [ue, e.card.actions]), Fe = (0, F.useMemo)(() => u.length ? {
+ }), [de, e.card.actions]), Ie = (0, P.useMemo)(() => u.length ? {
kind: t === "studio" ? "studios" : "performers",
people: u,
layout: e.peopleLayout
@@ -63949,37 +63956,37 @@ function rwe(e) {
e.peopleLayout,
u
]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(HCe, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(UCe, {
kind: t,
name: n,
entity: r,
- feedNew: de.data ?? null,
+ feedNew: fe.data ?? null,
feedHost: d ? c.feed : null,
jav: M,
- actions: ye,
- helpers: be
+ actions: be,
+ helpers: xe
}, D),
- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)($ge, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(t_e, {
kind: t,
name: n,
view: w,
- views: we,
+ views: Te,
state: i.state || "",
states: e.states,
- tags: Ce,
- combo: Oe,
- readout: Me,
- busy: Ne,
- video: Ae ? null : Te,
- photo: De,
+ tags: we,
+ combo: ke,
+ readout: Ne,
+ busy: Pe,
+ video: je ? null : Ee,
+ photo: Oe,
online: w === "online" ? T.head : null,
- actions: xe,
- helpers: Se
+ actions: Se,
+ helpers: Ce
}), c.filter),
- (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(zge, {
+ (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(Vge, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(XSe, {
+ children: w === "online" ? /* @__PURE__ */ (0, F.jsx)(ZSe, {
view: T.view,
media: T.media,
result: T.result,
@@ -63993,23 +64000,23 @@ function rwe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }, T.key) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: Hn(A.error),
+ }, T.key) : w === "videos" && A.isError ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: Wn(A.error),
onRetry: () => {
A.refetch();
}
- }) : Ae ? /* @__PURE__ */ (0, I.jsx)(iwe, {
- filtered: ke,
- onShowAll: je,
- onOnline: g ? () => xe.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(gSe, {
+ }) : je ? /* @__PURE__ */ (0, F.jsx)(awe, {
+ filtered: Ae,
+ onShowAll: Me,
+ onOnline: g ? () => Se.setView("online") : void 0
+ }) : /* @__PURE__ */ (0, F.jsx)(_Se, {
kind: t,
name: n,
view: w,
- roster: Fe,
+ roster: Ie,
items: A.data ?? null,
revision: j,
- fetchPage: te,
+ fetchPage: ne,
listScope: JSON.stringify([
t,
n,
@@ -64017,11 +64024,11 @@ function rwe(e) {
e.jav,
i.sort === "seed" ? e.seed : ""
]),
- photos: ce,
+ photos: le,
photoSize: e.photoSize,
photoLayout: e.photoLayout,
helpers: e.card.helpers,
- actions: Pe,
+ actions: Fe,
layout: ee,
selectMode: e.selectMode,
selected: e.selected,
@@ -64034,24 +64041,24 @@ function rwe(e) {
}), c.body)
] });
}
-function iwe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz("search"),
+function awe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz("search"),
title: "没有符合条件的视频",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: t,
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz("film"),
+ }) : /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz("film"),
title: "还没有视频",
- actions: n ? /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: n ? /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(iI, {
+ }) : /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -64061,9 +64068,9 @@ function iwe({ filtered: e, onShowAll: t, onOnline: n }) {
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
-var jQ = ["diagnostics"], MQ = (e) => V("/api/diagnostics", e);
-async function awe(e) {
- await U.fetchQuery({
+var jQ = ["diagnostics"], MQ = (e) => B("/api/diagnostics", e);
+async function owe(e) {
+ await H.fetchQuery({
queryKey: jQ,
queryFn: () => MQ(e),
staleTime: 1e4
@@ -64071,11 +64078,11 @@ async function awe(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function owe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Nt(MX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
- return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: jX(null) }));
- }, [t]), (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(hQ, {
+function swe({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Pt(MX(null, n.feedRowHtml)), a = (0, P.useRef)(t);
+ return (0, P.useEffect)(() => {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: jX(null) }));
+ }, [t]), (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(hQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
@@ -64085,16 +64092,16 @@ function owe({ host: e, revision: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/index/index-search.tsx
-var swe = Rz("search");
+var cwe = Lz("search");
function NQ({ label: e, value: t, onQuery: n }) {
- let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
- (0, F.useEffect)(() => {
+ let [r, i] = (0, P.useState)(t), a = (0, P.useRef)(!1), o = (0, P.useRef)(void 0);
+ (0, P.useEffect)(() => {
clearTimeout(o.current), i(t);
- }, [t]), (0, F.useEffect)(() => () => clearTimeout(o.current), []);
+ }, [t]), (0, P.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
clearTimeout(o.current), o.current = setTimeout(() => n(e.trim()), 300);
};
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-search": "",
className: "ml-auto min-w-0 max-w-80 flex-1",
onCompositionStart: () => {
@@ -64103,15 +64110,15 @@ function NQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(kz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Oz, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(jz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Az, {
type: "search",
- leadingIcon: swe,
+ leadingIcon: cwe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -64125,7 +64132,7 @@ function NQ({ label: e, value: t, onQuery: n }) {
//#endregion
//#region src/react/index/tag-pagination.ts
function PQ(e) {
- let [t, n] = (0, F.useState)({
+ let [t, n] = (0, P.useState)({
filter: e,
pageIndex: 0,
pageSize: 100
@@ -64135,7 +64142,7 @@ function PQ(e) {
pageIndex: t.filter === e ? t.pageIndex : 0,
pageSize: t.pageSize
},
- onChange: (0, F.useCallback)((t) => n({
+ onChange: (0, P.useCallback)((t) => n({
...t,
filter: e
}), [e])
@@ -64143,7 +64150,7 @@ function PQ(e) {
}
function FQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
if (e === void 0) return;
let t = Math.max(0, Math.ceil(e / i) - 1);
r > t && n({
@@ -64160,16 +64167,16 @@ function FQ(e, t, n) {
//#endregion
//#region src/react/components/board-tabs.tsx
function IQ({ value: e }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var cwe = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+var lwe = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
function LQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = GF(a);
- return (0, F.useLayoutEffect)(() => {
+ let a = (0, P.useRef)(null), o = WF(a);
+ return (0, P.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
let t = e.querySelector("[role=\"tab\"][aria-selected=\"true\"]");
@@ -64177,7 +64184,7 @@ function LQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(pF, {
+ }, [t]), /* @__PURE__ */ (0, F.jsx)(fF, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -64192,8 +64199,8 @@ function LQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? Rz(e.symbol) : null, i = e.value === t;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ let n = e.symbol ? Lz(e.symbol) : null, i = e.value === t;
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
@@ -64201,22 +64208,22 @@ function LQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: cwe,
+ className: lwe,
onClick: () => {
i || r(e.value);
},
- children: [n ? /* @__PURE__ */ (0, I.jsx)(n, { className: "mr-1.5 size-(--icon-inline)" }) : null, e.label]
+ children: [n ? /* @__PURE__ */ (0, F.jsx)(n, { className: "mr-1.5 size-(--icon-inline)" }) : null, e.label]
}, e.value);
})
});
}
//#endregion
//#region src/react/index/index-tags.tsx
-var RQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var RQ = () => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), zQ = Rz("pencil"), BQ = (e, t) => ({
+}), zQ = Lz("pencil"), BQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -64225,12 +64232,12 @@ var RQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function lwe({ tag: e, actions: t }) {
+function uwe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
children: [
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
@@ -64240,43 +64247,43 @@ function lwe({ tag: e, actions: t }) {
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, I.jsx)(RQ, {}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(RQ, {}),
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "flex-none text-caption-1-regular text-text-secondary",
children: e.n.toLocaleString()
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(Qz, { item: BQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(Zz, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(Zz, { item: BQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, F.jsx)(Xz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(zQ, {})
+ children: /* @__PURE__ */ (0, F.jsx)(zQ, {})
}) : null
]
});
}
function VQ({ groups: e, actions: t }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
- children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
+ children: e.map(([e, n], r) => /* @__PURE__ */ (0, F.jsxs)("section", {
"data-alpha-group": r,
- className: RH({
+ className: LH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
- children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(IQ, { value: n.length })]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [e, /* @__PURE__ */ (0, F.jsx)(IQ, { value: n.length })]
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(lwe, {
+ children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(uwe, {
tag: e,
actions: t
}, e.k))
@@ -64284,16 +64291,16 @@ function VQ({ groups: e, actions: t }) {
}, e))
});
}
-var uwe = "\xA0";
+var dwe = "\xA0";
function HQ({ tags: e, actions: t }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-tag-token": "",
"data-tag-cat": iZ(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
- children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
@@ -64301,27 +64308,27 @@ function HQ({ tags: e, actions: t }) {
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + uwe
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: e.label + dwe
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
})]
- }), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(Qz, { item: BQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(Zz, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, F.jsx)(Zz, { item: BQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, F.jsx)(Xz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(zQ, {})
+ children: /* @__PURE__ */ (0, F.jsx)(zQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var dwe = [[
+var fwe = [[
"cloud",
"标签云",
"tags"
@@ -64331,70 +64338,70 @@ var dwe = [[
"text-aa"
]];
function UQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = GF();
- return /* @__PURE__ */ (0, I.jsx)(YF, {
+ let d = WF();
+ return /* @__PURE__ */ (0, F.jsx)(JF, {
label: "标签筛选",
topLabel: "标签类型",
- top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ top: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [l ? /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(ZF, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(XF, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(ZF, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, F.jsx)(XF, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(ZF, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, F.jsxs)(XF, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : iZ(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(RQ, {}), r]
+ children: [/* @__PURE__ */ (0, F.jsx)(RQ, {}), r]
}, e))] }),
- bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ bottom: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-readout": "",
className: "flex-none text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: r
}),
u,
- i.length > 1 ? /* @__PURE__ */ (0, I.jsx)("nav", {
+ i.length > 1 ? /* @__PURE__ */ (0, F.jsx)("nav", {
ref: d,
"aria-label": "按首字跳转",
"data-alpha-jump": "",
className: "flex min-w-0 gap-0.5 overflow-x-auto overscroll-x-contain",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: i.map((e, t) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: () => s(t),
className: "h-8 min-w-8 flex-none cursor-pointer rounded-glass-key px-1.5 text-caption-1-regular leading-5 text-(--glass-text)/60 outline-none hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(CR, {
+ /* @__PURE__ */ (0, F.jsx)(SR, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${FU}`,
- children: dwe.map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, I.jsx)(wR, {
+ className: `ml-auto ${PU}`,
+ children: fwe.map(([e, t, n]) => {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, F.jsx)(CR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: IU,
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ className: FU,
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, F.jsx)(r, { className: "size-4" })
})
}, e);
})
@@ -64402,33 +64409,33 @@ function UQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function fwe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Mk, {
+function pwe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, F.jsxs)(jk, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, F.jsx)(nV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
- children: /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-medium",
children: "广泛匹配"
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "开启后匹配任一所选标签;关闭后必须同时包含全部标签。"
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
onClick: r,
children: "清空"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
size: "small",
disabled: !e,
@@ -64440,7 +64447,7 @@ function fwe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/toaster.tsx
-var WQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var WQ = (e, t) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
@@ -64452,11 +64459,11 @@ function qQ() {
var JQ = (e, t) => {
if (GQ?.host === e) return;
qQ();
- let n = (0, Lt.createRoot)(e);
+ let n = (0, Rt.createRoot)(e);
GQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(eH, { children: [/* @__PURE__ */ (0, I.jsx)(cH, {
+ }, n.render(/* @__PURE__ */ (0, F.jsxs)($V, { children: [/* @__PURE__ */ (0, F.jsx)(sH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
@@ -64480,7 +64487,7 @@ var JQ = (e, t) => {
success: WQ(t.success, !0),
error: WQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(cH, {
+ }), /* @__PURE__ */ (0, F.jsx)(sH, {
id: "processing",
position: "bottom-right",
gap: 8,
@@ -64501,13 +64508,13 @@ var JQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, pwe = 6e3, YQ = (e, t) => {
+}, mwe = 6e3, YQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? rH.error : rH.success, r = t.action;
- n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
+ let n = t.alert ? nH.error : nH.success, r = t.action;
+ n(/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : pwe,
+ duration: t.timeout > 0 ? t.timeout : mwe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -64523,19 +64530,19 @@ var JQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, QQ = (e, t) => H("/api/tag-management/preview", e, "POST", t);
+}, QQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
async function $Q(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
- return !(await zc({
+ return !(await Vc({
title: ZQ[e.operation],
body: i,
confirmLabel: ZQ[e.operation],
- onConfirm: () => H("/api/tag-management", {
+ onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await U.invalidateQueries(), YQ(`tag-management-${Date.now()}`, {
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), YQ(`tag-management-${Date.now()}`, {
html: `已${ZQ[e.operation]}`,
alert: !1,
timeout: 6e3,
@@ -64543,18 +64550,18 @@ async function $Q(e, t, n) {
}), !0);
}
function e$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
- let a = (0, F.useRef)({
+ let a = (0, P.useRef)({
operation: e,
selected: t,
close: n,
done: r,
scope: i
- }), o = (0, F.useRef)({
+ }), o = (0, P.useRef)({
name: t[0]?.k || "",
target_id: t[0] ? XQ(t[0]) : 0
- }), [s, c] = (0, F.useState)(null);
- return (0, F.useEffect)(() => {
- let e = new AbortController(), t = a.current, n = Lc({
+ }), [s, c] = (0, P.useState)(null);
+ return (0, P.useEffect)(() => {
+ let e = new AbortController(), t = a.current, n = zc({
title: ZQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
@@ -64586,7 +64593,7 @@ function e$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(mwe, {
+ }, []), s ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(hwe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -64595,9 +64602,9 @@ function e$({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function mwe({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? XQ(t[0]) : 0);
- return (0, F.useEffect)(() => {
+function hwe({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, P.useState)(t[0]?.k || ""), [o, s] = (0, P.useState)(t[0] ? XQ(t[0]) : 0);
+ return (0, P.useEffect)(() => {
r({
name: i,
target_id: o
@@ -64609,13 +64616,13 @@ function mwe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(Mz, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, F.jsx)(jz, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(YJ, {
+ }) : /* @__PURE__ */ (0, F.jsx)(YJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
@@ -64623,7 +64630,7 @@ function mwe({ operation: e, selected: t, dialog: n, update: r }) {
let n = t.find((t) => String(XQ(t)) === String(e));
n && s(XQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(TU, {
id: String(XQ(e)),
children: e.k
}, XQ(e)))
@@ -64632,7 +64639,7 @@ function mwe({ operation: e, selected: t, dialog: n, update: r }) {
//#endregion
//#region src/react/index/tag-manager.tsx
function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
- let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
+ let s = o === "online", c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(t), [p, m] = (0, P.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, P.useState)(!1), [b, x] = (0, P.useState)(!1), S = JSON.stringify([
o,
_,
h,
@@ -64647,24 +64654,24 @@ function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
view: g,
state: b ? "blocked" : v ? "hidden" : "active",
scope: o
- }), E = Nt({
+ }), E = Pt({
queryKey: [
"tag-management",
o,
"page",
T.toString()
],
- queryFn: ({ signal: e }) => V(`/api/tag-management?${T}`, e)
+ queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
FQ(E.data?.total, C, w);
- let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
- (0, F.useEffect)(() => {
+ let [D, O] = (0, P.useState)(/* @__PURE__ */ new Map());
+ (0, P.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = DH(), ee = E.data?.items || [], N = ee, te = (s ? YX : JX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, P.useState)(null), M = EH(), ee = E.data?.items || [], te = ee, ne = (s ? YX : JX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), N = te.map((e) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? aZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), re = g === "alphabet" ? aZ(N, (e) => e) : [], ie = [...D.values()], ae = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
@@ -64674,7 +64681,7 @@ function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(XQ), oe = {
+ }, oe = ie.map(XQ), se = {
online: s,
favorites: s,
picked: k,
@@ -64687,26 +64694,26 @@ function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
return !n.delete(e) && r && n.set(e, r), n;
})
};
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
ref: c,
"aria-label": "标签管理",
"data-tag-manager": "",
className: "flex min-w-0 flex-col",
children: [
- e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ e === void 0 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(NQ, {
+ children: /* @__PURE__ */ (0, F.jsx)(NQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(UQ, {
- categories: te,
+ /* @__PURE__ */ (0, F.jsx)(UQ, {
+ categories: ne,
category: h,
online: s,
readout: E.data ? `${E.data.total.toLocaleString()} 个标签` : "",
- letters: ne.map(([e]) => e),
+ letters: re.map(([e]) => e),
view: g,
onCategory: (e) => {
f(e), r?.(e);
@@ -64728,106 +64735,106 @@ function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
x(!0), y(!1);
} } : {}
},
- actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)($F, {
+ actions: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, F.jsx)(QF, {
busy: M.busy === "repair",
- onPress: () => ie({
+ onPress: () => ae({
operation: "repair",
ids: []
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)($F, {
- onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
+ te.length ? /* @__PURE__ */ (0, F.jsx)(QF, {
+ onPress: () => O((e) => new Map([...e, ...te.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)($F, {
+ k.size ? /* @__PURE__ */ (0, F.jsx)(QF, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
] })
}),
- E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: Ns({
+ E.isPending ? /* @__PURE__ */ (0, F.jsx)("div", { dangerouslySetInnerHTML: { __html: Fs({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => void E.refetch(),
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(VQ, {
- groups: ne,
- actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(HQ, {
- tags: P,
- actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) : te.length ? g === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(VQ, {
+ groups: re,
+ actions: se
+ }) : /* @__PURE__ */ (0, F.jsx)(HQ, {
+ tags: N,
+ actions: se
+ }) : /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
- E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
+ E.data ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(QJ, {
+ children: /* @__PURE__ */ (0, F.jsx)(QJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
onChange: w,
unit: "个标签",
pageUnit: "个",
- pageSizes: Ms
+ pageSizes: Ps
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ M.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Mk, {
+ /* @__PURE__ */ (0, F.jsxs)(jk, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- disabled: re.length !== 1,
+ disabled: ie.length !== 1,
onClick: () => j("rename"),
children: "重命名"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- disabled: re.length < 2 || s && new Set(re.map((e) => e.cat)).size > 1,
+ disabled: ie.length < 2 || s && new Set(ie.map((e) => e.cat)).size > 1,
onClick: () => j("merge"),
children: "合并"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(!!M.busy),
- onClick: () => ie({
+ ...zz(!!M.busy),
+ onClick: () => ae({
operation: v ? "restore" : "hide",
- ids: ae
+ ids: oe
}),
children: v ? "恢复" : "隐藏"
}),
- s ? /* @__PURE__ */ (0, I.jsx)(q, {
+ s ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(!!M.busy),
- onClick: () => ie({
+ ...zz(!!M.busy),
+ onClick: () => ae({
operation: b ? "unblock" : "block",
- ids: ae
+ ids: oe
}),
children: b ? "恢复内容" : "屏蔽内容"
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(e$, {
+ A ? /* @__PURE__ */ (0, F.jsx)(e$, {
operation: A,
- selected: re,
+ selected: ie,
scope: o,
close: () => j(null),
done: () => O(/* @__PURE__ */ new Map())
@@ -64837,7 +64844,7 @@ function t$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}
//#endregion
//#region src/react/index/index-page.tsx
-var hwe = [{
+var gwe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -64845,7 +64852,7 @@ var hwe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], gwe = [{
+}], _we = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -64853,7 +64860,7 @@ var hwe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], _we = [
+}], vwe = [
{
value: "performers",
label: "艺人",
@@ -64869,7 +64876,7 @@ var hwe = [{
label: "在线",
symbol: "rss"
}
-], vwe = {
+], ywe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -64889,38 +64896,38 @@ var hwe = [{
"layout-grid"
]]
};
-function ywe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(MU, {
+function bwe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(jU, {
"aria-label": `${qX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${NU}`,
- children: vwe[QX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, I.jsx)(wR, {
+ className: `flex-none ${MU}`,
+ children: ywe[QX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, F.jsx)(CR, {
value: e,
"aria-label": t,
- className: Wge,
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ className: Kge,
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(r, { className: "size-4" })
+ children: /* @__PURE__ */ (0, F.jsx)(r, { className: "size-4" })
})
}, e);
})
});
}
-function bwe(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => $X({
+function xwe(e) {
+ let [t, n] = (0, P.useState)(!1), [r, i] = (0, P.useState)(() => $X({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [a, o] = (0, F.useState)(e.layout), [s, c] = (0, F.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, F.useState)("any"), d = (0, F.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = qX[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
- (0, F.useEffect)(() => {
+ })), [a, o] = (0, P.useState)(e.layout), [s, c] = (0, P.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, P.useState)("any"), d = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = r, _ = qX[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
+ (0, P.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
return queueMicrotask(() => {
@@ -64928,17 +64935,17 @@ function bwe(e) {
}), () => {
t = !1;
};
- }, []), (0, F.useEffect)(() => {
+ }, []), (0, P.useEffect)(() => {
e.selectMode || c(/* @__PURE__ */ new Set());
}, [e.selectMode]);
- let [b, x] = (0, F.useState)(!1), S = (t, a = !1) => {
+ let [b, x] = (0, P.useState)(!1), S = (t, a = !1) => {
t.scope !== void 0 && n(!1);
let o = {
...r,
...t
};
x(Object.keys(t).every((e) => e === "q")), i(o), e.route(o, { replace: a });
- }, { pagination: C, onChange: w } = PQ(JSON.stringify(r)), T = rZ(eZ(r), C.pageSize), E = Ft({
+ }, { pagination: C, onChange: w } = PQ(JSON.stringify(r)), T = rZ(eZ(r), C.pageSize), E = It({
queryKey: f === "tags" && (C.pageIndex || C.pageSize !== 100) ? [
...T.queryKey,
"page",
@@ -64952,34 +64959,34 @@ function bwe(e) {
initialPageParam: f === "tags" ? C.pageIndex * C.pageSize : 0,
getNextPageParam: f === "tags" ? () => void 0 : T.getNextPageParam,
enabled: !(t && f === "tags"),
- placeholderData: b ? Oe : void 0
- }), D = Qxe(E.data), O = !!E.hasNextPage && !E.isPlaceholderData, k = E.data?.pages[0]?.total;
+ placeholderData: b ? ke : void 0
+ }), D = $xe(E.data), O = !!E.hasNextPage && !E.isPlaceholderData, k = E.data?.pages[0]?.total;
FQ(f === "tags" && !E.isPlaceholderData ? k : void 0, C, w);
- let A = f === "tags" ? E.isPending || E.isError ? "" : `${(k ?? D.length).toLocaleString()} 个标签` : $xe(D.length, !!E.hasNextPage), j = `${f}:${m}:${p}`, M = (0, F.useRef)(null), ee = E.data?.pages[0]?.categories;
+ let A = f === "tags" ? E.isPending || E.isError ? "" : `${(k ?? D.length).toLocaleString()} 个标签` : eSe(D.length, !!E.hasNextPage), j = `${f}:${m}:${p}`, M = (0, P.useRef)(null), ee = E.data?.pages[0]?.categories;
ee && !E.isPlaceholderData && (M.current = {
key: j,
counts: ee
});
- let N = ee ?? (M.current?.key === j ? M.current.counts : void 0), te = E.isPending && !N, P = ([e]) => e === "all" || te || Number(N?.[e] || 0) > 0;
- (0, F.useLayoutEffect)(() => {
- d.current && vl(d.current);
+ let te = ee ?? (M.current?.key === j ? M.current.counts : void 0), ne = E.isPending && !te, N = ([e]) => e === "all" || ne || Number(te?.[e] || 0) > 0;
+ (0, P.useLayoutEffect)(() => {
+ d.current && bl(d.current);
}, [a]);
- let ne = (0, F.useMemo)(() => f === "tags" ? D.map((t) => ({
+ let re = (0, P.useMemo)(() => f === "tags" ? D.map((t) => ({
...t,
label: v ? t.k : e.tagLabel(t.k)
})) : [], [
D,
f,
v
- ]), re = (0, F.useMemo)(() => f === "tags" && h === "alphabet" ? aZ(ne, (t) => v ? t : e.tagLabel(t)) : [], [
- ne,
+ ]), ie = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? aZ(re, (t) => v ? t : e.tagLabel(t)) : [], [
+ re,
h,
f,
v
- ]), ie = (t) => {
+ ]), ae = (t) => {
o(t), e.savePreference({ layout: t });
- }, ae = f === "tags" ? /* @__PURE__ */ (0, I.jsx)(LQ, {
- tabs: gwe,
+ }, oe = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(LQ, {
+ tabs: _we,
value: m,
label: "词表",
onChange: (e) => {
@@ -64989,48 +64996,48 @@ function bwe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : QX(f) ? /* @__PURE__ */ (0, I.jsx)(LQ, {
- tabs: hwe,
+ }) : QX(f) ? /* @__PURE__ */ (0, F.jsx)(LQ, {
+ tabs: gwe,
value: f,
label: "公司类型",
onChange: (e) => S({ kind: e })
- }) : null, oe = (t) => {
+ }) : null, se = (t) => {
v ? e.openFollowTag(t) : e.selectMode ? c((e) => {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
- }) : ne.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, se = (v ? YX : JX).filter(P);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : re.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
+ }, ce = (v ? YX : JX).filter(N);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: d,
"data-index-page": f,
className: "flex min-w-0 flex-col",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-index-head": "",
className: "mb-5 flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2",
children: [
- /* @__PURE__ */ (0, I.jsx)("h2", {
+ /* @__PURE__ */ (0, F.jsx)("h2", {
"data-index-title": "",
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: _
}),
- ZX(f) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ ZX(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
children: E.isPending || E.isError ? "" : A
}) : null,
- ZX(f) ? /* @__PURE__ */ (0, I.jsx)(ywe, {
+ ZX(f) ? /* @__PURE__ */ (0, F.jsx)(bwe, {
kind: f,
layout: a,
- onChange: ie
+ onChange: ae
}) : null,
- /* @__PURE__ */ (0, I.jsx)($z, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
- f === "tags" ? /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(Qz, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
+ f === "tags" ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: Rz("pencil"),
+ leadingIcon: Lz("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -65038,7 +65045,7 @@ function bwe(e) {
e.exitSelectMode(), c(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(NQ, {
+ /* @__PURE__ */ (0, F.jsx)(NQ, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -65047,8 +65054,8 @@ function bwe(e) {
})
]
}),
- f === "performers" || f === "creators" ? /* @__PURE__ */ (0, I.jsx)(LQ, {
- tabs: _we,
+ f === "performers" || f === "creators" ? /* @__PURE__ */ (0, F.jsx)(LQ, {
+ tabs: vwe,
value: y ? "online" : f,
label: "人物名册",
onChange: (t) => {
@@ -65059,8 +65066,8 @@ function bwe(e) {
});
}
}) : null,
- ae,
- t && f === "tags" ? /* @__PURE__ */ (0, I.jsx)(t$, {
+ oe,
+ t && f === "tags" ? /* @__PURE__ */ (0, F.jsx)(t$, {
scope: m,
search: p,
category: g,
@@ -65071,11 +65078,11 @@ function bwe(e) {
block: "start",
behavior: "smooth"
})
- }, m) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- f === "performers" && m === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }, m) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ f === "performers" && m === "local" ? /* @__PURE__ */ (0, F.jsx)("div", {
"aria-label": "身份分类",
className: KX,
- children: GX.filter((e) => e[0] === g || P(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(q, {
+ children: GX.filter((e) => e[0] === g || N(e)).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(q, {
variant: g === e ? "primary" : "secondary",
size: "small",
"aria-pressed": g === e,
@@ -65083,12 +65090,12 @@ function bwe(e) {
children: t
}, e))
}) : null,
- f === "tags" ? /* @__PURE__ */ (0, I.jsx)(UQ, {
- categories: se,
+ f === "tags" ? /* @__PURE__ */ (0, F.jsx)(UQ, {
+ categories: ce,
category: g,
online: v,
readout: A,
- letters: re.map(([e]) => e),
+ letters: ie.map(([e]) => e),
view: h,
onCategory: (e) => S({ category: e }),
onView: (e) => S({ view: e }),
@@ -65097,31 +65104,31 @@ function bwe(e) {
behavior: "smooth"
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-body": "",
children: (() => {
- if (E.isPending) return /* @__PURE__ */ (0, I.jsx)("div", {
+ if (E.isPending) return /* @__PURE__ */ (0, F.jsx)("div", {
"aria-busy": "true",
- dangerouslySetInnerHTML: { __html: f === "tags" ? Ns({
+ dangerouslySetInnerHTML: { __html: f === "tags" ? Fs({
mode: h,
pageSize: C.pageSize
- }) : Is({
+ }) : Rs({
kind: f,
layout: a,
mode: h
}) }
});
- if (E.isError) return /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz("alert"),
+ if (E.isError) return /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz("alert"),
title: `没能读取${_}`,
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => void E.refetch(),
children: "立即重试"
}),
- children: en(E.error)
+ children: tn(E.error)
});
- if (!D.length) return /* @__PURE__ */ (0, I.jsx)(Swe, {
+ if (!D.length) return /* @__PURE__ */ (0, F.jsx)(Cwe, {
kind: f,
filtered: !!p || g !== "all",
online: v || y,
@@ -65130,12 +65137,12 @@ function bwe(e) {
category: "all"
})
});
- if (y) return /* @__PURE__ */ (0, I.jsx)(iSe, {
+ if (y) return /* @__PURE__ */ (0, F.jsx)(aSe, {
items: D,
layout: a,
props: e
});
- if (ZX(f)) return /* @__PURE__ */ (0, I.jsx)(uZ, {
+ if (ZX(f)) return /* @__PURE__ */ (0, F.jsx)(uZ, {
kind: f,
items: D,
layout: a,
@@ -65144,45 +65151,45 @@ function bwe(e) {
let t = {
online: v,
picked: s,
- press: oe
+ press: se
};
- return h === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(VQ, {
- groups: re,
+ return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(VQ, {
+ groups: ie,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(HQ, {
- tags: ne,
+ }) : /* @__PURE__ */ (0, F.jsx)(HQ, {
+ tags: re,
actions: t
});
})()
}),
- f === "tags" && !E.isPending && !E.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
+ f === "tags" && !E.isPending && !E.isError ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(QJ, {
+ children: /* @__PURE__ */ (0, F.jsx)(QJ, {
label: "标签",
total: k ?? D.length,
pagination: C,
onChange: w,
unit: "个标签",
pageUnit: "个",
- pageSizes: Ms
+ pageSizes: Ps
})
}) : null,
- O ? /* @__PURE__ */ (0, I.jsx)("div", {
+ O ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, I.jsxs)(q, {
+ children: /* @__PURE__ */ (0, F.jsxs)(q, {
variant: "secondary",
"data-index-more": "",
className: "min-w-31",
disabled: E.isFetchingNextPage,
"aria-busy": E.isFetchingNextPage || void 0,
onClick: () => void E.fetchNextPage(),
- children: [E.isFetchingNextPage ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [E.isFetchingNextPage ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: vs("正在载入下一批") }
+ dangerouslySetInnerHTML: { __html: bs("正在载入下一批") }
}) : null, "载入更多"]
})
}) : null,
- f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(fwe, {
+ f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, F.jsx)(pwe, {
count: s.size,
match: l,
onMatch: u,
@@ -65196,34 +65203,34 @@ function bwe(e) {
]
});
}
-var xwe = {
+var Swe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function Swe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz("search"),
+function Cwe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(q, {
+ actions: /* @__PURE__ */ (0, F.jsx)(q, {
size: "small",
onClick: r,
children: "清除筛选"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : xwe[e], a = /* @__PURE__ */ (0, I.jsx)(iI, {
+ let i = n && e === "performers" ? "创作者" : Swe[e], a = /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Rz(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Lz(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iI, {
+ actions: n ? a : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -65238,8 +65245,8 @@ var n$ = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Cwe = (e) => n$[e.junk_kind || "other"] || n$.other;
-function wwe(e) {
+}, wwe = (e) => n$[e.junk_kind || "other"] || n$.other;
+function Twe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -65250,21 +65257,21 @@ function wwe(e) {
glyph: "check"
};
}
-var r$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Twe = (e, t) => [
+var r$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Ewe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Ewe({ kind: e, view: t }) {
+function Dwe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Dwe(e, t) {
- let n = await V(`/api/ads?${Ewe(e)}`, t);
+async function Owe(e, t) {
+ let n = await B(`/api/ads?${Dwe(e)}`, t);
return {
...n,
items: n.items || []
@@ -65273,15 +65280,15 @@ async function Dwe(e, t) {
//#endregion
//#region src/react/junk-queue/junk-card.tsx
function i$({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
var a$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Owe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = Cwe(e), m = String(e.name || ""), h = wwe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function kwe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, P.useRef)(null), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = e.junk_kind || "other", [f, p] = wwe(e), m = String(e.name || ""), h = Twe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
t.target.closest("[data-junk-actions]") || a$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
t.stopPropagation(), a$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
@@ -65292,21 +65299,21 @@ function Owe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}, S = (e) => s === e ? {
"aria-busy": !0,
"aria-disabled": !0
- } : {}, C = _ ? /* @__PURE__ */ (0, I.jsx)("button", {
+ } : {}, C = _ ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-junk-title": "",
"data-junk-open": "",
"data-middle-truncate": "",
title: m,
onClick: y,
- dangerouslySetInnerHTML: { __html: B(m || "未命名资源") }
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: z(m || "未命名资源") }
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-title": "",
"data-middle-truncate": "",
title: m,
- dangerouslySetInnerHTML: { __html: B(m || "未命名资源") }
+ dangerouslySetInnerHTML: { __html: z(m || "未命名资源") }
});
- return /* @__PURE__ */ (0, I.jsxs)("article", {
+ return /* @__PURE__ */ (0, F.jsxs)("article", {
ref: o,
"data-media-card": "",
"data-variant": "junk",
@@ -65317,91 +65324,91 @@ function Owe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
onClick: v,
onMouseDown: rG,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, F.jsx)(i$, { name: p }), /* @__PURE__ */ (0, F.jsx)("b", { children: f })]
}),
- g ? /* @__PURE__ */ (0, I.jsx)("span", {
+ g ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
dangerouslySetInnerHTML: { __html: `<img class="poster" src="${g}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-badge": "",
dangerouslySetInnerHTML: { __html: i.badgeHtml(e.location || "", e.cost || "") }
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(i$, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(i$, { name: "check" })
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-meta": "",
- children: [C, /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [C, /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-facts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-who": "",
children: f
}),
- e.why ? /* @__PURE__ */ (0, I.jsx)("span", {
+ e.why ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-why": "",
children: e.why
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-size": "",
- children: Number(e.size) > 0 ? kn(Number(e.size)) : "大小未知"
+ children: Number(e.size) > 0 ? jn(Number(e.size)) : "大小未知"
})
]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("footer", {
+ /* @__PURE__ */ (0, F.jsxs)("footer", {
"data-junk-actions": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-junk-action": "reveal",
title: "在资源管理器中显示",
"aria-label": "在资源管理器中显示",
...S("reveal"),
onClick: b,
- children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [s === "reveal" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: vs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(i$, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: bs("正在定位") }
+ }) : /* @__PURE__ */ (0, F.jsx)(i$, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-junk-action": h.operation,
title: h.label,
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(i$, { name: h.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-junk-action": "dispose",
title: "移入回收站",
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(i$, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(i$, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-state": "",
"aria-live": "polite",
children: l
@@ -65411,7 +65418,7 @@ function Owe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var kwe = (0, F.memo)(Owe), o$ = [
+var Awe = (0, P.memo)(kwe), o$ = [
[
"",
"全部",
@@ -65447,11 +65454,11 @@ var kwe = (0, F.memo)(Owe), o$ = [
"其它",
"hard-drive"
]
-], Awe = (e) => o$.find(([t]) => t === e)?.[0] ?? "";
+], jwe = (e) => o$.find(([t]) => t === e)?.[0] ?? "";
function s$(e) {
let t = new URLSearchParams(e);
return {
- kind: Awe(t.get("type")),
+ kind: jwe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
@@ -65475,32 +65482,32 @@ function l$(e) {
};
}
var u$ = (e) => e === "dismissed" ? "已排除" : "待判断", d$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function jwe({ kind: e, view: t }) {
- let n = o$.map(([n, r, i]) => `<a href="${c$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${d$(i)}${B(r)}</a>`).join(""), r = l$(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${ms(u$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${d$(r.glyph)}${r.label}</a></nav></div></div></div>`;
+function Mwe({ kind: e, view: t }) {
+ let n = o$.map(([n, r, i]) => `<a href="${c$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${d$(i)}${z(r)}</a>`).join(""), r = l$(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${gs(u$(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${d$(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/components/collection-summary.tsx
function f$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
dark:bg-background-primary-default`,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, I.jsx)("strong", {
+ }), /* @__PURE__ */ (0, F.jsx)("strong", {
className: "text-display-4-medium tabular-nums text-text-primary",
- children: r ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: r ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-skeleton": "count",
"aria-hidden": !0,
className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
}) : t
})]
- }), n ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }), n ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-regular text-text-secondary",
children: n
}) : null]
@@ -65509,76 +65516,76 @@ function f$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
//#endregion
//#region src/react/junk-queue/junk-count.tsx
function p$({ name: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
function m$({ scope: e, count: t }) {
- return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
+ return t ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Mwe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = iV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = nI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? o$.map(([e]) => r$(t, e)).join(",") : ""}`), l = l$(s), u = (e) => {
+function Nwe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = rV(), a = (0, P.useRef)(null), { kind: o, view: s } = e, c = tI(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? o$.map(([e]) => r$(t, e)).join(",") : ""}`), l = l$(s), u = (e) => {
let t = e.target.closest("a");
!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || c$()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-count": "",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(f$, {
+ children: /* @__PURE__ */ (0, F.jsx)(f$, {
label: u$(s),
figure: d,
pending: !t && !n,
flush: !0
})
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-filters-frame": "",
"data-filter-glass": "",
"data-glass-pane": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: a,
"data-view-glide": "",
"aria-hidden": "true"
- }), /* @__PURE__ */ (0, I.jsxs)("nav", {
+ }), /* @__PURE__ */ (0, F.jsxs)("nav", {
ref: i,
"data-junk-filters": "",
"aria-label": "垃圾文件分类",
onClick: u,
onPointerLeave: c.leave,
children: [
- o$.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ o$.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
href: c$(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(p$, { name: r }),
+ /* @__PURE__ */ (0, F.jsx)(p$, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(m$, {
+ /* @__PURE__ */ (0, F.jsx)(m$, {
scope: e,
count: t ? r$(t, e) : 0
})
]
}, e || "all")),
- /* @__PURE__ */ (0, I.jsx)("i", {
+ /* @__PURE__ */ (0, F.jsx)("i", {
"data-junk-divider": "",
"aria-hidden": "true"
}),
- /* @__PURE__ */ (0, I.jsxs)("a", {
+ /* @__PURE__ */ (0, F.jsxs)("a", {
href: l.href,
"data-junk-view-link": l.view,
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(p$, { name: l.glyph }),
+ /* @__PURE__ */ (0, F.jsx)(p$, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(m$, {
+ /* @__PURE__ */ (0, F.jsx)(m$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -65591,33 +65598,33 @@ function Mwe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var Nwe = Rz("check"), Pwe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Fwe(e) {
+var Pwe = Lz("check"), Fwe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Iwe(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = Nt({
- queryKey: Twe(t, e.revision),
- queryFn: ({ signal: e }) => Dwe(t, e),
- placeholderData: (e, n) => n && Pwe(n.queryKey, t) ? e : void 0
+ }, n = Pt({
+ queryKey: Ewe(t, e.revision),
+ queryFn: ({ signal: e }) => Owe(t, e),
+ placeholderData: (e, n) => n && Fwe(n.queryKey, t) ? e : void 0
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Iwe(e.countRow), i = n.isPending;
- (0, F.useLayoutEffect)(() => {
+ let r = Lwe(e.countRow), i = n.isPending;
+ (0, P.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
- }, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
- r && n.data && As(r, "junk");
+ }, [e.countRow, i]), (0, P.useLayoutEffect)(() => {
+ r && n.data && Ms(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(Mwe, {
+ let { navigate: a } = e.actions, o = r ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(Nwe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Lwe, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [o, /* @__PURE__ */ (0, F.jsx)(Rwe, {
props: e,
data: n.data,
pending: i,
@@ -65625,9 +65632,9 @@ function Fwe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Iwe(e) {
- let [t, n] = (0, F.useState)(null);
- return (0, F.useLayoutEffect)(() => {
+function Lwe(e) {
+ let [t, n] = (0, P.useState)(null);
+ return (0, P.useLayoutEffect)(() => {
if (!e) return;
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
@@ -65635,25 +65642,25 @@ function Iwe(e) {
};
}, [e]), t;
}
-function Lwe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = MW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function Rwe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = MW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, P.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, P.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-body": "",
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(r),
+ if (!t) return /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(Iz, {
- icon: Nwe,
+ return /* @__PURE__ */ (0, F.jsx)(Fz, {
+ icon: Pwe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(iI, {
+ actions: t ? /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -65661,12 +65668,12 @@ function Lwe({ props: e, data: t, pending: n, error: r, retry: i }) {
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有待检查文件。"
});
}
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(kwe, {
+ children: u.map((t) => /* @__PURE__ */ (0, F.jsx)(Awe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -65675,8 +65682,8 @@ function Lwe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Rwe, { onMore: f }, s) : null,
- u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
+ u.length < l.length ? /* @__PURE__ */ (0, F.jsx)(zwe, { onMore: f }, s) : null,
+ u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
children: `显示前 ${l.length.toLocaleString()} 条,共 ${Number(t.total).toLocaleString()} 条;处理掉这些后,其余的会补上来。`
@@ -65685,36 +65692,36 @@ function Lwe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function Rwe({ onMore: e }) {
- let t = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
+function zwe({ onMore: e }) {
+ let t = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
}, { rootMargin: jW });
return r.observe(n), () => r.disconnect();
- }, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, [e]), /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
"data-load-more": "",
onClick: e,
- dangerouslySetInnerHTML: { __html: bs(ys) }
+ dangerouslySetInnerHTML: { __html: Ss(xs) }
});
}
//#endregion
//#region src/react/wants/wants.ts
-var h$ = "/api/wants", g$ = ["wants"], zwe = (e) => [
+var h$ = "/api/wants", g$ = ["wants"], Bwe = (e) => [
"wants",
"follow",
e
-], Bwe = [
+], Vwe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], _$ = (e) => V(h$, e);
-function Vwe(e, t) {
- U.setQueryData(g$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], _$ = (e) => B(h$, e);
+function Hwe(e, t) {
+ H.setQueryData(g$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -65722,17 +65729,17 @@ function Vwe(e, t) {
} : n)
} : n);
}
-var Hwe = (e, t) => V(`${h$}?follow=${encodeURIComponent(e)}`, t), v$ = (e, t) => H(h$, {
+var Uwe = (e, t) => B(`${h$}?follow=${encodeURIComponent(e)}`, t), v$ = (e, t) => V(h$, {
action: "add",
...e
-}, "POST", t), y$ = (e, t) => H(h$, {
+}, "POST", t), y$ = (e, t) => V(h$, {
action: "remove",
ids: e
-}, "POST", t), Uwe = (e, t) => H(h$, {
+}, "POST", t), Wwe = (e, t) => V(h$, {
action: "reset",
ids: e
-}, "POST", t), b$ = () => U.invalidateQueries({ queryKey: g$ }), Wwe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Gwe(e) {
+}, "POST", t), b$ = () => H.invalidateQueries({ queryKey: g$ }), Gwe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Kwe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
@@ -65741,8 +65748,8 @@ var x$ = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], S$ = (e) => x$.some(([t]) => t === e) ? e : "library", Kwe = (e) => S$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function qwe(e) {
+], S$ = (e) => x$.some(([t]) => t === e) ? e : "library", qwe = (e) => S$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Jwe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
@@ -65761,24 +65768,24 @@ function w$(e, t, n = {}) {
sort: n.sort || "taste",
direction: n.direction || "desc"
});
- return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), V(`/api/jav/discoveries?${r}`, t);
+ return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
-function Jwe(e, t, n) {
- let r = no({
+function Ywe(e, t, n) {
+ let r = io({
...e,
is_jav: !0
}, t, !1, n);
if (r.html || !e.cover_url || !e.code) return r.html;
- let i = B(Wa(e));
- return eo(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
+ let i = z(Ka(e));
+ return no(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function Ywe(e, t) {
- e === "wants" ? await U.ensureQueryData({
+async function Xwe(e, t) {
+ e === "wants" ? await H.ensureQueryData({
queryKey: g$,
queryFn: () => _$(t),
staleTime: 3e4,
revalidateIfStale: !0
- }) : e === "discover" && await U.ensureQueryData({
+ }) : e === "discover" && await H.ensureQueryData({
queryKey: C$("external"),
queryFn: () => w$("external", t),
staleTime: 3e4,
@@ -65787,7 +65794,7 @@ async function Ywe(e, t) {
}
//#endregion
//#region src/react/components/fieldset-layout.ts
-var T$ = RH({
+var T$ = LH({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -65803,28 +65810,28 @@ function O$(e) {
}
//#endregion
//#region src/management.ts
-var k$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", A$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", j$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", M$ = "disabled data-skeleton-action", Xwe = "aria-disabled=\"true\"", N$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, P$ = (e, t, n) => `<div class="${E$[n]}"><div class="flex flex-col gap-2">
+var k$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", A$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", j$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", M$ = "disabled data-skeleton-action", Zwe = "aria-disabled=\"true\"", N$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, P$ = (e, t, n) => `<div class="${E$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function Zwe() {
+function Qwe() {
return N$(`<section aria-label="扫描与采集" class="${O$("stack")}" data-cleanup-task data-cleanup-processing>
${P$("扫描与采集", k$, "stack")}
- <footer class="${D$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${rs("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${os({
+ <footer class="${D$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${as("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${cs({
label: "同步媒体库",
attrs: M$
- })}${os({
+ })}${cs({
glyph: "chevron-down",
attrs: `${M$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function Qwe() {
+function $we() {
return N$(`<section aria-label="媒体修复" class="${O$("split")}" data-cleanup-task data-cleanup-processing>
${P$("媒体修复", A$, "split")}
- <footer class="${D$.split}">${cs(j$, {
+ <footer class="${D$.split}">${us(j$, {
className: "w-48",
- attrs: Xwe
- })}${os({
+ attrs: Zwe
+ })}${cs({
label: "开始修复",
attrs: M$
})}</footer>
@@ -65837,16 +65844,16 @@ function F$() {
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = T$, n = E$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${D$.stack}">${os({
+ ], t = T$, n = E$.stack, r = (e, t = "mb-2") => `<h3 class="text-title-2-medium text-text-primary ${t}">${e}</h3>`, i = (e) => `<footer class="${D$.stack}">${cs({
label: e,
attrs: M$
})}</footer>`, a = (e) => `<div class="flex flex-col gap-1.5"><span class="text-body-medium text-text-primary">${e}</span><span class="skeleton ui-configuration-skeleton-input"></span></div>`;
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${rs(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${j$}</strong><span class="text-caption-1-regular">${j$}</span></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1">${e.map(([e, t]) => `<div class="min-w-0 bg-background-secondary-default rounded-2xl flex min-h-33 flex-col gap-2 p-4 text-left"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${as(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${j$}</strong><span class="text-caption-1-regular">${j$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
- <div id="libraryProcessing">${Zwe()}</div><div id="mediaRepair">${Qwe()}</div>
+ <div id="libraryProcessing">${Qwe()}</div><div id="mediaRepair">${$we()}</div>
<section id="organize" class="${t} flex flex-col" data-cleanup-organize><div class="${n}">${r("整理", "mb-3")}<p class="text-body-regular text-text-secondary">清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
- <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${cs(j$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => os({
+ <div class="mt-3 flex flex-col gap-3"><div class="flex min-w-0 flex-wrap items-start gap-2">${us(j$)}<span class="skeleton ui-configuration-skeleton-input min-w-0 basis-64 flex-1"></span></div><p class="text-caption-1-regular text-text-secondary">指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。</p>${a("文件名模板")}${a("目录模板")}<div class="flex flex-wrap gap-2">${Array.from({ length: 3 }, () => cs({
variant: "secondary",
label: j$,
attrs: M$
@@ -65862,30 +65869,30 @@ function F$() {
}
//#endregion
//#region src/react/components/fieldset.tsx
-var $we = RH({
+var eTe = LH({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), eTe = "border-t border-border-button-default p-4 first:border-t-0";
+}), tTe = "border-t border-border-button-default p-4 first:border-t-0";
function I$({ id: e, gap: t = "none", children: n }) {
- return /* @__PURE__ */ (0, I.jsx)("h3", {
+ return /* @__PURE__ */ (0, F.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
function L$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
className: O$(e),
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: E$[e],
children: a
- }), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
+ }), i ? /* @__PURE__ */ (0, F.jsx)("footer", {
className: D$[e],
children: i
}) : null]
@@ -65893,7 +65900,7 @@ function L$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a,
}
//#endregion
//#region src/react/components/status-label.tsx
-var tTe = {
+var nTe = {
success: "lime",
progress: "blue",
warning: "yellow",
@@ -65901,17 +65908,17 @@ var tTe = {
neutral: "neutral"
};
function R$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(sZ, {
+ return /* @__PURE__ */ (0, F.jsx)(sZ, {
"data-status-tone": e,
variant: "caption",
- color: tTe[e],
+ color: nTe[e],
...t
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function nTe({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function rTe({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -65920,43 +65927,43 @@ function nTe({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-folder-open" })
});
}
-var rTe = "打开文件管理器失败,请重试";
+var iTe = "打开文件管理器失败,请重试";
function z$({ path: e, prefix: t, className: n, onRevealed: r }) {
- let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(!0);
- (0, F.useEffect)(() => () => {
+ let [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(""), c = (0, P.useRef)(!0);
+ (0, P.useEffect)(() => () => {
c.current = !1;
}, []);
let l = async () => {
if (!i) {
a(!0), s("");
try {
- await H("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
+ await V("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof Bn ? e.message : rTe);
+ c.current && s(e instanceof Hn ? e.message : iTe);
} finally {
c.current && a(!1);
}
}
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)("p", {
- className: uF("min-w-0 break-all", n),
+ children: [/* @__PURE__ */ (0, F.jsxs)("p", {
+ className: lF("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, I.jsx)(HF, {
- icon: nTe,
+ }), /* @__PURE__ */ (0, F.jsx)(VF, {
+ icon: rTe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...Bz(i)
+ ...zz(i)
})]
- }), o ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }), o ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
children: o
}) : null]
@@ -65964,38 +65971,38 @@ function z$({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var iTe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", aTe = (e) => {
+var aTe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", oTe = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, oTe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + aTe(e);
-function sTe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = The(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = She(e.notes || {}), c = !!t || e.status === "failed", l = !t && mH(e), u = c && !!a?.log, d = dH(e), f = iV();
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+}, sTe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + oTe(e);
+function cTe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Dhe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = whe(e.notes || {}), c = !!t || e.status === "failed", l = !t && pH(e), u = c && !!a?.log, d = uH(e), f = rV();
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- d ? /* @__PURE__ */ (0, I.jsx)(Ohe, {
+ d ? /* @__PURE__ */ (0, F.jsx)(Ahe, {
state: e,
slow: d
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "warning",
title: "处理较慢",
- children: iTe
+ children: aTe
}) : null,
- c ? /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ c ? /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: l ? "warning" : "error",
className: "gap-0 p-3",
title: l ? "处理已结束,部分项目需处理" : "处理未完成",
- action: /* @__PURE__ */ (0, I.jsxs)("div", {
+ action: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [l ? /* @__PURE__ */ (0, I.jsx)(EH, {
- href: gH,
+ children: [l ? /* @__PURE__ */ (0, F.jsx)(TH, {
+ href: hH,
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "查看全部内容"
- }) : null, o ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : null, o ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
"aria-label": "立即重试未完成项",
@@ -66003,41 +66010,41 @@ function sTe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: "立即重试"
}) : null]
}),
- extra: a ? /* @__PURE__ */ (0, I.jsx)("div", {
+ extra: a ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, I.jsxs)(ZH, {
+ children: /* @__PURE__ */ (0, F.jsxs)(XH, {
summary: a.label,
contentClassName: "gap-0",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "relative",
- children: /* @__PURE__ */ (0, I.jsx)("ul", {
+ children: /* @__PURE__ */ (0, F.jsx)("ul", {
ref: f,
className: "max-h-96 overflow-y-auto pr-3",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
+ children: a.items.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex flex-col gap-1 border-b border-current/15 py-2 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
children: [
- e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
+ e.href ? /* @__PURE__ */ (0, F.jsx)("a", {
href: e.href,
className: "text-body-2-medium underline-offset-4 hover:underline",
children: e.label
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-medium",
children: e.label
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular",
children: e.note
}),
- e.hint ? /* @__PURE__ */ (0, I.jsx)("code", {
+ e.hint ? /* @__PURE__ */ (0, F.jsx)("code", {
className: "text-caption-1-regular break-all",
children: e.hint
}) : null
]
}, e.key))
})
- }), a.log ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }), a.log ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(z$, {
+ children: /* @__PURE__ */ (0, F.jsx)(z$, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -66046,19 +66053,19 @@ function sTe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null]
})
}) : null,
- children: [t || e.error || "处理未完成,请重试", l ? `\n${hH}` : null]
+ children: [t || e.error || "处理未完成,请重试", l ? `\n${mH}` : null]
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "success",
title: "处理完成",
- children: oTe(n)
+ children: sTe(n)
}) : null,
- !pH(e) && s ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ !fH(e) && s ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
className: "gap-0 p-3",
- extra: e.issues_log && !u ? /* @__PURE__ */ (0, I.jsx)("div", {
+ extra: e.issues_log && !u ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(z$, {
+ children: /* @__PURE__ */ (0, F.jsx)(z$, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -66071,37 +66078,37 @@ function sTe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function B$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = LH(e), o = Pt({
- mutationFn: (e) => H(lH, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = IH(e), o = Ft({
+ mutationFn: (e) => V(cH, e),
onSuccess: (e) => {
- a(), U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
+ a(), H.setQueryData(lH, e), H.invalidateQueries({ queryKey: lH });
}
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = pU(c), u = o.error ? Hn(o.error) : r.isError ? r.data ? bH : Hn(r.error) : "", d = o.isPending || pH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = fU(c), u = o.error ? Wn(o.error) : r.isError ? r.data ? yH : Wn(r.error) : "", d = o.isPending || fH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(L$, {
+ children: [/* @__PURE__ */ (0, F.jsx)(L$, {
layout: "stack",
label: "扫描与采集",
- footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(EH, {
+ footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(TH, {
href: "/sources",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(EH, {
+ s.candidates ? /* @__PURE__ */ (0, F.jsx)(TH, {
href: "/review",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(kK, {
+ /* @__PURE__ */ (0, F.jsx)(kK, {
scan: !0,
busy: d,
metadataOnly: s?.metadata_only,
@@ -66109,35 +66116,35 @@ function B$(e) {
onRun: f
})
] }),
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(I$, { children: "扫描与采集" }), l && (pH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, F.jsx)(I$, { children: "扫描与采集" }), l && (fH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- onClick: () => fU(c, !0),
+ onClick: () => dU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: k$
}),
- s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
+ s.status === "paused" && !s.total ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(R$, { children: "已暂停" })
- }) : pH(s) ? /* @__PURE__ */ (0, I.jsx)(Whe, { state: s }) : null,
- pH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, F.jsx)(R$, { children: "已暂停" })
+ }) : fH(s) ? /* @__PURE__ */ (0, F.jsx)(Khe, { state: s }) : null,
+ fH(s) ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: _H(s)
+ children: gH(s)
}) : null,
- pH(s) ? /* @__PURE__ */ (0, I.jsx)(aU, { traffic: s.traffic }) : null
+ fH(s) ? /* @__PURE__ */ (0, F.jsx)(iU, { traffic: s.traffic }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(sTe, {
+ }), /* @__PURE__ */ (0, F.jsx)(cTe, {
state: s,
problem: u,
settled: i,
@@ -66153,32 +66160,32 @@ function B$(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var cTe = "/api/playlists", V$ = "/api/playlist", H$ = ["playlists"], U$ = (e) => V(cTe, e);
-async function lTe(e) {
- await U.fetchQuery({
+var lTe = "/api/playlists", V$ = "/api/playlist", H$ = ["playlists"], U$ = (e) => B(lTe, e);
+async function uTe(e) {
+ await H.fetchQuery({
queryKey: H$,
queryFn: () => U$(e),
staleTime: 0
});
}
-var uTe = () => U.invalidateQueries({
+var dTe = () => H.invalidateQueries({
queryKey: H$,
exact: !0
-}), dTe = (e) => e.current_asset_id || e.preview_asset_id || null, fTe = (e) => `/poster?id=${e}&c=4`, pTe = (e) => H(V$, {
+}), fTe = (e) => e.current_asset_id || e.preview_asset_id || null, pTe = (e) => `/poster?id=${e}&c=4`, mTe = (e) => V(V$, {
action: "create",
name: e,
asset_ids: []
-}), mTe = (e, t) => H(V$, {
+}), hTe = (e, t) => V(V$, {
action: "rename",
id: e,
name: t
-}), hTe = (e) => H(V$, {
+}), gTe = (e) => V(V$, {
action: "delete",
id: e
-}), gTe = (e) => V(`${V$}?id=${e}`).catch(() => null);
-function _Te(e) {
+}), _Te = (e) => B(`${V$}?id=${e}`).catch(() => null);
+function vTe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return H(V$, {
+ return V(V$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -66188,28 +66195,28 @@ function _Te(e) {
}
//#endregion
//#region src/react/scraping/custom-source-data.ts
-var W$ = "/api/custom-metadata", G$ = ["custom-metadata"], K$ = (e) => V(W$, e), vTe = "/api/scraping", yTe = "/api/scraping/settings", bTe = "/api/scraping/check", q$ = "/api/scraping/cover", xTe = "/api/scraping/amane-bridge", STe = "/api/scraping/amane-bridge/check", CTe = "/api/scraping/amane-bridge/rebuild", J$ = ["scraping"], Y$ = ["scraping", "cover"], X$ = ["scraping", "amane-bridge"], wTe = 262144, Z$ = (e) => V(vTe, e), Q$ = (e) => V(q$, e), $$ = (e) => V(xTe, e);
-async function TTe(e) {
+var W$ = "/api/custom-metadata", G$ = ["custom-metadata"], K$ = (e) => B(W$, e), yTe = "/api/scraping", bTe = "/api/scraping/settings", xTe = "/api/scraping/check", q$ = "/api/scraping/cover", STe = "/api/scraping/amane-bridge", CTe = "/api/scraping/amane-bridge/check", wTe = "/api/scraping/amane-bridge/rebuild", J$ = ["scraping"], Y$ = ["scraping", "cover"], X$ = ["scraping", "amane-bridge"], TTe = 262144, Z$ = (e) => B(yTe, e), Q$ = (e) => B(q$, e), $$ = (e) => B(STe, e);
+async function ETe(e) {
await Promise.all([
- U.fetchQuery({
+ H.fetchQuery({
queryKey: J$,
queryFn: () => Z$(e)
}),
- U.fetchQuery({
+ H.fetchQuery({
queryKey: Y$,
queryFn: () => Q$(e)
}),
- U.fetchQuery({
+ H.fetchQuery({
queryKey: X$,
queryFn: () => $$(e)
}),
- U.fetchQuery({
+ H.fetchQuery({
queryKey: G$,
queryFn: () => K$(e)
})
]);
}
-function ETe(e, t) {
+function DTe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
//#endregion
@@ -66227,7 +66234,7 @@ var e1 = /* @__PURE__ */ new Set([
"photo",
"release"
]), n1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function DTe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function OTe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
@@ -66316,7 +66323,7 @@ function DTe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function OTe(e, t, n = Math.random) {
+function kTe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -66326,7 +66333,7 @@ function OTe(e, t, n = Math.random) {
}
//#endregion
//#region src/react/search/search-page.tsx
-var kTe = () => ({
+var ATe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -66345,7 +66352,7 @@ var kTe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), r1 = (e) => DTe({
+}), r1 = (e) => OTe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -66354,20 +66361,20 @@ var kTe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), ATe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), i1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+}), jTe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), i1 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
-function jTe(e) {
- let t = (0, F.useRef)(e);
+function MTe(e) {
+ let t = (0, P.useRef)(e);
t.current = e;
- let n = (0, F.useRef)(null);
- n.current ??= kTe();
- let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= MTe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ let n = (0, P.useRef)(null);
+ n.current ??= ATe();
+ let r = n.current, i = (0, P.useRef)(null), [, a] = (0, P.useReducer)((e) => e + 1, 0), o = (0, P.useRef)(null);
+ o.current ??= NTe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus(), c = () => {
r.dismissed && s.focus();
};
@@ -66376,22 +66383,22 @@ function jTe(e) {
return t.current.expose(l), () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.recommendationRequest++, t.current.expose(null);
};
- }, [s, r]), (0, F.useLayoutEffect)(() => {
+ }, [s, r]), (0, P.useLayoutEffect)(() => {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = r1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(PTe, {
+ let c = r1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, F.jsx)(FTe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
onPick: s.pick,
onPeek: s.peek,
onRemove: s.remove
- }, `${t.type}:${t.value}:${t.index}`), d = (e) => /* @__PURE__ */ (0, I.jsxs)("section", {
+ }, `${t.type}:${t.value}:${t.index}`), d = (e) => /* @__PURE__ */ (0, F.jsxs)("section", {
"data-search-group": "",
"data-kind": e.kind,
children: [
- /* @__PURE__ */ (0, I.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
+ /* @__PURE__ */ (0, F.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, F.jsx)("a", {
href: e.href,
onMouseDown: a1,
onClick: (t) => {
@@ -66399,39 +66406,39 @@ function jTe(e) {
},
children: e.action || "查看全部"
}) : null] }),
- e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
+ e.kind ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
}) : e.options.map(u),
e.more ? u(e.more) : null
]
}, e.kind ?? e.label);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: i,
"data-search-root": "",
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(NTe, {
+ c.tabs ? /* @__PURE__ */ (0, F.jsx)(PTe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
wire: e.helpers.wireScroller
}) : null,
r.query && c.recent ? d(c.recent) : null,
- ((e, t) => e.length || t.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ ((e, t) => e.length || t.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-search-results": "",
"data-split": e.length && t.length ? "" : void 0,
- children: [e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-search-col": "",
children: e.map(d)
- }) : null, t.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : null, t.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-search-col": "",
children: t.map(d)
}) : null]
}) : null)(c.left, c.right),
!r.query && c.recent ? d(c.recent) : null,
- c.empty ? /* @__PURE__ */ (0, I.jsx)("p", {
+ c.empty ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-search-empty": "",
role: "status",
children: "没有找到"
@@ -66439,18 +66446,18 @@ function jTe(e) {
]
});
}
-function MTe(e, t, n, r) {
+function NTe(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
let n = e().historyLimit;
if (!n) t.history = [];
else try {
- let e = await V(`/api/search-history?limit=${n}`);
+ let e = await B(`/api/search-history?limit=${n}`);
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => n1(e) !== n1(t))]), H("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => n1(e) !== n1(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -66475,7 +66482,7 @@ function MTe(e, t, n, r) {
let r = ++t.suggestRequest;
n || (t.asked = e);
try {
- let i = await V(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}` : "") + "&limit=20");
+ let i = await B(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}` : "") + "&limit=20");
if (r !== t.suggestRequest) return;
t.suggestFor = i.q || "", t.groups = i.groups || [], !n && t.groups.length > 1 && (t.groups = t.groups.map((e) => ({
...e,
@@ -66497,9 +66504,9 @@ function MTe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : OTe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : kTe(t.pool, o()), t.active = -1;
let a = n();
- a && (ATe(r1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (jTe(r1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -66563,7 +66570,7 @@ function MTe(e, t, n, r) {
m(), i().blur(), e().actions.openItem(t.id);
},
remove: async (e) => {
- await H("/api/search-history", {
+ await V("/api/search-history", {
operation: "remove",
query: e
}).catch(() => null), s(o().filter((t) => n1(t) !== n1(e))), t.active = -1, r();
@@ -66572,12 +66579,12 @@ function MTe(e, t, n, r) {
openPath: C
};
}
-function NTe({ tabs: e, kind: t, onPick: n, wire: r }) {
- let i = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => {
+function PTe({ tabs: e, kind: t, onPick: n, wire: r }) {
+ let i = (0, P.useRef)(null);
+ (0, P.useLayoutEffect)(() => {
r(i.current);
}, [r, e]);
- let a = (e, r, i) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ let a = (e, r, i) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
"data-suggest-kind": e,
@@ -66586,9 +66593,9 @@ function NTe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(IQ, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, F.jsx)(IQ, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(pF, {
+ return /* @__PURE__ */ (0, F.jsxs)(fF, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -66598,7 +66605,7 @@ function NTe({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var a1 = (e) => e.preventDefault();
-function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+function FTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -66606,7 +66613,7 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
t.target.closest("[data-remove-history]") || r(e);
}
};
- if (e.type === "more") return /* @__PURE__ */ (0, I.jsxs)("button", {
+ if (e.type === "more") return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-search-option": "more",
...o,
@@ -66615,16 +66622,16 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(i1, { name: "chevron-right" })
+ /* @__PURE__ */ (0, F.jsx)(i1, { name: "chevron-right" })
]
});
- if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
+ if (e.type !== "suggest") return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(i1, { name: e.type === "history" ? "history" : "sparkles" }),
- /* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
- e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)(i1, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: e.value }),
+ e.type === "history" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
@@ -66632,7 +66639,7 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(i1, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(i1, { name: "x" })
}) : null
]
});
@@ -66645,59 +66652,59 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"release"
].includes(c)) {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
onMouseDown: a1,
- children: [/* @__PURE__ */ (0, I.jsx)(o1, {
+ children: [/* @__PURE__ */ (0, F.jsx)(o1, {
card: s.card,
helpers: n
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-search-meta": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-search-name": "",
- children: /* @__PURE__ */ (0, I.jsx)("span", { children: s.value })
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", { children: s.value })
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-sub": "",
children: e
})]
})]
});
}
- let u = s.matched ? /* @__PURE__ */ (0, I.jsx)("span", {
+ let u = s.matched ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-matched": "",
children: s.matched
}) : null;
if (c === "performer" || c === "creator" || c === "author") {
let e = s.works ?? [], t = s.subtitle || [`${(s.n ?? 0).toLocaleString()} 个视频`, s.agency].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-search-option": "person",
"data-open-entity": l,
...o,
onMouseDown: a1,
children: [
- /* @__PURE__ */ (0, I.jsx)(s1, {
+ /* @__PURE__ */ (0, F.jsx)(s1, {
item: s,
kind: c
}),
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-search-person": "",
"data-search-meta": "",
"aria-label": `查看 ${s.value}`,
- children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-search-name": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: s.value }), u]
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: s.value }), u]
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-sub": "",
children: t
})]
}),
- e.length ? /* @__PURE__ */ (0, I.jsx)("span", {
+ e.length ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-peeks": "",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
@@ -66705,7 +66712,7 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(o1, {
+ children: /* @__PURE__ */ (0, F.jsx)(o1, {
card: e,
helpers: n
})
@@ -66714,18 +66721,18 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-search-option": "",
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(s1, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, F.jsx)(s1, {
item: s,
kind: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", { children: s.value }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: s.value }),
u,
- s.n ? /* @__PURE__ */ (0, I.jsx)("span", {
+ s.n ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-n": "",
children: s.n.toLocaleString()
}) : null
@@ -66733,13 +66740,13 @@ function PTe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
});
}
function o1({ card: e, helpers: t }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
function s1({ item: e, kind: t }) {
- if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
+ if (e.avatarHtml) return /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
});
@@ -66749,8 +66756,8 @@ function s1({ item: e, kind: t }) {
image_version: e.image_version,
avatar_focus: e.avatar_focus,
avatar_stand_in: e.avatar_stand_in
- }, r = Ya(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
- return /* @__PURE__ */ (0, I.jsx)("span", {
+ }, r = Za(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"data-search-face": "",
"data-kind": t,
dangerouslySetInnerHTML: { __html: r }
@@ -66758,9 +66765,9 @@ function s1({ item: e, kind: t }) {
}
//#endregion
//#region src/react/settings/configuration.ts
-var c1 = ["configuration"], l1 = (e) => V(qY, e);
-async function FTe(e) {
- await U.fetchQuery({
+var c1 = ["configuration"], l1 = (e) => B(qY, e);
+async function ITe(e) {
+ await H.fetchQuery({
queryKey: c1,
queryFn: () => l1(e)
});
@@ -66773,14 +66780,14 @@ var u1 = (e) => e.map(([e, t, n]) => n ? [
n
] : [e, t]);
function d1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
- let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
- return f.current = l, (0, F.useLayoutEffect)(() => {
+ let u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(l);
+ return f.current = l, (0, P.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = kc(t, n, u1(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = jc(t, n, u1(r), i, {
attr: a,
className: o,
text: s
- }), Ac(e, a, (e) => {
+ }), Mc(e, a, (e) => {
d.current = {
value: e,
epoch: c
@@ -66789,58 +66796,58 @@ function d1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
value: i,
epoch: c
}));
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
id: e,
ref: u
});
}
function f1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
- let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
- return m.current = l, (0, F.useLayoutEffect)(() => {
+ let d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(-1), m = (0, P.useRef)(l);
+ return m.current = l, (0, P.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = Ko(u1(n), r, { label: t });
- let i = qo(e.firstElementChild);
+ e.innerHTML = Jo(u1(n), r, { label: t });
+ let i = Yo(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
let o = f.current;
- o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Ec(o, a), u?.(o);
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Oc(o, a), u?.(o);
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
id: e,
ref: d,
hidden: o,
"aria-describedby": s
});
}
-function ITe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
- let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
+function LTe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+ let s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)({
onStep: a,
onSettle: o
});
return l.current = {
onStep: a,
onSettle: o
- }, (0, F.useLayoutEffect)(() => {
+ }, (0, P.useLayoutEffect)(() => {
let i = s.current;
- i && !c.current && (i.insertAdjacentHTML("beforeend", Mc({
+ i && !c.current && (i.insertAdjacentHTML("beforeend", Pc({
value: r,
min: 0,
max: n,
step: 1,
label: t,
attr: `data-glow-dial="${e}"`
- })), c.current = Nc(i.lastElementChild, {
+ })), c.current = Fc(i.lastElementChild, {
onInput: (e) => l.current.onStep(e),
onChange: (e) => l.current.onSettle(e)
}));
- }), (0, F.useLayoutEffect)(() => {
+ }), (0, P.useLayoutEffect)(() => {
c.current && c.current.value !== r && c.current.set(r);
- }, [r]), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, [r]), /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-field": e,
hidden: i,
ref: s,
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
"data-glow-field-label": "",
children: t
})
@@ -66848,7 +66855,7 @@ function ITe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var LTe = [
+var RTe = [
[
"strength",
"强度",
@@ -66875,9 +66882,9 @@ var LTe = [
100
]
];
-function RTe({ host: e, spot: t, index: n, glow: r }) {
- let i = Coe[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = iV(), [l, u] = (0, F.useState)("all");
- (0, F.useLayoutEffect)(() => {
+function zTe({ host: e, spot: t, index: n, glow: r }) {
+ let i = Toe[n], a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = rV(), [l, u] = (0, P.useState)("all");
+ (0, P.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
o.current,
@@ -66885,62 +66892,62 @@ function RTe({ host: e, spot: t, index: n, glow: r }) {
];
e && t && n && (t.addEventListener("click", () => {
n.style.width = `${t.offsetWidth}px`;
- }), Wo(e, t, n));
+ }), Ko(e, t, n));
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = iA(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Ro(), o.current?.focus();
+ r[t].color = rA(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), Bo(), o.current?.focus();
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-glow-stop": t,
ref: a,
- children: [/* @__PURE__ */ (0, I.jsxs)("button", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-glow-stop-toggle": "",
"aria-haspopup": "dialog",
"aria-expanded": "false",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": "true",
"data-glow-stop-dot": "",
style: { "--glow-swatch": d }
}),
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-glow-stop-text": "",
- children: [/* @__PURE__ */ (0, I.jsx)("b", { children: i }), /* @__PURE__ */ (0, I.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsx)("b", { children: i }), /* @__PURE__ */ (0, F.jsx)("small", {
className: "mono",
"data-glow-stop-hex": "",
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-down" })
]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "popmenu",
"data-glow-stop-pop": "",
popover: "manual",
hidden: !0,
ref: s,
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: Eoe.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ooe.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
onClick: () => u(e),
children: t
}, e))
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-palette-frame": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
ref: c,
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: Doe.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: koe.map(([e, t, n]) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -66957,41 +66964,41 @@ function RTe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function zTe({ host: e }) {
- let t = e.store.value.homeGlow, n = Zk(t.preset);
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+function BTe({ host: e }) {
+ let t = e.store.value.homeGlow, n = Xk(t.preset);
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
"aria-label": "侧栏光晕参数",
hidden: !t.on,
- children: [/* @__PURE__ */ (0, I.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("section", {
"data-glow-group": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h4", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "光晕配色"
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-card": "",
"data-glow-card": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
"data-glow-current": "",
- children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
+ children: ["当前配色", /* @__PURE__ */ (0, F.jsx)("b", {
"data-glow-preset-name": "",
- children: woe(t.preset)
+ children: Eoe(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(YA, {
+ /* @__PURE__ */ (0, F.jsx)(YA, {
store: e.store,
label: "光晕配色"
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-glow-native-note": "",
hidden: !n,
children: "这一档用每块玻璃自带的反光,颜色跟着明暗主题走。"
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-fields": "",
- children: LTe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(ITe, {
+ children: RTe.map(([r, i, a]) => /* @__PURE__ */ (0, F.jsx)(LTe, {
field: r,
label: i,
max: a,
@@ -67005,33 +67012,33 @@ function zTe({ host: e }) {
}
}, r))
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-actions": "",
- children: /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = oA(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = aA(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
})
]
})]
- }), /* @__PURE__ */ (0, I.jsxs)("section", {
+ }), /* @__PURE__ */ (0, F.jsxs)("section", {
"data-glow-group": "",
"data-glow-colours": "",
hidden: n,
- children: [/* @__PURE__ */ (0, I.jsx)("h4", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "自定义颜色"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-setting-card": "",
"data-glow-colour-card": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-glow-stops": "",
- children: Jk.map((n, r) => /* @__PURE__ */ (0, I.jsx)(RTe, {
+ children: qk.map((n, r) => /* @__PURE__ */ (0, F.jsx)(zTe, {
host: e,
spot: n,
index: r,
@@ -67044,7 +67051,7 @@ function zTe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var BTe = {
+var VTe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -67098,17 +67105,17 @@ function m1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = BTe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Lk(Number(localStorage.getItem(p1(e))), o, s, n && n > 0 ? n : l);
- let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
- y.current = i, (0, F.useLayoutEffect)(() => {
+ let a = VTe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, P.useRef)(0);
+ d.current ||= Ik(Number(localStorage.getItem(p1(e))), o, s, n && n > 0 ? n : l);
+ let [f, p] = (0, P.useState)(n ?? 0), [m, h] = (0, P.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, P.useState)(""), v = (0, P.useRef)(null), y = (0, P.useRef)(i);
+ y.current = i, (0, P.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(p1(e), String(d.current)), y.current(d.current)));
- }, x = (0, F.useRef)(b);
- x.current = b, (0, F.useEffect)(() => {
+ }, x = (0, P.useRef)(b);
+ x.current = b, (0, P.useEffect)(() => {
let e = v.current;
if (!e) return;
let t = () => x.current();
@@ -67118,9 +67125,9 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
let t = v.current;
t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(p1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-number-setting": "",
- children: [u ? /* @__PURE__ */ (0, I.jsx)("input", {
+ children: [u ? /* @__PURE__ */ (0, F.jsx)("input", {
type: "checkbox",
"data-toggle": "",
role: "switch",
@@ -67128,12 +67135,12 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
checked: S,
disabled: w,
onChange: C
- }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
"data-number-fields": "",
hidden: u && !S,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-number-control": "",
- children: [/* @__PURE__ */ (0, I.jsx)("input", {
+ children: [/* @__PURE__ */ (0, F.jsx)("input", {
ref: v,
type: "number",
inputMode: "numeric",
@@ -67151,11 +67158,11 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
onKeyDown: (e) => {
e.key === "Enter" && (e.preventDefault(), b());
}
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": "true",
children: [c, m1(Number(m), c) ? ` · ${m1(Number(m), c)}` : ""]
})]
- }), /* @__PURE__ */ (0, I.jsx)("small", {
+ }), /* @__PURE__ */ (0, F.jsx)("small", {
id: `${e}-error`,
"data-number-error": "",
role: "status",
@@ -67169,7 +67176,7 @@ function h1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#region src/react/sidebar/sidebar-order.ts
function g1(e) {
let { mutate: t } = aX();
- return (0, F.useCallback)((n) => {
+ return (0, P.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
@@ -67183,9 +67190,9 @@ function _1(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var VTe = "__home__", v1 = (e) => e === "" ? VTe : e;
-function HTe({ host: e }) {
- let t = g1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
+var HTe = "__home__", v1 = (e) => e === "" ? HTe : e;
+function UTe({ host: e }) {
+ let t = g1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(!1), [u, d] = (0, P.useState)(null), [f, p] = (0, P.useState)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (e, r, i) => {
let a = _1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
@@ -67194,12 +67201,12 @@ function HTe({ host: e }) {
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
}, v = a.find(([e]) => v1(e) === o) ?? a[0], y = () => {
- h.current && Vo(h.current), l(!1);
+ h.current && Uo(h.current), l(!1);
}, b = () => {
let e = h.current;
if (!e) return;
let t = !c;
- t ? Bo(e) : Vo(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
+ t ? Ho(e) : Uo(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
}, x = (e) => {
if (e.key === "Escape") {
e.preventDefault(), y(), m.current?.focus();
@@ -67232,29 +67239,29 @@ function HTe({ host: e }) {
},
onDragEnd: S
});
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-order": "",
id: "sidebarOrderSetting",
- children: [i.map(([e, r, a], o) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [i.map(([e, r, a], o) => /* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-row": e,
...C(e),
"data-dragging": u === e ? "" : void 0,
"data-drop": f?.key === e ? f.after ? "after" : "before" : void 0,
- children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-sidebar-label": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("i", {
+ /* @__PURE__ */ (0, F.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(yP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, F.jsx)(vP, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(yP, { name: a ?? "" }),
- /* @__PURE__ */ (0, I.jsx)("b", { children: r })
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, F.jsx)("b", { children: r })
]
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-sidebar-actions": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-move": "-1",
@@ -67262,9 +67269,9 @@ function HTe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-up" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-move": "1",
@@ -67272,9 +67279,9 @@ function HTe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-down" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-sidebar-key": e,
"data-sidebar-hide": "",
@@ -67284,18 +67291,18 @@ function HTe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(yP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, F.jsx)(vP, { name: "eye-off" })
})
]
})]
- }, v1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, v1(e))), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-add-row": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-add-picker": "",
onBlur: (e) => {
e.currentTarget.contains(e.relatedTarget) || y();
},
- children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-sidebar-add-trigger": "",
"aria-haspopup": "listbox",
@@ -67303,22 +67310,22 @@ function HTe({ host: e }) {
disabled: !v,
ref: m,
onClick: b,
- children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(yP, { name: v[2] ?? "" }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ children: v ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yP, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
- }), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(vP, { name: "check" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "全部页面都已显示" })] })
+ }), a.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
role: "listbox",
"aria-label": "选择要添加的页面",
hidden: !0,
ref: h,
- children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a.map(([e, t, n]) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "option",
"data-sidebar-add-option": v1(e),
@@ -67328,10 +67335,10 @@ function HTe({ host: e }) {
onClick: () => {
s(v1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(yP, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, F.jsx)(vP, { name: n ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: t })]
}, v1(e)))
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
className: "geist-button primary",
"data-sidebar-add": "",
@@ -67352,7 +67359,7 @@ var y1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], UTe = [
+], WTe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -67361,7 +67368,7 @@ var y1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], WTe = [["desc", "降序"], ["asc", "升序"]], GTe = [[
+], GTe = [["desc", "降序"], ["asc", "升序"]], KTe = [[
"cover",
"官方封面",
""
@@ -67369,7 +67376,7 @@ var y1 = [
"thumbnail",
"预览图",
""
-]], KTe = [
+]], qTe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -67388,32 +67395,32 @@ var y1 = [
"切片",
"隐藏切片"
]
-], qTe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
+], JTe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, S1 = 0, C1 = null, w1 = /* @__PURE__ */ new Set();
-function JTe(e) {
+function YTe(e) {
return w1.add(e), () => {
w1.delete(e);
};
}
-function YTe() {
+function XTe() {
for (let e of [...w1]) e();
}
function T1(e) {
x1 = {
...x1,
...e
- }, (0, It.flushSync)(YTe);
+ }, (0, Lt.flushSync)(XTe);
}
-async function XTe(e) {
+async function ZTe(e) {
let t = x1.epoch, n = await e.configurable();
x1.open && x1.epoch === t && T1({ configurable: n });
}
-function ZTe(e = "") {
+function QTe(e = "") {
let t = b1;
if (!t) return;
let n = y1.findIndex(([t]) => t === e);
@@ -67421,8 +67428,8 @@ function ZTe(e = "") {
n >= 0 && n !== x1.tab && T1({ tab: n });
return;
}
- Ro(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = Rbe();
+ Bo(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = zbe();
T1({
open: !0,
closing: !1,
@@ -67431,7 +67438,7 @@ function ZTe(e = "") {
tab: n >= 0 ? n : x1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), XTe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), ZTe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function E1(e = !0) {
if (!x1.open || x1.closing) return;
@@ -67445,32 +67452,32 @@ function E1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var QTe = {
- open: ZTe,
+var $Te = {
+ open: QTe,
close: E1,
isOpen: () => x1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function $Te(e) {
- return b1 = e, QTe;
+function eEe(e) {
+ return b1 = e, $Te;
}
-function eEe() {
- let e = (0, F.useSyncExternalStore)(JTe, () => x1);
- return b1 ? /* @__PURE__ */ (0, I.jsx)(rEe, {
+function tEe() {
+ let e = (0, P.useSyncExternalStore)(YTe, () => x1);
+ return b1 ? /* @__PURE__ */ (0, F.jsx)(iEe, {
host: b1,
view: e
}) : null;
}
-function tEe(e) {
+function nEe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(qTe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(JTe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var D1 = (e) => `settings-tab-${e}`, O1 = (e) => `settings-group-${e}`;
-function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
+function rEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(e), l = (0, P.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
if (!e || !e.offsetHeight) {
@@ -67484,15 +67491,15 @@ function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
w: e.offsetWidth,
h: e.offsetHeight
}, i = s.current;
- s.current = r, bc(n, t ? i : null, r, "y");
- }, d = (0, F.useRef)(u);
- d.current = u, (0, F.useLayoutEffect)(() => {
+ s.current = r, Sc(n, t ? i : null, r, "y");
+ }, d = (0, P.useRef)(u);
+ d.current = u, (0, P.useLayoutEffect)(() => {
let e = a.current;
if (!e) return;
- oc(e);
+ cc(e);
let t = new ResizeObserver(() => d.current(l.current[c.current], !1));
return t.observe(e), () => t.disconnect();
- }, []), (0, F.useLayoutEffect)(() => {
+ }, []), (0, P.useLayoutEffect)(() => {
let t = c.current !== e;
c.current = e, d.current(l.current[e], t);
}, [e, t]);
@@ -67505,7 +67512,7 @@ function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
else return;
e.preventDefault(), i(r), l.current[r]?.focus();
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-nav": "",
"data-glass-pane": "",
role: "tablist",
@@ -67515,18 +67522,18 @@ function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
e.pointerType !== "touch" && u(l.current[c.current], !0);
},
children: [
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-settings-glide": "",
"aria-hidden": "true",
hidden: !0,
ref: o
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-settings-nav-caption": "",
role: "presentation",
children: "设置"
}),
- y1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ y1.map(([t, n], r) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
id: D1(r),
@@ -67541,20 +67548,20 @@ function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(yP, { name: n }) : /* @__PURE__ */ (0, I.jsx)(zce, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, F.jsx)(vP, { name: n }) : /* @__PURE__ */ (0, F.jsx)(Vce, { name: n }), t]
}, t)),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-settings-service": "",
role: "presentation",
- children: /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
disabled: n !== !0,
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(yP, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-right" })
+ /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-right" })
]
})
})
@@ -67562,23 +67569,23 @@ function nEe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
});
}
function k1({ index: e, tab: t, children: n, cards: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
id: O1(e),
role: "tabpanel",
"aria-labelledby": D1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: y1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, F.jsx)("h3", { children: y1[e][0] }), n]
});
}
function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
- return /* @__PURE__ */ (0, I.jsxs)("label", {
+ return /* @__PURE__ */ (0, F.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, F.jsx)("small", {
id: r,
children: n
- }) : null] }), /* @__PURE__ */ (0, I.jsx)("input", {
+ }) : null] }), /* @__PURE__ */ (0, F.jsx)("input", {
"data-toggle": "",
type: "checkbox",
id: e,
@@ -67590,37 +67597,37 @@ function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
});
}
function j1({ title: e, description: t, kind: n, children: r }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
"data-setting-related": n === "related" ? "" : void 0,
- children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", { children: [/* @__PURE__ */ (0, F.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, F.jsx)("small", { children: t }) : t] }), r]
});
}
-function rEe({ host: e, view: t }) {
- (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
- let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
+function iEe({ host: e, view: t }) {
+ (0, P.useSyncExternalStore)(e.store.subscribe, e.store.version);
+ let n = e.store.value, r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
if (!e || !t) return;
let n = parseFloat(getComputedStyle(e).getPropertyValue("--settings-gap")) || 0;
e.toggleAttribute("data-scrolled", t.scrollTop > Math.max(n - 4, 0));
- }, u = (0, F.useRef)(l);
- u.current = l, (0, F.useLayoutEffect)(() => {
+ }, u = (0, P.useRef)(l);
+ u.current = l, (0, P.useLayoutEffect)(() => {
let t = o.current;
if (!t || !r.current) return;
- s.current = go(t) ?? s.current, e.attached(r.current);
+ s.current = vo(t) ?? s.current, e.attached(r.current);
let n = () => u.current();
return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
- }, [e]), (0, F.useLayoutEffect)(() => {
+ }, [e]), (0, P.useLayoutEffect)(() => {
let e = c.current !== t.tab;
- c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && js(a.current, "h2"), u.current();
- }, [t.tab, t.epoch]), (0, F.useLayoutEffect)(() => {
+ c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && Ns(a.current, "h2"), u.current();
+ }, [t.tab, t.epoch]), (0, P.useLayoutEffect)(() => {
s.current?.();
});
let d = t.epoch, f = (t) => {
t !== x1.tab && (T1({ tab: t }), e.selectSection?.(y1[t][0]));
}, p = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsx)("section", {
+ return /* @__PURE__ */ (0, F.jsx)("section", {
"data-settings-panel": "",
id: "settingsPanel",
hidden: !t.open,
@@ -67629,27 +67636,27 @@ function rEe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: tEe,
+ onKeyDown: nEe,
onClick: (e) => {
e.target === e.currentTarget && E1();
},
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-card": "",
ref: i,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-head": "",
ref: a,
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
id: "settingsTitle",
children: y1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(zz, {
+ }), /* @__PURE__ */ (0, F.jsx)(Rz, {
id: "settingsClose",
label: "关闭设置",
onPress: () => E1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(nEe, {
+ /* @__PURE__ */ (0, F.jsx)(rEe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -67658,21 +67665,21 @@ function rEe({ host: e, view: t }) {
E1(!1), e.openConfiguration();
}
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, F.jsxs)(k1, {
index: 0,
tab: t.tab,
cards: !0,
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, F.jsx)(d1, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -67686,12 +67693,12 @@ function rEe({ host: e, view: t }) {
}
})
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)("label", {
+ children: [/* @__PURE__ */ (0, F.jsx)("label", {
htmlFor: "glassContrastSetting",
- children: /* @__PURE__ */ (0, I.jsx)("b", { children: "增加对比度" })
- }), /* @__PURE__ */ (0, I.jsx)("input", {
+ children: /* @__PURE__ */ (0, F.jsx)("b", { children: "增加对比度" })
+ }), /* @__PURE__ */ (0, F.jsx)("input", {
type: "checkbox",
id: "glassContrastSetting",
"data-toggle": "",
@@ -67700,7 +67707,7 @@ function rEe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(A1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -67708,7 +67715,7 @@ function rEe({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(A1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -67718,47 +67725,47 @@ function rEe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(zTe, { host: e }),
- /* @__PURE__ */ (0, I.jsxs)("section", {
+ /* @__PURE__ */ (0, F.jsx)(BTe, { host: e }),
+ /* @__PURE__ */ (0, F.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
- children: [/* @__PURE__ */ (0, I.jsx)("h4", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
id: "sidebarOrderTitle",
children: "导航入口与顺序"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-setting-card": "",
- children: /* @__PURE__ */ (0, I.jsx)("section", {
+ children: /* @__PURE__ */ (0, F.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(HTe, { host: e })
+ children: /* @__PURE__ */ (0, F.jsx)(UTe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(aEe, {
+ /* @__PURE__ */ (0, F.jsx)(oEe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(oEe, {
+ /* @__PURE__ */ (0, F.jsx)(sEe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, F.jsxs)(k1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(lEe, {
+ /* @__PURE__ */ (0, F.jsx)(uEe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "相关推荐数量",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -67768,11 +67775,11 @@ function rEe({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "口味与记录",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(iI, {
+ children: /* @__PURE__ */ (0, F.jsx)(rI, {
variant: "secondary",
href: "/taste",
onClick: () => E1(!1),
@@ -67782,10 +67789,10 @@ function rEe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(k1, {
+ /* @__PURE__ */ (0, F.jsx)(k1, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, I.jsx)(A1, {
+ children: /* @__PURE__ */ (0, F.jsx)(A1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -67800,31 +67807,31 @@ function rEe({ host: e, view: t }) {
})
});
}
-function iEe(e, t) {
+function aEe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
- n.querySelector("[data-icon-swap]") || (n.innerHTML = ws("arrow-up", "arrow-down", "a", {
+ n.querySelector("[data-icon-swap]") || (n.innerHTML = Es("arrow-up", "arrow-down", "a", {
className: "gselectmark",
iconClass: "gselectmark"
- }) + "<span data-sort-direction-label></span>"), Ts(n, t ? "a" : "b");
+ }) + "<span data-sort-direction-label></span>"), Ds(n, t ? "a" : "b");
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function aEe({ host: e, tab: t, epoch: n }) {
+function oEe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
- return /* @__PURE__ */ (0, I.jsxs)(k1, {
+ return /* @__PURE__ */ (0, F.jsxs)(k1, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, I.jsx)("h4", {
+ /* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "每批加载作品",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -67834,24 +67841,24 @@ function aEe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "默认排序",
kind: "sort",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(f1, {
+ children: [/* @__PURE__ */ (0, F.jsx)(f1, {
id: "defaultSortSetting",
label: "默认排序",
- options: UTe,
+ options: WTe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(f1, {
+ }), /* @__PURE__ */ (0, F.jsx)(f1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: WTe,
+ options: GTe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -67859,13 +67866,13 @@ function aEe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => iEe(e, o)
+ decorate: (e) => aEe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, F.jsx)(d1, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -67878,9 +67885,9 @@ function aEe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, I.jsxs)("label", {
+ /* @__PURE__ */ (0, F.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: /* @__PURE__ */ (0, I.jsx)("b", { children: "合并分卷与版本" }) }), /* @__PURE__ */ (0, I.jsx)("input", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: /* @__PURE__ */ (0, F.jsx)("b", { children: "合并分卷与版本" }) }), /* @__PURE__ */ (0, F.jsx)("input", {
type: "checkbox",
id: "groupCollapseSetting",
"data-toggle": "",
@@ -67891,77 +67898,77 @@ function aEe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "悬停预览延迟",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Lk(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Ik(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)("h4", {
+ /* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(cEe, {
+ /* @__PURE__ */ (0, F.jsx)(lEe, {
host: e,
epoch: n
})
]
});
}
-function oEe({ host: e, tab: t, epoch: n }) {
+function sEe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(k1, {
+ return /* @__PURE__ */ (0, F.jsxs)(k1, {
index: 2,
tab: t,
children: [
- /* @__PURE__ */ (0, I.jsx)("h4", {
+ /* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(d1, {
+ children: /* @__PURE__ */ (0, F.jsx)(d1, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: GTe,
+ options: KTe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = Na(t), i(), e.changed("javImage");
+ r.javImage = Fa(t), i(), e.changed("javImage");
}
})
}),
- /* @__PURE__ */ (0, I.jsx)("h4", {
+ /* @__PURE__ */ (0, F.jsx)("h4", {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "显示数量",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Lk(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Ik(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(A1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -67969,7 +67976,7 @@ function oEe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- KTe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(sEe, {
+ qTe.map(([t, n, r, i]) => /* @__PURE__ */ (0, F.jsx)(cEe, {
host: e,
id: t,
settingKey: n,
@@ -67979,21 +67986,21 @@ function oEe({ host: e, tab: t, epoch: n }) {
]
});
}
-function sEe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = aX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
- s(t), Ec(c.current), a.mutate({ [n]: t }, {
+function cEe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = aX(), [o, s] = (0, P.useState)(null), c = (0, P.useRef)(null), l = e.store.value, u = (t) => {
+ s(t), Oc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
},
onError: (t) => e.failure(`保存${r}开关`, t),
onSettled: () => {
- s(null), Ec(c.current, !1);
+ s(null), Oc(c.current, !1);
}
});
};
- return /* @__PURE__ */ (0, I.jsxs)("label", {
+ return /* @__PURE__ */ (0, F.jsxs)("label", {
"data-setting-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: /* @__PURE__ */ (0, I.jsx)("b", { children: i }) }), /* @__PURE__ */ (0, I.jsx)("input", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: /* @__PURE__ */ (0, F.jsx)("b", { children: i }) }), /* @__PURE__ */ (0, F.jsx)("input", {
"data-toggle": "",
type: "checkbox",
id: t,
@@ -68004,10 +68011,10 @@ function sEe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function cEe({ host: e, epoch: t }) {
+function lEe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(A1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -68015,7 +68022,7 @@ function cEe({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, F.jsx)(A1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -68023,11 +68030,11 @@ function cEe({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, F.jsx)(j1, {
title: "快进 / 快退步长",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -68039,18 +68046,18 @@ function cEe({ host: e, epoch: t }) {
})
] });
}
-function lEe({ host: e, epoch: t }) {
+function uEe({ host: e, epoch: t }) {
let n = e.store.value, r = aX();
- return /* @__PURE__ */ (0, I.jsx)(j1, {
+ return /* @__PURE__ */ (0, F.jsx)(j1, {
title: "搜索记录数量",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(h1, {
+ children: /* @__PURE__ */ (0, F.jsx)(h1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Lk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Ik(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -68058,7 +68065,7 @@ function lEe({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var M1 = "__home__", uEe = {
+var M1 = "__home__", dEe = {
creator: 26,
tag: 30,
tech: 16
@@ -68070,7 +68077,7 @@ var M1 = "__home__", uEe = {
},
epoch: 0
}, I1 = /* @__PURE__ */ new Set();
-function dEe(e) {
+function fEe(e) {
return I1.add(e), () => {
I1.delete(e);
};
@@ -68078,21 +68085,21 @@ function dEe(e) {
function L1() {
for (let e of [...I1]) e();
}
-var fEe = {
+var pEe = {
render(e) {
F1 = {
...F1,
props: e
- }, (0, It.flushSync)(L1);
+ }, (0, Lt.flushSync)(L1);
},
navChanged() {
F1 = {
...F1,
epoch: F1.epoch + 1
- }, (0, It.flushSync)(L1);
+ }, (0, Lt.flushSync)(L1);
}
};
-function pEe(e) {
+function mEe(e) {
return P1 = e, F1 = {
...F1,
props: {
@@ -68100,26 +68107,26 @@ function pEe(e) {
filters: {},
latest: null
}
- }, fEe;
+ }, pEe;
}
-function mEe() {
- let e = (0, F.useSyncExternalStore)(dEe, () => F1);
- return P1 ? /* @__PURE__ */ (0, I.jsx)(hEe, {
+function hEe() {
+ let e = (0, P.useSyncExternalStore)(fEe, () => F1);
+ return P1 ? /* @__PURE__ */ (0, F.jsx)(gEe, {
host: P1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function hEe({ host: e, props: t, epoch: n }) {
- let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(gEe, {
+function gEe({ host: e, props: t, epoch: n }) {
+ let r = (0, P.useSyncExternalStore)(e.store.subscribe, e.store.version);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)("div", { "data-sidebar-head": "" }),
+ /* @__PURE__ */ (0, F.jsx)(_Ee, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(vEe, {
+ t.content ? /* @__PURE__ */ (0, F.jsx)(yEe, {
host: e,
content: t.content,
filters: t.filters,
@@ -68127,9 +68134,9 @@ function hEe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function gEe({ host: e, epoch: t, version: n }) {
- let r = g1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = nI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
- (0, F.useEffect)(() => {
+function _Ee({ host: e, epoch: t, version: n }) {
+ let r = g1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = tI(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+ (0, P.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
n,
@@ -68147,7 +68154,7 @@ function gEe({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let [f, p] = (0, F.useState)(null), [m, h] = (0, F.useState)(null), g = () => {
+ let [f, p] = (0, P.useState)(null), [m, h] = (0, P.useState)(null), g = () => {
p(null), h(null);
}, _ = (e) => ({
draggable: !0,
@@ -68172,11 +68179,11 @@ function gEe({ host: e, epoch: t, version: n }) {
},
onDragEnd: g
}), v = e.scroll.parentElement;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-nav": "",
ref: c,
onPointerLeave: u.leave,
- children: o.map(([t, n, r], i) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: o.map(([t, n, r], i) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-nav": t,
"aria-pressed": s[i],
@@ -68186,7 +68193,7 @@ function gEe({ host: e, epoch: t, version: n }) {
onClick: () => e.navTo(t),
onPointerEnter: u.hover,
..._(t),
- children: [t === "" ? /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [t === "" ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-sidebar-home-logo": "",
src: "/peach-logo-64.png",
srcSet: "/peach-logo-64.png 64w, /peach-logo-128.png 128w",
@@ -68195,16 +68202,16 @@ function gEe({ host: e, epoch: t, version: n }) {
height: 24,
alt: "",
decoding: "async"
- }) : /* @__PURE__ */ (0, I.jsx)(yP, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, F.jsx)(vP, { name: r }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
}, t || M1))
- }), v ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)("span", {
+ }), v ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
var R1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function _Ee(e) {
+function vEe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -68217,17 +68224,17 @@ function _Ee(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function vEe({ host: e, content: t, filters: n, latest: r }) {
+function yEe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
- (0, F.useLayoutEffect)(() => {
- t.kind === "catalog" && As(e.scroll, "drawer");
+ (0, P.useLayoutEffect)(() => {
+ t.kind === "catalog" && Ms(e.scroll, "drawer");
}, [
e,
i,
t.kind
]);
- let a = t.kind === "catalog" ? yEe(e, t.facets, n, r, i) : bEe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(xEe, {
+ let a = t.kind === "catalog" ? bEe(e, t.facets, n, r, i) : xEe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, F.jsx)(SEe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -68236,11 +68243,11 @@ function vEe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function yEe(e, t, n, r, i) {
- let a = _Ee(r), o = (t, r, i) => {
+function bEe(e, t, n, r, i) {
+ let a = vEe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = R1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(V1, {
+ return /* @__PURE__ */ (0, F.jsx)(V1, {
rows: t,
filterKey: r,
multi: i,
@@ -68262,12 +68269,12 @@ function yEe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(CEe, {
+ body: /* @__PURE__ */ (0, F.jsx)(wEe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: uEe[d],
+ limit: dEe[d],
filterKey: l,
selected: f,
counts: a,
@@ -68282,7 +68289,7 @@ function yEe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, F.jsx)(W1, {
host: e,
filters: n
})
@@ -68296,7 +68303,7 @@ function yEe(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, F.jsx)(H1, {
rows: t.followTags,
host: e,
selected: null,
@@ -68305,14 +68312,14 @@ function yEe(e, t, n, r, i) {
} : null
];
}
-function bEe(e, t, n) {
+function xEe(e, t, n) {
let r = t.providers || [], i = R1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(V1, {
+ body: /* @__PURE__ */ (0, F.jsx)(V1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -68326,7 +68333,7 @@ function bEe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, F.jsx)(W1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -68336,7 +68343,7 @@ function bEe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, F.jsx)(H1, {
rows: t.tags,
host: e,
selected: a,
@@ -68352,9 +68359,9 @@ function z1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function xEe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => z1(e, n)), u = (0, F.useRef)(!1);
- (0, F.useLayoutEffect)(() => {
+function SEe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+ let o = (0, P.useRef)(null), s = (0, P.useRef)(null), [c, l] = (0, P.useState)(() => z1(e, n)), u = (0, P.useRef)(!1);
+ (0, P.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
let i = u.current ? z1(e, n) : c;
@@ -68363,33 +68370,33 @@ function xEe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
let d = (t) => {
if (t?.preventDefault(), !o.current || !s.current) return;
let n = !c;
- vo(o.current, s.current, n), l(n);
+ bo(o.current, s.current, n), l(n);
try {
sessionStorage.setItem(`peach.sidebar.group.${e}`, n ? "open" : "closed");
} catch {}
}, f = `sidebar-collapse-${r}`;
- return /* @__PURE__ */ (0, I.jsxs)("details", {
+ return /* @__PURE__ */ (0, F.jsxs)("details", {
ref: o,
"data-sidebar-group": e,
"data-sidebar-kind": t,
- children: [/* @__PURE__ */ (0, I.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("summary", {
role: "button",
"data-sidebar-toggle": "",
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-right" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e })]
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
id: f,
inert: !c,
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-collapse-body": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(B1.Provider, {
+ children: /* @__PURE__ */ (0, F.jsx)(B1.Provider, {
value: d,
children: a
})
@@ -68398,20 +68405,20 @@ function xEe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var B1 = (0, F.createContext)(() => {});
-function SEe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(yP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var B1 = (0, P.createContext)(() => {});
+function CEe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, F.jsx)(vP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
- }) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
+ }) : /* @__PURE__ */ (0, F.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
let a = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-sidebar-chip": "",
"aria-pressed": r.includes(e.value),
@@ -68423,12 +68430,12 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(SEe, { dot: e.dot }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(CEe, { dot: e.dot }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
}),
- a === null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
+ a === null ? null : /* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-count": "",
"data-count-badge": `${t}:${e.value}`,
children: a.toLocaleString()
@@ -68438,11 +68445,11 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function CEe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, F.useContext)(B1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function wEe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+ let u = (0, P.useContext)(B1), [d, f] = (0, P.useState)(null), [p, m] = (0, P.useState)(e);
p !== e && (m(e), f(null));
- let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
- return (0, F.useLayoutEffect)(() => {
+ let h = (0, P.useRef)(null), g = (0, P.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
+ return (0, P.useLayoutEffect)(() => {
let e = h.current;
if (!e) return;
h.current = null;
@@ -68451,17 +68458,17 @@ function CEe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
};
if (_) {
let t = e.body.closest("details");
- e.body.classList.add("ui-fcollapse"), So(e.body, e.before, () => !!t?.open && !e.body.inert);
+ e.body.classList.add("ui-fcollapse"), wo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(V1, {
+ }, [d, _]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(V1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
selected: o,
counts: s,
host: c
- }), l && n.length > i ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }), l && n.length > i ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
ref: g,
"data-sidebar-more": a,
@@ -68479,13 +68486,13 @@ function CEe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(yP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(vP, { name: "chevron-down" })
}) : null] });
}
function H1({ rows: e, host: t, selected: n, badges: r }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-chips": "",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-sidebar-chip": "",
"data-online": "",
@@ -68493,10 +68500,10 @@ function H1({ rows: e, host: t, selected: n, badges: r }) {
"aria-pressed": n ? n.has(e.value) : void 0,
title: e.label,
onClick: () => n ? t.selectFollowTag(e.value) : t.openFollowTag(e.value),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-sidebar-count": "",
"data-count-badge": r ? `follow:${e.value}` : void 0,
children: r ? (e.n ?? 0).toLocaleString() : e.n
@@ -68506,18 +68513,18 @@ function H1({ rows: e, host: t, selected: n, badges: r }) {
}
var U1 = (e, t) => e ? Math.min(N1, Number(e) / 60) : t;
function W1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [U1(t.dur_min, 0), U1(t.dur_max, N1)]), [c, l] = (0, F.useState)("max");
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, P.useState)(r), [o, s] = (0, P.useState)(() => [U1(t.dur_min, 0), U1(t.dur_max, N1)]), [c, l] = (0, P.useState)("max");
i !== r && (a(r), s([U1(t.dur_min, 0), U1(t.dur_max, N1)]));
- let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
+ let [u, d] = o, f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useRef)(null), h = (0, P.useRef)(o);
h.current = o;
let g = (e, t) => {
let [n, r] = e === "min" ? [t, d] : [u, t];
return n > r && (e === "min" ? r = n : n = r), l(e), s([n, r]), [n, r];
};
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
let e = () => n(h.current[0], h.current[1]), t = [p.current, m.current];
return t.forEach((t) => t?.addEventListener("change", e)), () => t.forEach((t) => t?.removeEventListener("change", e));
- }, [n]), (0, F.useLayoutEffect)(() => {
+ }, [n]), (0, P.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
e.style.setProperty("--lo", `${u / N1 * 100}%`), e.style.setProperty("--hi", `${d / N1 * 100}%`);
@@ -68529,23 +68536,23 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
}, [u, d]);
- let _ = (e, t) => /* @__PURE__ */ (0, I.jsx)("output", {
+ let _ = (e, t) => /* @__PURE__ */ (0, F.jsx)("output", {
"data-sidebar-range-tip": "",
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
children: e === "max" && t >= N1 ? "不限" : `${t} 分钟`
});
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-sidebar-duration": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-sidebar-range": "",
id: "durationRange",
ref: f,
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { "data-sidebar-range-base": "" }),
- /* @__PURE__ */ (0, I.jsx)("span", { "data-sidebar-range-fill": "" }),
- /* @__PURE__ */ (0, I.jsx)("input", {
+ /* @__PURE__ */ (0, F.jsx)("span", { "data-sidebar-range-base": "" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { "data-sidebar-range-fill": "" }),
+ /* @__PURE__ */ (0, F.jsx)("input", {
id: "durMin",
type: "range",
min: "0",
@@ -68556,7 +68563,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
ref: p,
onChange: (e) => g("min", Number(e.currentTarget.value))
}),
- /* @__PURE__ */ (0, I.jsx)("input", {
+ /* @__PURE__ */ (0, F.jsx)("input", {
id: "durMax",
type: "range",
min: "0",
@@ -68576,7 +68583,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
//#endregion
//#region src/diagnostics-skeleton.ts
function G1() {
- let e = (e) => os({
+ let e = (e) => cs({
label: e,
variant: "secondary",
attrs: "disabled data-skeleton-action"
@@ -68590,11 +68597,11 @@ function G1() {
}
//#endregion
//#region src/react/settings/library-policy-copy.ts
-var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", wEe = [
+var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", TEe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], TEe = [
+], EEe = [
[
"读本地 NFO 和图片",
"✓",
@@ -68625,7 +68632,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], EEe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", DEe = [
+], DEe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", OEe = [
{
provider: "coomer",
label: "Coomer",
@@ -68715,7 +68722,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", OEe = "peach.configuration.shape.v1";
+], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", kEe = "peach.configuration.shape.v1";
function Z1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -68724,28 +68731,28 @@ function Z1() {
return {};
}
}
-function kEe(e, t) {
+function AEe(e, t) {
try {
let n = Z1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(OEe, JSON.stringify({
+ localStorage.setItem(kEe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, t0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], n0 = "disabled data-skeleton-action", r0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, i0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, a0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, o0 = (e = "3em") => a0(e, "24px"), s0 = () => a0("var(--icon-inline)", "var(--icon-inline)"), c0 = (e, t = "primary", n = "medium") => os({
+var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, t0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], n0 = "disabled data-skeleton-action", r0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, i0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, a0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, o0 = (e = "3em") => a0(e, "24px"), s0 = () => a0("var(--icon-inline)", "var(--icon-inline)"), c0 = (e, t = "primary", n = "medium") => cs({
label: e,
variant: t,
size: n,
attrs: n0
-}), l0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, AEe = (e, t, n) => {
+}), l0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, jEe = (e, t, n) => {
let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${s0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${AEe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "4em") => f0(e, "", r0(t)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${cs(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${rs("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, jEe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${jEe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, MEe = DEe;
-function NEe(e = Q1("credentials")) {
+}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${jEe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "4em") => f0(e, "", r0(t)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${us(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${as("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, MEe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${MEe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, NEe = OEe;
+function PEe(e = Q1("credentials")) {
let t = new Set(t0(e?.done, 64, String));
- return MEe.map((e) => {
+ return NEe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -68754,52 +68761,52 @@ function NEe(e = Q1("credentials")) {
};
});
}
-function PEe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${B(e.label)}</b>${r}</span>`;
- if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? h0(B(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</div></div>` : "";
+function FEe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
+ if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? h0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</div></div>` : "";
return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${x0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function C0() {
- let e = NEe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = PEe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return d0("来源凭据", u0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(PEe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(FEe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("5em") : "" });
}
function w0() {
- let e = t0(Q1("indexers")?.open, 20, $1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${rs("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ let e = t0(Q1("indexers")?.open, 20, $1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${as("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
return d0("资源搜索", u0(`<div class="flex min-w-0 flex-col gap-4">${x0("索引器连接帮助")}${e}</div>`), c0("添加索引器", "secondary") + c0("保存配置"));
}
function T0() {
let e = Q1("javBrowser"), t = $1(e?.enabled);
return d0("浏览器添加 JAV", u0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${r0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${o0()}</div><p class="text-caption-1-regular text-text-secondary">${r0("70%")}</p><div class="flex flex-wrap items-center gap-2">${c0("重新检测", "secondary")}</div></div>`}${v0("浏览器添加的下载渠道")}${$1(e?.ready) ? "" : h0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${_0("Peach 地址")}</div>`), (t ? c0("关闭浏览器添加", "secondary") : "") + c0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var E0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${g0(e)}${cs(r0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${_0(`${e}地址`)}</div><div class="w-full sm:w-28">${_0(`${e}端口`)}</div></div>${x0("代理认证")}` : "") + "</div>";
+var E0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${g0(e)}${us(r0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${_0(`${e}地址`)}</div><div class="w-full sm:w-28">${_0(`${e}端口`)}</div></div>${x0("代理认证")}` : "") + "</div>";
function D0() {
let e = Q1("cloudProxy"), t = t0(e?.accounts, 12, (e) => Array.isArray(e) ? [$1(e[0]), $1(e[1])] : [!1, !1]), n = e0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${g0(b0(r0("6em")))}${h0(r0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${g0(b0(r0("8em")))}${h0(r0("50%"))}${E0("数据代理", e)}${E0("API 代理", t)}<div class="flex justify-end">${c0("保存配置")}</div></div>`).join("") : h0(r0("60%"));
return d0("CloudDrive 代理", u0(`${h0(X1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), c0("重新读取", "secondary"));
}
-var O0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, FEe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${os({
+var O0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, IEe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${cs({
glyph: "folder-search",
variant: "secondary",
attrs: n0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${O0("来源", cs(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", cs(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", cs(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, IEe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
- <div data-library-head>${os({
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${O0("来源", us(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", us(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", us(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, LEe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ <div data-library-head>${cs({
label: "自动识别",
variant: "secondary",
attrs: n0
-})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${cs(r0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${FEe(t).repeat(e)}<div class="flex">${os({
+})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${us(r0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${IEe(t).repeat(e)}<div class="flex">${cs({
label: "添加文件夹",
variant: "secondary",
attrs: n0
-})}</div></div></div>`, LEe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, REe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function zEe(e = Q1("media")) {
+})}</div></div></div>`, REe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, zEe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function BEe(e = Q1("media")) {
let t = t0(e?.folders, 12, (e) => e0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -68809,21 +68816,21 @@ function zEe(e = Q1("media")) {
cloud: !1
};
}
-function BEe() {
- let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${cs(r0("4em"), { prefix: "对应目录" })}${os({
+function VEe() {
+ let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${us(r0("4em"), { prefix: "对应目录" })}${cs({
glyph: "trash",
variant: "secondary",
attrs: n0
})}</div>`;
return d0("自动发现新文件", u0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${o0()}</div>`) + p0("发现新文件后自动入库", t ? r0("10em") : "") + p0("监视本机文件夹", t && $1(e?.watchLocal) ? r0("12em") : "") + p0("接收 CloudDrive2 通知") + (n ? f0("Webhook 配置", r0("20em"), "") : "") + (r ? u0(x0("查看配置"), !0) : "") + (n ? u0(`<div class="flex flex-col gap-3">${g0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(e0(e?.prefixes, 20))}</div><div>${c0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? c0("更换密钥", "secondary") : "") + c0("保存配置"));
}
-var VEe = () => {
- let e = zEe();
- return d0("媒体库与目录", u0(`${LEe}<div class="flex flex-col gap-4">${e.folders.map((t) => IEe(t, e.folders.length)).join("")}</div>
+var HEe = () => {
+ let e = BEe();
+ return d0("媒体库与目录", u0(`${REe}<div class="flex flex-col gap-4">${e.folders.map((t) => LEe(t, e.folders.length)).join("")}</div>
<div class="self-start">${c0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${q1}</p>
- ${e.cloud ? REe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + BEe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, HEe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + m0("订阅源拉取") + p0("首次采集范围", "", "ui-configuration-skeleton-select") + m0("头像刷新") + m0("favicon 刷新")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), UEe = () => {
+ ${e.cloud ? zEe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + VEe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, UEe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + m0("订阅源拉取") + p0("首次采集范围", "", "ui-configuration-skeleton-select") + m0("头像刷新") + m0("favicon 刷新")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), WEe = () => {
let e = Q1("downloads"), t = $1(e?.pikpak), n = $1(e?.pikpakRoots) ? v0(b0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${g0(b0("PikPak 根目录对应的媒体目录"))}${h0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = $1(e?.cloud) ? d0("云下载", u0(_0("CloudDrive2 地址") + _0("CloudDrive2 API 令牌", "需要离线任务权限。") + ($1(e?.has115) ? _0(b0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? _0(b0("PikPak 目标目录"), "目录要已经存在。") + n : "") + _0("等待上限(小时)", r0("14em"))), c0("检查连接", "secondary") + c0("保存配置")) : "", i = $1(e?.pikpakLoggedIn);
return r + (t ? d0("PikPak 账号", i ? S0(["账号", r0("4em")]) : u0(_0("账号") + _0("密码") + y0("保存密码,登录过期时自动重新登录")), i ? c0("登出", "secondary") : ($1(e?.browserLogin) ? c0("用浏览器登录", "secondary") : "") + c0("登录"), {
aside: o0(),
@@ -68837,52 +68844,52 @@ var VEe = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function WEe(e) {
+function GEe(e) {
let t = e === "locked" ? "" : _0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + _0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (k0[e] ? h0(k0[e]) : "") + (e === "open" ? a0("100%", "64px") : "") + (e === "password" || e === "legacy" ? y0("关闭访问密码") : "") + (e === "password" ? _0("当前访问密码 *") : "") + t;
}
-var GEe = () => {
+var KEe = () => {
let e = Q1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = $1(e?.tunnelNamed), r = (n && $1(e?.tunnelNamedMode) ? h0(A0.named) + _0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + _0("隧道令牌", r0("16em")) : h0(A0.quick)) + ($1(e?.tunnelNote) ? a0("100%", "64px") : ""), i = e0(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${_0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${c0("复制地址", "secondary")}</div>`).join("");
- return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0(WEe(t)), t === "locked" ? "" : c0("保存配置")) + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
-}, KEe = [
+ return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0(GEe(t)), t === "locked" ? "" : c0("保存配置")) + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
+}, qEe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], qEe = () => {
+], JEe = () => {
let e = Q1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, e0(e?.releaseFacts, 5))), n = e0(e?.releaseNotes, 4), r = e0(e?.storageRows, 12), i = e0(e?.storageNotes, 3), a = t0(e?.facts, 12, (e) => B(String(e))), o = `<span class="self-start">${o0("6em")}</span>`, s = (t) => !e || $1(t), c = s(e?.reporting) ? p0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + ($1(e?.reportingIdle) ? u0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${p0("上传馆藏与口味明细", $1(e?.sharingNotice) ? r0("12em") : "")}${$1(e?.sharingIdle) ? u0(o, !0) : ""}${l0(c0("预览上传内容", "secondary"))}</div>` : "";
+ ].slice(0, Math.max(4, e0(e?.releaseFacts, 5))), n = e0(e?.releaseNotes, 4), r = e0(e?.storageRows, 12), i = e0(e?.storageNotes, 3), a = t0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${o0("6em")}</span>`, s = (t) => !e || $1(t), c = s(e?.reporting) ? p0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + ($1(e?.reportingIdle) ? u0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${p0("上传馆藏与口味明细", $1(e?.sharingNotice) ? r0("12em") : "")}${$1(e?.sharingIdle) ? u0(o, !0) : ""}${l0(c0("预览上传内容", "secondary"))}</div>` : "";
return d0("检查更新", S0(t) + (n ? u0(h0(r0("50%")).repeat(n), !0) : ""), c0("检查更新"), {
aside: o0("4em"),
status: r0("5em")
- }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : KEe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("安装教程", "", c0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
+ }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : qEe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("安装教程", "", c0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
};
-function JEe(e) {
+function YEe(e) {
switch (e) {
case "系统诊断": return G1();
- case "来源与订阅": return HEe();
- case "下载渠道": return UEe();
- case "网络与访问": return GEe();
- case "应用与维护": return qEe();
- default: return VEe();
+ case "来源与订阅": return UEe();
+ case "下载渠道": return WEe();
+ case "网络与访问": return KEe();
+ case "应用与维护": return JEe();
+ default: return HEe();
}
}
-function j0(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(oV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${JEe(e)}</div></div></div>`;
+function XEe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(aV).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${YEe(e)}</div></div></div>`;
}
//#endregion
//#region src/react/jav/discovery-sorts.ts
-var M0 = [
+var j0 = [
[
"taste",
"口味",
@@ -68890,7 +68897,7 @@ var M0 = [
],
[
"release_date",
- zk[1],
+ Rk[1],
"按发行日期排序"
],
[
@@ -68909,10 +68916,10 @@ var M0 = [
"按番号排序"
]
];
-function YEe(e) {
+function ZEe(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function XEe(e) {
+function QEe(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -68938,8 +68945,8 @@ function XEe(e) {
}
//#endregion
//#region src/jav-skeleton.ts
-var N0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, ZEe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, P0 = "w-full min-w-0";
-function F0() {
+var M0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, $Ee = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, N0 = "w-full min-w-0";
+function P0() {
return [
"w-20",
"w-16",
@@ -68949,8 +68956,8 @@ function F0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function I0(e, t = CA()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${N0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${ZEe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${N0("80%")}${N0("60%")}${N0("40%")}</div></div>`).join("")}</div>`;
+function F0(e, t = CA()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${M0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${$Ee("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${M0("80%")}${M0("60%")}${M0("40%")}</div></div>`).join("")}</div>`;
let n = jA({
...AA({
active: !0,
@@ -68959,46 +68966,46 @@ function I0(e, t = CA()) {
}),
size: t
});
- return `<div data-media-grid class="${P0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${N0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${N0("85%")}${N0("65%")}</div><div data-media-byline>${N0("55%")}</div>
+ <div data-media-title>${M0("85%")}${M0("65%")}</div><div data-media-byline>${M0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function QEe(e) {
+function eDe(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${os({
+ <div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${cs({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
<div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${x$.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
- <form aria-label="${t}">${as("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${N0("100%")}</div>${I0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${$Ee()}${I0(e)}</section>`}</div></div>`;
+ <form aria-label="${t}">${ss("筛选番号、女优或标题", "", t)}</form>
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${M0("100%")}</div>${F0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${tDe()}${F0(e)}</section>`}</div></div>`;
}
-function $Ee() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${CA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${rs(t, "size-4")}</span>`;
+function tDe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${CA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${as(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
- <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${F0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${P0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
- ${is()}
- <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${rs("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${M0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? rs("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${os()}
+ <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${as("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
+ ${j0.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? as("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var L0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", R0 = (e = "60%") => `<span class="${L0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, z0 = "disabled data-skeleton-action", B0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function eDe() {
+var I0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", L0 = (e = "60%") => `<span class="${I0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, R0 = "disabled data-skeleton-action", z0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function nDe() {
let e = [
"馆藏视频",
"看过",
@@ -69006,27 +69013,27 @@ function eDe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${L0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${R0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${R0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${B0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${R0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${I0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${L0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${L0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${z0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${L0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${R0()}</span><b class="text-title-2-medium">${R0("3em")}</b><small class="text-caption-1-regular">${R0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${L0()}</span><b class="text-title-2-medium">${L0("3em")}</b><small class="text-caption-1-regular">${L0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${R0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${L0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${B0}"><h3 class="text-title-2-medium">${e}</h3><div class="${L0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${z0}"><h3 class="text-title-2-medium">${e}</h3><div class="${I0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -69035,11 +69042,11 @@ function eDe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${L0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${I0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function tDe() {
+function rDe() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -69047,20 +69054,20 @@ function tDe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${L0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${R0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${R0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${L0} h-6"></div>`).join(""), r = (e) => `<section class="${B0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${L0} h-40"></div></section>`;
+ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${I0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${L0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${L0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${I0} h-6"></div>`).join(""), r = (e) => `<section class="${z0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${I0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
- <div class="flex flex-wrap items-center gap-2">${cs("全部时间")}<span data-button-group data-split-button data-variant="primary">${os({
+ <div class="flex flex-wrap items-center gap-2">${us("全部时间")}<span data-button-group data-split-button data-variant="primary">${cs({
glyph: "compass",
label: "读取浏览器历史",
- attrs: z0
- })}${os({
+ attrs: R0
+ })}${cs({
glyph: "chevron-down",
- attrs: z0
+ attrs: R0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -69078,11 +69085,11 @@ function tDe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${R0("8em")}</small></div>
+ <small class="text-caption-1-regular">${L0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${B0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${L0} h-72 max-sm:h-48"></div></section>
+ <section class="${z0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${I0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -69090,124 +69097,124 @@ function tDe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${L0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${I0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function nDe() {
+function iDe() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
- <span class="${L0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
- <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${R0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${R0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${R0("75%")}</span>
+ <span class="${I0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
+ <span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${L0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${L0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${L0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${R0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${R0("8em")}</span>
+ <b class="text-title-2-medium">${L0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${L0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
"整组回收"
- ].map((e) => os({
+ ].map((e) => cs({
variant: "secondary",
size: "small",
label: e,
- attrs: z0
+ attrs: R0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${R0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${R0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${L0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${L0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${z0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${R0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function rDe() {
+function aDe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${L0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
- <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${R0("80%")}</h3><p class="text-body-2-regular">${R0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${I0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${L0("80%")}</h3><p class="text-body-2-regular">${L0("60%")}</p></div>
</div>
- <footer class="flex justify-end">${os({
+ <footer class="flex justify-end">${cs({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: z0
+ attrs: R0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${ms("待升级")}
+ ${gs("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, iDe = () => `${V0("80%")}${V0("48%")}`, H0 = (e, t) => e.repeat(t), U0 = "disabled data-skeleton-action", W0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, G0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, aDe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", K0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var B0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, oDe = () => `${B0("80%")}${B0("48%")}`, V0 = (e, t) => e.repeat(t), H0 = "disabled data-skeleton-action", U0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, W0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, sDe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", G0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${aDe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${W0("3em")}</b></div>`).join("")}</div>`, oDe = (e = "") => FZ.some(([t]) => t === e) ? e : "list", q0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${FZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, J0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, sDe = ({ table: e, sort: t, dir: n }) => {
- let r = Un.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${W0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${os({
+].map((e) => `<div class="${sDe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${U0("3em")}</b></div>`).join("")}</div>`, cDe = (e = "") => FZ.some(([t]) => t === e) ? e : "list", K0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${FZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, q0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, lDe = ({ table: e, sort: t, dir: n }) => {
+ let r = Gn.find(([e]) => e === t)[1];
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${U0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${cs({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: U0
- })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${os({
+ attrs: H0
+ })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${cs({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${os({
+ })}${cs({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span><span class="flex flex-none items-center gap-2">${cs(r, { prefix: "排序" })}${os({
+ })}</span><span class="flex flex-none items-center gap-2">${us(r, { prefix: "排序" })}${cs({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}</span>${e ? "" : os({
+ })}</span>${e ? "" : cs({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: U0
+ attrs: H0
})}</span></div></div>`;
-}, Y0 = () => `<span class="flex shrink-0 items-center gap-1">${os({
+}, J0 = () => `<span class="flex shrink-0 items-center gap-1">${cs({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: U0
-})}${os({
+ attrs: H0
+})}${cs({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: U0
-})}</span>`, cDe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${J0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${W0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${G0(14, 14)}</span>${G0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${W0("113px")}</span>${Y0()}</span></div>`, X0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${G0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${W0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${os({
+ attrs: H0
+})}</span>`, uDe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${q0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${U0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${W0(14, 14)}</span>${W0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${U0("113px")}</span>${J0()}</span></div>`, Y0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${W0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${U0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${cs({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: U0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${G0(14, 14)}${G0(14, 14)}</span><span class="flex flex-none items-center gap-2">${os({
+ attrs: H0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${W0(14, 14)}${W0(14, 14)}</span><span class="flex flex-none items-center gap-2">${cs({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: U0
-})}${os({
+ attrs: H0
+})}${cs({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: U0
-})}</span></span></div><div data-source-divider>${H0(cDe(), e)}</div></section>`, lDe = () => {
+ attrs: H0
+})}</span></span></div><div data-source-divider>${V0(uDe(), e)}</div></section>`, dDe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, uDe = [
+}, fDe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -69215,85 +69222,85 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, iDe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], dDe = {
+], pDe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, fDe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", pDe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${uDe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${dDe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${fDe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${H0(`<tr>${[
- J0(),
- `<span class="flex min-w-0 items-center gap-2">${G0(32, 32, !0)}${W0("5em")}</span>`,
- W0("10em"),
- `<span class="flex items-center gap-1.5">${G0(14, 14)}${W0("4em")}</span>`,
- G0(48, 24),
- W0("113px"),
- Y0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, mDe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${W0("111px")}</span><div data-toolbar-actions>${cs(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${G0(204, 32)}</div></div>`, hDe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${W0("120px")}</h3>${[
+}, mDe = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", hDe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${fDe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${pDe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${mDe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${V0(`<tr>${[
+ q0(),
+ `<span class="flex min-w-0 items-center gap-2">${W0(32, 32, !0)}${U0("5em")}</span>`,
+ U0("10em"),
+ `<span class="flex items-center gap-1.5">${W0(14, 14)}${U0("4em")}</span>`,
+ W0(48, 24),
+ U0("113px"),
+ J0()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, gDe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${U0("111px")}</span><div data-toolbar-actions>${us(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${W0(204, 32)}</div></div>`, _De = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${U0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${W0(e)}</span>`).join("")}</div>`, gDe = (e) => {
- let t = oDe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4">${hDe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = qn(e.followSort, e.followDir), i = e.followPageSize || lDe(), a = n ? pDe(i, r) : `${J0("全选本页")}<div class="flex flex-col gap-3">${X0(3)}${X0(4)}${X0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${sDe({
+].map((e) => `<span class="text-body-medium">${U0(e)}</span>`).join("")}</div>`, vDe = (e) => {
+ let t = cDe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4">${_De()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = Yn(e.followSort, e.followDir), i = e.followPageSize || dDe(), a = n ? hDe(i, r) : `${q0("全选本页")}<div class="flex flex-col gap-3">${Y0(3)}${Y0(4)}${Y0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${G0()}<div class="flex flex-col gap-6">${K0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${lDe({
table: n,
...r
- })}${a}${mDe(n, i)}</div></div></div></div></div>`;
+ })}${a}${gDe(n, i)}</div></div></div></div></div>`;
};
-function _De() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${V0("85%")}${V0("65%")}${H0(iDe(), 4)}</div></aside></div>`;
+function yDe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${B0("85%")}${B0("65%")}${V0(oDe(), 4)}</div></aside></div>`;
}
-function vDe(e, t = {}) {
+function bDe(e, t = {}) {
let n = "";
- if (e === "/stats") n = eDe();
- else if (e === "/jav") n = QEe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = tDe();
- else if (e === "/subscriptions") n = gDe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in oV) n = j0(oV[e.split("/")[2]]);
+ if (e === "/stats") n = nDe();
+ else if (e === "/jav") n = eDe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = rDe();
+ else if (e === "/subscriptions") n = vDe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in aV) n = XEe(aV[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
- ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${W0("8em")}</span><span class="text-caption-1-regular">${W0("14em")}</span>${W0("60%")}${W0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${W0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = nDe();
- else if (e === "/quality-goals") n = rDe();
- else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${os({
+ ].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card border border-border-button-default bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${U0("8em")}</span><span class="text-caption-1-regular">${U0("14em")}</span>${U0("60%")}${U0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${U0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = iDe();
+ else if (e === "/quality-goals") n = aDe();
+ else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${cs({
label: "新建",
- attrs: U0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${H0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: H0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${V0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
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/react/components/overlay-host.ts
-function yDe(e) {
+function xDe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function Z0(e) {
+function X0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return yDe(n ?? t.body);
+ return xDe(n ?? t.body);
}
-function Q0(e) {
+function Z0(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var $0 = (e) => ["follow-item", e], bDe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, xDe = "/api/follow/save", SDe = "/api/follow/media/hide", e2 = class extends Error {
+var Q0 = (e) => ["follow-item", e], SDe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, CDe = "/api/follow/save", wDe = "/api/follow/media/hide", $0 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function t2(e, t) {
- let n = await V(bDe(e), t);
+async function e2(e, t) {
+ let n = await B(SDe(e), t);
for (let t of n.groups || []) {
- let r = Hi(t).find((t) => t.id === e);
+ let r = Wi(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -69301,12 +69308,12 @@ async function t2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new e2();
+ throw new $0();
}
-function CDe(e) {
- for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
+function TDe(e) {
+ for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
- let n = Hi(t.group).find((t) => t.id === e);
+ let n = Wi(t.group).find((t) => t.id === e);
if (n) return {
...t,
item: n
@@ -69314,21 +69321,21 @@ function CDe(e) {
}
return null;
}
-async function n2(e, t) {
- let n = $0(e.id), r = Ui(e.id), i = U.getQueryData(Li) ? null : U.fetchQuery({
- queryKey: Li,
- queryFn: () => Ri(t)
+async function t2(e, t) {
+ let n = Q0(e.id), r = Gi(e.id), i = H.getQueryData(zi) ? null : H.fetchQuery({
+ queryKey: zi,
+ queryFn: () => Bi(t)
}), a = r ? {
...r,
item: r.item
- } : U.getQueryData(n) ?? CDe(e.id);
- a ? U.setQueryData(n, a) : await U.fetchQuery({
+ } : H.getQueryData(n) ?? TDe(e.id);
+ a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => t2(e.id, t)
+ queryFn: () => e2(e.id, t)
}), await i;
}
-function wDe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && Zi(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function EDe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && $i(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -69342,32 +69349,32 @@ function wDe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var TDe = (e) => Hi(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), EDe = {
+var DDe = (e) => Wi(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), ODe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, DDe = {
+}, kDe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function ODe(e) {
+function ADe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return EDe[t] || t;
+ return ODe[t] || t;
} catch {
return "外部文件页";
}
}
-function r2(e, t) {
- return DDe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function n2(e, t) {
+ return kDe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function kDe(e, t, n = "") {
+function jDe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -69376,54 +69383,54 @@ function kDe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var ADe = (e) => String(e.name || "").trim(), i2 = (e, t) => e.tag_types?.[t] || "unknown", jDe = /* @__PURE__ */ new Set([
+var MDe = (e) => String(e.name || "").trim(), r2 = (e, t) => e.tag_types?.[t] || "unknown", NDe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function MDe(e, t) {
- let n = i2(e, t);
- return `r34-${jDe.has(n) ? n : "general"}`;
+function PDe(e, t) {
+ let n = r2(e, t);
+ return `r34-${NDe.has(n) ? n : "general"}`;
}
-var a2 = [
+var i2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function NDe(e, t) {
+function FDe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = a2.indexOf(i2(e, t));
- return n < 0 ? a2.length : n;
+ let n = i2.indexOf(r2(e, t));
+ return n < 0 ? i2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function o2(e, t) {
+function a2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var PDe = (e, t) => ({
+var IDe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), s2 = (e) => e?.size ? { size: e.size } : {};
-function FDe(e, t) {
+}), o2 = (e) => e?.size ? { size: e.size } : {};
+function LDe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: r2(t, e),
- ...s2(t)
+ source: n2(t, e),
+ ...o2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: r2(a, e),
- ...s2(a)
+ source: n2(a, e),
+ ...o2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -69431,7 +69438,7 @@ function FDe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var IDe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", c2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => Fs(e, {
+var RDe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => Ls(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -69439,7 +69446,7 @@ var IDe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", c2
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), LDe = [
+}), zDe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -69449,69 +69456,69 @@ var IDe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", c2
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], RDe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
+], BDe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${LDe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${zDe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, zDe = {
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, VDe = {
"/data-cleanup": () => F$(),
"/resource-sync": () => F$(),
- "/review": () => RDe(),
+ "/review": () => BDe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${c2("正在读取采集来源", {
+ ${s2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function l2(e, { followLayout: t, followSort: n, followDir: r }) {
- return vDe(e, {
+function c2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return bDe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (zDe[e] ?? (() => c2("正在读取页面")))();
+ }) || (VDe[e] ?? (() => s2("正在读取页面")))();
}
-var u2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function d2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = u2(t);
- (!r || r !== n) && (e.innerHTML = t, Us(e));
+var l2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function u2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = l2(t);
+ (!r || r !== n) && (e.innerHTML = t, Gs(e));
}
//#endregion
//#region src/react/components/related-section.tsx
-function f2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
- let c = (0, F.useCallback)((e) => {
- e && (Us(e), t(e));
+function d2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+ let c = (0, P.useCallback)((e) => {
+ e && (Gs(e), t(e));
}, [t]);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
...s,
"data-item-related": "",
"aria-busy": n || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h3", {
className: "font-semibold",
children: "接着看"
- }), i ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }), i ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(NW, {
+ children: /* @__PURE__ */ (0, F.jsx)(NW, {
message: i,
onRetry: a || (() => {})
})
- }) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : r && !n ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, F.jsx)(Fz, {
size: "compact",
- icon: Tz,
+ icon: wz,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(iI, {
+ actions: /* @__PURE__ */ (0, F.jsx)(rI, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
}),
children: "可以回到列表挑选其他作品。"
})
- }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsx)("div", {
ref: c,
id: "nrow",
"data-related-row": "",
@@ -69521,8 +69528,8 @@ function f2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
}
//#endregion
//#region src/react/components/detail-continuation.tsx
-function p2({ queue: e, children: t, queueCards: n }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function f2({ queue: e, children: t, queueCards: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
children: [e, t]
@@ -69530,12 +69537,12 @@ function p2({ queue: e, children: t, queueCards: n }) {
}
//#endregion
//#region src/react/components/media-carousel.tsx
-function m2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
- let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;
- if ((0, F.useLayoutEffect)(() => {
+function p2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+ let a = (0, P.useRef)(null), o = e.some((e) => e.video), s = !!i;
+ if ((0, P.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
if (!e) return;
- let t = oc(e, { drag: !0 }), n = () => {
+ let t = cc(e, { drag: !0 }), n = () => {
let n = e.querySelector("[aria-current=\"true\"]");
if (n && e.clientWidth) {
let t = n.getBoundingClientRect(), r = e.getBoundingClientRect(), i = parseFloat(getComputedStyle(e).paddingLeft);
@@ -69550,10 +69557,10 @@ function m2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
e.length,
t,
s
- ]), (0, F.useLayoutEffect)(() => {
+ ]), (0, P.useLayoutEffect)(() => {
let e = a.current, t = e?.querySelector("[data-follow-image-dots]"), n = e?.closest("[data-stage-media]");
if (!e || !t) return;
- let i = oc(t, { drag: !0 }), o = () => {
+ let i = cc(t, { drag: !0 }), o = () => {
let a = t.querySelector("[aria-current=\"true\"]");
if (a && t.clientWidth) {
let e = a.getBoundingClientRect(), n = t.getBoundingClientRect(), r = parseFloat(getComputedStyle(t).paddingLeft);
@@ -69573,7 +69580,7 @@ function m2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
t,
r
]), e.length < 2) return null;
- let c = (r) => n(e[(t + r + e.length) % e.length].index), l = o ? "项媒体" : "张图片", u = (r, i) => /* @__PURE__ */ (0, I.jsx)("button", {
+ let c = (r) => n(e[(t + r + e.length) % e.length].index), l = o ? "项媒体" : "张图片", u = (r, i) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-image-item": r.index,
"data-carousel-video": r.video ? "" : void 0,
@@ -69581,45 +69588,45 @@ function m2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"aria-label": r.label || `第 ${i + 1} 张,共 ${e.length} 张`,
title: r.label || `第 ${i + 1} 张`,
onClick: () => n(r.index),
- children: r.video ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: z("play") } }) : null
+ children: r.video ? /* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: R("play") } }) : null
}, r.index);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: a,
"data-media-carousel": "",
"data-carousel-below": r ? "" : void 0,
"data-carousel-video-active": e[t]?.video ? "" : void 0,
children: [
- e[t]?.video ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ e[t]?.video ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-image-step": "-1",
"data-follow-image-arrow": "prev",
"aria-label": o ? "上一项媒体" : "上一张图片",
title: "上一张",
onClick: () => c(-1),
- dangerouslySetInnerHTML: { __html: z("chevron-left") }
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: R("chevron-left") }
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-image-step": "1",
"data-follow-image-arrow": "next",
"aria-label": o ? "下一项媒体" : "下一张图片",
title: "下一张",
onClick: () => c(1),
- dangerouslySetInnerHTML: { __html: z("chevron-right") }
+ dangerouslySetInnerHTML: { __html: R("chevron-right") }
})] }),
- i ? /* @__PURE__ */ (0, I.jsx)("div", {
+ i ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(BDe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, F.jsx)(HDe, {
item: e,
selected: r === t,
onSelect: n,
render: i
}, e.index))
}) : null,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-indicator": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-image-dots": "",
role: "group",
"aria-label": `${e.length} ${l}`,
@@ -69629,9 +69636,9 @@ function m2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function BDe({ item: e, selected: t, onSelect: n, render: r }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
- return (0, F.useEffect)(() => {
+function HDe({ item: e, selected: t, onSelect: n, render: r }) {
+ let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(typeof IntersectionObserver > "u");
+ return (0, P.useEffect)(() => {
if (!i.current || a) return;
let e = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && (o(!0), e.disconnect());
@@ -69640,36 +69647,36 @@ function BDe({ item: e, selected: t, onSelect: n, render: r }) {
rootMargin: "100px"
});
return e.observe(i.current), () => e.disconnect();
- }, [a]), /* @__PURE__ */ (0, I.jsxs)("button", {
+ }, [a]), /* @__PURE__ */ (0, F.jsxs)("button", {
ref: i,
type: "button",
"data-media-thumbnail": e.index,
"aria-current": t ? "true" : "false",
"aria-label": `切换到${e.label || `第 ${e.index + 1} 张`}`,
onClick: () => n(e.index),
- children: [a ? r(e) : /* @__PURE__ */ (0, I.jsx)("span", { className: "block h-full w-full skeleton-sheen" }), e.video ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [a ? r(e) : /* @__PURE__ */ (0, F.jsx)("span", { className: "block h-full w-full skeleton-sheen" }), e.video ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-thumbnail-play": "",
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: z("play") }
+ dangerouslySetInnerHTML: { __html: R("play") }
}) : null]
});
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
-var VDe = (e, t, n) => [
+var UDe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function h2(e, t, n, r) {
- let i = new Set((t.group ? Hi(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
+function m2(e, t, n, r) {
+ let i = new Set((t.group ? Wi(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
- let t = Hi(e);
- return t.some((e) => i.has(e.id) || a.has(e.id)) || !Ji(e).has(n === "images" ? "image" : "video") || Yi(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
+ let t = Wi(e);
+ return t.some((e) => i.has(e.id) || a.has(e.id)) || !Xi(e).has(n === "images" ? "image" : "video") || Zi(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
}).map((e, t) => {
- let r = Yi(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
+ let r = Zi(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
return {
group: e,
order: t,
@@ -69678,56 +69685,56 @@ function h2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function HDe(e, t, n, r) {
+async function WDe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
- ...Xi(i),
+ ...Qi(i),
status: "new",
media: t,
sort: "rand",
seed: e.item.id
}, o = [], s = async (e, t) => {
- let n = await V(Pi({
+ let n = await B(Ii({
...a,
author: e
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return h2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && h2(o, e, t, n).length < n && await s("", 0), {
+ return m2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && m2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
//#endregion
//#region src/react/components/detail-tags.tsx
-var g2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var h2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z(e) }
+ dangerouslySetInnerHTML: { __html: R(e) }
});
-function _2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
- let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Nt({
+function g2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+ let [u, d] = (0, P.useState)(null), [f, p] = (0, P.useState)(!1), m = Pt({
queryKey: ["tag-management", n],
- queryFn: ({ signal: e }) => V(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
+ queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = DH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = EH(), _ = (e) => {
g.run("rename", async (t) => {
- let r = (await U.fetchQuery({
+ let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
- queryFn: () => V(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, t)
+ queryFn: () => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, t)
})).items.find((t) => t.k === e.k || t.aliases.includes(e.k));
if (!r) throw Error("标签已变化,请重新打开详情");
return r;
}, (e) => d(e));
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-tags": "",
"data-detail-tags": "",
id: r,
- children: [e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.map((e) => /* @__PURE__ */ (0, F.jsxs)("span", {
"data-detail-tag": "",
"data-tag-cat": e.cat,
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-tag": e.k,
"data-follow-tag": n === "online" ? e.k : void 0,
@@ -69735,26 +69742,26 @@ function _2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
onClick: () => o(e.k),
children: a(e.k)
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...Bz(!!g.busy),
+ ...zz(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(g2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "pencil" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-remove-tag": e.k,
title: "从此内容隐藏该标签",
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, I.jsx)(g2, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, I.jsx)(UDe, {
+ }, e.k)), /* @__PURE__ */ (0, F.jsx)(GDe, {
tags: e,
candidates: h,
label: a,
@@ -69765,20 +69772,20 @@ function _2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
loading: m.isFetching
})]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ g.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ m.isError ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => void m.refetch(),
children: "立即重试"
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(e$, {
+ u ? /* @__PURE__ */ (0, F.jsx)(e$, {
operation: "rename",
selected: [u],
scope: n,
@@ -69787,8 +69794,8 @@ function _2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = iV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function GDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = rV(), d = (0, P.useRef)(null), f = (0, P.useRef)(!1), [p, m] = (0, P.useState)(!1), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), [y, b] = (0, P.useState)(-1), x = (0, P.useRef)({
adding: i,
query: h,
tags: e,
@@ -69800,14 +69807,14 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
tags: e,
onOpen: o
};
- let S = (0, F.useRef)(null), C = (0, F.useCallback)(() => {
+ let S = (0, P.useRef)(null), C = (0, P.useCallback)(() => {
S.current?.setOpen(!1), m(!1);
}, []);
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
let [e, t] = [c.current, l.current];
if (!e || !t) return;
"showPopover" in t && t.setAttribute("popover", "manual");
- let n = Wo(e.parentElement, e, t);
+ let n = Ko(e.parentElement, e, t);
S.current = n;
let r = () => {
let e = x.current;
@@ -69816,7 +69823,7 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
return;
}
let t = n.isOpen();
- m(t), t && (e.onOpen(), (!e.query.trim() || e.tags.some((t) => Sn(t.k) === Sn(e.query.trim()))) && (g(""), v("")), b(-1), requestAnimationFrame(() => d.current?.focus({ preventScroll: !0 })));
+ m(t), t && (e.onOpen(), (!e.query.trim() || e.tags.some((t) => wn(t.k) === wn(e.query.trim()))) && (g(""), v("")), b(-1), requestAnimationFrame(() => d.current?.focus({ preventScroll: !0 })));
};
e.addEventListener("click", r);
let i = new MutationObserver(() => m(n.isOpen()));
@@ -69826,14 +69833,14 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
}), () => {
i.disconnect(), e.removeEventListener("click", r), n.dispose(), S.current = null;
};
- }, []), (0, F.useLayoutEffect)(() => {
+ }, []), (0, P.useLayoutEffect)(() => {
p && l.current && S.current?.isOpen() && (l.current.style.maxHeight = "", S.current.setOpen(!0));
}, [
p,
_,
t.length
]);
- let w = p ? Gse(_, t, mN()) : {
+ let w = p ? qse(_, t, pN()) : {
recent: [],
results: [],
create: ""
@@ -69861,14 +69868,14 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
}
}, O = -1, k = (t) => {
O += 1;
- let r = O, i = e.some((e) => Sn(e.k) === Sn(t.k)), o = t.cat || e.find((e) => Sn(e.k) === Sn(t.k))?.cat || "unknown", s = o === "unknown" ? "r34-unknown" : a === "online" && [
+ let r = O, i = e.some((e) => wn(e.k) === wn(t.k)), o = t.cat || e.find((e) => wn(e.k) === wn(t.k))?.cat || "unknown", s = o === "unknown" ? "r34-unknown" : a === "online" && [
"general",
"artist",
"character",
"copyright",
"metadata"
].includes(o) ? `r34-${o}` : o;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-pick": t.k,
"data-active": r === y ? "" : void 0,
@@ -69876,19 +69883,19 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(g2, { name: i ? "check" : "tags" }),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(h2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-pick-count": "",
children: (t.n || 0).toLocaleString()
})
]
}, `${r}:${t.k}`);
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
ref: c,
type: "button",
id: "tagPlus",
@@ -69896,21 +69903,21 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...Bz(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(g2, { name: "plus" })
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ ...zz(!!i),
+ children: /* @__PURE__ */ (0, F.jsx)(h2, { name: "plus" })
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: l,
id: "tagPicker",
"data-tag-picker": "",
role: "dialog",
"aria-label": "添加标签",
hidden: !0,
- children: [/* @__PURE__ */ (0, I.jsxs)("label", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("label", {
"data-tag-search": "",
- children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [s ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: vs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(g2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ dangerouslySetInnerHTML: { __html: bs("正在读取标签") }
+ }) : /* @__PURE__ */ (0, F.jsx)(h2, { name: "search" }), /* @__PURE__ */ (0, F.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -69928,33 +69935,33 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
},
onKeyDown: D
})]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-scroll-frame": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
ref: u,
id: "tagPickBody",
"data-tag-body": "",
- children: [p && w.recent.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ children: [p && w.recent.length ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-tag-section": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h4", { children: "最近使用" }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-grid": "",
children: w.recent.map(k)
})]
- }) : null, p ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ }) : null, p ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-tag-section": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h4", { children: _.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h4", { children: _.trim() ? "搜索结果" : "全部标签" }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-tag-grid": "",
children: [w.results.map(k), w.create ? (() => {
O += 1;
let e = O;
- return /* @__PURE__ */ (0, I.jsxs)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-pick": w.create,
"data-active": e === y ? "" : void 0,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(g2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(h2, { name: "plus" }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -69972,15 +69979,15 @@ function UDe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
}
//#endregion
//#region src/react/follow-detail/follow-tags.tsx
-function WDe({ item: e, label: t, actions: n }) {
- let r = DH(), i = () => U.invalidateQueries({ predicate: (e) => [
+function KDe({ item: e, label: t, actions: n }) {
+ let r = EH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
].includes(String(e.queryKey[0])) }), a = (e) => {
- Wi(e.item), U.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
+ Ki(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
if (!t) return t;
- let n = Hi(e.group).find((e) => e.id === t.item.id);
+ let n = Wi(e.group).find((e) => e.id === t.item.id);
return n ? {
...t,
item: n,
@@ -69989,17 +69996,17 @@ function WDe({ item: e, label: t, actions: n }) {
});
}, o = (o, s) => {
r.run(`${o}:${s}`, async (t) => {
- let n = await H("/api/follow/tag", {
+ let n = await V("/api/follow/tag", {
id: e.id,
operation: o,
tag: s
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && hN(s);
+ o === "add" && mN(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
- let t = await H("/api/follow/tag", {
+ let t = await V("/api/follow/tag", {
id: e.id,
operation: r,
tag: s
@@ -70008,14 +70015,14 @@ function WDe({ item: e, label: t, actions: n }) {
} });
});
};
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(_2, {
- tags: NDe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, F.jsx)(g2, {
+ tags: FDe(e, t).map((t) => ({
k: t,
- cat: MDe(e, t)
+ cat: PDe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -70024,8 +70031,8 @@ function WDe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => Bz(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ busyAttrs: () => zz(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: r.error
}) : null]
@@ -70033,61 +70040,61 @@ function WDe({ item: e, label: t, actions: n }) {
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var v2 = (e) => Number(e) > 0, GDe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var _2 = (e) => Number(e) > 0, qDe = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z(e) }
-}), y2 = z("external-link", "ui-externalmark");
-function KDe(e) {
- let { id: t, actions: n } = e, r = Nt({
- queryKey: $0(t),
- queryFn: ({ signal: e }) => t2(t, e)
- }), i = Nt({
- queryKey: Li,
- queryFn: ({ signal: e }) => Ri(e)
- }), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(YDe, {
+ dangerouslySetInnerHTML: { __html: R(e) }
+}), v2 = R("external-link", "ui-externalmark");
+function JDe(e) {
+ let { id: t, actions: n } = e, r = Pt({
+ queryKey: Q0(t),
+ queryFn: ({ signal: e }) => e2(t, e)
+ }), i = Pt({
+ queryKey: zi,
+ queryFn: ({ signal: e }) => Bi(e)
+ }), a = (0, P.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, P.useState)(e.mediaIndex);
+ return r.data ? /* @__PURE__ */ (0, F.jsx)(ZDe, {
...e,
data: r.data,
- context: PDe(r.data, a),
+ context: IDe(r.data, a),
mediaIndex: o,
onMedia: s
- }) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }) : /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-grid": "",
"data-follow-detail": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(b2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(y2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? qDe(r.error) ? /* @__PURE__ */ (0, I.jsx)(JDe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(r.error),
+ children: r.isError ? YDe(r.error) ? /* @__PURE__ */ (0, F.jsx)(XDe, { onBack: n.close }) : /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(r.error),
onRetry: () => void r.refetch()
}) : null
})]
})
});
}
-var qDe = (e) => e instanceof e2 || e instanceof Bn && e.status === 404;
-function JDe({ onBack: e }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+var YDe = (e) => e instanceof $0 || e instanceof Hn && e.status === 404;
+function XDe({ onBack: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
t.target.closest("[data-note-action]") && e();
},
- dangerouslySetInnerHTML: { __html: _s("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
+ dangerouslySetInnerHTML: { __html: ys("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var b2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var y2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
title: "关闭",
"aria-label": "关闭",
onClick: e,
- dangerouslySetInnerHTML: { __html: z("x") }
+ dangerouslySetInnerHTML: { __html: R("x") }
});
-function YDe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = wDe(c, l, n, i), d = tOe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function ZDe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = EDe(c, l, n, i), d = rOe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, P.useState)({
key: "",
kind: ""
}), h = {
@@ -70100,44 +70107,44 @@ function YDe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
kind: "thumb"
})
};
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
s.present(c, u.kind);
}, [
s,
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? TDe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(w2, {
+ let g = !u.embedded.length && u.collection ? DDe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, F.jsx)(C2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(w2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, F.jsx)(C2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(QDe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(eOe, {
group: u.collection,
itemId: c.id,
helpers: o,
actions: s
}) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZDe, {
+ children: [/* @__PURE__ */ (0, F.jsx)($De, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)($De, {
+ }, f), /* @__PURE__ */ (0, F.jsx)(tOe, {
item: c,
data: e,
context: t,
@@ -70147,9 +70154,9 @@ function YDe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(p2, {
+ }), /* @__PURE__ */ (0, F.jsx)(f2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(XDe, {
+ children: a > 0 ? /* @__PURE__ */ (0, F.jsx)(QDe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -70159,66 +70166,66 @@ function YDe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function XDe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
- let o = Nt({
- queryKey: VDe(e.item.id, t, n),
- queryFn: ({ signal: r }) => HDe(e, t, n, r)
- }), [s] = (0, F.useState)(() => c2("正在读取推荐", {
+function QDe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+ let o = Pt({
+ queryKey: UDe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => WDe(e, t, n, r)
+ }), [s] = (0, P.useState)(() => s2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
- })), c = (0, F.useMemo)(() => ({
+ })), c = (0, P.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = h2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
+ }), [a]), l = m2(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, I.jsx)(f2, {
+ return /* @__PURE__ */ (0, F.jsx)(d2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
busy: o.isPending,
empty: !!o.data && !l.length,
- error: o.isError ? `读取接着看失败:${en(o.error)}` : void 0,
+ error: o.isError ? `读取接着看失败:${tn(o.error)}` : void 0,
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(PZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, F.jsx)(PZ, {
variant: "next",
group: e,
media: t,
- authorSources: o2(e.primary, u),
+ authorSources: a2(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
busy: "",
failure: "",
actions: c
- }, e.primary.id)) : /* @__PURE__ */ (0, I.jsx)("div", {
+ }, e.primary.id)) : /* @__PURE__ */ (0, F.jsx)("div", {
className: "contents",
dangerouslySetInnerHTML: { __html: s }
})
});
}
-function ZDe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = FDe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function $De({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, P.useRef)(null), p = LDe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, P.useState)(g), b = (0, P.useRef)({
item: e,
selected: o
- }), x = (0, F.useRef)(i.failed);
- return x.current = i.failed, (0, F.useLayoutEffect)(() => {
+ }), x = (0, P.useRef)(i.failed);
+ return x.current = i.failed, (0, P.useLayoutEffect)(() => {
let e = f.current;
if (e && h) return n.mountPlayer(e, b.current.item, b.current.selected, { onError: () => x.current() });
- }, [n, h]), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, [n, h]), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: f,
"data-stage-media": "",
"data-follow-detail-media": a || "none",
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, I.jsx)(b2, { onClose: n.close }),
- h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
+ /* @__PURE__ */ (0, F.jsx)(y2, { onClose: n.close }),
+ h ? null : g ? /* @__PURE__ */ (0, F.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
@@ -70228,37 +70235,37 @@ function ZDe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
- }) : /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-detail-placeholder": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: HU(e.resource_provider || e.provider) }
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
+ dangerouslySetInnerHTML: { __html: VU(e.resource_provider || e.provider) }
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(m2, {
+ u ? /* @__PURE__ */ (0, F.jsx)(p2, {
items: c,
position: l,
onSelect: r,
below: !0,
renderThumbnail: (t) => {
let n = c.find((e) => e.index === t.index).thumb_url || (e.playable ? `/follow-stream?id=${e.id}&media=${t.index}` : e.thumb_url);
- return n ? /* @__PURE__ */ (0, I.jsx)("img", {
+ return n ? /* @__PURE__ */ (0, F.jsx)("img", {
src: n,
alt: "",
referrerPolicy: "no-referrer"
- }) : /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" });
+ }) : /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" });
}
}) : null
]
});
}
-var x2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var b2 = ({ kind: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: z(e === "image" ? "image-off" : "play") }
+ dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function S2({ src: e }) {
- let [t, n] = (0, F.useState)(!1);
- return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
+function x2({ src: e }) {
+ let [t, n] = (0, P.useState)(!1);
+ return t ? null : /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
loading: "lazy",
@@ -70266,53 +70273,53 @@ function S2({ src: e }) {
onError: () => n(!0)
});
}
-function C2(e) {
- return (0, F.useCallback)((t) => {
+function S2(e) {
+ return (0, P.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function QDe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = Zi(e), a = C2(n);
- return /* @__PURE__ */ (0, I.jsx)(pK, {
+function eOe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = $i(e), a = S2(n);
+ return /* @__PURE__ */ (0, F.jsx)(pK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${WU(e.primary)} · ${i.length} 个视频`,
+ summary: `${UU(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = kDe(e, n, i ? n.provider_label : ""), o = i ? HU(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(mK, {
+ let i = e.duplicates.includes(n), a = jDe(e, n, i ? n.provider_label : ""), o = i ? VU(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, F.jsxs)(mK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(x2, { kind: "video" }), v2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(b2, { kind: "video" }), _2(n.duration) ? /* @__PURE__ */ (0, F.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
- children: Dn(n.duration)
+ children: kn(n.duration)
}) : null] }),
- children: [/* @__PURE__ */ (0, I.jsx)("b", {
+ children: [/* @__PURE__ */ (0, F.jsx)("b", {
"data-truncate-end": "",
children: a.title
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-follow-queue-meta": "",
- children: [o ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [o ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-queue-source": "",
dangerouslySetInnerHTML: { __html: o }
- }) : /* @__PURE__ */ (0, I.jsx)("i", {
+ }) : /* @__PURE__ */ (0, F.jsx)("i", {
"data-follow-variant": n.variant_kind || "",
children: a.label
- }), /* @__PURE__ */ (0, I.jsx)("time", {
+ }), /* @__PURE__ */ (0, F.jsx)("time", {
dateTime: n.published_at || "",
- children: $U(n)
+ children: QU(n)
})]
})]
}, n.id);
})
});
}
-function w2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = C2(r), c = [];
+function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = S2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -70322,90 +70329,90 @@ function w2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(pK, {
+ return /* @__PURE__ */ (0, F.jsx)(pK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${WU(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(hK, {
+ summary: `${UU(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, F.jsx)(hK, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(mK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, F.jsxs)(mK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(S2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(x2, { kind: n.media_kind || "" }),
- children: [/* @__PURE__ */ (0, I.jsx)("b", {
+ pic: n.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: n.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(b2, { kind: n.media_kind || "" }),
+ children: [/* @__PURE__ */ (0, F.jsx)("b", {
"data-middle-truncate": "",
- children: ADe(n)
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: MDe(n)
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
})]
}, n.index))])
});
}
-function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function tOe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = XU(d, e), p = JU(e, o2(e, t.sources), n), m = p.credited ? "" : e.author && Sn(e.author) !== Sn(p.author) ? e.author : "", h = ZU(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = YU(d, e), p = qU(e, a2(e, t.sources), n), m = p.credited ? "" : e.author && wn(e.author) !== wn(p.author) ? e.author : "", h = XU(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-side": "",
"data-follow-detail-side": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-detail-title": "",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: YU(d, e) + B(WU(e)) }
- }), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
+ dangerouslySetInnerHTML: { __html: JU(d, e) + z(UU(e)) }
+ }), e.url ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-follow-origin": "",
href: e.url,
target: "_blank",
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: y2 }
+ dangerouslySetInnerHTML: { __html: v2 }
}) : null]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: $U(e) }),
- v2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Dn(e.duration) }) : null,
- f ? /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", { children: QU(e) }),
+ _2(e.duration) ? /* @__PURE__ */ (0, F.jsx)("span", { children: kn(e.duration) }) : null,
+ f ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-identity": "",
"data-follow-detail-identity": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("section", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": "creator",
- children: [/* @__PURE__ */ (0, I.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h5", {
"data-id-label": "",
children: "创作者"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(MZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, F.jsxs)(MZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -70413,64 +70420,64 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-source-avatar": "",
title: p.author,
"aria-label": `查看 ${p.author} 的作者页`,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: p.avatar }
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-name": "",
children: p.author
})]
- }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-id-cell": "creator",
"data-follow-source-avatar": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: p.avatar }
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-name": "",
children: p.author
})]
})
})]
- }), m || p.credited ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), m || p.credited ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-detail-credit": "",
- children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
+ children: [m ? /* @__PURE__ */ (0, F.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, F.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(eOe, { text: e.summary }, e.id) : null,
- h ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.summary ? /* @__PURE__ */ (0, F.jsx)(nOe, { text: e.summary }, e.id) : null,
+ h ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-follow-media-issue": "",
children: h
}) : null,
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-follow-media-issue": "",
"data-media-load-issue": "",
hidden: a !== "failed",
children: "媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。"
}),
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
"data-follow-media-issue": "",
"data-media-thumb-fallback": "",
hidden: a !== "thumb",
children: "原图未取回,先显示缩略图:上游拦下了这一次请求。"
}),
- e.resource_urls?.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ e.resource_urls?.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-resources": "",
- children: e.resource_urls.map((e) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: e.resource_urls.map((e) => /* @__PURE__ */ (0, F.jsxs)("a", {
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [ODe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [ADe(e), /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: y2 }
+ dangerouslySetInnerHTML: { __html: v2 }
})]
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-actions": "",
"data-follow-detail-actions": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "later",
"data-follow-detail-save": "",
@@ -70479,9 +70486,9 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
disabled: g,
...v("save"),
onClick: i.save,
- dangerouslySetInnerHTML: { __html: z(g ? "check" : "bookmark-plus") }
+ dangerouslySetInnerHTML: { __html: R(g ? "check" : "bookmark-plus") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "later",
"data-follow-detail-want": "",
@@ -70490,9 +70497,9 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
title: i.want ? "取消想要" : "想要",
...v("want"),
onClick: i.toggleWant,
- dangerouslySetInnerHTML: { __html: z("star") }
+ dangerouslySetInnerHTML: { __html: R("star") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "seen",
"data-follow-detail-status": "seen",
@@ -70501,9 +70508,9 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-pressed": e.status === "seen",
...v("seen"),
onClick: () => i.status("seen"),
- dangerouslySetInnerHTML: { __html: z("eye") }
+ dangerouslySetInnerHTML: { __html: R("eye") }
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-follow-detail-status": "ignored",
@@ -70512,18 +70519,18 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-pressed": e.status === "ignored",
...v("ignored"),
onClick: () => i.status("ignored"),
- dangerouslySetInnerHTML: { __html: z("eye-off") }
+ dangerouslySetInnerHTML: { __html: R("eye-off") }
}),
- e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-follow-detail-status": "new",
"aria-label": "恢复未看",
title: "恢复未看",
...v("new"),
onClick: () => i.status("new"),
- dangerouslySetInnerHTML: { __html: z("rotate-ccw") }
+ dangerouslySetInnerHTML: { __html: R("rotate-ccw") }
}) : null,
- c === "image" && l ? /* @__PURE__ */ (0, I.jsx)("button", {
+ c === "image" && l ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-follow-media-hide": l.index,
@@ -70531,47 +70538,47 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
title: "隐藏这张图",
...v(`hide:${l.index}`),
onClick: () => i.hide(l.index),
- dangerouslySetInnerHTML: { __html: z("image-off") }
+ dangerouslySetInnerHTML: { __html: R("image-off") }
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)("a", {
+ u ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-stage-action-link": "",
"data-follow-download": "",
href: `${u}${u.includes("?") ? "&" : "?"}download=1`,
download: "",
"aria-label": "下载到本地",
title: "下载到本地",
- dangerouslySetInnerHTML: { __html: z("download") }
+ dangerouslySetInnerHTML: { __html: R("download") }
}) : null
]
}),
- e.hidden_media?.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ e.hidden_media?.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
"data-follow-hidden-media": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-follow-hidden-label": "",
children: [
"已隐藏 ",
e.hidden_media.length,
" 张"
]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-follow-hidden-thumbs": "",
- children: e.hidden_media.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: e.hidden_media.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-follow-media-restore": e.index,
title: `恢复显示 ${e.name || ""}`,
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(S2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(GDe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, F.jsx)(x2, { src: e.thumb_url }) : /* @__PURE__ */ (0, F.jsx)(qDe, { name: "image-off" }), /* @__PURE__ */ (0, F.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
"data-follow-state": "",
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(WDe, {
+ /* @__PURE__ */ (0, F.jsx)(KDe, {
item: e,
label: o.tagLabel,
actions: s
@@ -70580,23 +70587,23 @@ function $De({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function eOe({ text: e }) {
- let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
- return (0, F.useLayoutEffect)(() => {
+function nOe({ text: e }) {
+ let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(!1);
+ return (0, P.useLayoutEffect)(() => {
let e = t.current;
if (!e || n) return;
let r = () => a(e.scrollHeight > e.clientHeight + 1);
r();
let i = new ResizeObserver(r);
return i.observe(e), () => i.disconnect();
- }, [e, n]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ }, [e, n]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("p", {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: _F(e),
+ lang: gF(e),
"data-clamped": n ? void 0 : "",
children: e
- }), i || n ? /* @__PURE__ */ (0, I.jsx)(q, {
+ }), i || n ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
"data-follow-summary-toggle": "",
@@ -70605,28 +70612,28 @@ function eOe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function tOe(e, t, n) {
- let r = e.id, i = $0(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function rOe(e, t, n) {
+ let r = e.id, i = Q0(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
- U.setQueryData(i, (t) => t && {
+ H.setQueryData(i, (t) => t && {
...t,
item: {
...t.item,
status: e
}
- }), Gi(r, e);
+ }), qi(r, e);
}, d = (e) => {
- c(en(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = Pt({
- mutationFn: ({ to: e }) => H(dr, {
+ c(tn(e) || "操作失败"), t.failure("更新关注状态", e);
+ }, f = Ft({
+ mutationFn: ({ to: e }) => V(pr, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && b$(), t.toast(IDe(n), { undo: i === "saved" ? void 0 : async () => {
- await H(dr, {
+ u(n), c(""), n === "ignored" && b$(), t.toast(RDe(n), { undo: i === "saved" ? void 0 : async () => {
+ await V(pr, {
item: r,
to: i
}), u(i);
@@ -70634,34 +70641,34 @@ function tOe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = Pt({
- mutationFn: () => H(xDe, { item: r }),
+ }), p = Ft({
+ mutationFn: () => V(CDe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
onError: d,
onSettled: () => l("save", !1)
- }), m = Pt({
+ }), m = Ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await H(SDe, {
+ await V(wDe, {
item: r,
media: e,
hidden: t
- }), await U.invalidateQueries({
+ }), await H.invalidateQueries({
queryKey: i,
exact: !0
});
},
onSuccess: (e, { hidden: r, next: a }) => {
- let o = U.getQueryData(i);
- o && Wi(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ let o = H.getQueryData(i);
+ o && Ki(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), h = Nt({
- queryKey: zwe(r),
- queryFn: ({ signal: e }) => Hwe(r, e)
- }).data?.want ?? null, g = Pt({
+ }), h = Pt({
+ queryKey: Bwe(r),
+ queryFn: ({ signal: e }) => Uwe(r, e)
+ }).data?.want ?? null, g = Ft({
mutationFn: async (e) => (e ? await y$([e.id]) : await v$({ follow: r }), !e),
onSuccess: (e) => {
c(""), t.toast(e ? "已加入想要" : "已取消想要"), b$();
@@ -70704,10 +70711,10 @@ function tOe(e, t, n) {
}
//#endregion
//#region src/react/components/identity-cell.tsx
-function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
+function w2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(Nn(t.name))}</span>` + Ja({
+ dangerouslySetInnerHTML: { __html: `<span>${z(Fn(t.name))}</span>` + Xa({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -70716,10 +70723,10 @@ function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
rep: t.has_avatar ? t.rep : null,
standIn: t.avatar_stand_in
}) }
- }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("span", {
"data-id-face": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e === "studio" ? Mn(t.name, 2) : Nn(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: Ga(t.name, "icon", t.logo_version),
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e === "studio" ? Pn(t.name, 2) : Fn(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, F.jsx)("img", {
+ src: qa(t.name, "icon", t.logo_version),
alt: "",
width: 128,
height: 128,
@@ -70727,7 +70734,7 @@ function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
decoding: "async",
"data-drop": "self"
}) : null]
- }), s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ?? o, /* @__PURE__ */ (0, I.jsx)("span", {
+ }), s = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [a ?? o, /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-name": "",
children: t.name
})] }), c = {
@@ -70736,45 +70743,45 @@ function T2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
hidden: r,
"data-castoverflow": i ? "" : void 0
};
- return t.id ? /* @__PURE__ */ (0, I.jsx)("button", {
+ return t.id ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...c,
"data-entity-kind": e,
"data-entity-name": t.name,
onClick: () => {
- Ht(e, t.name, t.id), n(e, t.name);
+ Ut(e, t.name, t.id), n(e, t.name);
},
children: s
- }) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)("span", {
...c,
children: s
});
}
-function E2({ people: e, onOpen: t }) {
+function T2({ people: e, onOpen: t }) {
if (!e.length) return null;
- let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let n = (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
"aria-hidden": "true",
- dangerouslySetInnerHTML: { __html: z("tags") }
- }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.name })] });
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ dangerouslySetInnerHTML: { __html: R("tags") }
+ }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.name })] });
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": "series",
- children: [/* @__PURE__ */ (0, I.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h5", {
"data-id-label": "",
children: "系列"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-series-rows": "",
- children: e.map((e) => e.id ? /* @__PURE__ */ (0, I.jsx)("button", {
+ children: e.map((e) => e.id ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-series-link": "",
"data-entity-kind": "series",
"data-entity-name": e.name,
title: e.name,
onClick: () => {
- Ht("series", e.name, e.id), t("series", e.name);
+ Ut("series", e.name, e.id), t("series", e.name);
},
children: n(e)
- }, e.name) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }, e.name) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-series-link": "",
title: e.name,
children: n(e)
@@ -70784,9 +70791,9 @@ function E2({ people: e, onOpen: t }) {
}
//#endregion
//#region src/react/components/folded-title.ts
-function D2(e) {
- let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
- return (0, F.useLayoutEffect)(() => {
+function E2(e) {
+ let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(!1);
+ return (0, P.useLayoutEffect)(() => {
let e = t.current;
if (!e) return;
let n = () => {
@@ -70802,9 +70809,9 @@ function D2(e) {
}
//#endregion
//#region src/react/item-detail/catalog-picture.tsx
-function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
- let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(pQ, {
+function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+ let [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(0);
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, F.jsx)(pQ, {
item: {
code: e.code,
has_cover: !1,
@@ -70813,14 +70820,14 @@ function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
image: String(t - 1),
thumbnail: r
});
- let c = t < 0 ? Ha(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
- return r ? i === c ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ let c = t < 0 ? Wa(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
+ return r ? i === c ? /* @__PURE__ */ (0, F.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, F.jsx)("img", {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) : i === c ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => {
a(""), s((e) => e + 1);
@@ -70828,7 +70835,7 @@ function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
children: "立即重试"
}),
children: "预览未取得"
- }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }) : /* @__PURE__ */ (0, F.jsx)("img", {
"data-catalog-picture": "",
src: c,
alt: t < 0 ? `${e.code} 封面` : `${e.code} 预览 ${t}`,
@@ -70837,40 +70844,40 @@ function O2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var k2 = (e) => ["jav-detail", e], A2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), nOe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), j2 = (e, t) => U.ensureQueryData({
- queryKey: k2(e.code),
- queryFn: () => A2(e.code, t),
+var O2 = (e) => ["jav-detail", e], k2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), iOe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), A2 = (e, t) => H.ensureQueryData({
+ queryKey: O2(e.code),
+ queryFn: () => k2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function rOe(e, t) {
+function aOe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
//#endregion
//#region src/react/item-detail/external-playback.tsx
-var M2 = "peach.playback-target.v1", N2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function iOe() {
+var j2 = "peach.playback-target.v1", M2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function oOe() {
try {
- return localStorage.getItem(M2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(j2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function P2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(iOe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = DH();
- (0, F.useEffect)(() => {
+function N2({ id: e, onOpened: t }) {
+ let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(oOe), [o, s] = (0, P.useState)(null), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(0), f = EH();
+ (0, P.useEffect)(() => {
let e = new AbortController();
- return V("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || N2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ return B("/api/local-players", e.signal).then((t) => {
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || M2.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => N2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => M2.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
- if (i.startsWith("local:")) return await H(`/api/local-playback?id=${e}&player=${encodeURIComponent(i.slice(6))}`, {}, "POST", t), null;
- let n = await H(`/api/external-playback?id=${e}`, {}, "POST", t);
+ if (i.startsWith("local:")) return await V(`/api/local-playback?id=${e}&player=${encodeURIComponent(i.slice(6))}`, {}, "POST", t), null;
+ let n = await V(`/api/external-playback?id=${e}`, {}, "POST", t);
return {
url: new URL(n.url, location.origin).href,
playlist: new URL(n.playlist, location.origin).href
@@ -70884,35 +70891,35 @@ function P2({ id: e, onOpened: t }) {
let n = document.createElement("a");
n.href = e.playlist, n.rel = "noreferrer", document.body.append(n), n.click(), n.remove();
});
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-local-playback": "",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(f1, {
+ children: [/* @__PURE__ */ (0, F.jsx)(f1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...N2],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...M2],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(M2, e);
+ localStorage.setItem(j2, e);
} catch {}
}
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...Bz(f.busy === "open"),
+ ...zz(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(YH, { children: f.error || c }) : null,
- c ? /* @__PURE__ */ (0, I.jsx)(q, {
+ f.error || c ? /* @__PURE__ */ (0, F.jsx)(JH, { children: f.error || c }) : null,
+ c ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
disabled: !!f.busy,
onClick: () => {
@@ -70920,17 +70927,17 @@ function P2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
+ o ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(jz, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(JH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, F.jsx)(qH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var aOe = dF({
+var sOe = uF({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -70992,27 +70999,27 @@ var aOe = dF({
}
}
});
-function oOe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = aOe[t];
- return /* @__PURE__ */ (0, I.jsx)("span", {
+function cOe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = sOe[t];
+ return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
- className: uF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? uF("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, I.jsx)("span", {
- className: uF("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, I.jsx)("span", { className: uF("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: lF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? lF("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, F.jsx)("span", {
+ className: lF("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, F.jsx)("span", { className: lF("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 F2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(bde, {
+function P2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(Sde, {
ref: i,
...a,
- className: (t) => uF("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, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(oOe, {
+ className: (t) => lF("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, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(cOe, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, I.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
@@ -71020,14 +71027,14 @@ function F2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var sOe = "/api/cover-crop", cOe = (e, t) => H(sOe, {
+var lOe = "/api/cover-crop", uOe = (e, t) => V(lOe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function I2({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)("svg", {
+function F2({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -71036,12 +71043,12 @@ function I2({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-crop" })
});
}
-function lOe({ code: e, coverUrl: t, box: n, onSaved: r }) {
- let [i, a] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+function dOe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+ let [i, a] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-haspopup": "dialog",
"data-cover-crop": !0,
@@ -71049,13 +71056,13 @@ function lOe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(I2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(Nz, {
+ children: /* @__PURE__ */ (0, F.jsx)(F2, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, F.jsx)(Mz, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(uOe, {
+ children: /* @__PURE__ */ (0, F.jsx)(fOe, {
code: e,
coverUrl: t,
box: n,
@@ -71064,9 +71071,9 @@ function lOe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function uOe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = iV(), f = Pt({
- mutationFn: (t) => cOe(e, t),
+function fOe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(null), [l, u] = (0, P.useState)(!0), d = rV(), f = Ft({
+ mutationFn: (t) => uOe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -71078,47 +71085,47 @@ function uOe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : $Se(e, Fa);
+ } : eCe(e, La);
c(XZ(t, e, null));
}
let m = f.isPending;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(Pz, { children: /* @__PURE__ */ (0, I.jsx)(I2, { className: "size-6" }) }),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsx)(Nz, { children: /* @__PURE__ */ (0, F.jsx)(F2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(jI, {
+ /* @__PURE__ */ (0, F.jsx)(AI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
}),
- /* @__PURE__ */ (0, I.jsxs)("p", {
+ /* @__PURE__ */ (0, F.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ f.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(f.error)
+ children: Wn(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, {
- icon: fz,
+ /* @__PURE__ */ (0, F.jsx)(VF, {
+ icon: dz,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, I.jsx)(tQ, {
+ children: /* @__PURE__ */ (0, F.jsx)(tQ, {
src: t,
- aspect: l ? Fa : null,
+ aspect: l ? La : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -71128,29 +71135,29 @@ function uOe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
onBox: c
})
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(F2, {
+ children: [/* @__PURE__ */ (0, F.jsx)(P2, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(XZ(s, a, Fa));
+ u(e), e && s && a && c(XZ(s, a, La));
},
- children: /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "锁定正封比例"
})
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(m),
+ ...zz(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
disabled: !s || !a,
- ...Bz(m),
+ ...zz(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -71162,35 +71169,35 @@ function uOe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var L2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var I2 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: z(e) }
-}), R2 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: R(e) }
+}), L2 = ({ html: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), z2 = (e) => Number(e) > 0 ? kn(Number(e)) : "大小未知";
-function dOe(e) {
- let { queue: t, actions: n } = e, r = Nt({
- queryKey: t ? YM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => iN(t, e.helpers, n),
+}), R2 = (e) => Number(e) > 0 ? jn(Number(e)) : "大小未知";
+function pOe(e) {
+ let { queue: t, actions: n } = e, r = Pt({
+ queryKey: t ? JM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => rN(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? sN(i, e.id) : t ? null : e.id, o = Nt({
- queryKey: JM(a ?? 0),
- queryFn: ({ signal: e }) => rN(a, e),
+ }), i = t && r.data || null, a = i ? oN(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: qM(a ?? 0),
+ queryFn: ({ signal: e }) => nN(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
let e = o.error || r.error;
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-grid": "",
"data-item-detail": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(B2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(z2, { onClose: n.close }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: en(e),
+ children: e ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: tn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
}
@@ -71199,38 +71206,38 @@ function dOe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(fOe, {
+ return /* @__PURE__ */ (0, F.jsx)(mOe, {
...e,
- item: Hse(o.data, i),
+ item: Wse(o.data, i),
queue: i
}, o.data.id);
}
-var B2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var z2 = ({ onClose: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
title: "关闭",
"aria-label": "关闭",
onClick: e,
- dangerouslySetInnerHTML: { __html: z("x") }
+ dangerouslySetInnerHTML: { __html: R("x") }
});
-function fOe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = DOe(t, r, i.tagLabel), o = (0, F.useRef)(t);
- (0, F.useLayoutEffect)(() => {
+function mOe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = kOe(t, r, i.tagLabel), o = (0, P.useRef)(t);
+ (0, P.useLayoutEffect)(() => {
r.present(o.current, n);
- }, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && H(XM, {
+ }, [r]), (0, P.useEffect)(() => {
+ n?.kind === "playlist" && V(YM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Qse(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = cN(n, t.id);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ let s = ece(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = sN(n, t.id);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(pOe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(hOe, {
item: t,
gate: s,
helpers: i,
@@ -71243,22 +71250,22 @@ function fOe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(vOe, {
+ }), /* @__PURE__ */ (0, F.jsx)(bOe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(p2, {
+ }), /* @__PURE__ */ (0, F.jsx)(f2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(hOe, {
+ queue: n ? /* @__PURE__ */ (0, F.jsx)(_Oe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(EOe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, F.jsx)(OOe, {
...e,
item: n ? {
...t,
@@ -71267,12 +71274,12 @@ function fOe(e) {
}) : null
})] });
}
-function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
- let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Nt({
- queryKey: k2(e.code || ""),
+function hOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+ let [o, s] = (0, P.useState)(t ? "" : "auto"), c = (0, P.useRef)(null), [l, u] = (0, P.useState)(-2), d = (0, P.useRef)(!1), f = Pt({
+ queryKey: O2(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, A2(e.code, t, n);
+ return d.current = !1, k2(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -71298,8 +71305,8 @@ function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
}
] : [], h = m.length > 1, g = (e) => {
e !== -2 && c.current?.querySelector("video")?.pause(), u(e);
- }, _ = (0, F.useRef)(e), v = (0, F.useRef)(a);
- v.current = a, (0, F.useLayoutEffect)(() => {
+ }, _ = (0, P.useRef)(e), v = (0, P.useRef)(a);
+ v.current = a, (0, P.useLayoutEffect)(() => {
let e = c.current;
if (!e || !o) return;
let t = () => v.current();
@@ -71310,33 +71317,33 @@ function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
};
}, [r, o]);
let y = n.badgeHtml(e.location || "", e.cost || "", "srcbig");
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: c,
"data-stage-media": "",
"data-item-media": t || "video",
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, I.jsx)(B2, { onClose: r.close }),
- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsx)(z2, { onClose: r.close }),
+ h ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}),
- l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(O2, {
+ l === -2 ? null : /* @__PURE__ */ (0, F.jsx)(D2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
}, e.id),
- /* @__PURE__ */ (0, I.jsx)(m2, {
+ /* @__PURE__ */ (0, F.jsx)(p2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(O2, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, F.jsx)(D2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -71344,17 +71351,17 @@ function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
})
})
] }) : null,
- l !== -2 && e.is_jav && e.code && !e.sample_images?.length && (f.isPending || f.error || f.data?.state === "partial") ? /* @__PURE__ */ (0, I.jsx)("div", {
+ l !== -2 && e.is_jav && e.code && !e.sample_images?.length && (f.isPending || f.error || f.data?.state === "partial") ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-samples-state": "",
- children: f.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: f.isPending ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-skeleton": "samples",
role: "status",
"aria-label": "正在读取样图",
className: "relative block h-12 w-20 skeleton-sheen"
- }) : /* @__PURE__ */ (0, I.jsx)(q, {
+ }) : /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(f.isFetching),
- title: f.data?.message || en(f.error),
+ ...zz(f.isFetching),
+ title: f.data?.message || tn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
d.current = !0, f.refetch();
@@ -71362,31 +71369,31 @@ function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(mOe, {
+ t === "offline" ? /* @__PURE__ */ (0, F.jsx)(gOe, {
item: e,
badge: y,
helpers: n,
actions: r
- }) : t === "disc" ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : t === "disc" ? /* @__PURE__ */ (0, F.jsxs)("div", {
role: "status",
"data-item-gate": "disc",
children: [
- /* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
- /* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(P2, {
+ /* @__PURE__ */ (0, F.jsx)("b", { children: "ISO 原盘" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
+ /* @__PURE__ */ (0, F.jsx)(N2, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
]
- }) : t === "online" ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : t === "online" ? /* @__PURE__ */ (0, F.jsxs)("div", {
id: "onlineGate",
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(R2, { html: y }),
- /* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
- /* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)(L2, { html: y }),
+ /* @__PURE__ */ (0, F.jsx)("b", { children: "在线作品" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
+ /* @__PURE__ */ (0, F.jsx)("button", {
className: "chip",
id: "openSavedFollow",
type: "button",
@@ -71394,30 +71401,30 @@ function pOe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "打开已保存关注"
})
]
- }) : t === "metered" && !o ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : t === "metered" && !o ? /* @__PURE__ */ (0, F.jsxs)("div", {
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(R2, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", z2(e.size)] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(L2, { html: y }), /* @__PURE__ */ (0, F.jsxs)("span", { children: ["点此开始拉流 · ", R2(e.size)] })]
}) : null
]
});
}
-function mOe({ item: e, badge: t, helpers: n, actions: r }) {
- let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
+function gOe({ item: e, badge: t, helpers: n, actions: r }) {
+ let [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
a(!1), t ? r.reopen() : s(!0);
};
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
id: "offlineGate",
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(R2, { html: t }),
- /* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),
- /* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)(L2, { html: t }),
+ /* @__PURE__ */ (0, F.jsx)("b", { children: "媒体目录无法访问" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
+ /* @__PURE__ */ (0, F.jsx)("button", {
className: "chip",
id: "offlineRetry",
type: "button",
@@ -71428,35 +71435,35 @@ function mOe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function hOe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Jse(e), a = (0, F.useRef)(null), o = _Oe(e, t, r), s = (0, F.useRef)(o);
+function _Oe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Xse(e), a = (0, P.useRef)(null), o = yOe(e, t, r), s = (0, P.useRef)(o);
s.current = o;
- let c = (0, F.useCallback)((t) => {
+ let c = (0, P.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
selector: "[data-queue-row]",
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = gOe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = vOe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
"aria-label": "保存为播放列表",
onClick: l,
- dangerouslySetInnerHTML: { __html: z("playlist") }
- }) : e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: R("playlist") }
+ }) : e.kind === "playlist" ? /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-edit-playlist": "",
title: "编辑播放列表",
"aria-label": "编辑播放列表",
onClick: r.editPlaylist,
- dangerouslySetInnerHTML: { __html: z("playlist") }
+ dangerouslySetInnerHTML: { __html: R("playlist") }
}) : null, d = {
kind: e.kind,
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(pK, {
+ return /* @__PURE__ */ (0, F.jsx)(pK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -71464,12 +71471,12 @@ function hOe({ queue: e, itemId: t, helpers: n, actions: r }) {
actions: u,
listRef: c,
children: e.items.map((i) => {
- let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${Kse[i.edition_label] || "censored"}`,
+ let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, F.jsx)("i", {
+ className: `javedition ${Jse[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && oN(i);
- return /* @__PURE__ */ (0, I.jsxs)(mK, {
+ }) : null, s = e.kind === "playlist" && aN(i);
+ return /* @__PURE__ */ (0, F.jsxs)(mK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -71479,43 +71486,43 @@ function hOe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(R2, { html: oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(L2, { html: co(i, n.javImage()) }), /* @__PURE__ */ (0, F.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
- children: Dn(i.duration)
+ children: kn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(R2, { html: lo(i) }),
- after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ lead: /* @__PURE__ */ (0, F.jsx)(L2, { html: fo(i) }),
+ after: e.kind === "playlist" ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-queue-edit": "",
- children: [/* @__PURE__ */ (0, I.jsx)("i", {
+ children: [/* @__PURE__ */ (0, F.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "grip-vertical" })
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "grip-vertical" })
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "x" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "x" })
})]
}) : null,
- children: [/* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("span", {
"data-queue-head": "",
- children: [a, /* @__PURE__ */ (0, I.jsx)("b", {
+ children: [a, /* @__PURE__ */ (0, F.jsx)("b", {
"data-middle-truncate": "",
children: n.displayName(i)
})]
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? gN(i.part_label) : uo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? hN(i.part_label) : po(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function gOe(e, t) {
- let n = Pt({ mutationFn: (t) => H(XM, {
+function vOe(e, t) {
+ let n = Ft({ mutationFn: (t) => V(YM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -71528,14 +71535,14 @@ function gOe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function _Oe(e, t, n) {
- let r = YM({
+function yOe(e, t, n) {
+ let r = JM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (U.setQueryData(r, aN(e)), e), a = (t) => H(XM, {
+ }), i = (e) => (H.setQueryData(r, iN(e)), e), a = (t) => V(YM, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = Pt({
+ }).then((e) => e.playlist), o = Ft({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -71548,8 +71555,8 @@ function _Oe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Xse(s, t, r, c);
- if (Zse(l, s)) return;
+ let l = Qse(s, t, r, c);
+ if ($se(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -71560,7 +71567,7 @@ function _Oe(e, t, n) {
},
remove: (e) => {
let r = s;
- zc({
+ Vc({
title: "移出播放列表",
body: "这个视频将从播放列表移除,视频文件保留。",
confirmLabel: "移出播放列表",
@@ -71591,88 +71598,88 @@ function _Oe(e, t, n) {
}
};
}
-function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
- let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function bOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+ let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-side": "",
"data-item-side": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(yOe, {
+ /* @__PURE__ */ (0, F.jsx)(xOe, {
item: e,
queue: t,
helpers: r,
actions: i,
onStatus: n.setSourceState
}),
- a ? null : /* @__PURE__ */ (0, I.jsx)("span", {
+ a ? null : /* @__PURE__ */ (0, F.jsx)("span", {
"data-title-state": "",
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(xOe, {
+ /* @__PURE__ */ (0, F.jsx)(COe, {
item: e,
write: n
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ e.width && e.height ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "monitor" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [
e.width,
"×",
e.height
] })]
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("span", {
+ /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: z2(e.size) })]
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "hard-drive" }), /* @__PURE__ */ (0, F.jsx)("span", { children: R2(e.size) })]
}),
- e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ e.release_date ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "calendar" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e.release_date })]
}) : null,
- e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
+ e.region_label ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-spec-item": "",
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, I.jsx)(L2, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, F.jsx)(I2, { name: "globe" }), /* @__PURE__ */ (0, F.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(P2, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, F.jsx)(N2, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(SOe, {
+ /* @__PURE__ */ (0, F.jsx)(wOe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(COe, {
+ /* @__PURE__ */ (0, F.jsx)(TOe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(jK, {
+ /* @__PURE__ */ (0, F.jsx)(jK, {
assetIds: AK([e], r.javImage()),
onComplete: () => {
- U.invalidateQueries({ queryKey: JM(e.id) });
+ H.invalidateQueries({ queryKey: qM(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(wOe, { item: e }),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsx)(EOe, { item: e }),
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: "likeBtn",
"data-fb": "like",
@@ -71681,9 +71688,9 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "thumbs-up" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: "preferenceToggle",
"data-fb": "reason",
@@ -71693,9 +71700,9 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "notebook-pen" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "dislike",
"data-kind": "dislike",
@@ -71704,9 +71711,9 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "thumbs-down" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "seen",
"data-kind": "seen",
@@ -71715,9 +71722,9 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "eye" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "eye" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-action": "later",
id: "stageLater",
@@ -71726,18 +71733,18 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: "addPlaylist",
"data-fb": "playlist",
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "playlist" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "playlist" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
id: "betterVersion",
"data-fb": "quality",
@@ -71746,9 +71753,9 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "sparkles" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-kind": "dispose",
"data-fb": "dispose",
@@ -71757,24 +71764,24 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "trash" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(TOe, {
+ /* @__PURE__ */ (0, F.jsx)(DOe, {
item: e,
open: s,
write: n
}),
- /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-kind": "o",
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(L2, { name: "sperm" }),
- /* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
- /* @__PURE__ */ (0, I.jsx)("b", {
+ /* @__PURE__ */ (0, F.jsx)(I2, { name: "sperm" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { children: "记一次高潮" }),
+ /* @__PURE__ */ (0, F.jsx)("b", {
className: "mono",
id: "oCount",
children: e.o_count || 0
@@ -71785,15 +71792,15 @@ function vOe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function yOe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = D2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Yse(e, t);
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function xOe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = E2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zse(e, t);
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-title": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-title": "",
"data-title-line": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: a,
"data-detail-title": "",
"data-expanded": o ? "" : void 0,
@@ -71802,10 +71809,10 @@ function yOe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
s && !String(getSelection() || "") && c();
},
dangerouslySetInnerHTML: { __html: l }
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-title-tools": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-title-fold": "",
hidden: !s,
@@ -71813,23 +71820,23 @@ function yOe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(GH, {})
+ children: /* @__PURE__ */ (0, F.jsx)(WH, {})
}),
- e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(lOe, {
+ children: /* @__PURE__ */ (0, F.jsx)(dOe, {
code: e.cover_key || e.code || "",
- coverUrl: Ha(e),
+ coverUrl: Wa(e),
box: e.poster_box || null,
onSaved: (t) => {
- U.invalidateQueries({
- queryKey: JM(e.id),
+ H.invalidateQueries({
+ queryKey: qM(e.id),
exact: !0
- }), WM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), UM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(bOe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, F.jsx)(SOe, {
id: e.id,
actions: r,
onStatus: i
@@ -71839,8 +71846,8 @@ function yOe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function bOe({ id: e, actions: t, onStatus: n }) {
- let [r, i] = (0, F.useState)(""), a = async () => {
+function SOe({ id: e, actions: t, onStatus: n }) {
+ let [r, i] = (0, P.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
if (r) return;
@@ -71848,7 +71855,7 @@ function bOe({ id: e, actions: t, onStatus: n }) {
let a = await t.sync(e);
n(a.text), i(""), a.removed.includes(e) && t.close();
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-reveal": e,
title: "在文件管理器里打开源文件所在目录",
@@ -71858,8 +71865,8 @@ function bOe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void a(),
- dangerouslySetInnerHTML: { __html: r === "reveal" ? vs("正在定位") : z("folder-open") }
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: r === "reveal" ? bs("正在定位") : R("folder-open") }
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-sync": e,
title: "核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失",
@@ -71869,18 +71876,18 @@ function bOe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "folder-sync" })
})] });
}
-function xOe({ item: e, write: t }) {
- let n = KM(e.rating);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function COe({ item: e, write: t }) {
+ let n = GM(e.rating);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": GM(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(rY, {
+ "data-value": WM(e.rating),
+ children: [/* @__PURE__ */ (0, F.jsx)(rY, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -71891,61 +71898,61 @@ function xOe({ item: e, write: t }) {
5
].find((e) => t.busy.has(`rate:${e}`)),
busyAttrs: (e) => t.busyAttrs(`rate:${e}`)
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Rse(e.rating)
+ children: Bse(e.rating)
})]
});
}
-function SOe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Use(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function wOe({ item: e, actions: t }) {
+ let n = (0, P.useMemo)(() => Gse(e), [e]), [r, i] = (0, P.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, I.jsx)(T2, {
+ return /* @__PURE__ */ (0, F.jsx)(w2, {
kind: e,
person: n,
onOpen: t.openEntity,
hidden: a,
overflow: e === "performer" && i >= 8
}, `${e}:${n.name}`);
- }, s = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ }, s = (e, t, n, r = null) => n.length ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": t,
- children: [/* @__PURE__ */ (0, I.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h5", {
"data-id-label": "",
children: e
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-id-row": "",
children: [n.map((e, n) => o(t, e, n)), r]
})]
}, `${t}:${e}`) : null, c = [
- n.unowned ? /* @__PURE__ */ (0, I.jsxs)("section", {
+ n.unowned ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": "unowned",
- children: [/* @__PURE__ */ (0, I.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h5", {
"data-id-label": "",
children: "归属"
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-id-row": "",
- children: /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-id-cell": "unowned",
"data-open-unowned": "",
title: "打开未归属:馆藏里没有署名人的作品",
onClick: t.openUnowned,
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(L2, { name: "user-round" })
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: /* @__PURE__ */ (0, F.jsx)(I2, { name: "user-round" })
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-id-name": "",
children: "未归属"
})]
})
})]
- }, "unowned") : s(qa(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(q, {
+ }, "unowned") : s(Ya(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, F.jsxs)(q, {
variant: "secondary",
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: lz,
+ trailingIcon: cz,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -71959,23 +71966,23 @@ function SOe({ item: e, actions: t }) {
s("卖家", "creator", n.creators.filter((e) => e.identity_categories?.includes("seller"))),
s("创作者", "creator", n.creators.filter((e) => !e.identity_categories?.includes("seller")))
].filter(Boolean);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-identity": "",
- children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [c.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(E2, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(T2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function COe({ item: e, write: t, helpers: n, actions: r }) {
- return /* @__PURE__ */ (0, I.jsx)("div", {
+function TOe({ item: e, write: t, helpers: n, actions: r }) {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(_2, {
+ children: /* @__PURE__ */ (0, F.jsx)(g2, {
id: "detailTags",
- tags: Wse(e, n),
+ tags: Kse(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -71986,33 +71993,33 @@ function COe({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function wOe({ item: e }) {
- let t = $se(e);
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function EOe({ item: e }) {
+ let t = tce(e);
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-trace": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-trace-metric": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-trace-label": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "离开位置" }), /* @__PURE__ */ (0, F.jsx)("span", {
id: "ratioTxt",
children: "0%"
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-trace-bar": "",
- children: [/* @__PURE__ */ (0, I.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, I.jsx)("b", { id: "mark" })]
+ children: [/* @__PURE__ */ (0, F.jsx)("u", { id: "watched" }), /* @__PURE__ */ (0, F.jsx)("b", { id: "mark" })]
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-trace-metric": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-trace-label": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "真实观看" }), /* @__PURE__ */ (0, F.jsx)("span", {
id: "realTxt",
children: t == null ? "0%" : `${t.toFixed(0)}%`
})]
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-trace-bar": "",
- children: /* @__PURE__ */ (0, I.jsx)("u", {
+ children: /* @__PURE__ */ (0, F.jsx)("u", {
id: "realBar",
"data-trace-real": "",
style: t == null ? void 0 : { width: `${t.toFixed(1)}%` }
@@ -72021,32 +72028,32 @@ function wOe({ item: e }) {
})]
});
}
-function TOe({ item: e, open: t, write: n }) {
- let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
- (0, F.useEffect)(() => {
+function DOe({ item: e, open: t, write: n }) {
+ let [r, i] = (0, P.useState)(e.like_reason || ""), a = (0, P.useRef)(null);
+ (0, P.useEffect)(() => {
t && a.current?.focus();
- }, [t]), (0, F.useEffect)(() => {
+ }, [t]), (0, P.useEffect)(() => {
i(e.like_reason || "");
}, [e.like_reason]);
let o = n.busy.has("preference");
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
id: "preferencePanel",
"data-item-preference": "",
hidden: !t,
- children: [/* @__PURE__ */ (0, I.jsx)("textarea", {
+ children: [/* @__PURE__ */ (0, F.jsx)("textarea", {
ref: a,
id: "likeReason",
maxLength: 2e3,
placeholder: "为什么喜欢?",
value: r,
onChange: (e) => i(e.target.value)
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-preference-foot": "",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
id: "preferenceState",
"aria-live": "polite",
children: n.preferenceState
- }), /* @__PURE__ */ (0, I.jsx)("button", {
+ }), /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
className: "geist-button primary",
id: "savePreference",
@@ -72055,25 +72062,25 @@ function TOe({ item: e, open: t, write: n }) {
"aria-label": "提交喜爱理由",
...n.busyAttrs("preference"),
onClick: () => n.preference({ reason: r }),
- dangerouslySetInnerHTML: { __html: o ? `${vs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
+ dangerouslySetInnerHTML: { __html: o ? `${bs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
})]
})]
});
}
-function EOe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Nt({
- queryKey: zse(t.id, n),
- queryFn: async ({ signal: e }) => (await V(Vse(t.id, n), e)).items || []
- }), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(f2, {
+function OOe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
+ queryKey: Vse(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Use(t.id, n), e)).items || []
+ }), [o] = (0, P.useState)(() => r.relatedSkeletonHtml());
+ return /* @__PURE__ */ (0, F.jsx)(d2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
- error: a.isError ? `读取接着看失败:${en(a.error)}` : void 0,
+ error: a.isError ? `读取接着看失败:${tn(a.error)}` : void 0,
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(fY, {
+ children: a.data ? /* @__PURE__ */ (0, F.jsx)(fY, {
mode: "items",
variant: "next",
items: a.data,
@@ -72086,19 +72093,19 @@ function EOe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(R2, { html: o })
+ }) : /* @__PURE__ */ (0, F.jsx)(L2, { html: o })
});
}
-function DOe(e, t, n) {
- let r = e.id, i = JM(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function kOe(e, t, n) {
+ let r = e.id, i = qM(r), [a, o] = (0, P.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
- }), f = () => U.getQueryData(i) || e, p = (e) => {
+ }), f = () => H.getQueryData(i) || e, p = (e) => {
let t = typeof e == "function" ? e(f()) : {
...f(),
...e
};
- U.setQueryData(i, t);
+ H.setQueryData(i, t);
let n = {
feedback: t.feedback,
disposal: t.disposal,
@@ -72106,11 +72113,11 @@ function DOe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return UM(r, n), t;
- }, m = (e, t) => H(e, {
+ return HM(r, n), t;
+ }, m = (e, t) => V(e, {
id: r,
...t
- }), h = Pt({
+ }), h = Ft({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -72121,7 +72128,7 @@ function DOe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(ZM, t === void 0 ? { kind: e } : {
+ let n = await m(XM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -72141,21 +72148,21 @@ function DOe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = qM(n, e);
- await _("rate", r), t.toast(r ? `已评 ${KM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = KM(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${GM(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(_N(e, r), { undo: async () => {
+ t.toast(gN(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m($M, {});
+ let e = await m(QM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m($M, {})).watch_later });
+ p({ watch_later: (await m(QM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -72165,9 +72172,9 @@ function DOe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(eN, { wanted: !e.wanted });
+ }), r = await m($M, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(eN, e));
+ n(await m($M, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -72181,7 +72188,7 @@ function DOe(e, t, n) {
});
u("保存中…");
try {
- o(await m(tN, {
+ o(await m(eN, {
liked: a,
reason: i
}));
@@ -72191,7 +72198,7 @@ function DOe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(tN, r));
+ o(await m(eN, r));
} });
});
},
@@ -72200,30 +72207,30 @@ function DOe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => dN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(QM, {
+ p((t) => uN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(ZM, {
operation: "add",
tag: e.k
- }), p((t) => fN(t, e));
+ }), p((t) => dN(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(QM, {
+ let e = await m(ZM, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- uN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => fN(e, {
+ lN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => dN(e, {
k: i,
cat: "general"
- })), hN(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(QM, {
+ })), mN(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(ZM, {
operation: "remove",
tag: i
- }), p((e) => dN(e, i));
+ }), p((e) => uN(e, i));
} }));
});
}
@@ -72231,7 +72238,7 @@ function DOe(e, t, n) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var V2 = "/api/downloads", H2 = ["downloads"], OOe = "/api/downloads/cancel", kOe = "/api/downloads/postprocess", U2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, AOe = {
+var B2 = "/api/downloads", V2 = ["downloads"], AOe = "/api/downloads/cancel", jOe = "/api/downloads/postprocess", H2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, MOe = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -72240,50 +72247,50 @@ var V2 = "/api/downloads", H2 = ["downloads"], OOe = "/api/downloads/cancel", kO
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, W2 = (e) => {
- let t = e.display_code || e.code || "", { title: n } = vF({
+}, U2 = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = _F({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, G2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", jOe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function MOe() {
- let e = (0, F.useId)(), t = Ft({
- queryKey: [...H2, "pages"],
+}, W2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", NOe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function POe() {
+ let e = (0, P.useId)(), t = It({
+ queryKey: [...V2, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => V(`${V2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${B2}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => U2(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => H2(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
- return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
+ return !r.length && !t.error ? null : /* @__PURE__ */ (0, F.jsxs)("section", {
id: "cloudDownloads",
"aria-labelledby": e,
className: "flex min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)("h3", {
+ /* @__PURE__ */ (0, F.jsx)("h3", {
id: e,
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ t.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(t.error)
+ children: Wn(t.error)
}) : null,
- r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
+ r.length ? /* @__PURE__ */ (0, F.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(NOe, {
+ children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(FOe, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
}) : null,
- t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(q, {
+ t.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: lz,
+ leadingIcon: cz,
className: "self-start",
- ...Bz(t.isFetchingNextPage),
+ ...zz(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -72292,15 +72299,15 @@ function MOe() {
]
});
}
-function NOe({ task: e, writable: t }) {
- let n = ae(), r = DH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = G2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function FOe({ task: e, writable: t }) {
+ let n = oe(), r = EH(), [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(!1), c = (0, P.useId)(), l = W2(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- IF(e.submitted_at)
+ FF(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: H2 });
+ n.invalidateQueries({ queryKey: V2 });
}, g = () => {
- r.run("cancel", (t) => H(OOe, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(AOe, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -72310,119 +72317,119 @@ function NOe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => H(V2, t, "POST", e), h);
+ r.run("resubmit", (e) => V(B2, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => H(kOe, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(jOe, { id: e.id }, "POST", t), h);
};
- return /* @__PURE__ */ (0, I.jsxs)("li", {
+ return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: RH({
+ className: LH({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
}),
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-stretch gap-3 px-5 pt-5 pb-4",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
style: { "--card-ratio": String(xA) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
- u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
+ u?.has_cover ? null : /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(PW, {
+ u?.has_cover ? /* @__PURE__ */ (0, F.jsx)(PW, {
artwork: {
kind: "cover",
- html: eo(u, "big")
+ html: no(u, "big")
},
- relayout: (e) => yl(e, "big")
+ relayout: (e) => xl(e, "big")
}) : null,
- f ? /* @__PURE__ */ (0, I.jsx)("a", {
+ f ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${W2(e)}`,
+ "aria-label": `打开作品详情:${U2(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1.5",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("strong", {
+ children: [/* @__PURE__ */ (0, F.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: W2(e),
- children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
+ title: U2(e),
+ children: f ? /* @__PURE__ */ (0, F.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: W2(e)
- }) : W2(e)
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: U2(e)
+ }) : U2(e)
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(sZ, {
- color: AOe[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, F.jsx)(sZ, {
+ color: MOe[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(sZ, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, F.jsx)(sZ, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(tU, {
+ children: /* @__PURE__ */ (0, F.jsx)(eU, {
source: e.provider,
label: e.provider_label
})
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 truncate",
title: m,
children: m
})]
}),
- d.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ d.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex shrink-0 items-center gap-1",
- children: d.slice(0, 3).map((e) => /* @__PURE__ */ (0, I.jsx)("a", {
+ children: d.slice(0, 3).map((e) => /* @__PURE__ */ (0, F.jsx)("a", {
"data-media-avatar": "",
- href: pn("performer", e.name, e.id),
+ href: hn("performer", e.name, e.id),
"aria-label": `打开女优页:${e.name}`,
title: e.name,
- dangerouslySetInnerHTML: { __html: Ya(e.name, e, null) }
+ dangerouslySetInnerHTML: { __html: Za(e.name, e, null) }
}, e.id || e.name))
- }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ }), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "min-w-0 truncate text-caption-1-regular text-text-secondary",
title: d.map((e) => e.name).join("、"),
children: [d.map((e) => e.name).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(VH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, F.jsx)(BH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
}) : null,
- e.ledger_path ? /* @__PURE__ */ (0, I.jsx)("p", {
+ e.ledger_path ? /* @__PURE__ */ (0, F.jsx)("p", {
className: "min-w-0 truncate text-caption-1-regular text-text-secondary",
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(YH, { children: r.error }) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ r.error ? /* @__PURE__ */ (0, F.jsx)(JH, { children: r.error }) : null,
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
children: [
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
"aria-expanded": o,
@@ -72430,33 +72437,33 @@ function NOe({ task: e, writable: t }) {
onClick: () => s(!o),
children: o ? "收起标题" : "展开标题"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
size: "small",
onClick: v,
children: i ? "已复制磁力" : "复制磁力"
}),
- t && (e.cancellable || e.resubmittable || e.postprocess_retryable) ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ t && (e.cancellable || e.resubmittable || e.postprocess_retryable) ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "ml-auto flex flex-wrap items-center gap-2",
children: [
- e.cancellable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.cancellable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "cancel"),
+ ...zz(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
- e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.resubmittable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "resubmit"),
+ ...zz(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
- e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.postprocess_retryable ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "postprocess"),
+ ...zz(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -72467,17 +72474,17 @@ function NOe({ task: e, writable: t }) {
]
})]
}),
- o ? /* @__PURE__ */ (0, I.jsx)("p", {
+ o ? /* @__PURE__ */ (0, F.jsx)("p", {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: W2(e)
+ children: U2(e)
}) : null,
- l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
+ l || e.postprocess_detail ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
- children: /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, F.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || jOe(e)
+ children: l || NOe(e)
})
}) : null
]
@@ -72485,22 +72492,22 @@ function NOe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/work-code.ts
-var K2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), q2 = (e, t) => !!K2(e) && K2(e) === K2(t);
+var G2 = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), K2 = (e, t) => !!G2(e) && G2(e) === G2(t);
//#endregion
//#region src/react/activity/resource-search.tsx
-function POe({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)("span", {
+function IOe({ className: e }) {
+ return /* @__PURE__ */ (0, F.jsx)("span", {
className: e,
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: vs("") }
+ dangerouslySetInnerHTML: { __html: bs("") }
});
}
-function FOe(e) {
+function LOe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => FOe(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = DH(), b = (0, F.useRef)(null);
- (0, F.useEffect)(() => () => b.current?.abort(), []);
+function ROe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(() => LOe(t)), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(null), [h, g] = (0, P.useState)(""), [_, v] = (0, P.useState)(""), y = EH(), b = (0, P.useRef)(null);
+ (0, P.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
let e = new URLSearchParams({
@@ -72509,13 +72516,13 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
l && e.set("min_size", String(Math.round(Number(l) * 1024 ** 3))), d && e.set("max_size", String(Math.round(Number(d) * 1024 ** 3))), m(null), v("");
let t = a.trim();
- if (r?.(t), b.current?.abort(), y.run("search", (t) => V(`/api/resources/search?${e}`, t), (e) => {
+ if (r?.(t), b.current?.abort(), y.run("search", (t) => B(`/api/resources/search?${e}`, t), (e) => {
m(e), g(t);
}), i) {
let e = new AbortController();
- b.current = e, V(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
+ b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => q2(e.code, t));
+ let r = (n.items || []).find((e) => K2(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -72523,7 +72530,7 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
release_date: String(r.release_date || ""),
duration: r.duration,
studio: r.studio,
- cover: r.has_cover ? Ha(r, !0) : "",
+ cover: r.has_cover ? Wa(r, !0) : "",
origin: `asset:${r.id}`
} : null);
}, () => {
@@ -72531,23 +72538,23 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
};
- return /* @__PURE__ */ (0, I.jsxs)("section", {
+ return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": "查找资源",
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsxs)(JH, { children: [
+ t ? /* @__PURE__ */ (0, F.jsxs)(qH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ /* @__PURE__ */ (0, F.jsx)(jz, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? POe : Cz,
+ leadingIcon: y.busy ? IOe : Sz,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -72555,9 +72562,9 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), x());
}
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(XH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(TU, {
+ children: [/* @__PURE__ */ (0, F.jsx)(YH, { children: "优先寻找" }), /* @__PURE__ */ (0, F.jsxs)(wU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -72565,59 +72572,59 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(EU, {
+ /* @__PURE__ */ (0, F.jsx)(TU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(EU, {
+ /* @__PURE__ */ (0, F.jsx)(TU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(EU, {
+ /* @__PURE__ */ (0, F.jsx)(TU, {
id: "uncensored",
children: "无码"
})
]
})]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
+ children: [/* @__PURE__ */ (0, F.jsx)(jz, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(Mz, {
+ }), /* @__PURE__ */ (0, F.jsx)(jz, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(JH, {
+ y.busy ? /* @__PURE__ */ (0, F.jsx)(qH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(YH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(JH, {
+ y.error ? /* @__PURE__ */ (0, F.jsx)(JH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, F.jsx)(qH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(JH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, F.jsx)(qH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(JH, { children: e }, e)),
- p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
+ p?.warnings.map((e) => /* @__PURE__ */ (0, F.jsx)(qH, { children: e }, e)),
+ p?.items.length ? /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
- children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
+ children: p.items.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex min-w-0 flex-col gap-2 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, I.jsx)("p", {
+ /* @__PURE__ */ (0, F.jsx)("p", {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, I.jsx)(JH, { children: [
+ /* @__PURE__ */ (0, F.jsx)(qH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -72626,7 +72633,7 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e.uncensored ? "无码" : "",
e.origins.join("、")
].filter(Boolean).join(" · ") }),
- /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)("div", { children: /* @__PURE__ */ (0, F.jsx)(q, {
type: "button",
variant: "secondary",
onClick: () => {
@@ -72642,19 +72649,19 @@ function IOe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var LOe = {
+var zOe = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function J2({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(Nz, {
+function q2({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, F.jsx)(Mz, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(ROe, {
+ children: e ? /* @__PURE__ */ (0, F.jsx)(BOe, {
prefill: e,
close: t,
receipt: n,
@@ -72662,46 +72669,46 @@ function J2({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function ROe({ prefill: e, close: t, receipt: n, provider: r }) {
- let i = Nt({
- queryKey: H2,
- queryFn: ({ signal: e }) => V(`${V2}?limit=50`, e),
- refetchInterval: (e) => U2(e.state.data)
- }), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
+function BOe({ prefill: e, close: t, receipt: n, provider: r }) {
+ let i = Pt({
+ queryKey: V2,
+ queryFn: ({ signal: e }) => B(`${B2}?limit=50`, e),
+ refetchInterval: (e) => H2(e.state.data)
+ }), a = i.data, o = /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(jI, {
+ children: [/* @__PURE__ */ (0, F.jsx)(AI, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: fz,
+ leadingIcon: dz,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(zOe, {
+ return a ? /* @__PURE__ */ (0, F.jsx)(VOe, {
header: o,
snapshot: a,
prefill: e,
close: t,
receipt: n,
provider: r
- }) : /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-h-0 flex-col",
children: [
o,
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: i.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
- children: Hn(i.error)
+ children: Wn(i.error)
}) : null
}),
- /* @__PURE__ */ (0, I.jsx)("div", {
+ /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex justify-end p-3",
- children: /* @__PURE__ */ (0, I.jsx)(q, {
+ children: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: t,
children: "关闭"
@@ -72710,11 +72717,11 @@ function ROe({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = DH(), C = (0, F.useRef)(null), w = (e) => {
+function VOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = oe(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, P.useState)(c?.key || ""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(n.code ?? ""), [h, g] = (0, P.useState)(c?.target || ""), [_, v] = (0, P.useState)(n.code ? n : null), [y, b] = (0, P.useState)(""), x = t.available && s.some((e) => e.key === l), S = EH(), C = (0, P.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
- return /* @__PURE__ */ (0, I.jsxs)("form", {
+ return /* @__PURE__ */ (0, F.jsxs)("form", {
"aria-label": "提交下载",
noValidate: !0,
onSubmit: (e) => {
@@ -72727,38 +72734,38 @@ function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => H(V2, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: H2 });
- let t = LOe[e.outcome];
+ b(""), S.run("submit", (e) => V(B2, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: V2 });
+ let t = zOe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = G2(e.task);
+ let n = W2(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
className: "flex min-h-0 flex-col",
children: [
e,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
children: [
- _?.code || p.trim() ? /* @__PURE__ */ (0, I.jsxs)("div", {
+ _?.code || p.trim() ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-start gap-4",
"data-resource-work": "",
- children: [_?.cover ? /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [_?.cover ? /* @__PURE__ */ (0, F.jsx)("img", {
src: _.cover,
alt: "",
referrerPolicy: "no-referrer",
onError: (e) => e.currentTarget.remove(),
className: "w-card-cover shrink-0 rounded-2lg"
- }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }) : null, /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("p", {
+ children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(JH, { children: [
+ }), _ ? /* @__PURE__ */ (0, F.jsx)(qH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -72766,22 +72773,22 @@ function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IOe, {
+ /* @__PURE__ */ (0, F.jsx)(ROe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- q2(e, _?.code) || (v(q2(e, n.code) ? n : null), f("")), m(e);
+ K2(e, _?.code) || (v(K2(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? q2(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? K2(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : q2(t?.code, n.code) ? t : null),
+ } : e : K2(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ /* @__PURE__ */ (0, F.jsx)(jz, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -72790,41 +72797,41 @@ function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: d,
onChange: f
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(XH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(TU, {
+ /* @__PURE__ */ (0, F.jsx)(YH, { children: "下载到" }),
+ /* @__PURE__ */ (0, F.jsx)(wU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ children: s.map((e) => /* @__PURE__ */ (0, F.jsx)(TU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(tU, {
+ children: /* @__PURE__ */ (0, F.jsx)(eU, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(JH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, F.jsx)(qH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(Fz, {
+ t.available ? null : /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ s.length ? null : /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: "neutral",
- children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
+ children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, F.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Mz, {
+ /* @__PURE__ */ (0, F.jsx)(jz, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -72832,29 +72839,29 @@ function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(Mz, {
+ n.code ? null : /* @__PURE__ */ (0, F.jsx)(jz, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), q2(e, _?.code) || v(null);
+ m(e), K2(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(YH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, F.jsx)(JH, { children: y || S.error }) : null
]
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, I.jsx)(q, {
+ children: [/* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: r,
children: "取消"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
type: "submit",
disabled: !d.trim() || !x,
- ...Bz(S.busy === "submit"),
+ ...zz(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -72863,11 +72870,11 @@ function zOe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}
//#endregion
//#region src/react/publication-cache.ts
-var Y2 = 864e5, X2 = (e) => {
+var J2 = 864e5, Y2 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function Z2(e) {
+function X2(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -72875,26 +72882,26 @@ function Z2(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function BOe(e, t = Date.now()) {
- let n = Z2(e);
- return n !== void 0 && X2(t) > n ? Infinity : Y2;
+function HOe(e, t = Date.now()) {
+ let n = X2(e);
+ return n !== void 0 && Y2(t) > n ? Infinity : J2;
}
-function Q2(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : BOe(t, n) === Infinity ? X2(e) > Z2(t) : n - e < Y2;
+function Z2(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : HOe(t, n) === Infinity ? Y2(e) > X2(t) : n - e < J2;
}
//#endregion
//#region src/react/wants/resource-cache.ts
-var $2 = "peach.want-resources.v2";
-function e4(e) {
+var Q2 = "peach.want-resources.v2";
+function $2(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function t4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !e4(e) ? Date.now() - t < 6e4 : Q2(t, n));
+function e4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !$2(e) ? Date.now() - t < 6e4 : Z2(t, n));
}
-function n4() {
+function t4() {
try {
- let e = JSON.parse(localStorage.getItem($2) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && e4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(Q2) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && $2(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -72903,23 +72910,23 @@ function n4() {
return [];
}
}
-function VOe(e, t) {
- let n = n4().find((t) => t.code === e);
- return n && Q2(n.saved, t) ? n : void 0;
+function UOe(e, t) {
+ let n = t4().find((t) => t.code === e);
+ return n && Z2(n.saved, t) ? n : void 0;
}
-function HOe(e) {
- let t = new Map(n4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function WOe(e) {
+ let t = new Map(t4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && Q2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && Z2(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function UOe(e, t) {
- if (t.state === "ready" && e4(t)) try {
- let n = n4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem($2, JSON.stringify([{
+function GOe(e, t) {
+ if (t.state === "ready" && $2(t)) try {
+ let n = t4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(Q2, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -72928,35 +72935,35 @@ function UOe(e, t) {
}
//#endregion
//#region src/react/wants/resource-display.ts
-function WOe(e) {
+function KOe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
- return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? kn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
+ return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? jn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function GOe(e) {
+function qOe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
//#endregion
//#region src/react/wants/want-magnets.tsx
-function r4({ icon: e, children: t, title: n }) {
- return /* @__PURE__ */ (0, I.jsxs)("span", {
+function n4({ icon: e, children: t, title: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(e, {
+ children: [/* @__PURE__ */ (0, F.jsx)(e, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), t]
});
}
-function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = DH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => VOe(h, e.release_date), [h, e.release_date]);
- (0, F.useEffect)(() => {
+function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
+ let s = (0, P.useRef)(null), [c, l] = (0, P.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, P.useState)([]), f = EH(), p = oe(), m = (0, P.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, P.useMemo)(() => UOe(h, e.release_date), [h, e.release_date]);
+ (0, P.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && (l(!0), e.disconnect());
}, { rootMargin: "100px" });
return e.observe(s.current), () => e.disconnect();
}, [c]);
- let _ = Nt({
+ let _ = Pt({
queryKey: o ? [
"work-resources",
o,
@@ -72967,23 +72974,23 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
e.code
],
queryFn: async ({ signal: t }) => {
- let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await V(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", UOe(h, i), i;
+ let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
+ return m.current = n && i.state === "busy", GOe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => t4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => e4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !t4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !e4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
- }, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Vwe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ }, [_.data?.source_url, a]), (0, P.useEffect)(() => {
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Hwe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -72991,7 +72998,7 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await H(V2, {
+ let n = await V(B2, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -73002,57 +73009,57 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: H2 });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: V2 });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
- }, x = _.isFetching || _.data?.state === "busy", S = _.error ? Hn(_.error) : _.data?.error;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, x = _.isFetching || _.data?.state === "busy", S = _.error ? Wn(_.error) : _.data?.error;
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: s,
"data-want-magnets": "",
className: "flex min-w-0 flex-col gap-3 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)("h4", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("h4", {
className: "text-body-medium text-text-primary",
children: ["资源链接", _.data?.items.length ? ` · ${_.data.items.length}` : ""]
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Sz,
- ...Bz(x),
+ leadingIcon: xz,
+ ...zz(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(zH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ x ? /* @__PURE__ */ (0, F.jsx)(RH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(Fz, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- children: GOe(e)
+ children: qOe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(iI, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, F.jsx)(rI, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: pz,
+ trailingIcon: fz,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ f.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -73060,80 +73067,80 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
_.data?.items.length ? (() => {
let e = _.data.items.map((e) => {
let r = u.includes(e.id) || n?.tasks.some((t) => e.protocol === "magnet" && t.info_hash === e.info_hash && (t.cancellable || t.state === "ingested"));
- return /* @__PURE__ */ (0, I.jsxs)("li", {
+ return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-resource-protocol": e.protocol,
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-resource-main": "",
className: "flex min-w-0 flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(sZ, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sZ, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
- }), /* @__PURE__ */ (0, I.jsx)("p", {
+ }), /* @__PURE__ */ (0, F.jsx)("p", {
"data-resource-title": "",
title: e.name,
className: "min-w-0 flex-1 text-body-2-medium text-text-primary",
children: e.name
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, I.jsx)(r4, {
- icon: tpe,
+ /* @__PURE__ */ (0, F.jsx)(n4, {
+ icon: rpe,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(r4, {
- icon: _z,
+ /* @__PURE__ */ (0, F.jsx)(n4, {
+ icon: gz,
title: `来源大小:${e.size}`,
- children: WOe(e.size)
+ children: KOe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(r4, {
- icon: Kfe,
+ e.files ? /* @__PURE__ */ (0, F.jsx)(n4, {
+ icon: Jfe,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(r4, {
- icon: Mfe,
+ /* @__PURE__ */ (0, F.jsx)(n4, {
+ icon: Pfe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(r4, {
- icon: xz,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, F.jsx)(n4, {
+ icon: bz,
children: e
}, e))
]
})]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(iI, {
+ /* @__PURE__ */ (0, F.jsx)(rI, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: pz,
+ trailingIcon: fz,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "链接来源"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
size: "small",
- leadingIcon: Wfe,
- ...Bz(f.busy === `copy:${e.id}`),
+ leadingIcon: Kfe,
+ ...zz(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
- e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(q, {
+ e.protocol === "magnet" ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
size: "small",
- leadingIcon: v ? eU(v.key) : Rfe,
+ leadingIcon: v ? $H(v.key) : Bfe,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...Bz(f.busy === e.id),
+ ...zz(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -73141,12 +73148,12 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
})]
}, e.id);
});
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(ZH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, F.jsx)(XH, {
summary: `更多资源(${e.length - 3} 条)`,
- children: /* @__PURE__ */ (0, I.jsx)("ul", {
+ children: /* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(3)
})
@@ -73157,10 +73164,10 @@ function i4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}
//#endregion
//#region src/react/jav-detail/review-cache.ts
-var a4 = "peach.jav-reviews.v2";
-function o4() {
+var i4 = "peach.jav-reviews.v2";
+function a4() {
try {
- let e = localStorage.getItem(a4) || "[]";
+ let e = localStorage.getItem(i4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -73168,21 +73175,21 @@ function o4() {
return [];
}
}
-function KOe(e, t) {
+function JOe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...o4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(a4, i);
+ }, ...a4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(i4, i);
} catch {}
}
-function qOe(e, t) {
- let n = o4(), r = [], i = Infinity;
+function YOe(e, t) {
+ let n = a4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !Q2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !Z2(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -73190,56 +73197,56 @@ function qOe(e, t) {
saved: i
} : void 0;
}
-function JOe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && Q2(Date.parse(e.checked_at || "") || t, n));
+function XOe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && Z2(Date.parse(e.checked_at || "") || t, n));
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
-function YOe(e) {
- let t = (0, F.useRef)(!1), n = Nt({
- queryKey: k2(e.code),
+function ZOe(e) {
+ let t = (0, P.useRef)(!1), n = Pt({
+ queryKey: O2(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, A2(e.code, n, r);
+ return t.current = !1, k2(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
t.current = !0, n.refetch();
};
- return /* @__PURE__ */ (0, I.jsx)("div", {
+ return /* @__PURE__ */ (0, F.jsx)("div", {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(XOe, {
+ children: n.data ? /* @__PURE__ */ (0, F.jsx)(QOe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
- }, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, e.code) : /* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(s4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(NW, {
- message: Hn(n.error),
+ children: [/* @__PURE__ */ (0, F.jsx)(o4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, F.jsx)(NW, {
+ message: Wn(n.error),
onRetry: r
}) : null]
})
});
}
-var s4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var o4 = ({ close: e }) => /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
"aria-label": "关闭",
title: "关闭",
onClick: e,
- dangerouslySetInnerHTML: { __html: z("x") }
+ dangerouslySetInnerHTML: { __html: R("x") }
});
-function XOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
- (0, F.useEffect)(() => {
+function QOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+ (0, P.useEffect)(() => {
n.canonicalCode?.(t.code);
- }, [n, t.code]), (0, F.useEffect)(() => {
- t.state === "ready" && U.invalidateQueries({ queryKey: ["jav-discoveries", "external"] });
+ }, [n, t.code]), (0, P.useEffect)(() => {
+ t.state === "ready" && H.invalidateQueries({ queryKey: ["jav-discoveries", "external"] });
}, [t.code, t.state]);
- let [o, s] = (0, F.useState)(-1), c = [
+ let [o, s] = (0, P.useState)(-1), c = [
{
index: -1,
label: "封面"
@@ -73253,39 +73260,39 @@ function XOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = DH(), m = () => {
+ ], [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(t.want_id), p = EH(), m = () => {
p.run("want", async (e) => d ? (await y$([d], e), null) : (await v$({ code: t.code }, e)).want.id, (t) => {
- f(t), U.setQueryData(k2(e), (e) => e && {
+ f(t), H.setQueryData(O2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), b$(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), b$(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-media": "",
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(s4, { close: n.close }),
- t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {
+ /* @__PURE__ */ (0, F.jsx)(o4, { close: n.close }),
+ t.preview_video_url ? /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)($Oe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(pQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, F.jsx)(tke, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, F.jsx)(pQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(m2, {
+ /* @__PURE__ */ (0, F.jsx)(p2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(pQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, F.jsx)(pQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -73293,100 +73300,100 @@ function XOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- /* @__PURE__ */ (0, I.jsx)("aside", {
+ /* @__PURE__ */ (0, F.jsx)("aside", {
"data-stage-side": "",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(ZOe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(u4, { score: Number(t.score) }) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsx)($Oe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(l4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, F.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(l4, {
+ children: [/* @__PURE__ */ (0, F.jsx)(c4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(l4, {
+ }), /* @__PURE__ */ (0, F.jsx)(c4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(QOe, {
+ /* @__PURE__ */ (0, F.jsx)(eke, {
item: t,
navigate: n.navigate
}),
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(l4, {
+ children: [/* @__PURE__ */ (0, F.jsx)(c4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(l4, {
+ }), /* @__PURE__ */ (0, F.jsx)(c4, {
glyph: "clapperboard",
label: "导演",
value: t.director
})]
}),
- (t.tag_refs?.length ?? t.tags.length) > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
+ (t.tag_refs?.length ?? t.tags.length) > 0 ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-tags": "",
"data-jav-tags": "",
children: (t.tag_refs || t.tags.map((e) => ({
name: e,
category: "general",
source_name: e
- }))).map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
+ }))).map((e) => /* @__PURE__ */ (0, F.jsx)("span", {
"data-detail-tag": "",
"data-tag-cat": e.category,
- children: /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-tag": e.name,
- title: Al(e.name),
+ title: Ml(e.name),
onClick: () => n.openTag(e.name),
- children: Al(e.name)
+ children: Ml(e.name)
})
}, e.name))
}) : null,
- t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
+ t.summary ? /* @__PURE__ */ (0, F.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: _F(t.summary),
+ lang: gF(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ t.message ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(a),
+ ...zz(a),
onClick: i,
children: "立即重试"
}),
children: t.message
}) : null,
- /* @__PURE__ */ (0, I.jsxs)("div", {
+ /* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(iI, {
+ t.source_url ? /* @__PURE__ */ (0, F.jsx)(rI, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: pz,
+ trailingIcon: fz,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "作品来源"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...Bz(!!p.busy),
+ ...zz(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
- /* @__PURE__ */ (0, I.jsx)(q, {
+ /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
onClick: () => u({
code: t.code,
@@ -73400,16 +73407,16 @@ function XOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ p.error ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(eke, {
+ /* @__PURE__ */ (0, F.jsx)(nke, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(tke, {
+ /* @__PURE__ */ (0, F.jsx)(rke, {
item: t,
actions: n,
readOnly: r
@@ -73417,31 +73424,31 @@ function XOe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(J2, {
+ /* @__PURE__ */ (0, F.jsx)(q2, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var c4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var s4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("span", {
className: "contents",
"aria-hidden": "true",
- dangerouslySetInnerHTML: { __html: z(e) }
-}), l4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+ dangerouslySetInnerHTML: { __html: R(e) }
+}), c4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: e }), /* @__PURE__ */ (0, F.jsx)("span", { children: n })]
}) : null;
-function ZOe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = D2(e.title), a = e.title === e.code ? "" : e.title;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function $Oe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = E2(e.title), a = e.title === e.code ? "" : e.title;
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-title": "",
- children: [/* @__PURE__ */ (0, I.jsx)("h1", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h1", {
"data-stage-title": "",
"data-title-line": "",
"data-reveal-line": "",
- children: /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: /* @__PURE__ */ (0, F.jsxs)("span", {
ref: t,
"data-detail-title": "",
"data-expanded": n ? "" : void 0,
@@ -73449,14 +73456,14 @@ function ZOe({ item: e }) {
onClick: () => {
r && !String(getSelection() || "") && i();
},
- children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: _F(a),
+ children: [/* @__PURE__ */ (0, F.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
+ lang: gF(a),
children: a
})] }) : null]
})
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-title-tools": "",
- children: /* @__PURE__ */ (0, I.jsx)("button", {
+ children: /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-title-fold": "",
hidden: !r,
@@ -73464,41 +73471,41 @@ function ZOe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(GH, {})
+ children: /* @__PURE__ */ (0, F.jsx)(WH, {})
})
})]
});
}
-function u4({ score: e, review: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function l4({ score: e, review: t = !1 }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(rY, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(rY, { value: e }), /* @__PURE__ */ (0, F.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function QOe({ item: e, navigate: t }) {
- let n = (e, n) => t(pn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
+function eke({ item: e, navigate: t }) {
+ let n = (e, n) => t(hn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, F.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
- children: [/* @__PURE__ */ (0, I.jsx)("h5", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h5", {
"data-id-label": "",
children: r
- }), /* @__PURE__ */ (0, I.jsx)("div", {
+ }), /* @__PURE__ */ (0, F.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(T2, {
+ children: i.map((r) => /* @__PURE__ */ (0, F.jsx)(w2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(mQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, F.jsx)(mQ, {
code: e.code,
person: r,
detail: !0
@@ -73506,16 +73513,16 @@ function QOe({ item: e, navigate: t }) {
}, r.name))
})]
}) : null;
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-item-identity": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-identity-primary": "",
children: [
r("performer", "女优", e.performer_refs.filter((e) => e.gender === "female"), "female"),
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, I.jsx)(E2, {
+ }), /* @__PURE__ */ (0, F.jsx)(T2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -73524,20 +73531,20 @@ function QOe({ item: e, navigate: t }) {
})]
});
}
-function $Oe({ src: e }) {
- let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
- return (0, F.useLayoutEffect)(() => {
+function tke({ src: e }) {
+ let t = (0, P.useRef)(null), [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(0);
+ return (0, P.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), vM(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), bM(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
- }, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
+ }, [e, i]), /* @__PURE__ */ (0, F.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ children: n ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
onClick: () => {
r(!1), a((e) => e + 1);
@@ -73548,8 +73555,8 @@ function $Oe({ src: e }) {
}) : null
});
}
-function eke({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => qOe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Ft({
+function nke({ code: e, count: t, released: n }) {
+ let r = oe(), [i, a] = (0, P.useState)(!1), o = (0, P.useMemo)(() => YOe(e, n), [e, n]), s = (0, P.useRef)(!1), c = It({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -73558,12 +73565,12 @@ function eke({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => JOe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => XOe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await nOe(e, n, t, s.current);
- if (KOe(e, i), !i.ok || i.cache_stale) {
+ let i = await iOe(e, n, t, s.current);
+ if (JOe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -73573,23 +73580,23 @@ function eke({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: rOe
+ getNextPageParam: aOe
});
- (0, F.useEffect)(() => {
+ (0, P.useEffect)(() => {
c.isFetching || (s.current = !1);
}, [c.isFetching]);
- let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? Hn(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
- return /* @__PURE__ */ (0, I.jsx)("section", {
+ let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? Wn(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
+ return /* @__PURE__ */ (0, F.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(ZH, {
+ children: /* @__PURE__ */ (0, F.jsxs)(XH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Nfe, { "aria-hidden": !0 }),
+ summary: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(Ffe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
onOpenChange: a,
- children: [i && c.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [i && c.isPending ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "reviews",
role: "status",
"aria-label": "正在读取评论",
@@ -73598,77 +73605,77 @@ function eke({ code: e, count: t, released: n }) {
0,
1,
2
- ].map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
+ ].map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-review-skeleton": "",
"aria-hidden": "true",
className: "flex flex-col gap-3 py-2",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)("span", { className: "relative block h-4 w-20 rounded-md skeleton-sheen" }), /* @__PURE__ */ (0, I.jsx)("span", { className: "relative block h-3 w-24 rounded-md skeleton-sheen" })]
- }), /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { className: "relative block h-4 w-20 rounded-md skeleton-sheen" }), /* @__PURE__ */ (0, F.jsx)("span", { className: "relative block h-3 w-24 rounded-md skeleton-sheen" })]
+ }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { className: "relative block h-3 w-full rounded-md skeleton-sheen" }),
- /* @__PURE__ */ (0, I.jsx)("span", { className: "relative block h-3 w-full rounded-md skeleton-sheen" }),
- /* @__PURE__ */ (0, I.jsx)("span", { className: "relative block h-3 w-3/4 rounded-md skeleton-sheen" })
+ /* @__PURE__ */ (0, F.jsx)("span", { className: "relative block h-3 w-full rounded-md skeleton-sheen" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { className: "relative block h-3 w-full rounded-md skeleton-sheen" }),
+ /* @__PURE__ */ (0, F.jsx)("span", { className: "relative block h-3 w-3/4 rounded-md skeleton-sheen" })
]
})]
}, e))
- }) : null, i || c.data ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u.map((e) => /* @__PURE__ */ (0, I.jsxs)("article", {
+ }) : null, i || c.data ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ u.map((e) => /* @__PURE__ */ (0, F.jsxs)("article", {
"data-jav-review": "",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
"data-jav-review-meta": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(u4, {
+ /* @__PURE__ */ (0, F.jsx)("b", { children: e.username }),
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, F.jsx)(l4, {
score: Number(e.score),
review: !0
}) : null,
- /* @__PURE__ */ (0, I.jsx)("time", {
+ /* @__PURE__ */ (0, F.jsx)("time", {
dateTime: e.created_at,
title: e.created_at,
children: e.created_at.slice(0, 10)
})
]
- }), /* @__PURE__ */ (0, I.jsx)("p", {
+ }), /* @__PURE__ */ (0, F.jsx)("p", {
"data-long-text": "",
- lang: _F(e.content),
+ lang: gF(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ d ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(q, {
+ action: /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(c.isFetching),
+ ...zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(Fz, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, F.jsx)(Pz, {
tone: "neutral",
children: "暂无评论"
}) : null,
- !d && l.length ? /* @__PURE__ */ (0, I.jsx)(q, {
+ !d && l.length ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(c.isFetching),
+ ...zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "刷新评论"
}) : null,
- c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(q, {
+ c.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(q, {
variant: "secondary",
- ...Bz(c.isFetchingNextPage),
+ ...zz(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, F.jsxs)(Pz, {
tone: "neutral",
children: [
"已显示 ",
@@ -73680,21 +73687,21 @@ function eke({ code: e, count: t, released: n }) {
})
});
}
-function tke({ item: e, actions: t, readOnly: n }) {
- let [r, i] = (0, F.useState)(!1), a = Nt({
- queryKey: H2,
+function rke({ item: e, actions: t, readOnly: n }) {
+ let [r, i] = (0, P.useState)(!1), a = Pt({
+ queryKey: V2,
enabled: r,
- queryFn: ({ signal: e }) => V(`${V2}?limit=50`, e)
- }), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
- return /* @__PURE__ */ (0, I.jsx)("section", {
+ queryFn: ({ signal: e }) => B(`${B2}?limit=50`, e)
+ }), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, P.useState)(!1);
+ return /* @__PURE__ */ (0, F.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)(ZH, {
+ children: /* @__PURE__ */ (0, F.jsx)(XH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(s4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(i4, {
+ children: s ? /* @__PURE__ */ (0, F.jsx)(r4, {
want: {
id: 0,
code: e.code,
@@ -73712,31 +73719,31 @@ function tke({ item: e, actions: t, readOnly: n }) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var d4 = null, f4 = null, p4 = null, m4 = null, h4 = null, g4 = !1, _4 = 0, v4 = null, y4 = () => !1, b4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function nke(e, t) {
- d4 = e, y4 = () => t.isOpen(), v4 = () => t.requestClose(), rse({
+var u4 = null, d4 = null, f4 = null, p4 = null, m4 = null, h4 = !1, g4 = 0, _4 = null, v4 = () => !1, y4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function ike(e, t) {
+ u4 = e, v4 = () => t.isOpen(), _4 = () => t.requestClose(), $A({
...e.player,
stage: () => document.getElementById("stage")
- }), ej({
- inMiniplayer: (e) => f4?.player === e,
- kind: (e) => f4?.player === e ? f4.kind : p4?.kind ?? m4?.kind ?? "item",
- expand: () => B4(),
- toMiniplayer: () => V4()
- }), x4 || (x4 = !0, addEventListener("pagehide", () => iM()));
-}
-var x4 = !1;
-function S4() {
- if (!d4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return d4;
-}
-function C4(e) {
- m4 = e;
-}
-var rke = () => m4;
-function w4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = b4(n, r.id, i?.index ?? null);
- if (f4 && f4.key === a) return ake(e, f4);
- f4 && z4();
+ }), nj({
+ inMiniplayer: (e) => d4?.player === e,
+ kind: (e) => d4?.player === e ? d4.kind : f4?.kind ?? p4?.kind ?? "item",
+ expand: () => z4(),
+ toMiniplayer: () => B4()
+ }), b4 || (b4 = !0, addEventListener("pagehide", () => aM()));
+}
+var b4 = !1;
+function x4() {
+ if (!u4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return u4;
+}
+function S4(e) {
+ p4 = e;
+}
+var ake = () => p4;
+function C4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = y4(n, r.id, i?.index ?? null);
+ if (d4 && d4.key === a) return ske(e, d4);
+ d4 && R4();
let o = {
player: null,
kind: n,
@@ -73744,52 +73751,52 @@ function w4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- p4 = o;
+ f4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = hM(s, {
+ let c = _M(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- p4 === o && (o.player = e);
+ f4 === o && (o.player = e);
},
- handedOff: (e) => f4?.player === e
+ handedOff: (e) => d4?.player === e
});
return () => {
- let e = !!o.player && f4?.player === o.player;
- p4 === o && (p4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), iM());
+ let e = !!o.player && d4?.player === o.player;
+ f4 === o && (f4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), aM());
};
}
-async function ike(e, t, n) {
- let r = await rn(`/api/item?id=${e.id}`, { signal: n });
+async function oke(e, t, n) {
+ let r = await on(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await S4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(S4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await x4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(x4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- C4(a);
- let o = w4(t, {
+ S4(a);
+ let o = C4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && m4 === a && E4(!0), o(), m4 === a && C4(null));
+ s || (s = !0, e && p4 === a && T4(!0), o(), p4 === a && S4(null));
};
}
-function ake(e, t) {
+function ske(e, t) {
let { player: n } = t;
- L4(t), f4 = null, R4(), n.el().classList.remove("vjs-peach-mini"), pM(e), e.append(n.el()), cj(n);
+ I4(t), d4 = null, L4(), n.el().classList.remove("vjs-peach-mini"), hM(e), e.append(n.el()), lj(n);
let r = {
player: n,
kind: t.kind,
@@ -73797,23 +73804,23 @@ function ake(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- p4 = r;
- let i = mM(n, e);
- return lj(n), () => {
- p4 === r && (p4 = null), i(), f4?.player !== n && (sj() === n && cj(null), Yj(n), iM());
+ f4 = r;
+ let i = gM(n, e);
+ return uj(n), () => {
+ f4 === r && (f4 = null), i(), d4?.player !== n && (cj() === n && lj(null), Xj(n), aM());
};
}
-var T4 = () => {
- let e = p4?.player;
+var w4 = () => {
+ let e = f4?.player;
return e && !e.isDisposed() ? e : null;
};
-function E4(e) {
- let t = g4;
- g4 = !1, f4?.pending && z4();
- let n = p4, r = n?.player, i = m4;
- if (!n || !r || r.isDisposed() || !i || !h4) return;
- let a = S4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && lke({
+function T4(e) {
+ let t = h4;
+ h4 = !1, d4?.pending && R4();
+ let n = f4, r = n?.player, i = p4;
+ if (!n || !r || r.isDisposed() || !i || !m4) return;
+ let a = x4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && dke({
player: r,
kind: n.kind,
item: n.item,
@@ -73821,46 +73828,46 @@ function E4(e) {
key: n.key
}, i);
}
-function D4(e, t) {
- g4 = !1, f4 && (f4.kind === e && f4.item.id === t ? (f4.pending = !0, R4()) : z4());
+function E4(e, t) {
+ h4 = !1, d4 && (d4.kind === e && d4.item.id === t ? (d4.pending = !0, L4()) : R4());
}
-function O4(e) {
- h4 = e, h4 && F4();
+function D4(e) {
+ m4 = e, m4 && P4();
}
-var k4 = () => !!f4 && !f4.pending && !f4.player.isDisposed();
-function oke() {
- return k4() ? h4?.frame.querySelector("video") ?? null : null;
+var O4 = () => !!d4 && !d4.pending && !d4.player.isDisposed();
+function cke() {
+ return O4() ? m4?.frame.querySelector("video") ?? null : null;
}
-function ske() {
- return y4() ? document.getElementById("stage")?.querySelector("video") ?? null : T4()?.el().querySelector("video") ?? oke();
+function lke() {
+ return v4() ? document.getElementById("stage")?.querySelector("video") ?? null : w4()?.el().querySelector("video") ?? cke();
}
-function A4(e) {
- h4 && (h4.title.textContent = e.title || "", h4.sub.textContent = e.sub || "", h4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function k4(e) {
+ m4 && (m4.title.textContent = e.title || "", m4.sub.textContent = e.sub || "", m4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function j4(e = f4?.item) {
- if (!h4) return;
- let t = h4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- h4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function A4(e = d4?.item) {
+ if (!m4) return;
+ let t = m4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ m4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function M4() {
- let e = f4?.player;
- if (!e || e.isDisposed() || !h4) return;
+function j4() {
+ let e = d4?.player;
+ if (!e || e.isDisposed() || !m4) return;
let t = e.paused();
- h4.play.setAttribute("aria-label", t ? "播放" : "暂停"), h4.play.querySelector("[data-icon-swap]") || (h4.play.innerHTML = ws("player-pause", "player-play", t ? "b" : "a")), Ts(h4.play, t ? "b" : "a");
-}
-function N4() {
- let e = f4?.player;
- if (!e || e.isDisposed() || !h4) return;
- let t = En(f4?.item.duration) || En(e.duration());
- h4.time.textContent = `${On(e.currentTime())} / ${t ? On(t) : "0:00"}`;
-}
-var P4 = () => Math.max(1, Number(S4().player.settings().seekSeconds) || 10);
-function F4() {
- if (!h4 || !d4) return;
- let e = P4();
- for (let [t, n] of [[h4.back, `后退 ${e} 秒`], [h4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+ m4.play.setAttribute("aria-label", t ? "播放" : "暂停"), m4.play.querySelector("[data-icon-swap]") || (m4.play.innerHTML = Es("player-pause", "player-play", t ? "b" : "a")), Ds(m4.play, t ? "b" : "a");
}
-function I4(e) {
+function M4() {
+ let e = d4?.player;
+ if (!e || e.isDisposed() || !m4) return;
+ let t = On(d4?.item.duration) || On(e.duration());
+ m4.time.textContent = `${An(e.currentTime())} / ${t ? An(t) : "0:00"}`;
+}
+var N4 = () => Math.max(1, Number(x4().player.settings().seekSeconds) || 10);
+function P4() {
+ if (!m4 || !u4) return;
+ let e = N4();
+ for (let [t, n] of [[m4.back, `后退 ${e} 秒`], [m4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function F4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -73872,17 +73879,17 @@ function I4(e) {
"play",
"pause",
"ended"
- ], M4), t([
+ ], j4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], N4), t("loadedmetadata", () => j4()), M4(), N4(), j4(), F4();
+ ], M4), t("loadedmetadata", () => A4()), j4(), M4(), A4(), P4();
}
-function L4(e) {
+function I4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function cke() {
- let e = h4?.root;
+function uke() {
+ let e = m4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -73890,8 +73897,8 @@ function cke() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function R4() {
- let e = h4?.root;
+function L4() {
+ let e = m4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -73902,73 +73909,73 @@ function R4() {
e.style.transform = "";
}
}
-function lke(e, t) {
- if (!h4) return;
+function dke(e, t) {
+ if (!m4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- f4 = n, _4++, e.player.el().classList.add("vjs-peach-mini"), h4.frame.prepend(e.player.el()), A4(t), I4(n), cke(), lj(e.player);
+ d4 = n, g4++, e.player.el().classList.add("vjs-peach-mini"), m4.frame.prepend(e.player.el()), k4(t), F4(n), uke(), uj(e.player);
}
-function z4() {
- let e = f4;
- e && L4(e), f4 = null, _4++;
+function R4() {
+ let e = d4;
+ e && I4(e), d4 = null, g4++;
let t = e?.player ?? null;
- t && sj() === t && cj(null), Yj(t), t && iM(), h4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), ij(), R4();
+ t && cj() === t && lj(null), Xj(t), t && aM(), m4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), oj(), L4();
}
-function B4() {
- if (!k4() || !f4) return;
- let { kind: e, item: t, mediaIndex: n } = f4;
- S4().expand(e, t.id, n);
+function z4() {
+ if (!O4() || !d4) return;
+ let { kind: e, item: t, mediaIndex: n } = d4;
+ x4().expand(e, t.id, n);
}
-function V4() {
- k4() && !y4() ? B4() : y4() && T4() && v4 && (g4 = !0, v4());
+function B4() {
+ O4() && !v4() ? z4() : v4() && w4() && _4 && (h4 = !0, _4());
}
-function uke() {
- let e = f4?.player;
+function fke() {
+ let e = d4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function H4(e) {
- let t = f4?.player;
+function V4(e) {
+ let t = d4?.player;
if (!t || t.isDisposed()) return;
- let n = En(t.duration()) || En(f4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + P4() * e);
+ let n = On(t.duration()) || On(d4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + N4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function U4(e) {
- return !(!k4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || S4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function dke(e) {
- if (!k4() || !f4 || !h4) return;
- let t = ++_4, n = await rn(`/api/item?id=${e}`).catch(() => null);
- if (t !== _4 || !k4() || !f4 || !h4 || !n || n.error) return;
- if (!U4(n)) {
- S4().openItem(e);
+function H4(e) {
+ return !(!O4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || x4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function pke(e) {
+ if (!O4() || !d4 || !m4) return;
+ let t = ++g4, n = await on(`/api/item?id=${e}`).catch(() => null);
+ if (t !== g4 || !O4() || !d4 || !m4 || !n || n.error) return;
+ if (!H4(n)) {
+ x4().openItem(e);
return;
}
- let r = f4;
- L4(r), sj() === r.player && cj(null), Yj(r.player), iM(), h4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = d4;
+ I4(r), cj() === r.player && lj(null), Xj(r.player), aM(), m4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", h4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", m4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- A4(a), hM(i, {
+ k4(a), _M(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== _4) {
- r && sj() === r && cj(null), Yj(r);
+ if (t !== g4) {
+ r && cj() === r && lj(null), Xj(r);
return;
}
if (!r) {
- z4(), S4().openItem(e);
+ R4(), x4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -73977,26 +73984,26 @@ async function dke(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: b4("item", n.id, null),
+ key: y4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- f4 = i, I4(i);
+ d4 = i, F4(i);
}
- }), j4(n);
+ }), A4(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var W4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var U4 = ({ name: e }) => /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), fke = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, G4 = (e) => (t) => {
+ children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
+}), mke = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, W4 = (e) => (t) => {
t.stopPropagation(), e();
-}, pke = (0, F.memo)(function() {
- let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
- return (0, F.useLayoutEffect)(() => (O4({
+}, hke = (0, P.memo)(function() {
+ let e = (0, P.useRef)(null), t = (0, P.useRef)(null), n = (0, P.useRef)(null), r = (0, P.useRef)(null), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)(null), c = (0, P.useRef)(null), l = (0, P.useRef)(null);
+ return (0, P.useLayoutEffect)(() => (D4({
root: e.current,
frame: n.current,
play: r.current,
@@ -74006,68 +74013,68 @@ var W4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => O4(null)), []), (0, F.useEffect)(() => hke(e.current, t.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => D4(null)), []), (0, P.useEffect)(() => _ke(e.current, t.current), []), /* @__PURE__ */ (0, F.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
"data-corner": "br",
"aria-label": "小窗播放",
hidden: !0,
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
ref: t,
"data-miniplayer-card": "",
id: "miniplayerCard",
- children: [/* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: n,
"data-miniplayer-frame": "",
id: "miniplayerFrame",
- children: /* @__PURE__ */ (0, I.jsxs)("div", {
+ children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-miniplayer-scrim": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-miniplayer-button": "expand",
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: G4(B4),
- children: /* @__PURE__ */ (0, I.jsx)(W4, { name: "maximize-2" })
+ onClick: W4(z4),
+ children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "maximize-2" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: G4(z4),
- children: /* @__PURE__ */ (0, I.jsx)(W4, { name: "x" })
+ onClick: W4(R4),
+ children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "x" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: G4(() => H4(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(W4, { name: "rotate-ccw" })
+ onClick: W4(() => V4(-1)),
+ children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "rotate-ccw" })
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: r,
type: "button",
"data-miniplayer-play": "",
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: G4(uke),
- dangerouslySetInnerHTML: fke
+ onClick: W4(fke),
+ dangerouslySetInnerHTML: mke
}),
- /* @__PURE__ */ (0, I.jsx)("button", {
+ /* @__PURE__ */ (0, F.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: G4(() => H4(1)),
- children: /* @__PURE__ */ (0, I.jsx)(W4, { name: "rotate-cw" })
+ onClick: W4(() => V4(1)),
+ children: /* @__PURE__ */ (0, F.jsx)(U4, { name: "rotate-cw" })
}),
- /* @__PURE__ */ (0, I.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)("span", {
ref: i,
className: "mono",
"data-miniplayer-time": "",
@@ -74076,18 +74083,18 @@ var W4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
]
})
- }), /* @__PURE__ */ (0, I.jsxs)("button", {
+ }), /* @__PURE__ */ (0, F.jsxs)("button", {
ref: l,
type: "button",
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => B4(),
- children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ onClick: () => z4(),
+ children: [/* @__PURE__ */ (0, F.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
id: "miniplayerTitle"
- }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }), /* @__PURE__ */ (0, F.jsx)("span", {
ref: c,
"data-miniplayer-sub": "",
id: "miniplayerSub"
@@ -74096,7 +74103,7 @@ var W4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function mke(e, t, n) {
+function gke(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -74118,7 +74125,7 @@ function mke(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function hke(e, t) {
+function _ke(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -74144,7 +74151,7 @@ function hke(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), mke(e, i.dx, i.dy));
+ }, 0), gke(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -74156,77 +74163,77 @@ function hke(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var K4 = null, q4 = null, J4 = null, Y4 = /* @__PURE__ */ new Set(), X4 = 0, Z4 = null, Q4 = !1, $4 = !1, e3 = () => {
+var G4 = null, K4 = null, q4 = null, J4 = /* @__PURE__ */ new Set(), Y4 = 0, X4 = null, Z4 = !1, Q4 = !1, $4 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function t3() {
- if (!K4) throw Error("舞台还没有接上宿主(configureStage)");
- return K4;
+function e3() {
+ if (!G4) throw Error("舞台还没有接上宿主(configureStage)");
+ return G4;
}
-function gke(e) {
- return Y4.add(e), () => {
- Y4.delete(e);
+function vke(e) {
+ return J4.add(e), () => {
+ J4.delete(e);
};
}
-function _ke() {
- for (let e of [...Y4]) e();
+function yke() {
+ for (let e of [...J4]) e();
}
-function n3() {
- (0, It.flushSync)(_ke);
+function t3() {
+ (0, Lt.flushSync)(yke);
}
-function vke({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(yke, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(pke, {})] });
+function bke({ view: e }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [e ? /* @__PURE__ */ (0, F.jsx)(xke, { view: e }, e.generation) : null, /* @__PURE__ */ (0, F.jsx)(hke, {})] });
}
-var r3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var n3 = () => /* @__PURE__ */ (0, F.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: _De() }
+ dangerouslySetInnerHTML: { __html: yDe() }
});
-function i3(e) {
+function r3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function yke({ view: e }) {
- let t = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => {
+function xke({ view: e }) {
+ let t = (0, P.useRef)(null);
+ (0, P.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), a3());
+ t.target === e && (t.preventDefault(), i3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(dOe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(YOe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(KDe, { ...r.props }, r.props.id);
- return /* @__PURE__ */ (0, I.jsxs)("dialog", {
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, F.jsx)(pOe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, F.jsx)(ZOe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, F.jsx)(JDe, { ...r.props }, r.props.id);
+ return /* @__PURE__ */ (0, F.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), a3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), i3());
},
onPointerDown: (e) => {
- $4 = i3(e);
+ Q4 = r3(e);
},
onClick: (e) => {
- $4 && i3(e) && a3();
+ Q4 && r3(e) && i3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(r3, {}, "skeleton") : null,
- n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
+ n === "skeleton" ? /* @__PURE__ */ (0, F.jsx)(n3, {}, "skeleton") : null,
+ n === "reveal" ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(r3, {})
+ children: /* @__PURE__ */ (0, F.jsx)(n3, {})
}, "fade") : null,
- n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
+ n === "skeleton" ? null : /* @__PURE__ */ (0, F.jsx)("div", {
"data-stage-scroll": "",
- children: /* @__PURE__ */ (0, I.jsx)("div", {
+ children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(MT, {
- getContainer: () => Z0(t.current),
+ children: /* @__PURE__ */ (0, F.jsx)(jT, {
+ getContainer: () => X0(t.current),
children: i
})
})
@@ -74234,14 +74241,14 @@ function yke({ view: e }) {
]
});
}
-function a3() {
- q4 && !Q4 && (Q4 = !0, q4.request.actions.close());
+function i3() {
+ K4 && !Z4 && (Z4 = !0, K4.request.actions.close());
}
-function o3(e, t) {
- let n = e3();
+function a3(e, t) {
+ let n = $4();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function s3(e) {
+function o3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -74249,30 +74256,30 @@ function s3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: a3
+ close: i3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => t3().player.settings(), i = () => q4?.request === e;
+ }, r = () => e3().player.settings(), i = () => K4?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: a3,
+ close: i3,
present: (e, t) => {
let n = e.performers;
- C4({
+ S4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), o3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), a3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => w4(e, {
+ mountPlayer: (e, t, r, i) => C4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -74290,18 +74297,18 @@ function s3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: a3,
+ close: i3,
present: (e, t) => {
- C4({
+ S4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), o3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), a3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => w4(e, {
+ mountPlayer: (e, t, r, i) => C4(e, {
kind: "follow",
item: t,
media: r,
@@ -74318,106 +74325,106 @@ function s3(e) {
}
};
}
-function bke(e, t) {
+function Ske(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), q4?.generation === t && q4.phase === "reveal" && (q4 = {
- ...q4,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), K4?.generation === t && K4.phase === "reveal" && (K4 = {
+ ...K4,
phase: "content"
- }, n3());
+ }, t3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function c3(e) {
- let t = e3();
- return !q4 || q4.content.kind !== e || Q4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function s3(e) {
+ let t = $4();
+ return !K4 || K4.content.kind !== e || Z4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function xke(e) {
- !J4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (J4 = {
+async function Cke(e) {
+ !q4 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (q4 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = c3(e.kind);
+ let t = s3(e.kind);
if (t) {
- await Cke(e, t);
+ await Tke(e, t);
return;
}
- q4 && l3({ miniplayer: !1 });
- let n = ++X4, r = new AbortController();
- Z4 = r, Q4 = !1, $4 = !1, e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN);
- let i = s3(e);
- q4 = {
+ K4 && c3({ miniplayer: !1 });
+ let n = ++Y4, r = new AbortController();
+ X4 = r, Z4 = !1, Q4 = !1, e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN);
+ let i = o3(e);
+ K4 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? lN(i.props, r.signal) : i.kind === "jav" ? j2(i.props, r.signal) : n2(i.props, r.signal);
- if (n !== X4 || q4?.request !== e) {
+ let a = i.kind === "item" ? cN(i.props, r.signal) : i.kind === "jav" ? A2(i.props, r.signal) : t2(i.props, r.signal);
+ if (n !== Y4 || K4?.request !== e) {
await a.catch(() => {});
return;
}
- let o = Ske(i);
- q4 = {
- ...q4,
+ let o = wke(i);
+ K4 = {
+ ...K4,
phase: o ? "content" : "skeleton"
- }, n3();
- let s = e3();
+ }, t3();
+ let s = $4();
if (!s) {
await a.catch(() => {});
return;
}
- o || Us(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), Q0(s);
+ o || Gs(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), Z0(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !q4 || o) return;
+ if (n !== Y4 || !K4 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- q4 = {
- ...q4,
+ K4 = {
+ ...K4,
phase: c ? "content" : "reveal"
- }, n3(), c || bke(s, n), js(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), c || Ske(s, n), Ns(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
(l === s || !s.contains(l)) && s.querySelector("#closeStage")?.focus();
}
-function Ske(e) {
- if (e.kind === "jav") return !!U.getQueryData(k2(e.props.code));
- if (e.kind === "follow") return !!U.getQueryData($0(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(YM(t)) : null;
+function wke(e) {
+ if (e.kind === "jav") return !!H.getQueryData(O2(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(Q0(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(JM(t)) : null;
if (t && !r) return !1;
- let i = r ? sN(r, n) : n;
- return i != null && !!U.getQueryData(JM(i));
+ let i = r ? oN(r, n) : n;
+ return i != null && !!H.getQueryData(qM(i));
}
-async function Cke(e, t) {
- let n = ++X4;
- Z4?.abort();
+async function Tke(e, t) {
+ let n = ++Y4;
+ X4?.abort();
let r = new AbortController();
- Z4 = r, $4 = !1;
- let i = s3(e);
+ X4 = r, Q4 = !1;
+ let i = o3(e);
try {
- i.kind === "item" ? await lN(i.props, r.signal) : i.kind === "jav" ? await j2(i.props, r.signal) : await n2(i.props, r.signal);
+ i.kind === "item" ? await cN(i.props, r.signal) : i.kind === "jav" ? await A2(i.props, r.signal) : await t2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== X4 || !q4 || c3(e.kind) !== t) return;
- e.kind === "jav" ? z4() : D4(e.kind, e.id ?? NaN), El(t), ij(), q4 = {
- ...q4,
+ if (n !== Y4 || !K4 || s3(e.kind) !== t) return;
+ e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN), Ol(t), oj(), K4 = {
+ ...K4,
request: e,
content: i,
phase: "content"
- }, n3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), js(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, t3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Ns(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function wke() {
- Q0(null);
- let e = e3();
+function Eke() {
+ Z0(null);
+ let e = $4();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -74427,14 +74434,14 @@ function wke() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function l3({ miniplayer: e = !0 } = {}) {
- if (X4++, Z4?.abort(), Z4 = null, E4(e), !q4) return;
- let t = e3();
- t && El(t), ij(), Q0(null), t?.open && t.close(), q4 = null, Q4 = !1, $4 = !1, n3(), C4(null), document.body.removeAttribute("data-detail-open");
- let n = J4;
- J4 = null;
+function c3({ miniplayer: e = !0 } = {}) {
+ if (Y4++, X4?.abort(), X4 = null, T4(e), !K4) return;
+ let t = $4();
+ t && Ol(t), oj(), Z0(null), t?.open && t.close(), K4 = null, Z4 = !1, Q4 = !1, t3(), S4(null), document.body.removeAttribute("data-detail-open");
+ let n = q4;
+ q4 = null;
let r = () => {
- !q4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !K4 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -74442,80 +74449,80 @@ function l3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function Tke(e) {
- q4 && (q4 = {
- ...q4,
- content: q4.content.kind === "item" ? {
+function Dke(e) {
+ K4 && (K4 = {
+ ...K4,
+ content: K4.content.kind === "item" ? {
kind: "item",
props: {
- ...q4.content.props,
+ ...K4.content.props,
...e
}
- } : q4.content.kind === "jav" ? q4.content : {
+ } : K4.content.kind === "jav" ? K4.content : {
kind: "follow",
props: {
- ...q4.content.props,
+ ...K4.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, n3());
+ }, t3());
}
-function Eke() {
- let e = rke(), t = e?.kind === "item" ? e.item : null, n = t ? so(t, t3().player.settings().javImage) : "";
+function Oke() {
+ let e = ake(), t = e?.kind === "item" ? e.item : null, n = t ? lo(t, e3().player.settings().javImage) : "";
if (!n) return;
- let r = T4();
+ let r = w4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var Dke = {
- open: xke,
- update: Tke,
- exit: wke,
- dispose: l3,
- requestClose: a3,
- repaintPoster: Eke,
- isOpen: () => !!q4,
- showing: () => q4 && c3(q4.content.kind) ? q4.content.kind : null,
- activeVideo: () => ske(),
- mountWallPlayer: ike,
+var kke = {
+ open: Cke,
+ update: Dke,
+ exit: Eke,
+ dispose: c3,
+ requestClose: i3,
+ repaintPoster: Oke,
+ isOpen: () => !!K4,
+ showing: () => K4 && s3(K4.content.kind) ? K4.content.kind : null,
+ activeVideo: () => lke(),
+ mountWallPlayer: oke,
toggleTheater: () => {
- q4 && Ij(!t3().player.settings().theaterMode);
+ K4 && Lj(!e3().player.settings().theaterMode);
},
- toggleMiniplayer: () => V4(),
- closeMiniplayer: () => z4(),
- miniplayerActive: () => k4(),
- miniplayerTakesCard: (e) => U4(e),
+ toggleMiniplayer: () => B4(),
+ closeMiniplayer: () => R4(),
+ miniplayerActive: () => O4(),
+ miniplayerTakesCard: (e) => H4(e),
miniplayerPlay: (e) => {
- dke(e);
+ pke(e);
}
};
-function Oke(e) {
- return K4 = e, nke(e, {
- isOpen: () => !!q4,
- requestClose: a3
- }), Dke;
+function Ake(e) {
+ return G4 = e, ike(e, {
+ isOpen: () => !!K4,
+ requestClose: i3
+ }), kke;
}
-function kke() {
- let e = (0, F.useSyncExternalStore)(gke, () => q4);
- return K4 ? /* @__PURE__ */ (0, I.jsx)(vke, { view: e }) : null;
+function jke() {
+ let e = (0, P.useSyncExternalStore)(vke, () => K4);
+ return G4 ? /* @__PURE__ */ (0, F.jsx)(bke, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var Ake = "/api/stats", u3 = ["stats"], d3 = (e) => V(Ake, e);
-async function jke(e) {
- await U.fetchQuery({
- queryKey: u3,
- queryFn: () => d3(e)
- });
-}
-var f3 = (e) => e != null && Number.isFinite(e), Mke = (e) => f3(e) ? e.toLocaleString() : "未取得", Nke = (e, t) => f3(e) && f3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, Pke = (e, t) => {
- let n = Nke(e, t);
- return !n && f3(e) && e > 0 && f3(t) && t > 0 ? "<1%" : `${n}%`;
-}, p3 = (e) => {
- if (!f3(e)) return "未取得";
+var Mke = "/api/stats", l3 = ["stats"], u3 = (e) => B(Mke, e);
+async function Nke(e) {
+ await H.fetchQuery({
+ queryKey: l3,
+ queryFn: () => u3(e)
+ });
+}
+var d3 = (e) => e != null && Number.isFinite(e), Pke = (e) => d3(e) ? e.toLocaleString() : "未取得", Fke = (e, t) => d3(e) && d3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, Ike = (e, t) => {
+ let n = Fke(e, t);
+ return !n && d3(e) && e > 0 && d3(t) && t > 0 ? "<1%" : `${n}%`;
+}, f3 = (e) => {
+ if (!d3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, m3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, h3 = (e) => (e.max_reached || 0) * 100, Fke = (e) => e.kind === "online" ? "在线直接观看" : m3(e) < h3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Ike = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function Lke(e, t = 6) {
+}, p3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, m3 = (e) => (e.max_reached || 0) * 100, Lke = (e) => e.kind === "online" ? "在线直接观看" : p3(e) < m3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Rke = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function zke(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -74525,7 +74532,7 @@ function Lke(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var Rke = (e) => Math.max(1, ...e) * 1.1, zke = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, Bke = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Vke = {
+var Bke = (e) => Math.max(1, ...e) * 1.1, Vke = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, Hke = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Uke = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -74533,18 +74540,18 @@ var Rke = (e) => Math.max(1, ...e) * 1.1, zke = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, Hke = (e) => e.map((e) => ({
- name: Vke[e.k] ?? e.k,
+}, Wke = (e) => e.map((e) => ({
+ name: Uke[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), Uke = {
+})).sort((e, t) => t.value - e.value), Gke = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, g3 = (e, t = {}) => e.map((e) => ({
+}, h3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), Wke = (e) => g3(e, Uke), Gke = [
+})), Kke = (e) => h3(e, Gke), qke = [
[
1,
1,
@@ -74580,13 +74587,13 @@ var Rke = (e) => Math.max(1, ...e) * 1.1, zke = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], Kke = (e) => Gke.map(([t, n, r]) => ({
+], Jke = (e) => qke.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
//#endregion
//#region node_modules/d3-array/src/max.js
-function _3(e, t) {
+function g3(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 {
@@ -74597,7 +74604,7 @@ function _3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function v3(e, t) {
+function _3(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 {
@@ -74608,7 +74615,7 @@ function v3(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function y3(e, t) {
+function v3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -74619,66 +74626,66 @@ function y3(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function qke(e, t) {
+function Yke(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function b3(e) {
+function y3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function b3(e, t) {
+ return S3(e.source, t.source) || e.index - t.index;
+}
function x3(e, t) {
- return C3(e.source, t.source) || e.index - t.index;
+ return S3(e.target, t.target) || e.index - t.index;
}
function S3(e, t) {
- return C3(e.target, t.target) || e.index - t.index;
-}
-function C3(e, t) {
return e.y0 - t.y0;
}
-function w3(e) {
+function C3(e) {
return e.value;
}
-function Jke(e) {
+function Xke(e) {
return e.index;
}
-function Yke(e) {
+function Zke(e) {
return e.nodes;
}
-function Xke(e) {
+function Qke(e) {
return e.links;
}
-function T3(e, t) {
+function w3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function E3({ nodes: e }) {
+function T3({ 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 Zke() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = Jke, c = qke, l, u, d = Yke, f = Xke, p = 6;
+function $ke() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = Xke, c = Yke, l, u, d = Zke, f = Qke, 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), E3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), T3(e), e;
}
m.update = function(e) {
- return E3(e), e;
+ return T3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : b3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : y3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : b3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : y3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -74686,9 +74693,9 @@ function Zke() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : b3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : y3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : b3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : y3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -74704,12 +74711,12 @@ function Zke() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = T3(n, t)), typeof i != "object" && (i = r.target = T3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = w3(n, t)), typeof i != "object" && (i = r.target = w3(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(y3(t.sourceLinks, w3), y3(t.targetLinks, w3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(v3(t.sourceLinks, C3), v3(t.targetLinks, C3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -74734,7 +74741,7 @@ function Zke() {
}
}
function y({ nodes: t }) {
- let r = _3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = g3(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];
@@ -74743,7 +74750,7 @@ function Zke() {
return o;
}
function b(e) {
- let n = v3(e, (e) => (r - t - (e.length - 1) * o) / y3(e, w3));
+ let n = _3(e, (e) => (r - t - (e.length - 1) * o) / v3(e, C3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -74760,7 +74767,7 @@ function Zke() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (_3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (g3(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);
@@ -74779,7 +74786,7 @@ function Zke() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function C(e, t, n) {
@@ -74795,7 +74802,7 @@ function Zke() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(C3), w(i, n);
+ l === void 0 && i.sort(S3), w(i, n);
}
}
function w(e, n) {
@@ -74816,12 +74823,12 @@ function Zke() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(S3);
- for (let { target: { targetLinks: t } } of e) t.sort(x3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(x3);
+ for (let { target: { targetLinks: t } } of e) t.sort(b3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(S3), n.sort(x3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(x3), n.sort(b3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -74851,15 +74858,15 @@ function Zke() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var D3 = Math.PI, O3 = 2 * D3, k3 = 1e-6, Qke = O3 - k3;
-function A3() {
+var E3 = Math.PI, D3 = 2 * E3, O3 = 1e-6, eAe = D3 - O3;
+function k3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function j3() {
- return new A3();
+function A3() {
+ return new k3();
}
-A3.prototype = j3.prototype = {
- constructor: A3,
+k3.prototype = A3.prototype = {
+ constructor: k3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -74880,11 +74887,11 @@ A3.prototype = j3.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 > k3) {
- if (!(Math.abs(u * s - c * l) > k3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > O3) {
+ if (!(Math.abs(u * s - c * l) > O3) || !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((D3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > k3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ 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((E3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > O3 && (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);
}
}
},
@@ -74892,7 +74899,7 @@ A3.prototype = j3.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) > k3 || Math.abs(this._y1 - l) > k3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % O3 + O3), d > Qke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > k3 && (this._ += "A" + n + "," + n + ",0," + +(d >= D3) + "," + 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) > O3 || Math.abs(this._y1 - l) > O3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % D3 + D3), d > eAe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > O3 && (this._ += "A" + n + "," + n + ",0," + +(d >= E3) + "," + 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";
@@ -74903,98 +74910,98 @@ A3.prototype = j3.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function M3(e) {
+function j3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function $ke(e) {
+function tAe(e) {
return e[0];
}
-function eAe(e) {
+function nAe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var tAe = Array.prototype.slice;
+var rAe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function nAe(e) {
+function iAe(e) {
return e.source;
}
-function rAe(e) {
+function aAe(e) {
return e.target;
}
-function iAe(e) {
- var t = nAe, n = rAe, r = $ke, i = eAe, a = null;
+function oAe(e) {
+ var t = iAe, n = aAe, r = tAe, i = nAe, a = null;
function o() {
- var o, s = tAe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = j3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = rAe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = A3(), 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 : M3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : j3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : M3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : j3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function aAe(e, t, n, r, i) {
+function sAe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function oAe() {
- return iAe(aAe);
+function cAe() {
+ return oAe(sAe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function sAe(e) {
+function lAe(e) {
return [e.source.x1, e.y0];
}
-function cAe(e) {
+function uAe(e) {
return [e.target.x0, e.y1];
}
-function lAe() {
- return oAe().source(sAe).target(cAe);
+function dAe() {
+ return cAe().source(lAe).target(uAe);
}
//#endregion
//#region src/react/taste/taste.ts
-var uAe = "/api/taste", N3 = "/api/taste/refresh", dAe = "/api/taste/import", P3 = "/api/taste/source", F3 = (e) => ["taste", e], fAe = ["taste", "refresh"], pAe = [
+var fAe = "/api/taste", M3 = "/api/taste/refresh", pAe = "/api/taste/import", N3 = "/api/taste/source", P3 = (e) => ["taste", e], mAe = ["taste", "refresh"], hAe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], mAe = 2e3, hAe = (e) => e?.stale && !e.error ? mAe : !1, gAe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], gAe = 2e3, _Ae = (e) => e?.stale && !e.error ? gAe : !1, vAe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", _Ae = (e, t) => H(P3, {
+}) : "—", yAe = (e, t) => V(N3, {
...e,
window: t
-}), I3 = (e, t, n = !1) => V(`${uAe}?window=${e}${n ? "&retry=1" : ""}`, t), vAe = (e) => V(N3, e);
-async function yAe(e, t) {
- await U.fetchQuery({
- queryKey: F3(e),
- queryFn: () => I3(e, t)
+}), F3 = (e, t, n = !1) => B(`${fAe}?window=${e}${n ? "&retry=1" : ""}`, t), bAe = (e) => B(M3, e);
+async function xAe(e, t) {
+ await H.fetchQuery({
+ queryKey: P3(e),
+ queryFn: () => F3(e, t)
});
}
-var bAe = (e) => H(N3, {
+var SAe = (e) => V(M3, {
window: e,
background: !0
-}), xAe = (e, t) => H(P3, {
+}), CAe = (e, t) => V(N3, {
operation: "remove",
source_key: e,
window: t
});
-async function SAe(e) {
- let t = await fetch(dAe, {
+async function wAe(e) {
+ let t = await fetch(pAe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -75008,56 +75015,56 @@ async function SAe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new Bn(e || `导入失败(${t.status})`, t.status, n);
+ throw new Hn(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var CAe = 1e4, L3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function wAe(e) {
+var TAe = 1e4, I3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function EAe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
month: "numeric",
day: "numeric"
- }) : L3(e);
+ }) : I3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var TAe = p3, EAe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), DAe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function OAe(e) {
+var DAe = f3, OAe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), kAe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function AAe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function kAe(e) {
- let t = e.map(DAe), n = Math.max(1, ...t);
+function jAe(e) {
+ let t = e.map(kAe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var R3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var L3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function AAe(e) {
- let t = R3(e, 6);
+function MAe(e) {
+ let t = L3(e, 6);
return t.length < 3 ? [] : t;
}
-var z3 = {
+var R3 = {
width: 720,
height: 435
-}, jAe = {
+}, NAe = {
source: 145,
target: 545
-}, B3 = 30, MAe = 240;
-function V3(e, t, n) {
+}, z3 = 30, PAe = 240;
+function B3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function NAe(e = []) {
+function FAe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = V3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = V3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = B3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = B3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -75066,7 +75073,7 @@ function NAe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * B3 + MAe), u = Zke().nodeId((e) => e.id).nodeWidth(10).nodePadding(B3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * z3 + PAe), u = $ke().nodeId((e) => e.id).nodeWidth(10).nodePadding(z3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -75081,7 +75088,7 @@ function NAe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = lAe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = dAe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -75109,16 +75116,16 @@ function NAe(e = []) {
};
}),
total: d,
- height: l + z3.height - 404
+ height: l + R3.height - 404
};
}
-var PAe = (e) => Pn(e, 17), H3 = {
+var IAe = (e) => In(e, 17), V3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, FAe = [[
+}, LAe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -75126,7 +75133,7 @@ var PAe = (e) => Pn(e, 17), H3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], IAe = [[
+]], RAe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -75134,7 +75141,7 @@ var PAe = (e) => Pn(e, 17), H3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], LAe = [[
+]], zAe = [[
"studios",
"厂牌",
"clapperboard"
@@ -75142,7 +75149,7 @@ var PAe = (e) => Pn(e, 17), H3 = {
"agencies",
"事务所",
"briefcase"
-]], RAe = [[
+]], BAe = [[
"local",
"本地",
"hard-drive"
@@ -75150,7 +75157,7 @@ var PAe = (e) => Pn(e, 17), H3 = {
"online",
"在线",
"rss"
-]], zAe = [
+]], VAe = [
[
"performers",
"艺人",
@@ -75166,7 +75173,7 @@ var PAe = (e) => Pn(e, 17), H3 = {
"在线",
"rss"
]
-], BAe = [[
+], HAe = [[
"cloud",
"标签云",
"tags"
@@ -75174,8 +75181,8 @@ var PAe = (e) => Pn(e, 17), H3 = {
"alphabet",
"字母表",
"text-aa"
-]], U3 = (e) => e === "compact" ? "compact" : "big";
-function W3(e, t) {
+]], H3 = (e) => e === "compact" ? "compact" : "big";
+function U3(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -75185,7 +75192,7 @@ function W3(e, t) {
category: n.get("category") || "all"
};
}
-var G3 = (e, t, n) => xs(e.map(([e, t, n]) => ({
+var W3 = (e, t, n) => Cs(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -75193,69 +75200,69 @@ var G3 = (e, t, n) => xs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), VAe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), UAe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${kc("tag-view", "标签视图", BAe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function HAe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = H3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? kc("people-layout", o + "索引版式", c ? IAe : FAe, a) : "";
+ <span class="ml-auto">${jc("tag-view", "标签视图", HAe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function WAe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = V3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? jc("people-layout", o + "索引版式", c ? RAe : LAe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
- ${is("default")}
- ${e === "tags" ? os({
+ ${os("default")}
+ ${e === "tags" ? cs({
variant: "ghost",
glyph: "pencil",
attrs: "data-tag-mode data-skeleton-action disabled tabindex=\"-1\" aria-label=\"管理标签\""
}) : ""}
- <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${as("", t, "过滤" + o)}</div>
+ <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${ss("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? G3(RAe, n, "词表") : e === "performers" || e === "creators" ? G3(zAe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? G3(LAe, e, "公司类型") : ""}
- ${e === "tags" ? VAe(r) : ""}
- ${e === "performers" && n !== "online" ? Bxe(i) : ""}
- ${Is({
+ ${e === "tags" ? W3(BAe, n, "词表") : e === "performers" || e === "creators" ? W3(VAe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? W3(zAe, e, "公司类型") : ""}
+ ${e === "tags" ? UAe(r) : ""}
+ ${e === "performers" && n !== "online" ? Vxe(i) : ""}
+ ${Rs({
kind: e,
layout: a,
mode: r
})}`;
}
-var UAe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function K3(e, t, n) {
- let r = HAe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== UAe(r) && (e.innerHTML = r, Us(e));
+var GAe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function G3(e, t, n) {
+ let r = WAe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== GAe(r) && (e.innerHTML = r, Gs(e));
}
//#endregion
//#region src/react/router/pages/index-entity.tsx
-var WAe = () => ou, GAe = () => Gl, q3 = () => document.getElementById("index");
-function J3(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(_u, WAe);
- LB();
- let i = gV(YV.navigation.location.pathname), a = (0, F.useRef)({
+var KAe = () => cu, qAe = () => ql, K3 = () => document.getElementById("index");
+function q3(e, t, n = {}) {
+ let r = (0, P.useSyncExternalStore)(yu, KAe);
+ IB();
+ let i = hV(JV.navigation.location.pathname), a = (0, P.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
run: 0,
opened: !1
- }), o = (0, F.useRef)({
+ }), o = (0, P.useRef)({
run: t,
options: n
});
- (0, F.useLayoutEffect)(() => {
+ (0, P.useLayoutEffect)(() => {
o.current = {
run: t,
options: n
};
- }), (0, F.useEffect)(() => {
+ }), (0, P.useEffect)(() => {
let e = a.current;
return e.mounted = !0, () => {
e.mounted = !1;
};
- }, []), (0, F.useEffect)(() => {
+ }, []), (0, P.useEffect)(() => {
r !== 0 && queueMicrotask(() => {
let t = a.current;
if (!t.mounted) return;
- let n = t.epoch !== e || t.opens !== ou, r = t.opens !== ou;
- if (t.epoch = e, t.opens = ou, gV(YV.navigation.location.pathname)) {
+ let n = t.epoch !== e || t.opens !== cu, r = t.opens !== cu;
+ if (t.epoch = e, t.opens = cu, hV(JV.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -75276,55 +75283,55 @@ function J3(e, t, n = {}) {
i
]);
}
-async function KAe(e, t, n, r) {
- let i = q3();
+async function JAe(e, t, n, r) {
+ let i = K3();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = W3(t, n), s = U3(fA().value.peopleLayout);
- K3(i, o, s), await RV(a, {
+ let o = U3(t, n), s = H3(fA().value.peopleLayout);
+ G3(i, o, s), await LV(a, {
...o,
layout: s,
- selectMode: Gl,
+ selectMode: ql,
configurable: !!e.configurable?.()
}, {
container: i,
isCurrent: r
}) && r() && e.surfaceShown?.("index", a);
}
-function qAe(e) {
- let t = q3(), n = t ? PV(t) : null;
+function YAe(e) {
+ let t = K3(), n = t ? NV(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function JAe({ epoch: e }) {
- let t = (0, F.useContext)(CU), n = LB(), r = n.pathname.split("/").filter(Boolean)[0];
- return J3(e, (e, i) => {
- t && KAe(t, r, n.search, i);
- }, { shown: () => qAe(`/${r}`) }), null;
+function XAe({ epoch: e }) {
+ let t = (0, P.useContext)(SU), n = IB(), r = n.pathname.split("/").filter(Boolean)[0];
+ return q3(e, (e, i) => {
+ t && JAe(t, r, n.search, i);
+ }, { shown: () => YAe(`/${r}`) }), null;
}
-function YAe() {
- let e = SU(), t = (0, F.useSyncExternalStore)(_u, GAe), n = (0, F.useRef)(t);
- return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && zV(q3(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(JAe, { epoch: e }, e);
+function ZAe() {
+ let e = xU(), t = (0, P.useSyncExternalStore)(yu, qAe), n = (0, P.useRef)(t);
+ return (0, P.useEffect)(() => {
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && RV(K3(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, F.jsx)(XAe, { epoch: e }, e);
}
-function Y3(e) {
+function J3(e) {
let t;
try {
t = decodeURIComponent(e);
} catch {
return null;
}
- let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(fn, n) ? fn[n] : void 0, a = r.join("/");
+ let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(mn, n) ? mn[n] : void 0, a = r.join("/");
return i && a ? {
segment: n,
kind: i,
name: a
} : null;
}
-var X3 = /* @__PURE__ */ new WeakMap();
-function XAe(e) {
- let t = X3.get(e);
+var Y3 = /* @__PURE__ */ new WeakMap();
+function QAe(e) {
+ let t = Y3.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -75334,18 +75341,18 @@ function XAe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, X3.set(e, t)), t;
+ }, Y3.set(e, t)), t;
}
-function Z3() {
- let e = q3(), t = e ? PV(e) : null;
+function X3() {
+ let e = K3(), t = e ? NV(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function ZAe(e, t, n, r, i, a, o) {
- let s = q3();
+async function $Ae(e, t, n, r, i, a, o) {
+ let s = K3();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
- hu({ entityJavLayout: !1 });
+ _u({ entityJavLayout: !1 });
let d = document.createElement("template");
d.innerHTML = "<div data-entity-hero><div class=\"peach-react\"></div></div>\n <div data-entity-filter><div class=\"peach-react\"></div></div>\n <section class=\"feednew\" data-feed-new aria-label=\"未入库的新作\" hidden></section>\n <div data-entity-body><div class=\"peach-react\"></div></div>";
let f = [...d.content.childNodes], p = d.content.querySelector("[data-entity-hero]"), m = {
@@ -75355,45 +75362,45 @@ async function ZAe(e, t, n, r, i, a, o) {
}, h = t.props(l, u, i), g = {
...h,
hosts: m,
- card: XAe(e),
+ card: QAe(e),
resolvedEntity: o,
actions: {
...h.actions,
javContext: (e) => {
- hu({ entityJavLayout: !!e });
+ _u({ entityJavLayout: !!e });
}
}
};
- await RV(`/${c}/*`, g, {
+ await LV(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && Z3() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ }) && a() && X3() && (e.surfaceShown?.("entity", r), window.scrollTo({
top: 0,
behavior: "smooth"
}));
}
-function QAe({ target: e }) {
- let t = (0, F.useContext)(CU), n = SU(), r = LB();
- return J3(n, (n, i) => {
+function eje({ target: e }) {
+ let t = (0, P.useContext)(SU), n = xU(), r = IB();
+ return q3(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
- let s = await U.fetchQuery({
+ let s = await H.fetchQuery({
queryKey: [
"entity-route",
e.kind,
e.name
],
- queryFn: ({ signal: e }) => V(`/api/entity?${o}`, e),
+ queryFn: ({ signal: e }) => B(`/api/entity?${o}`, e),
staleTime: 0
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- XV(pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ YV(hn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
});
return;
}
@@ -75401,38 +75408,38 @@ function QAe({ target: e }) {
a.missing(e.kind);
return;
}
- let c = String(s.canonical_name || e.name), l = pn(e.kind, c, Number(s.id));
- l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && ZAe(t, a, {
+ let c = String(s.canonical_name || e.name), l = hn(e.kind, c, Number(s.id));
+ l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && $Ae(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : XV(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : YV(l + r.search + r.hash, {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
});
})();
- }, { shown: () => Z3() && !q3()?.hidden }), null;
+ }, { shown: () => X3() && !K3()?.hidden }), null;
}
-function $Ae() {
- let e = Y3(LB().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(QAe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function tje() {
+ let e = J3(IB().pathname);
+ return e ? /* @__PURE__ */ (0, F.jsx)(eje, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
//#endregion
//#region src/react/jav/jav-header.tsx
-function Q3({ tab: e, navigate: t, find: n }) {
- return /* @__PURE__ */ (0, I.jsxs)("div", {
+function Z3({ tab: e, navigate: t, find: n }) {
+ return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)("h2", {
+ children: [/* @__PURE__ */ (0, F.jsx)("h2", {
"data-page-title": "",
className: "text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium",
children: "JAV"
- }), /* @__PURE__ */ (0, I.jsx)(q, {
+ }), /* @__PURE__ */ (0, F.jsx)(q, {
variant: "primary",
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, I.jsx)(LQ, {
+ }), /* @__PURE__ */ (0, F.jsx)(LQ, {
tabs: x$.map(([e, t]) => ({
value: e,
label: t
@@ -75440,17 +75447,17 @@ function Q3({ tab: e, navigate: t, find: n }) {
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(Kwe(e))
+ onChange: (e) => t(qwe(e))
})]
});
}
-function eje({ navigate: e, receipt: t }) {
- let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Q3, {
+function nje({ navigate: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(null);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Z3, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(J2, {
+ }), /* @__PURE__ */ (0, F.jsx)(q2, {
prefill: n,
close: () => r(null),
receipt: t
@@ -75458,33 +75465,33 @@ function eje({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var tje = () => ou, $3 = YV.navigation.seq, e6 = YV.navigation.openEpoch, t6 = YV.navigation.location.pathname, n6 = {
- seq: $3,
+var rje = () => cu, Q3 = JV.navigation.seq, $3 = JV.navigation.openEpoch, e6 = JV.navigation.location.pathname, t6 = {
+ seq: Q3,
claimed: !0,
- from: t6
+ from: e6
};
-YV.listen((e) => {
- n6 = {
+JV.listen((e) => {
+ t6 = {
seq: e.seq,
- claimed: e.openEpoch === e6,
- from: t6
- }, e6 = e.openEpoch, t6 = e.location.pathname;
+ claimed: e.openEpoch === $3,
+ from: e6
+ }, $3 = e.openEpoch, e6 = e.location.pathname;
});
-var r6 = !1;
-function i6(e) {
- let { seq: t, openEpoch: n, location: r } = YV.navigation, i = gV(r.pathname), a = QV() ?? r, o = W ?? {};
+var n6 = !1;
+function r6(e) {
+ let { seq: t, openEpoch: n, location: r } = JV.navigation, i = hV(r.pathname), a = ZV() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
- opens: ou,
+ opens: cu,
covered: i,
address: `${a.pathname}${a.search}`,
filters: JSON.stringify(o, Object.keys(o).sort()),
opened: e
};
}
-function nje(e, t, n, r) {
- let i = { ...W };
+function ije(e, t, n, r) {
+ let i = { ...U };
if (e === "/trash") return {
...i,
creator: "",
@@ -75501,15 +75508,15 @@ function nje(e, t, n, r) {
creator: a.get("creator") || "",
studio: a.get("studio") || "",
owner: a.get("owner") === "none" ? "none" : "",
- tag: zn(a.get("tag")),
+ tag: Vn(a.get("tag")),
tag_match: a.get("tag_match") === "any" ? "any" : "all",
len: a.get("len") || "",
dur_min: a.get("dur_min") || "",
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
- state: cn[e] || a.get("state") || "",
- ...qk(a.get("sort"), a.get("dir"), o, s),
- seed: a.get("seed") || (n ? Ln() : i.seed || Ln()),
+ state: un[e] || a.get("state") || "",
+ ...Kk(a.get("sort"), a.get("dir"), o, s),
+ seed: a.get("seed") || (n ? zn() : i.seed || zn()),
q: a.get("q") || "",
jav: a.get("jav") || "",
performer: a.get("performer") || "",
@@ -75519,13 +75526,13 @@ function nje(e, t, n, r) {
folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
};
}
-function rje(e, t) {
- let n = { ...e }, r = i6(n.opened);
+function aje(e, t) {
+ let n = { ...e }, r = r6(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- QV() || i.fill();
+ ZV() || i.fill();
return;
}
let a = !1;
@@ -75535,41 +75542,41 @@ function rje(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = YV.navigation.action === "POP" && n6.from !== "/");
+ r.epoch !== n.epoch && (a = JV.navigation.action === "POP" && t6.from !== "/");
}
- let { pathname: o, search: s } = YV.navigation.location;
+ let { pathname: o, search: s } = JV.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
let { kind: e, view: t } = s$(s);
- r6 = !0, XV(c$(e, t), { replace: !0 });
+ n6 = !0, YV(c$(e, t), { replace: !0 });
return;
}
- let c = r6;
- r6 = !1, a &&= o === "/", e.opened = !0, hu({ state: nje(o, s, a, i) }), i.open(o, {
+ let c = n6;
+ n6 = !1, a &&= o === "/", e.opened = !0, _u({ state: ije(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
-function ije(e) {
- return un(e) || e === "/trash" || gV(e) || e === "/immerse" || !!Y3(e);
+function oje(e) {
+ return fn(e) || e === "/trash" || hV(e) || e === "/immerse" || !!J3(e);
}
-function aje() {
- let e = (0, F.useContext)(CU), t = SU(), n = (0, F.useSyncExternalStore)(_u, tje), r = LB(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function sje() {
+ let e = (0, P.useContext)(SU), t = xU(), n = (0, P.useSyncExternalStore)(yu, rje), r = IB(), i = (0, P.useRef)(null), a = (0, P.useRef)({
mounted: !0,
queued: !1
});
- return (0, F.useEffect)(() => {
+ return (0, P.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = i6(!gV(YV.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (r6 || n6.seq === $3 ? n.opens = -1 : n6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ let n = r6(!hV(JV.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (n6 || t6.seq === Q3 ? n.opens = -1 : t6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !ije(YV.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !oje(JV.navigation.location.pathname) && e.catalog.release();
});
};
- }, []), (0, F.useEffect)(() => {
+ }, []), (0, P.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && rje(i.current, e);
+ t.queued = !1, t.mounted && i.current && aje(i.current, e);
}));
}, [
t,
@@ -75578,9 +75585,9 @@ function aje() {
e
]), null;
}
-function a6() {
- let { pathname: e, search: t } = LB();
- (0, F.useLayoutEffect)(() => {
+function i6() {
+ let { pathname: e, search: t } = IB();
+ (0, P.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
let t = Array.from(document.querySelectorAll("header.top,#drawer,#main,#catalogFilter,#count,#javLibraryHeader,#feedNew")), n = t.map((e) => e.inert);
@@ -75592,15 +75599,15 @@ function a6() {
});
};
}, [e]);
- let n = (0, F.useContext)(CU), r = document.getElementById("javLibraryHeader"), i = un(e) && new URLSearchParams(t).get("jav") === "1";
- return (0, F.useLayoutEffect)(() => {
+ let n = (0, P.useContext)(SU), r = document.getElementById("javLibraryHeader"), i = fn(e) && new URLSearchParams(t).get("jav") === "1";
+ return (0, P.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), gV(e) && !hV(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(aje, {}, e === "/junk-files" ? "/junk-files" : "/"),
- un(e) ? /* @__PURE__ */ (0, I.jsx)(jU, {}) : null,
- i && r && n ? (0, It.createPortal)(/* @__PURE__ */ (0, I.jsx)(eje, {
+ }, [r, i]), hV(e) && !mV(e) ? null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+ /* @__PURE__ */ (0, F.jsx)(sje, {}, e === "/junk-files" ? "/junk-files" : "/"),
+ fn(e) ? /* @__PURE__ */ (0, F.jsx)(AU, {}) : null,
+ i && r && n ? (0, Lt.createPortal)(/* @__PURE__ */ (0, F.jsx)(nje, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null
@@ -75608,21 +75615,21 @@ function a6() {
}
//#endregion
//#region src/react/router/pages/follow.tsx
-var o6 = () => document.getElementById("stats"), oje = () => fu;
-function sje(e) {
+var a6 = () => document.getElementById("stats"), cje = () => mu;
+function lje(e) {
let t = document.createElement("div");
- return t.className = "peach-react", Ps(e, () => {
+ return t.className = "peach-react", Is(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-async function cje(e, t) {
- let n = o6(), r = e.follow;
+async function uje(e, t) {
+ let n = a6(), r = e.follow;
if (!n || !r || r.refresh()) return;
- let i = du;
- e.surfaceChanged("follow", "/follow"), d2(n, r.skeleton()), await RV("/follow", r.props(), {
+ let i = pu;
+ e.surfaceChanged("follow", "/follow"), u2(n, r.skeleton()), await LV("/follow", r.props(), {
container: n,
isCurrent: t,
- place: sje
+ place: lje
}), t() && window.scrollTo(i ? {
top: i,
behavior: "instant"
@@ -75631,32 +75638,32 @@ async function cje(e, t) {
behavior: "smooth"
});
}
-function lje() {
- let e = o6(), t = e ? PV(e) : null;
+function dje() {
+ let e = a6(), t = e ? NV(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function uje() {
- let e = (0, F.useContext)(CU);
- return J3(SU(), (t, n) => {
- e && cje(e, n);
+function fje() {
+ let e = (0, P.useContext)(SU);
+ return q3(xU(), (t, n) => {
+ e && uje(e, n);
}, {
- shown: lje,
+ shown: dje,
onCovered: () => {
- YV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ JV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function s6(e) {
- let t = e ? PV(e) : null;
+function o6(e) {
+ let t = e ? NV(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function dje(e, t) {
- let n = o6();
- n && (e.surfaceChanged("playlists", "/playlists"), d2(n, l2("/playlists", {
+async function pje(e, t) {
+ let n = a6();
+ n && (e.surfaceChanged("playlists", "/playlists"), u2(n, c2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await RV("/playlists", { revision: fu }, {
+ })), await LV("/playlists", { revision: mu }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -75664,39 +75671,39 @@ async function dje(e, t) {
behavior: "smooth"
}));
}
-function fje() {
- let e = (0, F.useContext)(CU), t = (0, F.useSyncExternalStore)(_u, oje), n = (0, F.useRef)(t);
- return (0, F.useEffect)(() => {
+function mje() {
+ let e = (0, P.useContext)(SU), t = (0, P.useSyncExternalStore)(yu, cje), n = (0, P.useRef)(t);
+ return (0, P.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = o6();
- s6(e) && zV(e, { revision: t });
- }, [t]), J3(SU(), (t, n) => {
- e && dje(e, n);
+ let e = a6();
+ o6(e) && RV(e, { revision: t });
+ }, [t]), q3(xU(), (t, n) => {
+ e && pje(e, n);
}, { shown: () => {
- let e = o6();
- return s6(e) && !e.hidden;
+ let e = a6();
+ return o6(e) && !e.hidden;
} }), null;
}
//#endregion
//#region src/react/router/pages/immerse.tsx
-function pje() {
- let e = new URLSearchParams(YV.navigation.location.search).get("id");
+function hje() {
+ let e = new URLSearchParams(JV.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function mje() {
- let e = (0, F.useContext)(CU);
- return bU(() => {
- e?.openImmerse(pje());
+function gje() {
+ let e = (0, P.useContext)(SU);
+ return yU(() => {
+ e?.openImmerse(hje());
}, !0), null;
}
-function hje() {
- return /* @__PURE__ */ (0, I.jsx)(mje, {}, SU());
+function _je() {
+ return /* @__PURE__ */ (0, F.jsx)(gje, {}, xU());
}
//#endregion
//#region src/ui-kit/anchor-scroll.ts
-var c6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function l6(e, t) {
+var s6 = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function c6(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -75711,77 +75718,77 @@ async function l6(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: c6()
+ behavior: s6()
});
}
//#endregion
//#region src/react/router/pages/managed.tsx
-var gje = () => ou > 0, u6 = () => (0, F.useSyncExternalStore)(_u, gje), d6 = () => fA().value.followLayout === "table" ? "table" : "default", f6 = () => new URLSearchParams(window.location.search);
-function _je(e) {
- let t = f6();
- return l2(e, {
- followLayout: d6(),
+var vje = () => cu > 0, l6 = () => (0, P.useSyncExternalStore)(yu, vje), u6 = () => fA().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
+function yje(e) {
+ let t = d6();
+ return c2(e, {
+ followLayout: u6(),
followSort: t.get("sort") || "",
followDir: t.get("dir") || ""
});
}
-function p6(e) {
- return rn("/healthz", { signal: e.controller.signal }).catch((e) => {
- if (an(e)) return null;
+function f6(e) {
+ return on("/healthz", { signal: e.controller.signal }).catch((e) => {
+ if (sn(e)) return null;
throw e;
});
}
-function m6(e, t) {
+function p6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function vje(e, t) {
+async function bje(e, t) {
if (e === "/jav") {
- let e = await p6(t);
+ let e = await f6(t);
return t.live ? {
- tab: S$(f6().get("tab")),
+ tab: S$(d6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
if (e === "/stats") return {};
if (e === "/taste") {
- let e = au;
- return hu({ cameFromSetup: !1 }), { onboarding: e };
+ let e = su;
+ return _u({ cameFromSetup: !1 }), { onboarding: e };
}
if (e.startsWith("/settings/")) {
- window.location.hash === "#peachProxy" && hu({ configurationRequestedSection: "网络与访问" });
- let t = f6().get("section") || ru || sV(e);
+ window.location.hash === "#peachProxy" && _u({ configurationRequestedSection: "网络与访问" });
+ let t = d6().get("section") || au || oV(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = f6().get("category") || "", n = await p6(t);
+ let e = d6().get("category") || "", n = await f6(t);
return t.live ? {
category: MY(e) ? e : "",
- ...m6(n, "/review")
+ ...p6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = LZ("?" + f6().toString()), n = await p6(t);
+ let e = LZ("?" + d6().toString()), n = await f6(t);
if (!t.live) return null;
let r = fA().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: d6(),
- ...m6(n, "/subscriptions")
+ layout: u6(),
+ ...p6(n, "/subscriptions")
};
}
return {};
}
-var yje = () => {
+var xje = () => {
window.scrollTo({
top: 0,
- behavior: c6()
+ behavior: s6()
});
-}, bje = /* @__PURE__ */ new Set([
+}, Sje = /* @__PURE__ */ new Set([
"/stats",
"/taste",
"/review",
@@ -75789,18 +75796,18 @@ var yje = () => {
"/tasks",
"/subscriptions"
]);
-async function xje(e, t, n) {
- let r = YV.navigation.seq, i = () => n.live && YV.navigation.seq === r;
- if (e === "/jav" && S$(f6().get("tab")) === "library") {
- YV.replace(qwe(window.location.search));
+async function Cje(e, t, n) {
+ let r = JV.navigation.seq, i = () => n.live && JV.navigation.seq === r;
+ if (e === "/jav" && S$(d6().get("tab")) === "library") {
+ JV.replace(Jwe(window.location.search));
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "wants") {
- XV("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "wants") {
+ YV("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && f6().get("tab") === "source") {
- XV("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && d6().get("tab") === "source") {
+ YV("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -75808,8 +75815,8 @@ async function xje(e, t, n) {
e === "/jav" && window.scrollTo({
top: 0,
behavior: "instant"
- }), t.surfaceChanged("management", e), e === "/taste" && (hu({ state: {
- ...W,
+ }), t.surfaceChanged("management", e), e === "/taste" && (_u({ state: {
+ ...U,
creator: "",
studio: "",
tag: "",
@@ -75822,39 +75829,39 @@ async function xje(e, t, n) {
state: "",
q: "",
jav: ""
- } }), t.clearSearch()), d2(a, _je(e));
- let o = await vje(e, n);
+ } }), t.clearSearch()), u2(a, yje(e));
+ let o = await bje(e, n);
if (!o) return;
- let s = await RV(e, o, {
+ let s = await LV(e, o, {
container: a,
isCurrent: () => n.live
});
- if (s && (n.revision = PV(a)?.revision ?? 0), e.startsWith("/settings/") && s && hu({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = NV(a)?.revision ?? 0), e.startsWith("/settings/") && s && _u({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && XV("/data-cleanup#libraryProcessing", {
+ i() && YV("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : t ? l6(t, i) : (bje.has(e) || e === "/settings/library") && yje();
+ }) : t ? c6(t, i) : (Sje.has(e) || e === "/settings/library") && xje();
}
}
-function h6({ path: e }) {
- let t = SU();
- LB();
- let n = gV(YV.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
+function m6({ path: e }) {
+ let t = xU();
+ IB();
+ let n = hV(JV.navigation.location.pathname), r = (0, P.useRef)(n ? null : t), i = (0, P.useRef)(n);
!n && (!i.current || r.current === null) && (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(Sje, {
+ return /* @__PURE__ */ (0, F.jsx)(wje, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function Sje({ path: e, covered: t }) {
- let n = (0, F.useContext)(CU), r = u6(), i = (0, F.useRef)(null);
- return (0, F.useEffect)(() => {
- e.startsWith("/settings/") && zV(document.getElementById("stats"), { section: sV(e) });
- }, [e]), (0, F.useEffect)(() => {
+function wje({ path: e, covered: t }) {
+ let n = (0, P.useContext)(SU), r = l6(), i = (0, P.useRef)(null);
+ return (0, P.useEffect)(() => {
+ e.startsWith("/settings/") && RV(document.getElementById("stats"), { section: oV(e) });
+ }, [e]), (0, P.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
live: !0,
@@ -75862,26 +75869,26 @@ function Sje({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && xje(e, n, a);
+ a.live && Cje(e, n, a);
});
- }, [r]), (0, F.useEffect)(() => () => {
+ }, [r]), (0, P.useEffect)(() => () => {
let e = i.current;
if (!e) return;
e.live = !1, e.controller.abort();
let t = document.getElementById("stats");
queueMicrotask(() => {
- t && e.revision && !t.hidden && PV(t)?.revision === e.revision && BV(t);
+ t && e.revision && !t.hidden && NV(t)?.revision === e.revision && zV(t);
});
}, []), null;
}
-function Cje() {
- let e = u6(), t = (0, F.useRef)(!1);
- return (0, F.useEffect)(() => {
- if (!e || t.current || gV(YV.navigation.location.pathname)) return;
+function Tje() {
+ let e = l6(), t = (0, P.useRef)(!1);
+ return (0, P.useEffect)(() => {
+ if (!e || t.current || hV(JV.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && XV("/data-cleanup#resource-sync", { replace: !0 });
+ n && YV("/data-cleanup#resource-sync", { replace: !0 });
}), () => {
n = !1;
};
@@ -75889,24 +75896,24 @@ function Cje() {
}
//#endregion
//#region src/react/router/route-chunk.ts
-var g6 = [], _6 = "peach.chunkReloadAt", wje = 3e4;
-async function Tje() {
+var h6 = [], g6 = "peach.chunkReloadAt", Eje = 3e4;
+async function Dje() {
try {
- let e = Number(sessionStorage.getItem(_6) || 0);
- if (Date.now() - e < wje || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(g6) || 0);
+ if (Date.now() - e < Eje || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(_6, String(Date.now())), location.reload();
+ sessionStorage.setItem(g6, String(Date.now())), location.reload();
} catch {}
}
-function v6(e) {
+function _6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return g6.push(r), {
+ return h6.push(r), {
preload: () => r().catch(async (e) => {
- throw await Tje(), e;
+ throw await Dje(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -75914,10 +75921,10 @@ function v6(e) {
}
};
}
-function Eje() {
+function Oje() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...g6], n = () => {
+ let t = [...h6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -75927,48 +75934,48 @@ function Eje() {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-async function y6(e, t) {
+async function v6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var b6 = v6(() => import("./peach-app.jav-page-B55byEeQ.js")), x6 = v6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), S6 = v6(() => import("./peach-app.taste-page-CidGJvZ7.js")), C6 = v6(() => import("./peach-app.review-page-DHXpy-f5.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), T6 = v6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), E6 = v6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), D6 = v6(() => import("./peach-app.scraping-page-eYjMETgJ.js")), O6 = v6(async () => {
+var y6 = _6(() => import("./peach-app.jav-page-B55byEeQ.js")), b6 = _6(() => import("./peach-app.stats-page-Dl0lm7Yt.js")), x6 = _6(() => import("./peach-app.taste-page-CidGJvZ7.js")), S6 = _6(() => import("./peach-app.review-page-DHXpy-f5.js")), C6 = _6(() => import("./peach-app.data-cleanup-page-DPCNx1GU.js")), w6 = _6(() => import("./peach-app.duplicates-page-CoHPntSW.js")), T6 = _6(() => import("./peach-app.quality-goals-page-CjcBIXAC.js")), E6 = _6(() => import("./peach-app.scraping-page-eYjMETgJ.js")), D6 = _6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-CHlBX19O.js"), import("./peach-app.diagnostics-page-BFxst4xL.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), k6 = v6(() => import("./peach-app.activity-page-DAASgSRU.js")), A6 = v6(() => import("./peach-app.follow-manage-page-DmZ4z0aA.js")), j6 = v6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
-function Dje(e, t, n) {
+}), O6 = _6(() => import("./peach-app.activity-page-DAASgSRU.js")), k6 = _6(() => import("./peach-app.follow-manage-page-DmZ4z0aA.js")), A6 = _6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
+function kje(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- P6(r) ? n(r) : t.openManage(e);
+ N6(r) ? n(r) : t.openManage(e);
}
-var M6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: e }),
- prefetch: (t, n) => y6(O6, Promise.all([FTe(n), ...e === "/settings/diagnostics" ? [awe(n)] : []]).then(() => {})),
+var j6 = (e) => ({
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: e }),
+ prefetch: (t, n) => v6(D6, Promise.all([ITe(n), ...e === "/settings/diagnostics" ? [owe(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = O6.get();
- return /* @__PURE__ */ (0, I.jsx)(r, {
+ let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
+ return /* @__PURE__ */ (0, F.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
section: e === "/settings/diagnostics" ? "系统诊断" : t.section ?? "",
- diagnostics: /* @__PURE__ */ (0, I.jsx)(i, {
+ diagnostics: /* @__PURE__ */ (0, F.jsx)(i, {
openItem: n.openItem,
receipt: (e) => n.receipt(e)
})
});
}
-}), N6 = {
+}), M6 = {
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/jav" }),
- prefetch: (e, t) => y6(b6, Ywe(e.tab, t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/jav" }),
+ prefetch: (e, t) => v6(y6, Xwe(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = b6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { JavPage: n } = y6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
navigate: t.navigate,
receipt: (e) => t.receipt(e)
@@ -75976,22 +75983,22 @@ var M6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/stats" }),
- prefetch: (e, t) => y6(x6, jke(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/stats" }),
+ prefetch: (e, t) => v6(b6, Nke(t)),
page: (e, t) => {
- let { StatsPage: n } = x6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
- tagLabel: Al,
+ let { StatsPage: n } = b6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
+ tagLabel: Ml,
onTag: t.openTag
});
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/taste" }),
- prefetch: (e, t) => y6(S6, yAe("all", t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/taste" }),
+ prefetch: (e, t) => v6(x6, xAe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = S6.get();
- return /* @__PURE__ */ (0, I.jsx)(r, {
+ let { TastePage: r } = x6.get();
+ return /* @__PURE__ */ (0, F.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -76000,11 +76007,11 @@ var M6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/review" }),
- prefetch: (e, t) => y6(C6, Cbe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/review" }),
+ prefetch: (e, t) => v6(S6, wbe(t)),
page: (e, t) => {
- let { ReviewPage: n } = C6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { ReviewPage: n } = S6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -76015,23 +76022,23 @@ var M6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/data-cleanup" }),
- prefetch: (e, t) => y6(w6, Axe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => v6(C6, jxe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = w6.get();
- return /* @__PURE__ */ (0, I.jsx)(r, {
+ let { DataCleanupPage: r } = C6.get();
+ return /* @__PURE__ */ (0, F.jsx)(r, {
failure: t.failure,
- open: (e) => Dje(e, t, n),
+ open: (e) => kje(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/duplicates" }),
- prefetch: (e, t) => y6(T6, Vye(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/duplicates" }),
+ prefetch: (e, t) => v6(w6, Hye(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = T6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { DuplicatesPage: n } = w6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
@@ -76039,47 +76046,47 @@ var M6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/quality-goals" }),
- prefetch: (e, t) => y6(E6, $ye(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/quality-goals" }),
+ prefetch: (e, t) => v6(T6, ebe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = E6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { QualityGoalsPage: n } = T6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: bF,
- javDisplayName: yF,
+ javTitleHtml: yF,
+ javDisplayName: vF,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/sources" }),
- prefetch: (e, t) => y6(D6, TTe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/sources" }),
+ prefetch: (e, t) => v6(E6, ETe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = D6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
+ let { ScrapingPage: n } = E6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": M6("/settings/library"),
- "/settings/subscriptions": M6("/settings/subscriptions"),
- "/settings/downloads": M6("/settings/downloads"),
- "/settings/network": M6("/settings/network"),
- "/settings/maintenance": M6("/settings/maintenance"),
- "/settings/diagnostics": M6("/settings/diagnostics"),
+ "/settings/library": j6("/settings/library"),
+ "/settings/subscriptions": j6("/settings/subscriptions"),
+ "/settings/downloads": j6("/settings/downloads"),
+ "/settings/network": j6("/settings/network"),
+ "/settings/maintenance": j6("/settings/maintenance"),
+ "/settings/diagnostics": j6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/tasks" }),
- prefetch: (e, t) => y6(k6, tue(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/tasks" }),
+ prefetch: (e, t) => v6(O6, rue(t)),
page: () => {
- let { ActivityPage: e } = k6.get();
- return /* @__PURE__ */ (0, I.jsx)(e, {});
+ let { ActivityPage: e } = O6.get();
+ return /* @__PURE__ */ (0, F.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(h6, { path: "/subscriptions" }),
- prefetch: (e, t) => y6(A6, _i(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(m6, { path: "/subscriptions" }),
+ prefetch: (e, t) => v6(k6, yi(t)),
page: (e, t) => {
- let { FollowManagePage: n } = A6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { FollowManagePage: n } = k6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -76088,13 +76095,13 @@ var M6 = (e) => ({
});
}
}
-}, P6 = (e) => Object.hasOwn(N6, e), Oje = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(Cje, {}) } }, kje = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(hje, {}) } }, F6 = {
+}, N6 = (e) => Object.hasOwn(M6, e), Aje = { "/resource-sync": { element: /* @__PURE__ */ (0, F.jsx)(Tje, {}) } }, jje = { "/immerse": { element: /* @__PURE__ */ (0, F.jsx)(_je, {}) } }, P6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(fje, {}),
- prefetch: (e, t) => y6(j6, lTe(t)),
+ element: /* @__PURE__ */ (0, F.jsx)(mje, {}),
+ prefetch: (e, t) => v6(A6, uTe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = j6.get();
- return /* @__PURE__ */ (0, I.jsx)(n, {
+ let { PlaylistsPage: n } = A6.get();
+ return /* @__PURE__ */ (0, F.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -76104,101 +76111,101 @@ var M6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(uje, {}),
- prefetch: (e, t) => zi(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(RSe, { ...e })
- }
-}, I6 = (e) => Object.hasOwn(F6, e), L6 = {
- element: /* @__PURE__ */ (0, I.jsx)(YAe, {}),
- prefetch: (e, t) => Zxe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(bwe, {
+ element: /* @__PURE__ */ (0, F.jsx)(fje, {}),
+ prefetch: (e, t) => Vi(e, t),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(zSe, { ...e })
+ }
+}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
+ element: /* @__PURE__ */ (0, F.jsx)(ZAe, {}),
+ prefetch: (e, t) => Qxe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, F.jsx)(xwe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
exitSelectMode: t.exitSelectMode,
personAvatar: t.personAvatar,
authorAvatar: t.authorAvatar,
- tagLabel: Al,
+ tagLabel: Ml,
openEntity: t.openEntity,
showTags: t.showIndexTags,
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, L6 = {
+ "/performers": I6,
+ "/creators": I6,
+ "/studios": I6,
+ "/agencies": I6,
+ "/tags": I6
}, R6 = {
- "/performers": L6,
- "/creators": L6,
- "/studios": L6,
- "/agencies": L6,
- "/tags": L6
+ element: /* @__PURE__ */ (0, F.jsx)(tje, {}),
+ prefetch: (e) => Bxe(e),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(twe, { ...e })
}, z6 = {
- element: /* @__PURE__ */ (0, I.jsx)($Ae, {}),
- prefetch: (e) => zxe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(ewe, { ...e })
+ "/performers/*": R6,
+ "/studios/*": R6,
+ "/creators/*": R6,
+ "/series/*": R6,
+ "/agencies/*": R6,
+ "/tags/*": R6
}, B6 = {
- "/performers/*": z6,
- "/studios/*": z6,
- "/creators/*": z6,
- "/series/*": z6,
- "/agencies/*": z6,
- "/tags/*": z6
-}, V6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(a6, {}),
- prefetch: (e, t) => PM(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(fY, { ...e })
+ element: /* @__PURE__ */ (0, F.jsx)(i6, {}),
+ prefetch: (e, t) => IM(e, t),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(fY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(a6, {}),
+ element: /* @__PURE__ */ (0, F.jsx)(i6, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Fwe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(Iwe, { ...e })
}
-}, H6 = (e) => Object.hasOwn(V6, e), Aje = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(oge, { ...e }) : /* @__PURE__ */ (0, I.jsx)(B$, { ...e }), U6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), Mje = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(cge, { ...e }) : /* @__PURE__ */ (0, F.jsx)(B$, { ...e }), H6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(xW, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(xW, { ...e })
},
"feed-new": {
- prefetch: (e) => Fxe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(owe, { ...e })
+ prefetch: (e) => Ixe(e),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(swe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => yH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Aje, { ...e })
+ prefetch: (e, t) => vH(t),
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(Mje, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(jTe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, F.jsx)(MTe, { ...e })
}
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
+}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(boe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(Soe, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(tse, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(nse, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Lle, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(zle, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Nce, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(Fce, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(eEe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(tEe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(mEe, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(hEe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(kke, {})
+ page: () => /* @__PURE__ */ (0, F.jsx)(jke, {})
}
-}, K6 = (e) => Object.hasOwn(G6, e), q6 = [
+}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
"/",
"/wall",
"/unseen",
@@ -76208,101 +76215,101 @@ var M6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(N6),
- ...Object.keys(F6),
- ...Object.keys(R6),
- ...Object.keys(B6),
- ...q6
+ ...Object.keys(M6),
+ ...Object.keys(P6),
+ ...Object.keys(L6),
+ ...Object.keys(z6),
+ ...K6
];
-var J6 = (e) => P6(e) || I6(e) || Object.hasOwn(R6, e) || Object.hasOwn(B6, e) || H6(e) || W6(e) || K6(e);
-function Y6(e) {
- return P6(e) ? N6[e] : I6(e) ? F6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : K6(e) ? G6[e] : Object.hasOwn(R6, e) ? R6[e] : B6[e];
+var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) || V6(e) || U6(e) || G6(e);
+function J6(e) {
+ return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
}
-function jje(e, t, n) {
- return J6(e) ? Y6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function Nje(e, t, n) {
+ return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function Mje(e, t, n, r) {
- return Y6(e).page(t, n, r);
+function Pje(e, t, n, r) {
+ return J6(e).page(t, n, r);
}
//#endregion
//#region src/react/application-residents.ts
-var X6 = null, Z6 = null, Q6 = 0, $6 = /* @__PURE__ */ new Set();
-function Nje(e) {
- return X6 = e, Z6 && e(Z6), () => {
- X6 === e && (X6 = null);
+var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
+function Fje(e) {
+ return Y6 = e, X6 && e(X6), () => {
+ Y6 === e && (Y6 = null);
};
}
-function Pje(e) {
- return X6 && (Z6 = e, X6(e), Vme(Promise.resolve(jje)), Eje()), Promise.resolve();
+function Ije(e) {
+ return Y6 && (X6 = e, Y6(e), Ume(Promise.resolve(Nje)), Oje()), Promise.resolve();
}
-async function e8(e, t, n = (e) => e) {
- let r = Q6;
- if (t.isConnected || $6.add(t), !await RV(e, {}, {
+async function $6(e, t, n = (e) => e) {
+ let r = Z6;
+ if (t.isConnected || Q6.add(t), !await LV(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!X6 && r === Q6,
+ isCurrent: () => !!Y6 && r === Z6,
place: () => n(t)
- }) || r !== Q6 || !X6) throw new DOMException("应用已卸载", "AbortError");
+ }) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
}
-function Fje() {
- Q6 += 1, X6 = null, Z6 = null, t8 = null, n8 = null, a8 = null, o8 = null, c8 = null, l8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null;
- for (let e of $6) e.remove();
- $6.clear(), qQ();
+function Lje() {
+ Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
+ for (let e of Q6) e.remove();
+ Q6.clear(), qQ();
}
-var t8 = null, n8 = null;
-function r8(e) {
- return t8 ??= (async () => {
- let t = Oke(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await e8("stage", n, (e) => (document.body.append(e), e)), n8 = t, t;
- })(), t8;
+var e8 = null, t8 = null;
+function n8(e) {
+ return e8 ??= (async () => {
+ let t = Ake(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
+ })(), e8;
}
-var i8 = () => n8, a8 = null, o8 = null;
-function Ije(e) {
- return a8 ??= (async () => {
- let t = Mce(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await e8("immerse", n, (e) => (document.body.append(e), e)), o8 = t, t;
- })(), a8;
-}
-var s8 = () => o8, c8 = null, l8 = null;
-function Lje(e) {
- return c8 ??= (async () => {
- let t = $Te(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await e8("settings-panel", n, (e) => (document.body.append(e), e)), l8 = t, t;
- })(), c8;
-}
-var u8 = () => l8, d8 = null, f8 = null;
+var r8 = () => t8, i8 = null, a8 = null;
function Rje(e) {
- return d8 ??= (async () => {
- let t = pEe(e);
- return await e8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), f8 = t, t;
- })(), d8;
+ return i8 ??= (async () => {
+ let t = Pce(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
+ })(), i8;
}
-var p8 = () => f8, m8 = null, h8 = null;
+var o8 = () => a8, s8 = null, c8 = null;
function zje(e) {
- return m8 ??= (async () => {
- let t = Ile(e);
- return await e8("manage-header", e.root, (e) => (e.replaceChildren(), e)), h8 = t, t;
- })(), m8;
+ return s8 ??= (async () => {
+ let t = eEe(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
+ })(), s8;
}
-var g8 = () => h8, _8 = null, v8 = null;
+var l8 = () => c8, u8 = null, d8 = null;
function Bje(e) {
- return _8 ??= (async () => {
- let t = yoe(e);
- return await e8("batch-dock", e.root), v8 = t, t;
- })(), _8;
+ return u8 ??= (async () => {
+ let t = mEe(e);
+ return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
+ })(), u8;
}
-var y8 = () => v8, b8 = null;
+var f8 = () => d8, p8 = null, m8 = null;
function Vje(e) {
- return b8 ??= (async () => {
- ese(e), await e8("glow-picker", e.root);
- })(), b8;
-}
-function x8(e, t, n, r) {
+ return p8 ??= (async () => {
+ let t = Rle(e);
+ return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
+ })(), p8;
+}
+var h8 = () => m8, g8 = null, _8 = null;
+function Hje(e) {
+ return g8 ??= (async () => {
+ let t = xoe(e);
+ return await $6("batch-dock", e.root), _8 = t, t;
+ })(), g8;
+}
+var v8 = () => _8, y8 = null;
+function Uje(e) {
+ return y8 ??= (async () => {
+ tse(e), await $6("glow-picker", e.root);
+ })(), y8;
+}
+function b8(e, t, n, r) {
JQ(e, t), YQ(n, r);
}
//#endregion
//#region src/application/effects.ts
-var S8 = class {
+var x8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -76383,13 +76390,13 @@ var S8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, J = new S8();
-function Hje() {
- return J.dispose(), J = new S8(), J;
+}, J = new x8();
+function Wje() {
+ return J.dispose(), J = new x8(), J;
}
//#endregion
//#region src/application/receipts.js
-var C8 = {
+var S8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -76399,15 +76406,15 @@ var C8 = {
rollSeed: void 0,
seededSample: void 0
};
-function Uje() {
- JQ(R("#toasts"), {
- success: z("check"),
- error: z("circle-alert")
- }), C8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), C8.toastSeq = 0, C8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++C8.toastSeq}`, o = (e, t, n, r) => {
- Ao(i || (t ? "error" : "success")), x8(R("#toasts"), {
- success: z("check"),
- error: z("circle-alert")
+function Gje() {
+ JQ(L("#toasts"), {
+ success: R("check"),
+ error: R("circle-alert")
+ }), S8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), S8.toastSeq = 0, S8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++S8.toastSeq}`, o = (e, t, n, r) => {
+ Mo(i || (t ? "error" : "success")), b8(L("#toasts"), {
+ success: R("check"),
+ error: R("circle-alert")
}, a, {
html: e,
alert: !!t,
@@ -76415,18 +76422,18 @@ function Uje() {
action: r && !t ? {
label: r.label,
run: (e) => {
- Ec(e), r.run();
+ Oc(e), r.run();
}
} : null
});
};
- return o(C8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(C8.toastBody(e), t, n, null) };
- }, C8.liftToastsOverTutorial = () => {
- let e = R("#postSetupTutorial"), t = R("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
+ return o(S8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(S8.toastBody(e), t, n, null) };
+ }, S8.liftToastsOverTutorial = () => {
+ let e = L("#postSetupTutorial"), t = L("#toasts"), n = e.hidden ? innerHeight : e.getBoundingClientRect().top;
e.hidden || !e.offsetHeight || n < 160 ? t.style.removeProperty("--toast-bottom") : t.style.setProperty("--toast-bottom", `${Math.round(innerHeight - n + 12)}px`);
- }, J.resize(C8.liftToastsOverTutorial).observe(R("#postSetupTutorial")), J.listen.bind(J, window)("resize", C8.liftToastsOverTutorial), C8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ }, J.resize(S8.liftToastsOverTutorial).observe(L("#postSetupTutorial")), J.listen.bind(J, window)("resize", S8.liftToastsOverTutorial), S8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = C8.toast({ text: e }, {
+ return r = S8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -76439,15 +76446,15 @@ function Uje() {
}
} : null
}), r;
- }, C8.actionFailure = (e, t) => C8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), C8.rollSeed = () => Ln(), C8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, S8.actionFailure = (e, t) => S8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), S8.rollSeed = () => zn(), S8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
- let i = new Set([...e].sort((e, t) => In(n, r(e)) - In(n, r(t))).slice(0, t).map(r));
+ let i = new Set([...e].sort((e, t) => Rn(n, r(e)) - Rn(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
//#endregion
//#region src/react/catalog-grid/catalog-state.ts
-var Wje = [
+var Kje = [
"loc",
"creator",
"studio",
@@ -76467,25 +76474,25 @@ var Wje = [
"folder",
"folder_recursive"
];
-function w8(e, t, n, r = n.defaultSort) {
- return qk(e, t, n.defaultSort, n.defaultSortDirection, r);
+function C8(e, t, n, r = n.defaultSort) {
+ return Kk(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function Gje(e, t, n) {
- let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = un(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
+function qje(e, t, n) {
+ let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = fn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
creator: o("creator") || "",
studio: o("studio") || "",
owner: o("owner") === "none" ? "none" : "",
- tag: zn(o("tag")),
+ tag: Vn(o("tag")),
tag_match: o("tag_match") === "any" ? "any" : "all",
len: o("len") || "",
dur_min: o("dur_min") || "",
dur_max: o("dur_max") || "",
orient: o("orient") || "",
region: o("region") || "",
- state: cn[r] || o("state") || "",
- ...w8(o("sort"), o("dir"), t),
+ state: un[r] || o("state") || "",
+ ...C8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -76495,18 +76502,18 @@ function Gje(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function Kje(e, t) {
+function Jje(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function qje(e) {
- let t = sn[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of Wje) {
+function Yje(e) {
+ let t = ln[e.state ?? ""] || "/", n = new URLSearchParams();
+ for (let t of Kje) {
let r = e[t];
- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Wk(e.sort ?? "")) && n.set(t, r);
+ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Uk(e.sort ?? "")) && n.set(t, r);
}
- return !sn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
+ return !ln[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function Jje(e, t, n) {
+function Xje(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -76521,7 +76528,7 @@ function Jje(e, t, n) {
region: "",
state: "",
sort: t.defaultSort,
- dir: Kk(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Gk(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -76531,7 +76538,7 @@ function Jje(e, t, n) {
folder_recursive: ""
};
}
-function T8(e) {
+function w8(e) {
return {
state: e,
barsContext: {
@@ -76543,7 +76550,7 @@ function T8(e) {
}
//#endregion
//#region src/react/catalog-grid/catalog-controller.ts
-var Yje = class {
+var Zje = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -76588,56 +76595,56 @@ var Yje = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, E8 = 3e4, D8 = 0, Xje = (e, t = D8) => [
+}, T8 = 3e4, E8 = 0, Qje = (e, t = E8) => [
"facets",
e,
t
-], Zje = (e, t, n = D8) => [
+], $je = (e, t, n = E8) => [
"tops",
e,
t,
n
-], Qje = (e, t = D8) => [
+], eMe = (e, t = E8) => [
"tops",
e,
t
];
-async function O8(e) {
- let t = String(e), n = await rn(`/api/tops?${t}`), r = new URLSearchParams(t);
- return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await rn(`/api/tops?${r}`));
-}
-function $je(e, t) {
- return Promise.all([U.fetchQuery({
- queryKey: Xje(e),
- queryFn: () => rn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: E8
- }), U.fetchQuery({
- queryKey: Zje(t, e),
- queryFn: () => O8(t),
- staleTime: E8
- })]);
+async function D8(e) {
+ let t = String(e), n = await on(`/api/tops?${t}`), r = new URLSearchParams(t);
+ return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await on(`/api/tops?${r}`));
}
-function eMe(e) {
- return U.fetchQuery({
+function tMe(e, t) {
+ return Promise.all([H.fetchQuery({
queryKey: Qje(e),
- queryFn: () => O8(e),
- staleTime: E8
+ queryFn: () => on(`/api/facets${e ? `?${e}` : ""}`),
+ staleTime: T8
+ }), H.fetchQuery({
+ queryKey: $je(t, e),
+ queryFn: () => D8(t),
+ staleTime: T8
+ })]);
+}
+function nMe(e) {
+ return H.fetchQuery({
+ queryKey: eMe(e),
+ queryFn: () => D8(e),
+ staleTime: T8
});
}
-function k8() {
- D8 += 1;
+function O8() {
+ E8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
- U.removeQueries({
+ H.removeQueries({
queryKey: ["facets"],
predicate: e
- }), U.removeQueries({
+ }), H.removeQueries({
queryKey: ["tops"],
predicate: e
});
}
//#endregion
//#region src/application/navigation-items.ts
-var A8 = [
+var k8 = [
[
"",
"首页",
@@ -76688,7 +76695,7 @@ var A8 = [
"管理",
"wrench"
]
-], j8 = [
+], A8 = [
[
"stats",
"统计",
@@ -76734,18 +76741,18 @@ var A8 = [
"Peach 配置",
"folder-cog"
]
-], M8 = [
+], j8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], tMe = (e) => j8.filter(([t]) => M8.includes(t) && (t !== "configuration" || e)), N8 = j8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], rMe = (e) => A8.filter(([t]) => j8.includes(t) && (t !== "configuration" || e)), M8 = A8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), nMe = [...A8, ...N8], rMe = {
+]]), iMe = [...k8, ...M8], aMe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -76753,7 +76760,7 @@ var A8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, P8 = [
+}, N8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
@@ -76761,118 +76768,118 @@ var A8 = [
];
//#endregion
//#region src/react/index/index-controller.ts
-function F8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function P8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function I8(e, t, n) {
+function F8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
- html: Ya(e.k, r ? {
+ html: Za(e.k, r ? {
id: r,
has_image: e.has_image,
image_version: e.image_version,
logo_version: e.logo_version,
avatar_stand_in: e.avatar_stand_in
} : null, e.has_avatar && !i ? e.rep : null, t, e.mark, e.has_logo ? e.k : "", i && n ? "large" : "ring", i ? null : e.avatar_focus, !0),
- face: Za(e.avatar_focus)
+ face: $a(e.avatar_focus)
};
}
-function L8(e) {
- let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${B(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
- return `<span class="ini">${B(n)}</span>${r}`;
+function I8(e) {
+ let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Sa({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
+ return `<span class="ini">${z(n)}</span>${r}`;
}
-function iMe(e) {
+function oMe(e) {
let t = (t) => {
- e.adoptFollowView(t), e.hideIndex(), e.openPage(ca(t));
+ e.adoptFollowView(t), e.hideIndex(), e.openPage(ua(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(F8(t), n);
+ e.route(P8(t), n);
},
- personAvatar: I8,
- authorAvatar: L8,
+ personAvatar: F8,
+ authorAvatar: I8,
openFollowAuthor(n) {
- t(la(e.followView(), n));
+ t(da(e.followView(), n));
},
openFollowTag(n) {
- t(ua(e.followView(), n));
+ t(fa(e.followView(), n));
}
};
}
//#endregion
//#region src/application/source-action.ts
-function aMe(e) {
+function sMe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
- r && (Ec(r), r.innerHTML = `${vs("正在定位")}${a ? `<span>${B(a)}</span>` : ""}`), n.textContent = "";
+ r && (Oc(r), r.innerHTML = `${bs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";
try {
await e.request(t), n.textContent = "", e.success();
} catch (t) {
n.textContent = e.failureText(t);
} finally {
- r && (Ec(r, !1), r.innerHTML = i);
+ r && (Oc(r, !1), r.innerHTML = i);
}
};
}
//#endregion
//#region src/react/entity-page/entity-route.ts
-var R8 = () => Object.fromEntries(PX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function z8(e, t) {
- let n = new URLSearchParams(e), r = R8();
+var L8 = () => Object.fromEntries(PX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function R8(e, t) {
+ let n = new URLSearchParams(e), r = L8();
for (let e of PX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...qk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Kk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function B8(e) {
+function z8(e) {
let t = new URLSearchParams();
- for (let n of PX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Wk(e.sort || "")) && t.set(n, e[n]);
+ for (let n of PX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Uk(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
-function V8(e) {
+function B8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function H8(e, t) {
- let n = new URLSearchParams(B8(e));
+function V8(e, t) {
+ let n = new URLSearchParams(z8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function oMe(e, t, n, r) {
- let i = H8(n, r);
- return pn(e, t) + (i ? `?${i}` : "");
+function cMe(e, t, n, r) {
+ let i = V8(n, r);
+ return hn(e, t) + (i ? `?${i}` : "");
}
-function sMe() {
+function lMe() {
let e = "";
return {
fresh(t, n) {
- return e = pn(t, n), e;
+ return e = hn(t, n), e;
},
read(t, n, r, i) {
- let a = e === pn(t, n) && !r;
+ let a = e === hn(t, n) && !r;
e = "";
- let o = a ? R8() : { ...z8(r, i) };
+ let o = a ? L8() : { ...R8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : V8(r)
+ } : B8(r)
};
}
};
}
//#endregion
//#region src/react/entity-page/photo-surface.ts
-function cMe(e, t) {
+function uMe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function lMe(e) {
+function dMe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -76895,12 +76902,12 @@ function lMe(e) {
}
//#endregion
//#region src/react/entity-page/entity-controller.ts
-function uMe(e, t, n) {
+function fMe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(oMe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(cMe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -76910,11 +76917,11 @@ function uMe(e, t, n) {
jav: o.jav
}), !0;
}, i = /* @__PURE__ */ new Map(), a = (t, a) => {
- let o = pn(t, a), s = i.get(o);
+ let o = hn(t, a), s = i.get(o);
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : R8();
+ return n?.kind === t && n.name === a ? n.filters : L8();
}, l = {
...n,
route: (e, n) => {
@@ -76927,7 +76934,7 @@ function uMe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Gk(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Wk(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -76947,7 +76954,7 @@ function uMe(e, t, n) {
e.setPhotoLayout(t), e.syncPhotoWalls();
},
openEntity: (t, n, r = !1) => {
- r ? e.route(pn(t, n) + e.suffix(), !0) : e.openEntity(t, n);
+ r ? e.route(hn(t, n) + e.suffix(), !0) : e.openEntity(t, n);
},
painted: (t, n) => {
let r = e.photoViewActive();
@@ -76979,7 +76986,7 @@ function uMe(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-loading.ts
-function dMe(e) {
+function pMe(e) {
return async (t, n, r) => {
!e.shapesReady(t, n) && (await e.waitShapes(), !r()) || (e.paintSkeleton(t, n), e.resetView(), e.loadShapes().then(() => {
r() && e.syncParts(t, n);
@@ -76988,8 +76995,8 @@ function dMe(e) {
}
//#endregion
//#region src/react/entity-page/entity-portrait.ts
-function fMe(e, t) {
- let n = e === "studio" || e === "agency", r = t.id ? Ja({
+function mMe(e, t) {
+ let n = e === "studio" || e === "agency", r = t.id ? Xa({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -77000,22 +77007,22 @@ function fMe(e, t) {
logo: n && t.has_logo ? t.canonical_name : "",
logoVersion: t.logo_version,
logoVariant: "large",
- alt: B(t.canonical_name),
+ alt: z(t.canonical_name),
lazy: !1,
- style: n ? "" : Qa(t.avatar_focus),
+ style: n ? "" : eo(t.avatar_focus),
focus: n ? null : t.avatar_focus,
dropStyle: !0,
thumb: !1
}) : "", i = e === "creator" ? t.follow : null;
- return r || (i?.avatar ? `<img src="${B(i.avatar)}" alt="${B(t.canonical_name)}" referrerpolicy="no-referrer" ${ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
+ return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Sa({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
//#endregion
//#region src/react/entity-page/entity-application.ts
-function pMe(e) {
- let t = sMe(), n = {
+function hMe(e) {
+ let t = lMe(), n = {
...e.helpers,
- portraitImg: fMe
- }, r = uMe(e.controller, n, e.actions);
+ portraitImg: mMe
+ }, r = fMe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -77024,22 +77031,22 @@ function pMe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: dMe(e.loading),
- photos: lMe(e.photos)
+ loading: pMe(e.loading),
+ photos: dMe(e.photos)
};
}
//#endregion
//#region src/card-art/feed-identity.ts
-function mMe(e) {
+function gMe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
- let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${B(e.code)}" data-actor="${B(t.source_actor_id)}" data-name="${B(t.name)}"` : "", i = n ? "" : Ya(t.name, t, null);
- return "id" in t && t.id ? `<a class="mav"${r} href="${B(pn("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;
+ let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : Za(t.name, t, null);
+ return "id" in t && t.id ? `<a class="mav"${r} href="${z(hn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
}).join("");
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
//#endregion
//#region src/application/feed.js
-var U8 = {
+var H8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -77055,113 +77062,113 @@ var U8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function W8(e) {
- return e.has_cover ? eo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${bs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : eo(e, "big").replace(/ src="[^"]*"/, ` src="${B(Wa(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
+function U8(e) {
+ return e.has_cover ? no(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Ss("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : no(e, "big").replace(/ src="[^"]*"/, ` src="${z(Ka(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function hMe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? bF({
+function _Me(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = U8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? yF({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
- }) : B(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${B(r)} 的作品详情"></a>` : "";
+ }) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
${a}<div class="pic" style="--card-ratio:${xA}">${n}
<div class="hovertools feednewtools">
- <button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${B(r)}">${z("star")}</button>
- <button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${z("x")}</button>
- <button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${B(r)}">${z("check")}</button></div></div>
- <div class="meta">${mMe(e)}<div class="mtext"><span class="t">${i}</span>
+ <button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
+ <button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
+ <button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
+ <div class="meta">${gMe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function gMe() {
+function vMe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- U8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Sn(e)}`, t.parts]));
+ H8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${wn(e)}`, t.parts]));
} catch {}
}
-async function G8() {
- let e = J, t = await rn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (U8.entityShapesComplete = !0, U8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Sn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && q8(t.home.feed), Z8(location.pathname) && J8(R("#feedNew"))), U8.entityShapes;
+async function W8() {
+ let e = J, t = await on("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (H8.entityShapesComplete = !0, H8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${wn(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && K8(t.home.feed), X8(location.pathname) && q8(L("#feedNew"))), H8.entityShapes;
}
-var K8 = "peach.home-feed.v1";
-function q8(e) {
+var G8 = "peach.home-feed.v1";
+function K8(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(K8, e ? "1" : "0");
+ localStorage.setItem(G8, e ? "1" : "0");
} catch {}
}
-function _Me() {
+function yMe() {
try {
- let e = localStorage.getItem(K8);
+ let e = localStorage.getItem(G8);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function J8(e) {
- !e || FV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));
+function q8(e) {
+ !e || PV(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = H8.feedNewSkeletonHtml())));
}
-function vMe(e, t) {
- return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : _s(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
+function bMe(e, t) {
+ return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : ys(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
actionLabel: "配置连接方式",
actionHref: "/sources"
});
}
-function Y8(e) {
+function J8(e) {
let t = e && !e.error && e.items || [];
- return vMe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(hMe).join("")}</div>`;
+ return bMe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(_Me).join("")}</div>`;
}
-function X8(e) {
- e && (t9(e), Z.appSettings.feedAutoScroll && gc(e));
+function Y8(e) {
+ e && (e9(e), Z.appSettings.feedAutoScroll && vc(e));
}
-function Z8(e) {
- return un(e) && e !== "/junk-files";
+function X8(e) {
+ return fn(e) && e !== "/junk-files";
}
-function yMe() {
- let e = R("#feedNew");
- FV(e) ? zV(e, { revision: ++U8.feedRevision }) : (J8(e), RV("feed-new", {
+function xMe() {
+ let e = L("#feedNew");
+ PV(e) ? RV(e, { revision: ++H8.feedRevision }) : (q8(e), LV("feed-new", {
host: e,
- revision: U8.feedRevision,
- helpers: U8.feedNewHelpers,
- actions: U8.feedNewActions
+ revision: H8.feedRevision,
+ helpers: H8.feedNewHelpers,
+ actions: H8.feedNewActions
}, {
container: e,
- isCurrent: () => Z8(location.pathname)
+ isCurrent: () => X8(location.pathname)
}));
}
-function Q8() {
- let e = R("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(_c), BV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+function Z8() {
+ let e = L("#feedNew");
+ e.querySelectorAll(".feednewrow").forEach(yc), zV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
-function $8() {
- U8.feedRevision += 1, zV(R("#feedNew"), { revision: U8.feedRevision }), o5({ feedRevision: U8.feedRevision });
+function Q8() {
+ H8.feedRevision += 1, RV(L("#feedNew"), { revision: H8.feedRevision }), a5({ feedRevision: H8.feedRevision });
}
-function bMe() {
- document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? gc(e) : _c(e));
+function SMe() {
+ document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? vc(e) : yc(e));
}
-var e5 = 0;
-function xMe([e]) {
- let t = e.contentRect.width >= U8.HERO_WIDE_PX;
- cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {
- e5 = 0, R("#index")?.toggleAttribute("data-hero-wide", t);
+var $8 = 0;
+function CMe([e]) {
+ let t = e.contentRect.width >= H8.HERO_WIDE_PX;
+ cancelAnimationFrame($8), $8 = requestAnimationFrame(() => {
+ $8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function SMe() {
- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${xA}"></div>
+function wMe() {
+ H8.FEED_SKELETON_CARDS = 8, H8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${xA}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${Sn(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${Sn(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {
- feedRowHtml: Y8,
- wireFeedRow: (e) => X8(e)
- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, J.resize(xMe).observe(R("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(H8.FEED_SKELETON_CARDS)}</div>`, H8.entityShapes = null, H8.entityShapesComplete = !1, H8.hasEntityShape = (e, t) => H8.entityShapesComplete || !!H8.entityShapes?.has(`${e}/${wn(t)}`), H8.hasEntityPart = (e, t, n) => !!t && !!H8.entityShapes?.get(`${e}/${wn(t)}`)?.includes(n), H8.feedNewSkeletonSection = () => `<section class="feednew">${H8.feedNewSkeletonHtml()}</section>`, H8.COSTAR_SKELETON_PEOPLE = 12, H8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(H8.COSTAR_SKELETON_PEOPLE)}</div></div>`, H8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, H8.feedRevision = 0, H8.feedNewHelpers = {
+ feedRowHtml: J8,
+ wireFeedRow: (e) => Y8(e)
+ }, H8.feedNewActions = { settled: (e) => K8(e) }, H8.HERO_WIDE_PX = 900, J.resize(CMe).observe(L("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
-function CMe(e, t, n, r = "") {
+function TMe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -77176,10 +77183,10 @@ function CMe(e, t, n, r = "") {
}
//#endregion
//#region src/filter-controls-skeleton.ts
-var t5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : rs(e, "size-4 shrink-0"), n5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", r5 = (e, t, n) => `<span data-entity-layout="" class="${FU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${IU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${n5}>${t5(r)}</span>`).join("")}</span>`;
-function i5(e, t) {
- let n = SM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? r5(t.label, t.value, t.options) : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${n5}>${t5("shuffle")}</button>${i}${r5("馆藏显示方式", n, [[
+var e5 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : as(e, "size-4 shrink-0"), t5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", n5 = (e, t, n) => `<span data-entity-layout="" class="${PU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${FU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${t5}>${e5(r)}</span>`).join("")}</span>`;
+function r5(e, t) {
+ let n = wM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? n5(t.label, t.value, t.options) : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${t5}>${e5("shuffle")}</button>${i}${n5("馆藏显示方式", n, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -77187,7 +77194,7 @@ function i5(e, t) {
"list",
"列表",
"ri-list-unordered"
- ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${n5}>${t5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${B(e.key)}" aria-pressed="${e.pressed}" ${n5}>${B(e.label)}${e.dir ? t5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${r.get("browse") === "folders" || !!r.get("folder")}" ${t5}>${e5("ri-folder-3-line")}</button>${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${t5}>${z(e.label)}${e.dir ? e5(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
//#endregion
//#region src/application/entity.js
@@ -77216,16 +77223,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function a5() {
- let e = PV(R("#index"));
+function i5() {
+ let e = NV(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function o5(e) {
- Y.entityPageCurrent() && zV(R("#index"), e);
+function a5(e) {
+ Y.entityPageCurrent() && RV(L("#index"), e);
}
-function s5() {
- if (Vl.type === "item") return Vl;
- let e = a5();
+function o5() {
+ if (Ul.type === "item") return Ul;
+ let e = i5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -77235,67 +77242,67 @@ function s5() {
filters: { ...r }
};
}
- return Vl;
+ return Ul;
}
-function c5(e, t, n = t7()) {
- return _Ne(n).map(([n, r]) => {
- let i = e === n, a = Gk(n, e, t);
+function s5(e, t, n = e7()) {
+ return yNe(n).map(([n, r]) => {
+ let i = e === n, a = Wk(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Uk(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Uk(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Hk(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Hk(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function l5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
+function c5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
-function u5() {
- return cMe({
+function l5() {
+ return uMe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
- indexVisible: !R("#index").hidden,
+ indexVisible: !L("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
- statsVisible: !R("#stats").hidden
+ statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function d5() {
+function u5() {
Y.photos.sync();
}
-function f5() {
- u5() ? Joe(DA()) : BA();
+function d5() {
+ l5() ? Yoe(DA()) : BA();
}
-function wMe(e) {
+function EMe(e) {
Y.photos.setSize(e);
}
-var p5 = aMe({
- request: (e) => rn("/api/reveal", {
+var f5 = sMe({
+ request: (e) => on("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => C8.toast({ text: "已在资源管理器中显示" }),
+ success: () => S8.toast({ text: "已在资源管理器中显示" }),
failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function m5(e) {
+async function p5(e) {
let t = { textContent: "" };
- return await p5(e, t), t.textContent;
+ return await f5(e, t), t.textContent;
}
-async function TMe(e) {
+async function DMe(e) {
let t = { textContent: "" }, n = [];
- return await h5(e, t, (e) => {
+ return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function h5(e, t, n) {
+async function m5(e, t, n) {
t.textContent = "正在核对目录…";
try {
- let r = await rn("/api/purge-missing", {
+ let r = await on("/api/purge-missing", {
method: "POST",
body: JSON.stringify({ id: e })
});
@@ -77305,8 +77312,8 @@ async function h5(e, t, n) {
}
if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), C8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
- await rn("/api/batch", {
+ n && n(r), S8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: e,
@@ -77317,29 +77324,29 @@ async function h5(e, t, n) {
restored: e.length
});
} : null });
- } else C8.actionReceipt("目录核对完成,无需改动");
+ } else S8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), C8.actionFailure("核对目录", e);
+ t.textContent = Y.sourceHint(e.message), S8.actionFailure("核对目录", e);
}
}
-function EMe(e) {
+function OMe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function DMe(e, t) {
+function kMe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J.handler(r, "onclick", () => p5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => h5(Number(i.dataset.sync), n, t));
+ r && J.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && J.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function OMe(e, t) {
- let n = Lc({
+async function AMe(e, t) {
+ let n = zc({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
body: "<label class=\"modalfield\"><span>别名</span>\n <input class=\"geist-input\" name=\"alias\" maxlength=\"80\" autocomplete=\"off\"\n placeholder=\"另一种写法,或另一个艺名\"></label>" + (e.length ? `<div class="modalfield"><span>自己添过的</span>
- <div class="aliaschips">${e.map((e) => `<span class="aliaschip">${B(e)}
- <button type="button" data-alias-drop="${B(e)}"
- aria-label="撤销别名 ${B(e)}">${z("x")}</button></span>`).join("")}</div></div>` : ""),
+ <div class="aliaschips">${e.map((e) => `<span class="aliaschip">${z(e)}
+ <button type="button" data-alias-drop="${z(e)}"
+ aria-label="撤销别名 ${z(e)}">${R("x")}</button></span>`).join("")}</div></div>` : ""),
confirmLabel: "添加别名",
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
@@ -77355,53 +77362,53 @@ async function OMe(e, t) {
remove: !0
});
} catch (e) {
- C8.actionFailure("撤销别名", e);
+ S8.actionFailure("撤销别名", e);
return;
}
- C8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ S8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? C8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? S8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : C8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : S8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function g5(e, t) {
- let n = ["performer", "studio"].includes(e) && U8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${is()}${e === "agency" ? "" : i5(c5(W.sort, W.dir, n), n ? {
+function h5(e, t) {
+ let n = ["performer", "studio"].includes(e) && H8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${os()}${e === "agency" ? "" : r5(s5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
value: CA(),
options: vA
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${n5}>${z("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${n5}>${z("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${B(e.k)}" aria-pressed="${W.state === e.k}" ${n5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = CMe(e, r, e === "agency" ? Is({
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${t5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${t5}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${t5}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = TMe(e, r, e === "agency" ? Rs({
kind: "performers",
- layout: M5.peopleIndexLayout()
+ layout: j5.peopleIndexLayout()
}) : qJ("正在读取作品", jA(AA({
active: n,
home: !1,
portrait: !1
}))), i);
- R("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? _5(e, t) : (R("#index").innerHTML = a, _5(e, t), Us(R("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? g5(e, t) : (L("#index").innerHTML = a, g5(e, t), Gs(L("#index")));
}
-function _5(e, t) {
- let n = R("#index").firstElementChild;
+function g5(e, t) {
+ let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && U8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", U8.costarSkeletonFoot())), r(n.querySelector(".feednew"), U8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", U8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && U8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", U8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && H8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", H8.costarSkeletonFoot())), r(n.querySelector(".feednew"), H8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", H8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && H8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", H8.factsSkeleton()));
}
-function v5(e) {
- let t = dn[e] || e, n = H3[t] || "条目", r = H3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
- R("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
+function _5(e) {
+ let t = pn[e] || e, n = V3[t] || "条目", r = V3[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+ L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function y5(e, t) {
- x9(Y.application.fresh(e, t));
+function v5(e, t) {
+ b9(Y.application.fresh(e, t));
}
-function kMe() {
+function jMe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -77412,40 +77419,40 @@ function kMe() {
"orient",
"sort",
"dir"
- ], Y.emptyEntityFilters = R8, Y.parseEntityFilters = (e) => z8(e, {
+ ], Y.emptyEntityFilters = L8, Y.parseEntityFilters = (e) => R8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = B8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), Y.entityFilterSearch = z8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
} : e, Y.activeFilterState = () => {
- let e = s5();
- return e.type === "home" ? W : e.filters;
- }, R("#q").value = W.q, X.rememberSearchValue();
-}
-function AMe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!a5(), Y.entityPageLive = (e, t) => {
- let n = a5();
- return !!n && !R("#index").hidden && n.props.kind === e && n.props.name === t;
+ let e = o5();
+ return e.type === "home" ? U : e.filters;
+ }, L("#q").value = U.q, X.rememberSearchValue();
+}
+function MMe() {
+ Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!i5(), Y.entityPageLive = (e, t) => {
+ let n = i5();
+ return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, Y.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = V8, Y.entityViewSearch = H8, Y.entityBodyCanLoadMore = () => !R("#index").hidden && R("#stats").hidden, Y.entityBodySkeleton = () => q7(), Y.entityPageHelpers = {
+ }, Y.parseMediaView = B8, Y.entityViewSearch = V8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => K7(), Y.entityPageHelpers = {
wireDrag: (e) => {
- e && t9(e);
+ e && e9(e);
},
wireScroller: (e) => {
- e && oc(e);
+ e && cc(e);
},
- wireFeedRow: (e) => X8(e),
- feedRowHtml: Y8,
- receipt: (e, t) => C8.actionReceipt(e, t),
- failure: (e, t) => C8.actionFailure(e, t),
- aliasForm: (e, t) => OMe(e, t),
- sourceToolsHtml: (e) => EMe(e),
- wireSourceTools: (e, t) => DMe(e, t),
- comboItems: (e) => I7(e),
- sortKeys: (e, t, n) => c5(e, t, n)
+ wireFeedRow: (e) => Y8(e),
+ feedRowHtml: J8,
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ failure: (e, t) => S8.actionFailure(e, t),
+ aliasForm: (e, t) => AMe(e, t),
+ sourceToolsHtml: (e) => OMe(e),
+ wireSourceTools: (e, t) => kMe(e, t),
+ comboItems: (e) => F7(e),
+ sortKeys: (e, t, n) => s5(e, t, n)
}, Y.entityFollowActions = {
...$.followFeedActions,
route: () => {},
@@ -77464,34 +77471,34 @@ function AMe() {
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
].filter(Boolean).join(","), Y.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
- aria-label="定位源文件">${z("folder-open")}</button>
+ aria-label="定位源文件">${R("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
- aria-label="同步删除">${z("folder-sync")}</button>`;
+ aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function jMe() {
- Y.application = pMe({
+function NMe() {
+ Y.application = hMe({
controller: {
context: () => {
- let e = s5();
+ let e = o5();
return e.type === "entity" ? e : null;
},
live: (e, t) => Y.entityPageLive(e, t),
current: () => Y.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
- restoreHomeContext: () => hu({ barsContext: {
+ restoreHomeContext: () => _u({ barsContext: {
type: "home",
- filters: W
+ filters: U
} }),
- releaseBodyPreviews: () => El(R("#index [data-entity-body]")),
- push: o5,
+ releaseBodyPreviews: () => Ol(L("#index [data-entity-body]")),
+ push: a5,
state: () => ({
- seed: String(W.seed || ""),
- jav: W.jav === "1"
+ seed: String(U.seed || ""),
+ jav: U.jav === "1"
}),
preferences: () => ({
revision: Y.entityPageRevision,
- feedRevision: U8.feedRevision,
+ feedRevision: H8.feedRevision,
photoSize: DA(),
photoLayout: OA(),
photoLayouts: bA,
@@ -77499,13 +77506,13 @@ function jMe() {
javLayout: CA(),
javLayouts: vA,
states: X.VIEW_PILLS,
- peopleLayout: M5.peopleIndexLayout(),
- layout: K7(),
- selectMode: Gl,
- selected: new Set(Ul),
+ peopleLayout: j5.peopleIndexLayout(),
+ layout: G7(),
+ selectMode: ql,
+ selected: new Set(Gl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: t9,
+ wireDrag: e9,
skeletonHtml: Y.entityBodySkeleton,
canLoadMore: Y.entityBodyCanLoadMore,
follow: {
@@ -77513,35 +77520,35 @@ function jMe() {
actions: Y.entityFollowActions
}
}),
- changeFilter: C7,
- rollSeed: () => C8.rollSeed(),
+ changeFilter: S7,
+ rollSeed: () => S8.rollSeed(),
writeSeed: (e) => {
- W.seed = e, gu();
+ U.seed = e, vu();
},
- setJavLayout: i7,
+ setJavLayout: r7,
javLayout: CA,
setPhotoLayout: NA,
- syncPhotoWalls: d5,
- openEntity: y5,
- photoViewActive: u5,
+ syncPhotoWalls: u5,
+ openEntity: v5,
+ photoViewActive: l5,
recordPainted: (e, t) => {
Y.entityPageView = e, Y.entityPageWall = t;
},
- syncDensity: f5,
- scheduleSticky: d7,
- releasePage: () => BV(R("#index")),
- showMissing: v5,
- dropBars: k8
+ syncDensity: d5,
+ scheduleSticky: u7,
+ releasePage: () => zV(L("#index")),
+ showMissing: _5,
+ dropBars: O8
},
loading: {
- shapesReady: (e, t) => U8.hasEntityShape(e, t),
- waitShapes: z5,
- paintSkeleton: g5,
+ shapesReady: (e, t) => H8.hasEntityShape(e, t),
+ waitShapes: R5,
+ paintSkeleton: h5,
resetView: () => {
- hu({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
+ _u({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
},
- loadShapes: G8,
- syncParts: _5
+ loadShapes: W8,
+ syncParts: g5
},
photos: {
preferences: () => ({
@@ -77550,16 +77557,16 @@ function jMe() {
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: o5,
- pushFollow: E9,
- syncDensity: f5,
- storeSize: Koe
+ pushEntity: a5,
+ pushFollow: T9,
+ syncDensity: d5,
+ storeSize: qoe
},
helpers: Y.entityPageHelpers,
actions: {
- toggleTag: F7,
- openFollowAuthor: F5,
- javContext: (e) => hu({ entityJavLayout: !!e })
+ toggleTag: P7,
+ openFollowAuthor: P5,
+ javContext: (e) => _u({ entityJavLayout: !!e })
},
sortPreference: () => ({
sort: Z.appSettings.defaultSort,
@@ -77569,10 +77576,10 @@ function jMe() {
}
//#endregion
//#region src/application/playlists.js
-var b5 = { playlistWrite: void 0 };
-function MMe(e, t) {
- e === "tag" ? (hu({ state: {
- ...W,
+var y5 = { playlistWrite: void 0 };
+function PMe(e, t) {
+ e === "tag" ? (_u({ state: {
+ ...U,
tag: t,
tag_match: "all",
creator: "",
@@ -77580,17 +77587,17 @@ function MMe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(g7()), W5(), N7()) : y5(e, t);
+ } }), X.clearSearchField(), Q.route(h7()), U5(), M7()) : v5(e, t);
}
-function x5(e = "") {
+function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
- maxlength="80" placeholder="输入名称" value="${B(e)}"></label>`;
+ maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function NMe({ title: e, count: t, save: n }) {
- let r = Lc({
+async function FMe({ title: e, count: t, save: n }) {
+ let r = zc({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: x5(e),
+ body: b5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -77600,28 +77607,28 @@ async function NMe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await s9(a.id, a.current_asset_id, !0), C8.actionReceipt("已保存为播放列表", { undo: async () => {
- await b5.playlistWrite({
+ i && (await o9(a.id, a.current_asset_id, !0), S8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await y5.playlistWrite({
action: "delete",
id: a.id
- }), x9("/playlists");
+ }), b9("/playlists");
} }));
}
-async function PMe(e) {
- let t = ((await rn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Cs(`data-pick-playlist="${e.id}"`)}
- <span class="pickrowtext"><b>${B(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = Lc({
+async function IMe(e) {
+ let t = ((await on("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ts(`data-pick-playlist="${e.id}"`)}
+ <span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = zc({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: x5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : _s("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: b5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : ys("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await b5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await y5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await b5.playlistWrite({
+ for (let t of r) await y5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -77639,41 +77646,41 @@ async function PMe(e) {
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- C8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await b5.playlistWrite({
+ S8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await y5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await b5.playlistWrite({
+ a.created && await y5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function S5() {
- El(), a9(!1), U5();
- let e = PV(R("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? hu({ pageOpens: ou + 1 }) : (H5({ manage: !1 }), hu({ playlistsRevision: fu + 1 }));
+function x5() {
+ Ol(), i9(!1), H5();
+ let e = NV(L("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? _u({ pageOpens: cu + 1 }) : (V5({ manage: !1 }), _u({ playlistsRevision: mu + 1 }));
}
-function FMe(e) {
+function LMe(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
-function C5(e) {
- hu({ configurationRequestedSection: e }), Q.navigatePath(dV(e));
+function S5(e) {
+ _u({ configurationRequestedSection: e }), Q.navigatePath(uV(e));
}
-function IMe() {
- b5.playlistWrite = (e) => rn("/api/playlist", {
+function RMe() {
+ y5.playlistWrite = (e) => on("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
//#endregion
//#region src/react/catalog-grid/selection-controller.ts
-function w5(e) {
+function C5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function T5(e, t, n, r, i = !1) {
+function w5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -77681,15 +77688,15 @@ function T5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function E5(e, t, n, r, i, a = !1) {
+function T5(e, t, n, r, i, a = !1) {
let o = n === "follow", s = kY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...T5(e, t, n, !0),
+ ...w5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function LMe(e, t, n, r) {
- let i = w5(t);
+function zMe(e, t, n, r) {
+ let i = C5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
@@ -77698,7 +77705,7 @@ function LMe(e, t, n, r) {
}
//#endregion
//#region src/application/selection.js
-var D5 = {
+var E5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -77706,43 +77713,43 @@ var D5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function O5() {
- W7({
- selected: new Set(Ul),
- selectMode: Gl
- }), o5({
- selected: new Set(Ul),
- selectMode: Gl
- }), E9({
- selected: new Set(Wl),
- selectMode: Gl
- }), D5.batchDockProps = qMe(), y8() && (y8().render(D5.batchDockProps), Z.syncGlassOptics());
+function D5() {
+ U7({
+ selected: new Set(Gl),
+ selectMode: ql
+ }), a5({
+ selected: new Set(Gl),
+ selectMode: ql
+ }), T9({
+ selected: new Set(Kl),
+ selectMode: ql
+ }), E5.batchDockProps = YMe(), v8() && (v8().render(E5.batchDockProps), Z.syncGlassOptics());
+}
+function O5(e, t = !1) {
+ _u(w5({
+ selected: Gl,
+ followSelected: Kl
+ }, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", ql), ql && Ol(), L("#selectMode").setAttribute("aria-pressed", String(ql)), D5();
+}
+function BMe() {
+ return [...F5.gridCards()].map((e) => +e.dataset.id);
}
function k5(e, t = !1) {
- hu(T5({
- selected: Ul,
- followSelected: Wl
- }, j5(), w5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Gl), Gl && El(), R("#selectMode").setAttribute("aria-pressed", String(Gl)), O5();
-}
-function RMe() {
- return [...I5.gridCards()].map((e) => +e.dataset.id);
-}
-function A5(e, t = !1) {
- hu(E5({
- selected: Ul,
- followSelected: Wl
- }, j5(), w5(location.pathname), RMe(), e, t)), k5(!0);
+ _u(T5({
+ selected: Gl,
+ followSelected: Kl
+ }, A5(), C5(location.pathname), BMe(), e, t)), O5(!0);
}
-function zMe() {
+function VMe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function BMe(e, t = !1) {
- hu(E5({
- selected: Ul,
- followSelected: Wl
- }, j5(), "follow", zMe(), e, t)), k5(!0);
+function HMe(e, t = !1) {
+ _u(T5({
+ selected: Gl,
+ followSelected: Kl
+ }, A5(), "follow", VMe(), e, t)), O5(!0);
}
-async function VMe(e, t) {
+async function UMe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -77757,16 +77764,16 @@ async function VMe(e, t) {
dispose: "移入回收站",
restore: "还原所选项目",
delete: "永久删除所选项目"
- }, i = [...Ul];
- if (i.length) return zc({
+ }, i = [...Gl];
+ if (i.length) return Vc({
title: r[e],
body: `将处理选中的 ${i.length} 项。${e === "delete" ? "文件和馆藏记录会永久删除,无法恢复。" : e === "dispose" ? "馆藏记录可在回收站还原。" : ""}`,
confirmLabel: r[e],
danger: e === "delete",
onConfirm: async () => {
- Ec(t);
+ Oc(t);
try {
- let t = await rn("/api/batch", {
+ let t = await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: i,
@@ -77774,9 +77781,9 @@ async function VMe(e, t) {
})
});
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- k5(!1, !0), await o7();
+ O5(!1, !0), await a7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- C8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ S8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -77785,7 +77792,7 @@ async function VMe(e, t) {
"missing"
]) {
let n = i.filter((n) => t.restored_reasons[n] === e);
- n.length && await rn("/api/batch", {
+ n.length && await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
@@ -77794,37 +77801,37 @@ async function VMe(e, t) {
})
});
}
- else await rn("/api/batch", {
+ else await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: i,
operation: r
})
});
- await o7();
+ await a7();
} : null });
} catch (e) {
- throw Ec(t, !1), e;
+ throw Oc(t, !1), e;
} finally {
- Ec(t, !1), O5();
+ Oc(t, !1), D5();
}
}
});
}
-async function HMe() {
- let e = [...Ul];
+async function WMe() {
+ let e = [...Gl];
if (!e.length) return;
- let t = Lc({
+ let t = zc({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + D5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + E5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
onConfirm: async () => {
let n = t.dialog.querySelector("[data-region-pick][aria-pressed=\"true\"]");
if (!n) throw Error("先选一个产地");
- return await rn("/api/batch", {
+ return await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: e,
@@ -77841,10 +77848,10 @@ async function HMe() {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (k5(!1, !0), await o7(), C8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (O5(!1, !0), await a7(), S8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function UMe(e, t) {
- let n = [...Wl];
+async function GMe(e, t) {
+ let n = [...Kl];
if (!n.length) return;
let r = {
save: "保存到数据库",
@@ -77855,31 +77862,31 @@ async function UMe(e, t) {
seen: "标记为已看",
ignored: "忽略所选作品"
};
- return zc({
+ return Vc({
title: i[e],
body: `将处理选中的 ${n.length} 项关注作品。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Ec(t);
+ Oc(t);
try {
- await rn(e === "save" ? "/api/follow/save" : "/api/follow/status", {
+ await on(e === "save" ? "/api/follow/save" : "/api/follow/status", {
method: "POST",
body: JSON.stringify(e === "save" ? { items: n } : {
items: n,
to: e
})
- }), k5(!1, !0), location.pathname === "/follow" && hu({ pageOpens: ou + 1 }), C8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), O5(!1, !0), location.pathname === "/follow" && _u({ pageOpens: cu + 1 }), S8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
- throw Ec(t, !1), e;
+ throw Oc(t, !1), e;
} finally {
- Ec(t, !1), O5();
+ Oc(t, !1), D5();
}
}
});
}
-async function WMe(e, t) {
- let n = [...Ul];
+async function KMe(e, t) {
+ let n = [...Gl];
if (!n.length) return;
let r = {
"dismiss-junk": "不是垃圾",
@@ -77890,159 +77897,159 @@ async function WMe(e, t) {
"reconsider-junk": "重新检查文件",
dispose: "移入回收站"
};
- return zc({
+ return Vc({
title: i[e],
body: `将处理选中的 ${n.length} 个文件。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Ec(t);
+ Oc(t);
try {
- await rn("/api/batch", {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), k5(!1, !0), await R7();
+ }), O5(!1, !0), await L7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- C8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
- await rn("/api/batch", {
+ S8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await R7();
+ }), await L7();
} : null });
} catch (e) {
- throw Ec(t, !1), e;
+ throw Oc(t, !1), e;
} finally {
- Ec(t, !1), O5();
+ Oc(t, !1), D5();
}
}
});
}
-function GMe() {
- Bje({
- root: R("[data-batch-dock]"),
+function qMe() {
+ Hje({
+ root: L("[data-batch-dock]"),
run: (e, t, n) => {
- D5.BATCH_RUNNERS[e]?.(t, n);
+ E5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(D5.batchDockProps), Z.syncGlassOptics();
+ e.render(E5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function KMe() {
- D5.batchDockProps = {
+function JMe() {
+ E5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, D5.trashCount = null, D5.currentSelectSurface = () => w5(location.pathname), J.handler(R("#selectMode"), "onclick", () => k5(!Gl, !!Gl)), D5.REGION_CHOICES = [
+ }, E5.trashCount = null, E5.currentSelectSurface = () => C5(location.pathname), J.handler(L("#selectMode"), "onclick", () => O5(!ql, !!ql)), E5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], D5.BATCH_RUNNERS = {
- batch: VMe,
- region: HMe,
- follow: UMe,
- junk: WMe,
- clear: () => k5(!1, !0)
- }, J.handler(R("#density"), "onclick", () => {
- u5() ? wMe(DA() === "big" ? "small" : "big") : qoe();
- }), BA(), wl({
- selecting: () => Gl,
- censored: () => $7(),
+ ], E5.BATCH_RUNNERS = {
+ batch: UMe,
+ region: WMe,
+ follow: GMe,
+ junk: KMe,
+ clear: () => O5(!1, !0)
+ }, J.handler(L("#density"), "onclick", () => {
+ l5() ? EMe(DA() === "big" ? "small" : "big") : Joe();
+ }), BA(), El({
+ selecting: () => ql,
+ censored: () => Q7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), J.listen(window, "pagehide", () => El()), J.listen(document, "visibilitychange", () => {
- document.hidden && El();
- }), xl(), D5.coverRecheck = 0, J.listen(window, "resize", () => {
- vl(R("#index")), clearTimeout(D5.coverRecheck), D5.coverRecheck = J.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {
- e.complete && ll(e);
+ }), J.listen(window, "pagehide", () => Ol()), J.listen(document, "visibilitychange", () => {
+ document.hidden && Ol();
+ }), Cl(), E5.coverRecheck = 0, J.listen(window, "resize", () => {
+ bl(L("#index")), clearTimeout(E5.coverRecheck), E5.coverRecheck = J.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ e.complete && dl(e);
}), 200);
}, { passive: !0 });
}
-function j5() {
+function A5() {
return {
- selectMode: Gl,
- selectSurface: Jl,
- lastSelectedId: Kl,
- followLastSelectedId: ql
+ selectMode: ql,
+ selectSurface: Xl,
+ lastSelectedId: Jl,
+ followLastSelectedId: Yl
};
}
-function qMe() {
- return LMe({
- selected: Ul,
- followSelected: Wl
- }, location.pathname, location.search, W.state);
+function YMe() {
+ return zMe({
+ selected: Gl,
+ followSelected: Kl
+ }, location.pathname, location.search, U.state);
}
//#endregion
//#region src/application/index.js
-var M5 = {
+var j5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function JMe() {
+function XMe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function YMe() {
+function ZMe() {
return LZ(location.search);
}
-function XMe(e) {
+function QMe(e) {
return RZ(e);
}
-function ZMe(e) {
- Q.route(XMe(e));
+function $Me(e) {
+ Q.route(QMe(e));
}
-function QMe(e = "") {
+function eNe(e = "") {
return zZ(location.search, e);
}
-function $Me(e) {
- return L8(e);
+function tNe(e) {
+ return I8(e);
}
-function N5(e) {
- return F8(e);
+function M5(e) {
+ return P8(e);
}
-function P5() {
- R("#stats").hidden = !0, R("#index").hidden = !1, B7(), X.hideCatalogCombo(), R("#count").textContent = "", R("#loadSentinel").hidden = !0;
+function N5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, z7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function eNe(e, t) {
- hu({ state: {
- ...W,
+function nNe(e, t) {
+ _u({ state: {
+ ...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), k5(!1, !1), Q.route(g7()), W5(), _9(), N7();
+ } }), O5(!1, !1), Q.route(h7()), U5(), g9(), M7();
}
-function F5(e) {
- M5.controller.openFollowAuthor(e);
+function P5(e) {
+ j5.controller.openFollowAuthor(e);
}
-function tNe(e) {
- M5.controller.openFollowTag(e);
+function rNe(e) {
+ j5.controller.openFollowTag(e);
}
-function nNe() {
+function iNe() {
$.FOLLOW_MANAGE_TABS = IZ, J.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && C5("媒体库与入库");
- }), M5.peopleIndexLayout = () => U3(Z.appSettings.peopleLayout), M5.personAvatar = I8;
+ e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
+ }), j5.peopleIndexLayout = () => H3(Z.appSettings.peopleLayout), j5.personAvatar = F8;
}
-function rNe() {
- M5.controller = iMe({
+function aNe() {
+ j5.controller = oMe({
route: Q.route,
- followView: C9,
- adoptFollowView: w9,
+ followView: S9,
+ adoptFollowView: C9,
hideIndex: () => {
- R("#index").hidden = !0;
+ L("#index").hidden = !0;
},
- openPage: x9
+ openPage: b9
});
}
//#endregion
//#region src/application/loading.js
-var I5 = {
+var F5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -78051,54 +78058,54 @@ var I5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function L5(e = "正在读取作品") {
+function I5(e = "正在读取作品") {
if (location.pathname === "/wall") {
- R("#loadSentinel").hidden = !0;
+ L("#loadSentinel").hidden = !0;
return;
}
- let t = R("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = jwe(s$(location.search)), Us(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && T7({
+ let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Mwe(s$(location.search)), Gs(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && w7({
count: null,
- ...O7()
- })), R("#loadSentinel").hidden = !0, U7()) return;
- let r = R("#grid"), i = q7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== u2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== J7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : I5.setGridCards(i), Us(R("#grid")));
+ ...D7()
+ })), L("#loadSentinel").hidden = !0, H7()) return;
+ let r = L("#grid"), i = K7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== l2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), Gs(L("#grid")));
}
-function R5() {
- R("#catalogFilter").style.display = "none", w7();
+function L5() {
+ L("#catalogFilter").style.display = "none", C7();
}
-function z5() {
+function R5() {
let e = new Promise((e) => {
- let t = I5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = F5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
t -= Math.min(i - n, 50), n = i, t > 0 ? J.delay(r, Math.min(t, 50)) : e();
};
J.delay(r, 50);
});
- return Promise.race([I5.entityShapesReady ||= G8(), e]);
+ return Promise.race([F5.entityShapesReady ||= W8(), e]);
}
-function iNe() {
+function oNe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), R5();
- else if (/^\/assets\/\d+$/.test(e)) R5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) R5();
- else if (e === "/junk-files") L5("正在读取垃圾文件");
- else if (e === "/jav" && S$(new URLSearchParams(location.search).get("tab")) === "library") L5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
+ else if (/^\/assets\/\d+$/.test(e)) L5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) L5();
+ else if (e === "/junk-files") I5("正在读取垃圾文件");
+ else if (e === "/jav" && S$(new URLSearchParams(location.search).get("tab")) === "library") I5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- R5();
- let t = R("#stats");
- t.hidden = !1, B7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : I5.managementPlaceholder(e), Us(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) R5(), P5(), K3(R("#index"), W3(e.slice(1), location.search), M5.peopleIndexLayout());
+ L5();
+ let t = L("#stats");
+ t.hidden = !1, z7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), Gs(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), G3(L("#index"), U3(e.slice(1), location.search), j5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- R5(), R("#index").hidden = !1, B7();
- let t = fn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (U8.hasEntityShape(t, n) ? Promise.resolve() : z5()).then(() => {
- R("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (g5(t, n), Us(R("#index")));
+ L5(), L("#index").hidden = !1, z7();
+ let t = mn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
+ (H8.hasEntityShape(t, n) ? Promise.resolve() : R5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (h5(t, n), Gs(L("#index")));
});
- } else Q.routeMeta(e) ? L5() : (B7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? I5() : (z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function aNe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => c2(t, {
+function sNe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => s2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
@@ -78110,39 +78117,39 @@ function aNe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, R("#loadSentinel").innerHTML = bs(ys), I5.setGridCards = (e) => Ps(R("#grid"), () => {
- R("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), I5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), I5.managementPlaceholder = (e) => l2(e, {
- followLayout: JMe(),
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Ss(xs), F5.setGridCards = (e) => Is(L("#grid"), () => {
+ L("#grid").innerHTML = `<div class="grid">${e}</div>`;
+ }), F5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), F5.managementPlaceholder = (e) => c2(e, {
+ followLayout: XMe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(YMe())
- }), I5.wantsDiscoveryBars = () => R("#catalogFilter").style.display !== "none", I5.entityShapesReady = null, I5.ENTITY_SHAPES_WAIT = 400, I5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = EV(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, h9();
+ }))(ZMe())
+ }), F5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", F5.entityShapesReady = null, F5.ENTITY_SHAPES_WAIT = 400, F5.syncPageTitle = (e) => {
+ let t = new URL(e, location.origin), n = TV(decodeURIComponent(t.pathname))?.title;
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, m9();
};
}
//#endregion
//#region src/sidebar-skeleton.ts
-var B5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function oNe(e, t, n) {
+function cNe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${B5(r)}"/></svg>`;
- return `<button type="button" data-nav="${B5(e)}" aria-pressed="${n(e)}" aria-label="${B5(t)}">${i}<span>${B5(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${z5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${z5(e)}" aria-pressed="${n(e)}" aria-label="${z5(t)}">${i}<span>${z5(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/application/filter-scroll.js
-function sNe(e, t, n, r = !1) {
+function lNe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -78161,7 +78168,7 @@ function sNe(e, t, n, r = !1) {
}
//#endregion
//#region src/application/layout.js
-var V5 = {
+var B5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -78183,25 +78190,25 @@ var V5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function H5({ manage: e = !0, placeholder: t = "" } = {}) {
- R("#stats").hidden = !1, R("#index").hidden = !0, B7(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? Z5() : (Q5(""), _9()), t && d2(R("#stats"), t);
+function V5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? X5() : (Z5(""), g9()), t && u2(L("#stats"), t);
}
-function U5() {
- X.hideCatalogCombo(), R5(), document.body.classList.remove("entity-open", "index-open");
+function H5() {
+ X.hideCatalogCombo(), L5(), document.body.classList.remove("entity-open", "index-open");
}
-function W5() {
- document.body.classList.remove("entity-open", "index-open"), BV(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, Z8(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", w7(), Z5(), $5();
+function U5() {
+ document.body.classList.remove("entity-open", "index-open"), zV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, X8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", C7(), X5(), Q5();
}
-function cNe() {
- Q.route("/"), W5();
+function uNe() {
+ Q.route("/"), U5();
}
-function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- g9({
+function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ h9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
value: e,
- label: Al(e),
+ label: Ml(e),
n: t
})),
selected: [...$.followTags],
@@ -78219,69 +78226,69 @@ function G5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function K5(e) {
- mPe({
- ...C9(),
+function G5(e) {
+ gPe({
+ ...S9(),
...e
- }), g9({ filters: $.followSidebarFilters() });
+ }), h9({ filters: $.followSidebarFilters() });
}
-function q5() {
+function K5() {
return matchMedia("(max-width:760px)").matches;
}
-function J5(e) {
- let t = R("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && q5(), t.classList.toggle("open", e), R("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), R("#filterBtn").setAttribute("aria-expanded", String(!!e)), R("#filterBtn").setAttribute("aria-controls", "drawer"), R("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && R("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+function q5(e) {
+ let t = L("#drawer"), n = !e && t.contains(document.activeElement);
+ t.inert = !e && K5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function lNe() {
- q5() && J5(!1);
+function dNe() {
+ K5() && q5(!1);
}
-function uNe() {
- iu === null && (hu({ runtimeConfigurable: !1 }), rn("/healthz").then((e) => {
- hu({ runtimeConfigurable: !!e.configurable }), iu && X5() && Z5();
+function fNe() {
+ ou === null && (_u({ runtimeConfigurable: !1 }), on("/healthz").then((e) => {
+ _u({ runtimeConfigurable: !!e.configurable }), ou && Y5() && X5();
}).catch(() => {}));
}
-function Y5(e = "", t = !1) {
- if (!t && !lV(location.pathname)) {
- let t = YV.navigation;
- YV.push(dV(e), { settingsBackground: {
+function J5(e = "", t = !1) {
+ if (!t && !cV(location.pathname)) {
+ let t = JV.navigation;
+ JV.push(uV(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && XV(dV(e), {
+ } else !t && e && YV(uV(e), {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
});
- return e ||= uV(location.pathname), Lje(V5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= lV(location.pathname), zje(B5.settingsHost()).then((t) => (t.open(e), t));
}
-function dNe() {
- lV(location.pathname) && (fV(YV.navigation.location.state) ? YV.go(-1) : Q.navigatePath("/", !0));
+function pNe() {
+ cV(location.pathname) && (dV(JV.navigation.location.state) ? JV.go(-1) : Q.navigatePath("/", !0));
}
-function fNe() {
+function mNe() {
return {
- scroll: R("#drawerScroll"),
+ scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: V5.NAV_CATALOG,
- navOn: c7,
- navTo: l7,
- toggleChip: (e, t, n) => C7((r) => {
+ navCatalog: B5.NAV_CATALOG,
+ navOn: s7,
+ navTo: c7,
+ toggleChip: (e, t, n) => S7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
} else r[e] = r[e] === t ? "" : t;
}),
- setDuration: (e, t) => C7((n) => {
+ setDuration: (e, t) => S7((n) => {
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), b9(x9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), J5(!1), x9(S9());
+ $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), b9(x9());
},
- selectFollowProvider: (e) => K5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => K5({
+ selectFollowProvider: (e) => G5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => G5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -78290,137 +78297,137 @@ function fNe() {
}
};
}
-function pNe() {
- let e = R("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = oNe(Z.appSettings.sidebarOrder, V5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
- if (p8()) return;
+function hNe() {
+ let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
+ e.innerHTML = cNe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, s7), e.querySelector("[data-sidebar-head]").append(...t), J.listen(e, "click", (e) => {
+ if (f8()) return;
let t = e.target.closest?.("[data-nav]");
- t && l7(t.dataset.nav);
- }), Rje(fNe()).then((e) => e.render(V5.sidebarProps)).catch(() => {});
+ t && c7(t.dataset.nav);
+ }), Bje(mNe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
}
-async function mNe() {
+async function gNe() {
let e = J, t = null;
try {
- t = await rn("/api/settings", { signal: e.signal });
+ t = await on("/api/settings", { signal: e.signal });
} catch {
return;
}
e.isActive && pA(t, (e) => Z.settingsEffects[e]?.());
}
-function X5() {
- return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");
+function Y5() {
+ return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function Z5() {
- let e = X5();
- uNe(), e && R5(), R("#count").classList.toggle("no-tagbar", !!e), _9(), e !== "trash" && (D5.trashCount = null), Q5(e);
+function X5() {
+ let e = Y5();
+ fNe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), g9(), e !== "trash" && (E5.trashCount = null), Z5(e);
}
-function hNe(e) {
+function _Ne(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: V5.MANAGE_SECTIONS,
- menu: e ? V5.manageMenuSections() : [],
- trash: D5.trashCount
+ sections: B5.MANAGE_SECTIONS,
+ menu: e ? B5.manageMenuSections() : [],
+ trash: E5.trashCount
};
}
-function Q5(e = X5()) {
- $5();
- let t = hNe(e), n = g8();
+function Z5(e = Y5()) {
+ Q5();
+ let t = _Ne(e), n = h8();
if (n) n.render(t);
else {
- let e = Lce(t);
- e !== V5.manageHeaderSkeleton && (V5.manageHeaderSkeleton = e, V5.manageHeaderRoot().innerHTML = e);
+ let e = zce(t);
+ e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
}
- let r = hP(t)?.title || "";
- r !== V5.lastManagePageLabel && (V5.lastManagePageLabel = r, r && js(V5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = mP(t)?.title || "";
+ r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && Ns(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function gNe() {
- let e = V5.manageHeaderRoot();
+function vNe() {
+ let e = B5.manageHeaderRoot();
J.listen(e, "click", (e) => {
- if (g8()) return;
+ if (h8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) e7(t.dataset.manage);
+ if (t) $5(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
- } else e.target.closest?.("[data-empty-trash]") && P7();
- }), zje({
+ } else e.target.closest?.("[data-empty-trash]") && N7();
+ }), Vje({
root: e,
- openManage: e7,
+ openManage: $5,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: P7
- }).then(() => Q5()).catch(() => {});
+ emptyTrash: N7
+ }).then(() => Z5()).catch(() => {});
}
-function $5() {
- let e = R("#listTitle");
+function Q5() {
+ let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !X5() && un(t) && ln[W.state] || "";
- e.hidden = !n, n && (e.textContent = n), R("#catalogPageHeading").hidden = !!X5() || !un(t) || !!n || W.jav === "1";
+ let t = decodeURIComponent(location.pathname), n = !Y5() && fn(t) && dn[U.state] || "";
+ e.hidden = !n, n && (e.textContent = n), L("#catalogPageHeading").hidden = !!Y5() || !fn(t) || !!n || U.jav === "1";
}
-function e7(e = "stats") {
+function $5(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", gu(), Q.route(c$()), W5(), _9(), N7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", vu(), Q.route(c$()), U5(), g9(), M7());
}
-function t7() {
+function e7() {
let e = decodeURIComponent(location.pathname);
- return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || cu : !1;
+ return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || uu : !1;
}
-function _Ne(e = t7()) {
- let t = Rk.filter(([e]) => e !== "seed");
- return e ? [zk, ...t] : t;
+function yNe(e = e7()) {
+ let t = Lk.filter(([e]) => e !== "seed");
+ return e ? [Rk, ...t] : t;
}
-function n7() {
- return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";
+function t7() {
+ return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function r7() {
- return wA(n7());
+function n7() {
+ return wA(t7());
}
-function vNe(e) {
- Woe(e), a7(), R("#grid").hidden || Y7();
+function bNe(e) {
+ Goe(e), i7(), L("#grid").hidden || J7();
}
-function i7(e) {
- MA(e), a7(), Y7();
+function r7(e) {
+ MA(e), i7(), J7();
}
-function a7() {
+function i7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === r7();
- }), X.catalogFilterProps && T7({ layout: D7() });
+ e.checked = e.value === n7();
+ }), X.catalogFilterProps && w7({ layout: E7() });
}
-function yNe(e) {
- Goe(e), a7(), Y7();
+function xNe(e) {
+ Koe(e), i7(), J7();
}
-async function o7() {
- k8(), X.mixRelatedCache.clear(), await Promise.all([s7(), N7()]);
+async function a7() {
+ O8(), X.mixRelatedCache.clear(), await Promise.all([o7(), M7()]);
}
-async function s7() {
- if (Y.entityPageCurrent() && !R("#index").hidden) {
- o5({ revision: ++Y.entityPageRevision });
+async function o7() {
+ if (Y.entityPageCurrent() && !L("#index").hidden) {
+ a5({ revision: ++Y.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (EV(e)?.reload === "reopen" || e === "/follow") {
- hu({ pageOpens: ou + 1 });
+ if (TV(e)?.reload === "reopen" || e === "/follow") {
+ _u({ pageOpens: cu + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await R7();
+ t?.route.reload ? await t.route.reload() : await L7();
}
-function c7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = V5.DIRECT_MANAGE_NAV[e];
- if (r) return X5() === r;
+function s7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = B5.DIRECT_MANAGE_NAV[e];
+ if (r) return Y5() === r;
if (e === "manage") {
- let e = X5();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => V5.DIRECT_MANAGE_NAV[t] === e);
+ let e = Y5();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => B5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || t7() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !X5() && !W.state && !t7() && W.orient !== "竖屏" : sn[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || e7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !Y5() && !U.state && !e7() && U.orient !== "竖屏" : ln[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function l7(e) {
- if (lNe(), V5.DIRECT_MANAGE_NAV[e]) {
- e7(V5.DIRECT_MANAGE_NAV[e]);
+function c7(e) {
+ if (dNe(), B5.DIRECT_MANAGE_NAV[e]) {
+ $5(B5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- e7();
+ $5();
return;
}
if (e === "jav") {
@@ -78428,25 +78435,25 @@ function l7(e) {
return;
}
if (e === "") {
- _7();
+ g7();
return;
}
- let t = sn[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), gu(), Q.route(g7()), W5(), _9(), N7());
+ let t = ln[e] ? null : Q.routePathOf("nav", e);
+ t ? Q.openRoutePath(t) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), vu(), Q.route(h7()), U5(), g9(), M7());
}
-function u7() {
+function l7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Gl && Jl !== D5.currentSelectSurface() && k5(!1, !0);
- let n = t.length > 1 && Object.prototype.hasOwnProperty.call(fn, t[0]), r = un(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- R("#selectMode").hidden = !i, R("#density").hidden = !a, d5(), !i && Gl && k5(!1, !0);
+ ql && Xl !== E5.currentSelectSurface() && O5(!1, !0);
+ let n = t.length > 1 && Object.prototype.hasOwnProperty.call(mn, t[0]), r = fn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, u5(), !i && ql && O5(!1, !0);
}
-function bNe() {
+function SNe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== V5.mobileFilterHost || location.pathname !== V5.mobileFilterPath) && (V5.mobileFilterScroll = null), V5.mobileFilterHost = t, V5.mobileFilterPath = location.pathname;
+ (t !== B5.mobileFilterHost || location.pathname !== B5.mobileFilterPath) && (B5.mobileFilterScroll = null), B5.mobileFilterHost = t, B5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- V5.mobileFilterScroll = sNe(V5.mobileFilterScroll, n, innerWidth <= 760, r);
+ B5.mobileFilterScroll = lNe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && V5.mobileFilterScroll.free;
+ let e = n === t && B5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -78458,64 +78465,64 @@ function bNe() {
});
}
}
-function xNe() {
- bNe(), [".board-filter-frame", "#count"].forEach((e) => {
- let t = R(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
+function CNe() {
+ SNe(), [".board-filter-frame", "#count"].forEach((e) => {
+ let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
-function d7() {
- V5.stickyFrame ||= J.frame(() => {
- V5.stickyFrame = 0, xNe();
+function u7() {
+ B5.stickyFrame ||= J.frame(() => {
+ B5.stickyFrame = 0, CNe();
});
}
-function SNe() {
+function wNe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J.handler(R("#filterBtn"), "onclick", () => J5(!R("#drawer").classList.contains("open"))), V5.SIDEBAR_ITEMS = A8, V5.MANAGE_SECTIONS = j8, V5.MANAGE_MENU_SECTIONS = M8, V5.manageMenuSections = () => tMe(iu === !0), V5.OPTIONAL_SIDEBAR_ITEMS = N8, V5.NAV_CATALOG = nMe, V5.DIRECT_MANAGE_NAV = rMe, V5.settingsHost = () => ({
- selectSection: (e) => XV(dV(e), {
+ }), J.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = k8, B5.MANAGE_SECTIONS = A8, B5.MANAGE_MENU_SECTIONS = j8, B5.manageMenuSections = () => rMe(ou === !0), B5.OPTIONAL_SIDEBAR_ITEMS = M8, B5.NAV_CATALOG = iMe, B5.DIRECT_MANAGE_NAV = aMe, B5.settingsHost = () => ({
+ selectSection: (e) => YV(uV(e), {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
}),
- closed: dNe,
+ closed: pNe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
- sound: (e) => Ao(e),
- navCatalog: V5.NAV_CATALOG,
- themeOptions: zoe,
+ sound: (e) => Mo(e),
+ navCatalog: B5.NAV_CATALOG,
+ themeOptions: Boe,
videoLayouts: vA,
- followInitialRanges: P8,
- videoLayout: () => r7(),
- setVideoLayout: yNe,
- censored: $7,
- setCensored: GNe,
+ followInitialRanges: N8,
+ videoLayout: () => n7(),
+ setVideoLayout: xNe,
+ censored: Q7,
+ setCensored: qNe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: KNe,
- receipt: (e) => C8.actionReceipt(e),
- failure: C8.actionFailure,
+ setHighContrast: JNe,
+ receipt: (e) => S8.actionReceipt(e),
+ failure: S8.actionFailure,
syncRemote: (e) => pA(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
- configurable: () => rn("/healthz").then((e) => (hu({ runtimeConfigurable: !!e.configurable }), iu)).catch(() => null)
- }), J.handler(R("#settingsBtn"), "onclick", () => void Y5()), V5.lastManagePageLabel = "", V5.manageHeaderSkeleton = "", V5.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, V5.scrollT = null, V5.stickyFrame = 0, V5.mobileFilterScroll = null, V5.mobileFilterHost = null, V5.mobileFilterPath = "", J.listen(document, "focusin", d7), J.listen(document, "focusout", d7), J.listen(window, "scroll", () => {
- d7(), location.pathname === "/follow" && T9() && hu({ followScrollY: scrollY }), window.__scrolling = !0, El(), clearTimeout(V5.scrollT), V5.scrollT = J.delay(() => {
+ configurable: () => on("/healthz").then((e) => (_u({ runtimeConfigurable: !!e.configurable }), ou)).catch(() => null)
+ }), J.handler(L("#settingsBtn"), "onclick", () => void J5()), B5.lastManagePageLabel = "", B5.manageHeaderSkeleton = "", B5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, B5.scrollT = null, B5.stickyFrame = 0, B5.mobileFilterScroll = null, B5.mobileFilterHost = null, B5.mobileFilterPath = "", J.listen(document, "focusin", u7), J.listen(document, "focusout", u7), J.listen(window, "scroll", () => {
+ u7(), location.pathname === "/follow" && w9() && _u({ followScrollY: scrollY }), window.__scrolling = !0, Ol(), clearTimeout(B5.scrollT), B5.scrollT = J.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), J.listen(window, "resize", d7, { passive: !0 }), J.handler(R("#scrim"), "onclick", () => J5(!1));
+ }, { passive: !0 }), J.listen(window, "resize", u7, { passive: !0 }), J.handler(L("#scrim"), "onclick", () => q5(!1));
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var d7 = 64, f7 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), m7 = (e) => e.repeat(f7);
-function CNe(e, t, n) {
- let r = e.map((e) => `<a href="${p7(e.href)}" data-catalog-view="${p7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${p7(e.label)}</a>`).join(""), i = vW();
- return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + m7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + m7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(f7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${is()}</span>` + (n ? i5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), p7 = (e) => e.repeat(d7);
+function TNe(e, t, n) {
+ let r = e.map((e) => `<a href="${f7(e.href)}" data-catalog-view="${f7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${f7(e.label)}</a>`).join(""), i = vW();
+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + p7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + p7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(d7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${os()}</span>` + (n ? r5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
//#endregion
//#region src/application/catalog.js
@@ -78555,83 +78562,83 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function wNe() {
- X.initialParams.has("loc") || (W.loc = h7(W.loc), gu());
+function ENe() {
+ X.initialParams.has("loc") || (U.loc = m7(U.loc), vu());
}
-function h7(e) {
- return Kje(e, Z.sourceOnline);
+function m7(e) {
+ return Jje(e, Z.sourceOnline);
}
-function g7(e = W) {
- return qje(e);
+function h7(e = U) {
+ return Yje(e);
}
-function TNe() {
- hu(T8(Jje(W, Z.appSettings, C8.rollSeed))), k8();
+function DNe() {
+ _u(w8(Xje(U, Z.appSettings, S8.rollSeed))), O8();
}
-function _7(e = null, t = !1) {
- TNe(), e && (Object.assign(W, e), gu()), Q.route(e ? g7() : "/"), X.clearSearchField(), a9(!1), W5(), _9(), N7(), t && window.scrollTo({
+function g7(e = null, t = !1) {
+ DNe(), e && (Object.assign(U, e), vu()), Q.route(e ? h7() : "/"), X.clearSearchField(), i9(!1), U5(), g9(), M7(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
-function ENe(e, t = null) {
+function ONe(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? l9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : A5(n);
+ !e.medium || e.medium === "video" ? c9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(n);
}
-function v7(e) {
- return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, rn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
+function _7(e) {
+ return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, on("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function DNe(e, t) {
- i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : y7(e, t);
+function kNe(e, t) {
+ r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : v7(e, t);
}
-function y7(e, t) {
- e.edition_group ? $Ne(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? ePe(e.part_group.seed_id, e.id, !0, t) : l9(e.id, !0, null, t);
+function v7(e, t) {
+ e.edition_group ? tPe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? nPe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
}
-async function ONe(e, t) {
+async function ANe(e, t) {
try {
- let n = await rn("/api/watch-later", {
+ let n = await on("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), C8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- let n = await rn("/api/watch-later", {
+ e.watch_later = n.watch_later, t(!!n.watch_later), S8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ let n = await on("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- C8.actionFailure("更新稍后看", e);
+ S8.actionFailure("更新稍后看", e);
}
}
-async function kNe(e, t) {
+async function jNe(e, t) {
try {
- await rn("/api/batch", {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: [e.id],
operation: t
})
- }), await R7();
+ }), await L7();
let n = t === "restore" ? "dispose" : "restore";
- C8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
- await rn("/api/batch", {
+ S8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: [e.id],
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await R7();
+ }), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-async function ANe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = qM(i, t), o = async (t, r) => {
- let i = (await rn("/api/feedback", {
+async function MNe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = KM(i, t), o = async (t, r) => {
+ let i = (await on("/api/feedback", {
method: "POST",
body: JSON.stringify({
id: e.id,
@@ -78644,14 +78651,14 @@ async function ANe(e, t, n, r) {
};
try {
let e = await o(a, r);
- C8.actionReceipt(e ? `已评 ${KM(e)} 星` : "已取消评分", { undo: () => o(i) });
+ S8.actionReceipt(e ? `已评 ${GM(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || C8.actionFailure("评分", e), e;
+ throw r?.aborted || S8.actionFailure("评分", e), e;
}
}
-async function b7(e) {
+async function y7(e) {
let t = new URLSearchParams();
- if (t7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && W.state && t.set("state", W.state), e.type !== "item") {
+ if (e7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
let e = Y.activeFilterState();
[
"loc",
@@ -78672,9 +78679,9 @@ async function b7(e) {
e[n] && t.set(n, e[n]);
});
}
- return $je(t.toString(), X.topsQueryParams(e).toString());
+ return tMe(t.toString(), X.topsQueryParams(e).toString());
}
-function jNe() {
+function NNe() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
@@ -78686,32 +78693,32 @@ function jNe() {
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
}
-function x7(e) {
- s5().type !== "entity" && T7({ tags: k7(e) }), g9({ filters: { ...e } }), L7();
+function b7(e) {
+ o5().type !== "entity" && w7({ tags: O7(e) }), h9({ filters: { ...e } }), I7();
}
-async function S7(e) {
- let t = ++X.facetCountsSeq, [n] = await b7(e);
- t === X.facetCountsSeq && (e.type === "home" && (n9.facets = n), g9({ latest: Q7(n, e) }));
+async function x7(e) {
+ let t = ++X.facetCountsSeq, [n] = await y7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (t9.facets = n), h9({ latest: Z7(n, e) }));
}
-function C7(e) {
- jNe();
- let t = s5();
+function S7(e) {
+ NNe();
+ let t = o5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), l5(t.kind, t.name, n), x7(n), S7(s5());
+ e(n), c5(t.kind, t.name, n), b7(n), x7(o5());
} else if (t.type === "item") {
- let t = Y.cloneBarsContext(Hl);
- if (a9(!1), hu({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), l5(t.kind, t.name, t.filters) ? N7() : hu({ pageOpens: ou + 1 });
+ let t = Y.cloneBarsContext(Wl);
+ if (i9(!1), _u({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), c5(t.kind, t.name, t.filters) ? M7() : _u({ pageOpens: cu + 1 });
return;
}
- e(W), hu({ barsContext: {
+ e(U), _u({ barsContext: {
type: "home",
- filters: W
- } }), Q.route(g7()), W5(), N7();
- } else e(W), gu(), Q.route(g7()), x7(W), S7(Vl);
+ filters: U
+ } }), Q.route(h7()), U5(), M7();
+ } else e(U), vu(), Q.route(h7()), b7(U), x7(Ul);
}
-function MNe() {
+function PNe() {
return {
tiers: null,
tiersPending: !1,
@@ -78728,223 +78735,223 @@ function MNe() {
offscreen: !1,
combo: [],
comboHidden: !0,
- comboHost: R("#combo"),
- actions: E7(),
+ comboHost: L("#combo"),
+ actions: T7(),
helpers: {
- wireDrag: t9,
+ wireDrag: e9,
wireScroller: (e) => {
- e && oc(e);
+ e && cc(e);
}
}
};
}
-function w7() {
- X.catalogFilterProps && T7({});
+function C7() {
+ X.catalogFilterProps && w7({});
}
-function T7(e) {
- let t = R("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
+function w7(e) {
+ let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || MNe(),
+ ...X.catalogFilterProps || PNe(),
...e
- }, !X.catalogFilterMounting && (FV(t) ? zV(t, e) : (!t.firstChild && !n && (t.innerHTML = CNe(X.catalogViews(), X.catalogFilterProps.state, O7()), Us(t)), X.catalogFilterMounting = RV("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (PV(t) ? RV(t, e) : (!t.firstChild && !n && (t.innerHTML = TNe(X.catalogViews(), X.catalogFilterProps.state, D7()), Gs(t)), X.catalogFilterMounting = LV("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => zV(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => RV(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function E7() {
+function T7() {
return {
currentHref: () => {
- let e = new URL(g7(), location.origin);
- return e.searchParams.set("loc", W.loc || ""), e.searchParams.set("thumb", W.thumb || "0"), e.searchParams.set("sort", W.sort || ""), e.searchParams.set("dir", W.dir || ""), e.pathname + e.search;
+ let e = new URL(h7(), location.origin);
+ return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => y5(e, t),
+ openEntity: (e, t) => v5(e, t),
setView: (e) => {
- W.state = e, gu(), T7({ state: e }), Q.route(g7()), N7();
+ U.state = e, vu(), w7({ state: e }), Q.route(h7()), M7();
},
- toggleTag: (e) => F7(e),
- clearFilter: (e) => C7((t) => {
+ toggleTag: (e) => P7(e),
+ clearFilter: (e) => S7((t) => {
t[e] = "";
}),
- clearAll: () => C7((e) => {
+ clearAll: () => S7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Gk(e, W.sort, W.dir);
- t && (W.sort = t.sort, W.dir = t.dir, gu(), Z7());
+ let t = Wk(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, vu(), X7());
},
- reshuffle: () => WNe(),
+ reshuffle: () => KNe(),
setLayout: (e) => {
- t7() ? i7(e) : vNe(e);
+ e7() ? r7(e) : bNe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await eMe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(A7) : n.map(j7);
+ let n = (await nMe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(k7) : n.map(A7);
}
};
}
-function D7() {
- return t7() ? {
+function E7() {
+ return e7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
value: CA(),
options: vA
- } : n7() ? {
+ } : t7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: r7(),
+ value: n7(),
options: vA
} : null;
}
-function O7() {
+function D7() {
return {
- sorts: c5(W.sort, W.dir),
- layout: D7(),
- state: W.state || "",
- trash: W.state === "trash"
+ sorts: s5(U.sort, U.dir),
+ layout: E7(),
+ state: U.state || "",
+ trash: U.state === "trash"
};
}
-function k7(e) {
+function O7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function A7(e) {
+function k7(e) {
return {
name: e.k,
- ringHtml: `<span data-tier-initial>${B(Nn(e.k))}</span>${Ja({
+ ringHtml: `<span data-tier-initial>${z(Fn(e.k))}</span>${Xa({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: Qa(e.avatar_focus),
+ style: eo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
})}`
};
}
-function j7(e) {
+function A7(e) {
return {
name: e.k,
- fallback: Mn(e.k, 2),
- logo: e.has_logo ? Ga(e.k, "icon", e.logo_version) : ""
+ fallback: Pn(e.k, 2),
+ logo: e.has_logo ? qa(e.k, "icon", e.logo_version) : ""
};
}
-function NNe(e, t) {
- X.catalogFilterProps?.tiers || (X.barsRendered = "", X.barsPendingSeq = t, T7({
+function FNe(e, t) {
+ X.catalogFilterProps?.tiers || (X.barsRendered = "", X.barsPendingSeq = t, w7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function M7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, T7({ tiersPending: !1 }));
+function j7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, w7({ tiersPending: !1 }));
}
-async function N7() {
+async function M7() {
let e = ++X.barsRequestSeq;
- if (g9(), !Rl(location.pathname) || Vl.type === "item") return;
- let t = s5(), n = Y.activeFilterState(), r = JSON.stringify([
+ if (h9(), !Bl(location.pathname) || Ul.type === "item") return;
+ let t = o5(), n = Y.activeFilterState(), r = JSON.stringify([
t,
n,
- W.state || "",
- W.seed || "",
- t7()
+ U.state || "",
+ U.seed || "",
+ e7()
]);
- NNe(n, e);
+ FNe(n, e);
let i;
try {
- i = await b7(t);
+ i = await y7(t);
} catch (t) {
- throw M7(e), t;
+ throw j7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- M7(e);
+ j7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- V5.sidebarCatalog && g9({
- content: V5.sidebarCatalog,
+ B5.sidebarCatalog && h9({
+ content: B5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (n9.facets = a);
+ X.barsRendered = s, t.type === "home" && (t9.facets = a);
let c = a.tags || [];
- ka(o.performers), ka(o.studios);
- let l = t.type === "home" && !t7() && !W.state && !W.q && !a.locations.some((e) => e.n > 0);
+ ja(o.performers), ja(o.studios);
+ let l = t.type === "home" && !e7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = C8.seededSample(p, X.TAGS_FIRST, `tags:${W.seed || ""}`), h = new Set(m.map((e) => e.k));
+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = S8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
- label: Al(e.k),
+ label: Ml(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, T7({
+ })), X.barsPendingSeq = 0, w7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(A7),
- studios: o.studios.map(j7)
+ performers: o.performers.map(k7),
+ studios: o.studios.map(A7)
},
tiersPending: !1,
empty: l,
- tags: k7(n),
+ tags: O7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), L7(), V5.sidebarCatalog = {
+ }), I7(), B5.sidebarCatalog = {
kind: "catalog",
- key: String(++V5.sidebarContentSeq),
- facets: Q7(a, t)
- }, g9({
- content: V5.sidebarCatalog,
+ key: String(++B5.sidebarContentSeq),
+ facets: Z7(a, t)
+ }, h9({
+ content: B5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function PNe(e, t) {
- n9.total = e, W.state === "trash" && (D5.trashCount = {
- total: n9.total,
+function INe(e, t) {
+ t9.total = e, U.state === "trash" && (E5.trashCount = {
+ total: t9.total,
shown: t
- }), Z5(), T7({ count: {
- total: n9.total,
+ }), X5(), w7({ count: {
+ total: t9.total,
shown: t
} });
}
-function P7() {
- return zc({
+function N7() {
+ return Vc({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
confirmLabel: "清空回收站",
danger: !0,
onConfirm: async () => {
try {
- let e = await rn("/api/trash/empty", { method: "POST" });
+ let e = await on("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- C8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ S8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await R7();
+ await L7();
}
}
});
}
-function F7(e) {
- C7((t) => {
+function P7(e) {
+ S7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function I7(e) {
+function F7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -78961,240 +78968,240 @@ function I7(e) {
}), X.tagList(e.tag).forEach((e) => t.push({
kind: "untag",
key: e,
- label: Al(e)
+ label: Ml(e)
})), t;
}
-function L7() {
- T7({
- combo: I7(W),
+function I7() {
+ w7({
+ combo: F7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function R7() {
+async function L7() {
let e = Q.claimSurface(Q.surfacePath());
- if (hu({
+ if (_u({
barsContext: {
type: "home",
- filters: W
+ filters: U
},
detailReturnBarsContext: null
- }), a9(!1), W.state === "ads") return LNe(e);
- if (X.controller.page === "/junk-files" && B7(), L5(), W5(), Z8(location.pathname) && W.browse !== "folders") {
- if (await I5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- yMe();
- } else Q8();
- return L7(), R("#count").classList.remove("manage-static", "junkcount"), V7(e);
-}
-function z7(e) {
+ }), i9(!1), U.state === "ads") return zNe(e);
+ if (X.controller.page === "/junk-files" && z7(), I5(), U5(), X8(location.pathname) && U.browse !== "folders") {
+ if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ xMe();
+ } else Z8();
+ return I7(), L("#count").classList.remove("manage-static", "junkcount"), B7(e);
+}
+function R7(e) {
X.controller.settle(e);
}
-function B7() {
- let e = R("#grid");
- El(e), BV(e), X.controller.clear(), e.innerHTML = "";
+function z7() {
+ let e = L("#grid");
+ Ol(e), zV(e), X.controller.clear(), e.innerHTML = "";
+}
+function B7(e) {
+ return W7("/", RNe, e, { place: vPe });
}
-function V7(e) {
- return G7("/", INe, e, { place: gPe });
+function LNe(e) {
+ return W7("/junk-files", VNe, e);
}
-function FNe(e) {
- return G7("/junk-files", zNe, e);
+function V7() {
+ return !!NV(L("#grid"));
}
function H7() {
- return !!PV(R("#grid"));
-}
-function U7() {
- return X.controller.taken(H7());
-}
-function W7(e) {
- zV(R("#grid"), e);
-}
-function G7(e, t, n, r = {}) {
- let i = R("#grid");
- X.controller.page && X.controller.page !== e && B7();
- let a = X.controller.begin(e, H7()), o = t();
- if (!a.mount) return W7(o), a.settled;
- El(i);
- let s = () => BV(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), RV(e, o, {
+ return X.controller.taken(V7());
+}
+function U7(e) {
+ RV(L("#grid"), e);
+}
+function W7(e, t, n, r = {}) {
+ let i = L("#grid");
+ X.controller.page && X.controller.page !== e && z7();
+ let a = X.controller.begin(e, V7()), o = t();
+ if (!a.mount) return U7(o), a.settled;
+ Ol(i);
+ let s = () => zV(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), LV(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(H7());
+ a.signal.removeEventListener("abort", s), a.finish(V7());
}), a.settled;
}
-function K7() {
- let e = n7();
+function G7() {
+ let e = t7();
return AA({
- active: t7() || e,
+ active: e7() || e,
home: e,
- portrait: W.orient === "竖屏"
+ portrait: U.orient === "竖屏"
});
}
-function q7(e = "正在读取作品") {
- return qJ(e, J7());
+function K7(e = "正在读取作品") {
+ return qJ(e, q7());
}
-function J7() {
- return W ? jA(K7()) : 16 / 9;
+function q7() {
+ return U ? jA(G7()) : 16 / 9;
}
-function Y7() {
- U7() && (El(R("#grid")), W7({
- layout: K7(),
+function J7() {
+ H7() && (Ol(L("#grid")), U7({
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (El(R("#index [data-entity-hero]")), o5({
- layout: K7(),
+ })), Y.entityPageCurrent() && (Ol(L("#index [data-entity-hero]")), a5({
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function INe() {
- let e = decodeURIComponent(location.pathname), t = un(e), n = W.state === "trash";
+function RNe() {
+ let e = decodeURIComponent(location.pathname), t = fn(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: K7(),
+ layout: G7(),
wall: e === "/wall",
- selectMode: Gl,
- selected: new Set(Ul),
+ selectMode: ql,
+ selected: new Set(Gl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: t9,
- settled: z7,
- skeletonHtml: () => q7(),
- filters: { ...W },
+ wireDrag: e9,
+ settled: R7,
+ skeletonHtml: () => K7(),
+ filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
- excludeVertical: t && e !== "/wall" && !W.q && !W.orient && W.browse !== "folders" || W.jav === "1",
- mix: t && e !== "/wall" && !n && W.browse !== "folders",
- shorts: t && e !== "/wall" && !t7() && W.orient !== "竖屏" && !n && W.browse !== "folders",
- countRow: R("#count"),
- onCount: PNe,
- onCountFailed: () => T7({ count: !1 }),
+ excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
+ mix: t && e !== "/wall" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !e7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ countRow: L("#count"),
+ onCount: INe,
+ onCountFailed: () => w7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : EK({
- jav: t7() && !t,
- configurable: iu,
+ jav: e7() && !t,
+ configurable: ou,
filtered: !t
}),
- canLoadMore: () => R("#stats").hidden && R("#index").hidden
+ canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function LNe(e) {
- let t = R("#count");
- return X.controller.page === "/junk-files" && H7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (B7(), L5("正在读取垃圾文件")), W5(), L7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), FNe(e);
+function zNe(e) {
+ let t = L("#count");
+ return X.controller.page === "/junk-files" && V7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (z7(), I5("正在读取垃圾文件")), U5(), I7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), LNe(e);
}
-async function RNe(e, t) {
+async function BNe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
- await rn("/api/batch", {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await R7();
+ }), await L7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- C8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
- await rn("/api/batch", {
+ S8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ await on("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await R7();
+ }), await L7();
} });
} catch (e) {
- throw C8.actionFailure("操作", e), e;
+ throw S8.actionFailure("操作", e), e;
}
}
-function zNe() {
+function VNe() {
return {
...s$(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
revision: X.controller.revision,
- selectMode: Gl,
- selected: new Set(Ul),
- countRow: R("#count"),
- settled: z7,
- skeletonHtml: () => c2("正在读取垃圾文件", {
+ selectMode: ql,
+ selected: new Set(Gl),
+ countRow: L("#count"),
+ settled: R7,
+ skeletonHtml: () => s2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
- canLoadMore: () => R("#stats").hidden && R("#index").hidden
+ canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function BNe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => w8(e, t, Z.appSettings, n), hu(T8(Gje(location, Z.appSettings, C8.rollSeed))), X.searchValueSnapshot = {
+function HNe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => C8(e, t, Z.appSettings, n), _u(w8(qje(location, Z.appSettings, S8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
- }, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = R("#q")) => {
+ }, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
X.searchValueSnapshot = {
text: e?.value || "",
scrollLeft: e?.scrollLeft || 0
};
}, X.clearSearchField = (e = null) => {
- let t = R("#q");
+ let t = L("#q");
if (!t) return;
let n = {
text: t.value,
scrollLeft: t.scrollLeft || 0
}, r = e || (n.text ? n : X.searchValueSnapshot);
- X.cancelSearchDissolve(), X.cancelSearchDissolve = Os(t, t.parentElement, r), X.searchValueSnapshot = {
+ X.cancelSearchDissolve(), X.cancelSearchDissolve = As(t, t.parentElement, r), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
};
};
}
-function VNe() {
- J.handler(R("#wallBtn"), "onclick", () => {
- k5(!1, !0);
- let e = s5(), t = {
+function UNe() {
+ J.handler(L("#wallBtn"), "onclick", () => {
+ O5(!1, !0);
+ let e = o5(), t = {
...Y.activeFilterState(),
- jav: t7() ? "1" : ""
+ jav: e7() ? "1" : ""
};
e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(_K(void 0, t));
- }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
+ }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => bF(e, t),
- displayName: (e, t) => yF(e, t),
- tagLabel: (e) => Al(e)
+ titleHtml: (e, t) => yF(e, t),
+ displayName: (e, t) => vF(e, t),
+ tagLabel: (e) => Ml(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await r8(n9.stageHost);
+ let r = await n8(t9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: y7,
- open: (e, t) => DNe(e, t),
- openResource: (e, t) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : ENe(e, t),
- openShort: (e) => i8()?.miniplayerTakesCard(e) ? i8().miniplayerPlay(e.id) : f9(e.id),
- openShorts: () => f9(),
- openMix: (e, t) => QNe(e, e, !0, t),
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
+ wallDetails: v7,
+ open: (e, t) => kNe(e, t),
+ openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : ONe(e, t),
+ openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : d9(e.id),
+ openShorts: () => d9(),
+ openMix: (e, t) => ePe(e, e, !0, t),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
toggleTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- toggleSelection: (e, t) => A5(e, t),
- watchLater: (e, t) => ONe(e, t),
- rate: (e, t, n, r) => ANe(e, t, n, r),
- resourceOperation: (e, t) => kNe(e, t),
- mixRelated: (e) => v7(e),
- canFlip: () => !Gl && !$7() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => k5(e, t),
+ watchLater: (e, t) => ANe(e, t),
+ rate: (e, t, n, r) => MNe(e, t, n, r),
+ resourceOperation: (e, t) => jNe(e, t),
+ mixRelated: (e) => _7(e),
+ canFlip: () => !ql && !Q7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
- seed: W.seed || ""
+ seed: U.seed || ""
});
- return t && n.set("page", String(t)), t7() && n.set("jav", "1"), e.type === "home" && W.state && n.set("state", W.state), e.type === "home" && W.folder && (n.set("folder", W.folder), W.folder_recursive && n.set("folder_recursive", W.folder_recursive)), n;
+ return t && n.set("page", String(t)), e7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -79214,39 +79221,39 @@ function VNe() {
}
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
- href: e.k ? sn[e.k] : "/"
- })), X.TAGS_FIRST = 26, J.listen(R("#catalogFilter"), "click", (e) => {
+ href: e.k ? ln[e.k] : "/"
+ })), X.TAGS_FIRST = 26, J.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
- }), X.catalogOnScreen = () => R("#index").hidden && R("#stats").hidden, X.COMBO_LABELS = {
+ t && !e.defaultPrevented && (e.preventDefault(), T7().setView(t.dataset.catalogView));
+ }), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && T7({ comboHidden: !0 });
+ X.catalogFilterProps && w7({ comboHidden: !0 });
};
}
-function HNe() {
+function WNe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Gl && k5(!1, !0), Q.route(e);
+ ql && O5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => A5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : l9(e.id, !0, null, t),
+ toggleSelection: (e, t) => k5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : c9(e.id, !0, null, t),
reveal: async (e) => {
try {
- return await rn("/api/reveal", {
+ return await on("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), C8.toast({ text: "已在资源管理器中显示" }), "";
+ }), S8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => RNe(e, t)
+ operate: (e, t) => BNe(e, t)
};
}
-X.controller = new Yje();
+X.controller = new Zje();
//#endregion
//#region src/application/preferences.js
var Z = {
@@ -79270,10 +79277,10 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function X7() {
+async function Y7() {
let e = J;
try {
- let t = await tr(e.signal);
+ let t = await rr(e.signal);
if (!e.isActive) return Z.sourceOnline;
let n = (t.sources || []).flatMap((e) => e.roots || []).filter((e) => e.root_id);
Z.sourceOnline = Object.fromEntries([...(t.sources || []).map((e) => [e.location, e.online]), ...n.map((e) => [e.root_id, e.online])]), Z.sourceProblems = Object.fromEntries([...(t.sources || []).map((e) => [e.location, e.message || ""]), ...n.map((e) => [e.root_id, e.message || ""])]);
@@ -79281,18 +79288,18 @@ async function X7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), wNe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), ENe(), Z.sourceOnline;
}
-function Z7() {
+function X7() {
let e = Q.surfacePath();
- if (!un(e) || e === "/junk-files") return R7();
+ if (!fn(e) || e === "/junk-files") return L7();
let t = Z.nextCatalogLoad();
- return XV(g7(), {
+ return YV(h7(), {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
}), t;
}
-function UNe(e) {
+function GNe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -79301,7 +79308,7 @@ function UNe(e) {
kind: "glyph",
name: "rss"
};
- let t = Yo[e];
+ let t = Zo[e];
return t ? t.startsWith("data:") ? {
kind: "image",
src: t
@@ -79313,8 +79320,8 @@ function UNe(e) {
cost: "free"
};
}
-function Q7(e, t) {
- let n = (e, t = (e) => e.label || Al(e.k)) => (e || []).map((e) => ({
+function Z7(e, t) {
+ let n = (e, t = (e) => e.label || Ml(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
n: e.n ?? null
@@ -79322,9 +79329,9 @@ function Q7(e, t) {
return {
locations: (e.locations || []).map((e) => ({
value: e.k,
- label: Fn[e.k] || e.k,
+ label: Ln[e.k] || e.k,
n: e.n ?? null,
- dot: UNe(e.k),
+ dot: GNe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -79332,28 +79339,28 @@ function Q7(e, t) {
creators: n(r),
tags: n(e.tags),
tech: n(e.tech),
- followTags: n(e.follow_tags, (e) => Al(e.k)),
+ followTags: n(e.follow_tags, (e) => Ml(e.k)),
duration: !!e.stats?.duration
};
}
-async function WNe(e = !1) {
- if (e && (document.hidden || !un(decodeURIComponent(location.pathname)) || n9.stageOpen() || n9.immerseOpen() || Gl || Ul.size || document.activeElement === R("#q"))) return !1;
- if (!R("#stats").hidden) {
+async function KNe(e = !1) {
+ if (e && (document.hidden || !fn(decodeURIComponent(location.pathname)) || t9.stageOpen() || t9.immerseOpen() || ql || Gl.size || document.activeElement === L("#q"))) return !1;
+ if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- S5();
+ x5();
return;
}
let n = t === "reopen" ? e : "/stats";
- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, YV.navigation.location.state) : Q.navigatePath(n);
- } else if (R("#index").hidden) {
- W.sort = "seed", W.dir = "", W.seed = C8.rollSeed(), gu(), k8(), T7({ refreshing: !0 });
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, JV.navigation.location.state) : Q.navigatePath(n);
+ } else if (L("#index").hidden) {
+ U.sort = "seed", U.dir = "", U.seed = S8.rollSeed(), vu(), O8(), w7({ refreshing: !0 });
try {
- let e = Z7();
- await null, await Promise.all([e, N7()]);
+ let e = X7();
+ await null, await Promise.all([e, M7()]);
} finally {
- T7({ refreshing: !1 });
+ w7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -79361,82 +79368,82 @@ async function WNe(e = !1) {
}), !0;
}
}
-function $7() {
+function Q7() {
return document.body.classList.contains("censor");
}
-function e9(e) {
+function $7(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function GNe(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), e9(e), e && El();
+function qNe(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), $7(e), e && Ol();
}
-function KNe(e) {
+function JNe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function t9(e) {
- return oc(e, { drag: !0 });
+function e9(e) {
+ return cc(e, { drag: !0 });
}
-function qNe() {
- ["#nrow", "#count"].forEach((e) => t9(R(e))), document.querySelectorAll(".tier,.srow").forEach(t9);
+function YNe() {
+ ["#nrow", "#count"].forEach((e) => e9(L(e))), document.querySelectorAll(".tier,.srow").forEach(e9);
}
-function JNe() {
+function XNe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function YNe() {
+function ZNe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = fA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), ko(Z.appSettings.uiSounds), Fo(), gA(), Hoe(), VA(), WA(), GA(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = fA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), jo(Z.appSettings.uiSounds), Lo(), gA(), Uoe(), VA(), WA(), GA(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
theme: () => gA(),
uiSounds: () => {
- ko(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Ao("toggle-on");
+ jo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Mo("toggle-on");
},
glowFrame: () => UA(),
glow: () => {
UA(), WA();
},
batchSize: () => {
- location.pathname === "/" && R7();
+ location.pathname === "/" && L7();
},
defaultSort: () => {
- W.sort = Z.appSettings.defaultSort, W.dir = Kk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), gu(), location.pathname === "/" && Z7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Gk(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), vu(), location.pathname === "/" && X7();
},
sortDirection: () => {
- W.dir = Kk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), gu(), location.pathname === "/" && Z7();
+ U.dir = Gk(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), vu(), location.pathname === "/" && X7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
- Ol(e, "previewing", !1), Ol(e, "longhover", !1);
+ Al(e, "previewing", !1), Al(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => Y7(),
- groupCollapse: () => s7(),
- feedAutoScroll: () => bMe(),
- feedLimit: () => $8(),
- feedCompilations: () => $8(),
+ seekSeconds: () => J7(),
+ groupCollapse: () => o7(),
+ feedAutoScroll: () => SMe(),
+ feedLimit: () => Q8(),
+ feedCompilations: () => Q8(),
miniplayer: () => {
- Z.appSettings.miniplayer || i8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || r8()?.closeMiniplayer();
},
javImage: () => {
- Ra(document, Z.appSettings.javImage), Y7(), document.querySelectorAll("img[data-jav-image].cover").forEach(al), ZNe();
+ Ba(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(sl), $Ne();
},
- searchHistoryLimit: () => zV(R("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => RV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
- ...Object.fromEntries(Object.entries(Yo).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : z(t)])),
- online: z("rss")
+ ...Object.fromEntries(Object.entries(Zo).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
+ online: R("rss")
}, Z.srcBadge = (e, t, n) => {
- let r = `${Fn[e] || e}${t === "metered" ? " · 计费" : ""}`;
- return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${B(r)}" aria-label="${B(r)}">` + (Z.SRCICON[e] || "") + "</span>";
- }, Z.emptyState = Ss;
+ let r = `${Ln[e] || e}${t === "metered" ? " · 计费" : ""}`;
+ return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
+ }, Z.emptyState = ws;
}
-function XNe() {
- Z.CENSOR_KEY = "peach-censor", e9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function QNe() {
+ Z.CENSOR_KEY = "peach-censor", $7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
//#endregion
//#region src/application/media.js
-var n9 = {
+var t9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -79447,34 +79454,34 @@ var n9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function r9() {
+function n9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function i9() {
- return i8()?.exit() || Promise.resolve();
+function r9() {
+ return r8()?.exit() || Promise.resolve();
}
-function a9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && v9(), i8()?.dispose({ miniplayer: n }), hu({
+function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && _9(), r8()?.dispose({ miniplayer: n }), _u({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
- }), t || hu({
+ }), t || _u({
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), d7(), e && Q.route(Yl || "/");
+ }), u7(), e && Q.route(Zl || "/");
}
-function ZNe() {
- i8()?.repaintPoster();
+function $Ne() {
+ r8()?.repaintPoster();
}
-function o9(e, t, n, r, i = null, a = {}) {
+function a9(e, t, n, r, i = null, a = {}) {
t = +t;
- let o = $l?.kind === e && (e === "playlist" ? $l.playlistId : $l.seedId) === t;
- r && !o && hu({ detailReturnPath: location.pathname + location.search }), r && bV();
+ let o = tu?.kind === e && (e === "playlist" ? tu.playlistId : tu.seedId) === t;
+ r && !o && _u({ detailReturnPath: location.pathname + location.search }), r && yV();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -79485,228 +79492,228 @@ function o9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- v9();
+ _9();
let e = Q.queueOpenRequest = {
- seq: YV.navigation.seq,
+ seq: JV.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => l9(n == null ? null : +n, !1, s, i, !0, e), hu({ queueOpens: su + 1 });
- } else return l9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => c9(n == null ? null : +n, !1, s, i, !0, e), _u({ queueOpens: lu + 1 });
+ } else return c9(n == null ? null : +n, !1, s, i, r);
}
-function QNe(e, t = e, n = !0, r = null) {
- return o9("mix", e, t, n, r);
+function ePe(e, t = e, n = !0, r = null) {
+ return a9("mix", e, t, n, r);
}
-function $Ne(e, t = e, n = !0, r = null) {
- return o9("editions", e, t, n, r);
+function tPe(e, t = e, n = !0, r = null) {
+ return a9("editions", e, t, n, r);
}
-function ePe(e, t = e, n = !0, r = null) {
- return o9("parts", e, t, n, r);
+function nPe(e, t = e, n = !0, r = null) {
+ return a9("parts", e, t, n, r);
}
-function s9(e, t = null, n = !0) {
- return o9("playlist", e, t, n);
+function o9(e, t = null, n = !0) {
+ return a9("playlist", e, t, n);
}
-function c9() {
- return !!R("#grid").querySelector("[data-id],[data-mix-seed]") || !R("#index").hidden || !R("#stats").hidden;
+function s9() {
+ return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function l9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function c9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || v9(), t && !n) {
- hu({ detailReturnPath: location.pathname + location.search }), y9("/assets/" + +e, "item", () => l9(e, !1, null, r));
+ if (a || _9(), t && !n) {
+ _u({ detailReturnPath: location.pathname + location.search }), v9("/assets/" + +e, "item", () => c9(e, !1, null, r));
return;
}
- El(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : Xl?.isConnected ? Xl : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Zl, c = c9(), l = Ql || !t && !c, u = Vl.type === "item" ? Hl : Y.cloneBarsContext(s5());
- t ? hu({ detailReturnPath: location.pathname + location.search }) : i || hu({ detailReturnPath: SV() || Yl }), t && bV(), i8()?.showing() !== "item" && a9(!1, !0, {
+ Ol(), e = e == null ? null : +e;
+ let o = r?.isConnected ? r : Ql?.isConnected ? Ql : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : $l, c = s9(), l = eu || !t && !c, u = Ul.type === "item" ? Wl : Y.cloneBarsContext(o5());
+ t ? _u({ detailReturnPath: location.pathname + location.search }) : i || _u({ detailReturnPath: xV() || Zl }), t && yV(), r8()?.showing() !== "item" && i9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
- }), hu({
+ }), _u({
detailOriginAnchor: o,
detailOriginAbove: s,
detailReturnNeedsRestore: l
- }), hu({ detailReturnBarsContext: u }), hu({ activeQueue: n && {
+ }), _u({ detailReturnBarsContext: u }), _u({ activeQueue: n && {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), hu({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, CV("item"));
- let d = await r8(n9.stageHost);
+ } }), _u({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, SV("item"));
+ let d = await n8(t9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...n9.itemDetailActions,
+ ...t9.itemDetailActions,
present: (e, t) => {
- a.cancelled || n9.itemDetailActions.present(e, t);
+ a.cancelled || t9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || n9.itemDetailActions.redirect(e);
+ a.cancelled || t9.itemDetailActions.redirect(e);
}
- } : n9.itemDetailActions;
+ } : t9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: n9.itemDetailHelpers,
+ helpers: t9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: K7(),
- selectMode: Gl,
- selected: new Set(Ul),
+ layout: G7(),
+ selectMode: ql,
+ selected: new Set(Gl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : r9()
- }), d7();
+ resume: t || e == null ? null : n9()
+ }), u7();
}
-async function u9() {
- let e = Y.cloneBarsContext(Hl), t = Yl || "/", n = Ql;
- await i9(), a9(!1, !1, { miniplayer: !1 }), hu({ detailReturnBarsContext: null }), xV(), hu({ barsContext: e || {
+async function l9() {
+ let e = Y.cloneBarsContext(Wl), t = Zl || "/", n = eu;
+ await r9(), i9(!1, !1, { miniplayer: !1 }), _u({ detailReturnBarsContext: null }), bV(), _u({ barsContext: e || {
type: "home",
- filters: W
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? hu({ pageOpens: ou + 1 }) : (N7(), location.pathname === "/playlists" && hu({ pageOpens: ou + 1 })));
+ filters: U
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? _u({ pageOpens: cu + 1 }) : (M7(), location.pathname === "/playlists" && _u({ pageOpens: cu + 1 })));
}
-async function d9(e, t = !0) {
+async function u9(e, t = !0) {
if (t) {
- hu({ detailReturnPath: location.pathname + location.search }), y9("/works/" + encodeURIComponent(e), "jav", () => d9(e, !1));
+ _u({ detailReturnPath: location.pathname + location.search }), v9("/works/" + encodeURIComponent(e), "jav", () => u9(e, !1));
return;
}
- let n = YV.navigation.seq, r = Y.cloneBarsContext(s5()), i = !c9(), a = SV() || (i ? "/jav?tab=discover" : Yl) || "/jav?tab=discover";
- i8()?.showing() !== "jav" && a9(!1, !0, { miniplayer: !1 }), hu({
+ let n = JV.navigation.seq, r = Y.cloneBarsContext(o5()), i = !s9(), a = xV() || (i ? "/jav?tab=discover" : Zl) || "/jav?tab=discover";
+ r8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), _u({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
- }), El();
- let [o, s] = await Promise.all([r8(n9.stageHost), V("/healthz")]);
- YV.navigation.seq === n && (await o.open({
+ }), Ol();
+ let [o, s] = await Promise.all([n8(t9.stageHost), B("/healthz")]);
+ JV.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void u9(),
+ close: () => void l9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- YV.navigation.seq === n && t && t !== e && XV("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ JV.navigation.seq === n && t && t !== e && YV("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
});
},
openTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- receipt: (e) => C8.toast({ text: e })
+ receipt: (e) => S8.toast({ text: e })
}
- }), d7());
+ }), u7());
}
-async function f9(e = null, t = !0) {
- t ? (n9.requestedImmerseId = e, Q.route("/immerse")) : (i8()?.closeMiniplayer(), await (await Ije(n9.immerseHost)).open(e));
+async function d9(e = null, t = !0) {
+ t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await Rje(t9.immerseHost)).open(e));
}
-function tPe() {
- n9.total = 0, n9.facets = null, n9.stageHost = {
+function rPe() {
+ t9.total = 0, t9.facets = null, t9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => C8.toast({ text: e }, t),
- loadSourceStatus: () => X7(),
+ toast: (e, t) => S8.toast({ text: e }, t),
+ loadSourceStatus: () => Y7(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? O9(t, !0, n) : l9(t, !0);
+ e === "follow" ? D9(t, !0, n) : c9(t, !0);
},
- openItem: (e) => void l9(e)
- }, n9.stageOpen = () => !!i8()?.isOpen();
+ openItem: (e) => void c9(e)
+ }, t9.stageOpen = () => !!r8()?.isOpen();
}
-function nPe() {
- n9.itemDetailHelpers = {
+function iPe() {
+ t9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => bF(e),
- displayName: (e) => yF(e),
+ titleHtml: (e) => yF(e),
+ displayName: (e) => vF(e),
javImage: () => Z.appSettings.javImage,
- tagLabel: (e) => Al(e),
- isDurationTag: (e) => Rn.has(e),
- tagCandidates: () => n9.facets && n9.facets.tags || [],
+ tagLabel: (e) => Ml(e),
+ isDurationTag: (e) => Bn.has(e),
+ tagCandidates: () => t9.facets && t9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => c2("正在读取推荐", {
+ relatedSkeletonHtml: () => s2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => v7(e),
- wireDrag: (e) => t9(e),
- wireDragReorder: (e, t) => Fc(e, t)
- }, n9.itemDetailActions = {
- close: () => u9(),
+ mixRelated: (e) => _7(e),
+ wireDrag: (e) => e9(e),
+ wireDragReorder: (e, t) => Lc(e, t)
+ }, t9.itemDetailActions = {
+ close: () => l9(),
present: (e) => {
- hu({ presentedItem: e });
- let t = Hl;
- hu({ barsContext: {
+ _u({ presentedItem: e });
+ let t = Wl;
+ _u({ barsContext: {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), eu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${eu}`, !1, CV("item")), hu({ pendingQueueRoute: null })), N7();
+ } }), nu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${nu}`, !1, SV("item")), _u({ pendingQueueRoute: null })), M7();
},
redirect: (e) => {
- let t = !!eu;
- e.kind === "follow" ? (Q.queueOpenRequest = null, hu({
+ let t = !!nu;
+ e.kind === "follow" ? (Q.queueOpenRequest = null, _u({
pendingQueueRoute: null,
- followDetailReturnPath: Yl || "/"
- }), Q.route(`/posts/${e.id}`, !t, CV("follow")), O9(e.id, !1, null, !0)) : e.kind === "item" ? l9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? x9("/playlists") : S5() : a9(!1);
+ followDetailReturnPath: Zl || "/"
+ }), Q.route(`/posts/${e.id}`, !t, SV("follow")), D9(e.id, !1, null, !0)) : e.kind === "item" ? c9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? b9("/playlists") : x5() : i9(!1);
},
- openQueueItem: (e, t, n = !0) => void o9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void a9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
- let e = tu;
+ let e = ru;
if (!e) return;
- let t = $l;
- t ? o9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : l9(e.id, !1);
+ let t = tu;
+ t ? a9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : c9(e.id, !1);
},
- checkSource: async (e) => (await X7())[e] !== !1,
+ checkSource: async (e) => (await Y7())[e] !== !1,
openSavedFollow: () => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", x9(S9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", b9(x9());
},
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
- openRegion: (e) => _7({ region: e || "none" }, !0),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
+ openRegion: (e) => g7({ region: e || "none" }, !0),
openTag: (e) => {
- C7((t) => {
+ S7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- addToPlaylist: (e) => PMe(e),
- saveMix: (e) => NMe(e),
- editPlaylist: () => x9("/playlists"),
- openPlaylists: () => x9("/playlists"),
- reveal: (e) => m5(e),
- sync: (e) => TMe(e),
+ addToPlaylist: (e) => IMe(e),
+ saveMix: (e) => FMe(e),
+ editPlaylist: () => b9("/playlists"),
+ openPlaylists: () => b9("/playlists"),
+ reveal: (e) => p5(e),
+ sync: (e) => DMe(e),
trashChanged: async (e, t) => {
- W.state === "ads" && (t || e === "trash") && (t || (xV(), a9(!0, !1, { miniplayer: !1 })), await R7());
+ U.state === "ads" && (t || e === "trash") && (t || (bV(), i9(!0, !1, { miniplayer: !1 })), await L7());
},
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, n9.immerseHost = {
- filters: () => W,
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseHost = {
+ filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => yF(e),
+ displayName: (e) => vF(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => _7(),
- openItem: (e) => void l9(e),
- openEntity: (e, t) => y5(e, t),
- openUnowned: () => _7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- warn: (e) => C8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => C8.actionFailure(e, t)
- }, n9.immerseOpen = () => !!s8()?.isOpen(), J.handler(R("#immerseBtn"), "onclick", () => f9());
+ closed: () => g7(),
+ openItem: (e) => void c9(e),
+ openEntity: (e, t) => v5(e, t),
+ openUnowned: () => g7({ owner: "none" }, !0),
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ warn: (e) => S8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => S8.actionFailure(e, t)
+ }, t9.immerseOpen = () => !!o8()?.isOpen(), J.handler(L("#immerseBtn"), "onclick", () => d9());
}
//#endregion
//#region src/application/tutorial.js
-var p9 = {
+var f9 = {
postSetupTutorialDone: void 0,
postSetupTutorialNeedsReopen: void 0,
postSetupTutorialTasks: void 0,
@@ -79715,78 +79722,78 @@ var p9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function rPe() {
- tl(), await p9.writePostSetupTutorialDone(!1), await m9();
+async function aPe() {
+ rl(), await f9.writePostSetupTutorialDone(!1), await p9();
}
-async function m9() {
- let e = R("#postSetupTutorial");
+async function p9() {
+ let e = L("#postSetupTutorial");
if (!e) return;
let t = () => {
e.hidden = !0, e.innerHTML = "", delete e.dataset.tutorialSignature, e.removeAttribute("aria-busy");
};
- if (p9.postSetupTutorialNeedsReopen && (p9.postSetupTutorialNeedsReopen = !1, await p9.writePostSetupTutorialDone(!1).catch(() => {})), Gc() !== "pending" || await p9.readPostSetupTutorialDone()) {
+ if (f9.postSetupTutorialNeedsReopen && (f9.postSetupTutorialNeedsReopen = !1, await f9.writePostSetupTutorialDone(!1).catch(() => {})), qc() !== "pending" || await f9.readPostSetupTutorialDone()) {
t();
return;
}
- let n = $c();
- e.hidden = !1, e.setAttribute("aria-busy", "true"), e.firstElementChild || (e.innerHTML = `<article class="post-setup-notification post-setup-loading">${z("compass")}<p>正在检查安装进度…</p></article>`);
+ let n = tl();
+ e.hidden = !1, e.setAttribute("aria-busy", "true"), e.firstElementChild || (e.innerHTML = `<article class="post-setup-notification post-setup-loading">${R("compass")}<p>正在检查安装进度…</p></article>`);
try {
- let r = await p9.postSetupTutorialTasks();
- if (!el(n)) return;
- let i = new Set(r.map((e) => e.key)), a = new Set([...Yc()].filter((e) => i.has(e)));
- Xc(a);
+ let r = await f9.postSetupTutorialTasks();
+ if (!nl(n)) return;
+ let i = new Set(r.map((e) => e.key)), a = new Set([...Zc()].filter((e) => i.has(e)));
+ Qc(a);
let o = r.filter((e) => !a.has(e.key)), s = o.filter((e) => !e.done);
if (!s.length) {
- Kc("complete"), t(), await p9.writePostSetupTutorialDone(!0).catch(() => {});
+ Jc("complete"), t(), await f9.writePostSetupTutorialDone(!0).catch(() => {});
return;
}
- let c = Zc(o);
+ let c = $c(o);
if (e.dataset.tutorialSignature === c) {
e.removeAttribute("aria-busy");
return;
}
- e.innerHTML = p9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
+ e.innerHTML = f9.postSetupTutorialHtml(o, a.size, r.length), e.dataset.tutorialSignature = c, e.removeAttribute("aria-busy");
let l = s[0], u = e.querySelector("[data-tutorial-collapse]"), d = e.querySelector(".post-setup-collapse-body");
- d.inert = qc(), d.classList.toggle("ui-fcollapse-settled", !d.inert), J.handler(u, "onclick", () => {
+ d.inert = Yc(), d.classList.toggle("ui-fcollapse-settled", !d.inert), J.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
- t.dataset.collapsed = String(n), Jc(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), yo(d, !n);
+ t.dataset.collapsed = String(n), Xc(n), u.setAttribute("aria-expanded", String(!n)), u.setAttribute("aria-label", n ? "展开安装教程" : "折叠安装教程"), xo(d, !n);
}), e.querySelectorAll("[data-tutorial-skip]").forEach((e) => J.handler(e, "onclick", () => {
- let t = Yc(), n = e.dataset.tutorialSkip;
- t.add(n), Xc(t), C8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
- let e = Yc();
- e.delete(n), Xc(e), Kc("pending"), await m9();
- } }), m9();
+ let t = Zc(), n = e.dataset.tutorialSkip;
+ t.add(n), Qc(t), S8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
+ let e = Zc();
+ e.delete(n), Qc(e), Jc("pending"), await p9();
+ } }), p9();
}));
let f = new Map(o.map((e) => [e.key, e]));
e.querySelectorAll("[data-tutorial-task]").forEach((e) => J.handler(e, "onclick", (t) => {
let n = f.get(e.dataset.tutorialTask);
- !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), p9.openTutorialTarget(n));
- })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => p9.openTutorialTarget(l));
+ !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), f9.openTutorialTarget(n));
+ })), J.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => f9.openTutorialTarget(l));
} catch {
- if (!el(n)) return;
- e.innerHTML = nl(z("alert")), e.removeAttribute("aria-busy"), J.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
- delete e.dataset.tutorialSignature, e.innerHTML = "", m9();
+ if (!nl(n)) return;
+ e.innerHTML = il(R("alert")), e.removeAttribute("aria-busy"), J.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
+ delete e.dataset.tutorialSignature, e.innerHTML = "", p9();
}), J.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function iPe() {
- if (hu({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), p9.postSetupTutorialDone = null, p9.postSetupTutorialNeedsReopen = !1, au) {
- Kc("pending"), p9.postSetupTutorialDone = !1, p9.postSetupTutorialNeedsReopen = !0;
+function oPe() {
+ if (_u({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), f9.postSetupTutorialDone = null, f9.postSetupTutorialNeedsReopen = !1, su) {
+ Jc("pending"), f9.postSetupTutorialDone = !1, f9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
- e.searchParams.delete("onboarding"), XV(e, {
+ e.searchParams.delete("onboarding"), YV(e, {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
- localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), XV(e, {
+ localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), YV(e, {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
})), t === "on" && import("/dev/agentation.js").catch(() => {});
}
- p9.postSetupTutorialTasks = async () => {
- let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await rn("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
+ f9.postSetupTutorialTasks = async () => {
+ let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await on("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
return [
{
key: "library",
@@ -79838,41 +79845,41 @@ function iPe() {
icon: "square-check-big"
}
];
- }, p9.postSetupTutorialHtml = (e, t, n) => {
- let r = [...e].sort((e, t) => Number(e.done) - Number(t.done)), i = e.find((e) => !e.done), a = e.filter((e) => e.done).length + t, o = qc(), s = r.map((e) => `<li class="post-setup-task" data-state="${e.done ? "checked" : "unchecked"}">
+ }, f9.postSetupTutorialHtml = (e, t, n) => {
+ let r = [...e].sort((e, t) => Number(e.done) - Number(t.done)), i = e.find((e) => !e.done), a = e.filter((e) => e.done).length + t, o = Yc(), s = r.map((e) => `<li class="post-setup-task" data-state="${e.done ? "checked" : "unchecked"}">
<a href="${e.href}" data-tutorial-task="${e.key}">
- <span class="post-setup-check" aria-hidden="true">${e.done ? z("check") : z(e.icon)}</span>
+ <span class="post-setup-check" aria-hidden="true">${e.done ? R("check") : R(e.icon)}</span>
<span><b>${e.label}</b><small>${e.description}</small></span>
- ${z("chevron-right")}</a>
+ ${R("chevron-right")}</a>
${e.done ? "" : `<button class="post-setup-skip" type="button" data-tutorial-skip="${e.key}" data-tutorial-label="${e.label}">跳过</button>`}
</li>`).join("");
return `<article class="post-setup-notification" data-collapsed="${o}">
<header class="post-setup-notification-head">
- <span class="post-setup-notification-icon" aria-hidden="true">${z("compass")}</span>
+ <span class="post-setup-notification-icon" aria-hidden="true">${R("compass")}</span>
<div><h2>完成 Peach 的安装教程</h2>
<p>已处理 ${a}/${n} 项。</p></div>
<button class="post-setup-collapse" type="button" data-tutorial-collapse aria-controls="postSetupCollapseBody" aria-expanded="${!o}"
- aria-label="${o ? "展开安装教程" : "折叠安装教程"}">${z("chevron-down")}</button>
+ aria-label="${o ? "展开安装教程" : "折叠安装教程"}">${R("chevron-down")}</button>
</header>
<div class="post-setup-collapse-body ui-fcollapse" id="postSetupCollapseBody"${o ? " hidden" : ""}>
<ol class="post-setup-task-list" id="postSetupTaskList">${s}</ol>
<footer><button class="geist-button" type="button" data-tutorial-action="next">继续:${i.label}</button></footer>
</div>
</article>`;
- }, p9.writePostSetupTutorialDone = async (e) => {
- p9.postSetupTutorialDone = e, await rn("/api/settings", {
+ }, f9.writePostSetupTutorialDone = async (e) => {
+ f9.postSetupTutorialDone = e, await on("/api/settings", {
method: "POST",
body: JSON.stringify({ postSetupTutorialDone: e })
});
- }, p9.readPostSetupTutorialDone = async () => {
- if (p9.postSetupTutorialDone === null) try {
- p9.postSetupTutorialDone = (await rn("/api/settings")).postSetupTutorialDone === !0;
+ }, f9.readPostSetupTutorialDone = async () => {
+ if (f9.postSetupTutorialDone === null) try {
+ f9.postSetupTutorialDone = (await on("/api/settings")).postSetupTutorialDone === !0;
} catch {
- p9.postSetupTutorialDone = !1;
+ f9.postSetupTutorialDone = !1;
}
- return p9.postSetupTutorialDone;
- }, p9.openTutorialTarget = (e) => {
- e.setupEntry && hu({ cameFromSetup: !0 }), Q.navigatePath(e.href);
+ return f9.postSetupTutorialDone;
+ }, f9.openTutorialTarget = (e) => {
+ e.setupEntry && _u({ cameFromSetup: !0 }), Q.navigatePath(e.href);
};
}
//#endregion
@@ -79896,48 +79903,48 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function h9() {
- let e = p8();
- e ? e.navChanged() : R("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
+function m9() {
+ let e = f8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(s7(e.dataset.nav))));
}
-function g9(e = {}) {
+function h9(e = {}) {
let t = Q.surfacePath();
- t !== V5.sidebarSurface && (V5.sidebarSurface = t, V5.sidebarProps = {
- ...V5.sidebarProps,
+ t !== B5.sidebarSurface && (B5.sidebarSurface = t, B5.sidebarProps = {
+ ...B5.sidebarProps,
content: null,
latest: null
- }), V5.sidebarProps = {
- ...V5.sidebarProps,
+ }), B5.sidebarProps = {
+ ...B5.sidebarProps,
...e
- }, p8()?.render(V5.sidebarProps);
+ }, f8()?.render(B5.sidebarProps);
}
-function _9() {
- g9(), h9(), u7();
+function g9() {
+ h9(), m9(), l7();
}
-function v9() {
- Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, hu({ pendingQueueRoute: null });
+function _9() {
+ Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, _u({ pendingQueueRoute: null });
}
-function y9(e, t, n) {
- v9(), bV(), Q.requestedOverlay = {
+function v9(e, t, n) {
+ _9(), yV(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, CV(t));
+ }, Q.route(e, !1, SV(t));
}
-function b9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, I5.syncPageTitle(location.href), g9(), xV(), m9();
+function y9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, F5.syncPageTitle(location.href), h9(), bV(), p9();
}
-function x9(e) {
- Q.route(e), hu({ pageOpens: ou + 1 });
+function b9(e) {
+ Q.route(e), _u({ pageOpens: cu + 1 });
}
-function aPe() {
+function sPe() {
Q.routeMeta = (e) => {
- let t = EV(e);
+ let t = TV(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(TV).find((n) => TV[n][e] === t), Q.catalogPage = (e) => un(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = EV(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !gV(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(wV).find((n) => wV[n][e] === t), Q.catalogPage = (e) => fn(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = TV(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !hV(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? f9(JNe()) : e === "/follow" ? D9() : e === "/playlists" || Q.catalogPage(e) ? x9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? QMe() : e) : (k5(!1, !0), x9(N5({
+ e === "/immerse" ? d9(XNe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? eNe() : e) : (O5(!1, !0), b9(M5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -79946,35 +79953,35 @@ function aPe() {
})));
};
}
-function oPe() {
+function cPe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (Z8(e) || Q8(), BV(R("#stats"), R("#index")), !un(e) && e !== "/trash" && B7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, XV(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (X8(e) || Z8(), zV(L("#stats"), L("#index")), !fn(e) && e !== "/trash" && z7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, YV(e, {
replace: t,
state: n
- }), I5.syncPageTitle(e), queueMicrotask(() => {
- u7(), $5(), g9(), m9();
+ }), F5.syncPageTitle(e), queueMicrotask(() => {
+ l7(), Q5(), h9(), p9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? YV.replace(e, n) : YV.push(e, n), queueMicrotask(() => {
- u7(), $5();
+ t ? JV.replace(e, n) : JV.push(e, n), queueMicrotask(() => {
+ l7(), Q5();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
//#endregion
//#region src/jobs.ts
-function sPe(e, t, n) {
+function lPe(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="ui-board-job-progress" role="progressbar" aria-label="${B(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${B(e)}<small>${Math.round(i)}%</small></span></div>`;
+ return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function cPe(e, t = 0, n = 0) {
- return n > 0 ? sPe(e, t, n) : bs(e);
+function uPe(e, t = 0, n = 0) {
+ return n > 0 ? lPe(e, t, n) : Ss(e);
}
-async function lPe(e) {
+async function dPe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -79989,14 +79996,14 @@ async function lPe(e) {
await t(2e3);
}
}
-function uPe(e) {
- let t = e.note || ((e) => _s(e, {
+function fPe(e) {
+ let t = e.note || ((e) => ys(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || bs, r = e.progress || ((e, t, n) => cPe(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 || Ss, r = e.progress || ((e, t, n) => uPe(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;
- lPe({
+ dPe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -80046,25 +80053,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function dPe(e) {
+function pPe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- C8.toast({ text: xi(e) }, {
+ S8.toast({ text: Ci(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => D9(!0)
+ run: () => E9(!0)
}
});
}
-function S9() {
- return ca(C9());
+function x9() {
+ return ua(S9());
}
-function fPe() {
+function mPe() {
return $.controller.read();
}
-function C9() {
+function S9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -80079,33 +80086,33 @@ function C9() {
seed: $.followSeed
};
}
-function w9(e) {
+function C9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function pPe() {
- let e = PV(R("#stats"));
+function hPe() {
+ let e = NV(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function T9() {
- return !!pPe();
+function w9() {
+ return !!hPe();
}
-function E9(e) {
- T9() && zV(R("#stats"), e);
+function T9(e) {
+ w9() && RV(L("#stats"), e);
}
-function mPe(e, t = {}) {
+function gPe(e, t = {}) {
return $.controller.route(e, t);
}
-function D9(e = !1) {
+function E9(e = !1) {
$.controller.enter(e);
}
-async function O9(e, t = !0, n = null, r = !1) {
+async function D9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && hu({ followDetailReturnPath: location.pathname + location.search }), y9(`/posts/${+e}`, "follow", () => O9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && _u({ followDetailReturnPath: location.pathname + location.search }), v9(`/posts/${+e}`, "follow", () => D9(e, !1, n, r));
return;
}
- El(), e = +e;
+ Ol(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && hu({ followDetailReturnPath: location.pathname + location.search }), !t && !r && hu({ followDetailReturnPath: SV() || "/follow" }), t && bV(), i8()?.showing() !== "follow" && a9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, CV("follow")), await (await r8(n9.stageHost)).open({
+ t && i && !r && _u({ followDetailReturnPath: location.pathname + location.search }), !t && !r && _u({ followDetailReturnPath: xV() || "/follow" }), t && yV(), r8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, SV("follow")), await (await n8(t9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -80113,93 +80120,93 @@ async function O9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : r9()
- }), d7();
+ resume: t ? null : n9()
+ }), u7();
}
-async function hPe() {
- await i9(), a9(!1, !1, { miniplayer: !1 }), xV(), Q.route(nu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && T9() ? (fPe(), E9({ view: C9() })) : hu({ pageOpens: ou + 1 }));
+async function _Pe() {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), bV(), Q.route(iu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && w9() ? (mPe(), T9({ view: S9() })) : _u({ pageOpens: cu + 1 }));
}
-function gPe(e) {
+function vPe(e) {
let t = document.createElement("div");
- return t.className = "peach-react", Ps(e, () => {
+ return t.className = "peach-react", Is(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function _Pe() {
- $.followFeedHelpers = Ml({
+function yPe() {
+ $.followFeedHelpers = Pl({
wireDrag: (e) => {
- e && t9(e);
+ e && e9(e);
},
wireScroller: (e) => {
- e && oc(e);
+ e && cc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: uPe
+ jobProgress: fPe
}), $.followFeedActions = {
- loaded: (e) => G5(e),
- openDetail: (e) => O9(e),
- openAuthor: (e) => Q.navigatePath(pn("creator", e)),
- toggleSelection: (e, t) => BMe(e, t),
+ loaded: (e) => W5(e),
+ openDetail: (e) => D9(e),
+ openAuthor: (e) => Q.navigatePath(hn("creator", e)),
+ toggleSelection: (e, t) => HMe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- NA(e), d5();
+ NA(e), u5();
},
- canFlip: () => !Gl && !$7() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: (e, t) => C8.actionFailure(e, t),
- checkReport: (e) => dPe(e)
+ canFlip: () => !ql && !Q7() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => S8.actionFailure(e, t),
+ checkReport: (e) => pPe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- i8()?.showing() !== "follow" && (El(), a9(!1), U5(), !T9() && (Q.claimSurface(Q.surfacePath()), H5({ manage: !1 }), R("#stats").querySelector(".peach-react") && BV(R("#stats")), R("#stats").replaceChildren()));
- }
- }, $.followDetailActions = Bl({
- view: C9,
- adoptView: w9,
- rememberReturn: (e) => hu({ followDetailReturnPath: e }),
- close: () => void hPe(),
- open: (e, t, n) => void O9(e, !0, t, n),
- drawer: G5,
- openAuthor: (e) => Q.navigatePath(pn("creator", e))
+ r8()?.showing() !== "follow" && (Ol(), i9(!1), H5(), !w9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), L("#stats").querySelector(".peach-react") && zV(L("#stats")), L("#stats").replaceChildren()));
+ }
+ }, $.followDetailActions = Hl({
+ view: S9,
+ adoptView: C9,
+ rememberReturn: (e) => _u({ followDetailReturnPath: e }),
+ close: () => void _Pe(),
+ open: (e, t, n) => void D9(e, !0, t, n),
+ drawer: W5,
+ openAuthor: (e) => Q.navigatePath(hn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => C8.actionReceipt(e, { undo: t }),
- failure: C8.actionFailure
+ toast: (e, { undo: t } = {}) => S8.actionReceipt(e, { undo: t }),
+ failure: S8.actionFailure
});
}
-function vPe() {
- $.controller = da({
+function bPe() {
+ $.controller = pa({
location: () => location,
- view: C9,
- adoptView: w9,
+ view: S9,
+ adoptView: C9,
session: () => ({
- discoverySeed: lu,
- revision: uu,
- scrollY: du
+ discoverySeed: du,
+ revision: fu,
+ scrollY: pu
}),
- writeSession: (e) => hu({
+ writeSession: (e) => _u({
...e.discoverySeed === void 0 ? {} : { followDiscoverySeed: e.discoverySeed },
...e.revision === void 0 ? {} : { followRevision: e.revision },
...e.scrollY === void 0 ? {} : { followScrollY: e.scrollY }
}),
preferences: () => ({
- selectMode: Gl,
- selected: Wl,
+ selectMode: ql,
+ selected: Kl,
photoSize: DA(),
photoLayout: OA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: T9,
- push: E9,
+ live: w9,
+ push: T9,
route: Q.route,
- openPage: x9,
- rollSeed: () => Number(C8.rollSeed()),
+ openPage: b9,
+ rollSeed: () => Number(S8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- El(), U5(), H5({ manage: !1 });
+ Ol(), H5(), V5({ manage: !1 });
},
- syncPhotoWalls: d5,
+ syncPhotoWalls: u5,
scrollTop: () => window.scrollTo({
top: 0,
behavior: "smooth"
@@ -80208,12 +80215,12 @@ function vPe() {
}
//#endregion
//#region src/application/lifecycle.js
-function yPe() {
- oSe(), Oc(document), go(document.documentElement, { variant: "page" }), go(R("#drawerScroll")), J.own(Tc()), Ca(document.body), X.homeHasFeed = _Me(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, V5.sidebarProps = {
+function xPe() {
+ sSe(), Ac(document), vo(document.documentElement, { variant: "page" }), vo(L("#drawerScroll")), J.own(Dc()), Ta(document.body), X.homeHasFeed = yMe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, V5.sidebarSurface = "", V5.sidebarCatalog = null, V5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, B5.sidebarSurface = "", B5.sidebarCatalog = null, B5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
@@ -80221,7 +80228,7 @@ function yPe() {
}
//#endregion
//#region src/react/search/recommendations.ts
-async function bPe(e) {
+async function SPe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -80242,12 +80249,12 @@ async function bPe(e) {
credentials: /* @__PURE__ */ new Set()
};
for (let e of i?.groups || []) {
- let t = Ji(e);
+ let t = Xi(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = Yi(e, n), i = l.sources.find((e) => e.id === r.source_id), a = JU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let r = Zi(e, n), i = l.sources.find((e) => e.id === r.source_id), a = qU(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: WU(r),
+ value: UU(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -80263,7 +80270,7 @@ async function bPe(e) {
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: qU(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: KU(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@ -80334,7 +80341,7 @@ async function bPe(e) {
}
//#endregion
//#region src/application/search-morph.js
-function xPe(e, t, n, r, i, a, o) {
+function CPe(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -80350,68 +80357,68 @@ function xPe(e, t, n, r, i, a, o) {
}
//#endregion
//#region src/application/search.js
-var k9 = {
+var O9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function A9() {
- k9.searchControl?.close();
+function k9() {
+ O9.searchControl?.close();
}
-function SPe(e) {
- let t = e ? Pa({
+function wPe(e) {
+ let t = e ? Ia({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
- return t === "cover" ? eo(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
+ return t === "cover" ? no(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
}
-function j9() {
- k9.searchMorph?.cancel(), k9.searchMorph = null, R(".search").classList.remove("search-morphing");
+function A9() {
+ O9.searchMorph?.cancel(), O9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function M9(e) {
- let t = R(".search"), n = R("#searchBtn");
+function j9(e) {
+ let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!k9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- j9(), t.classList.remove("open");
+ let r = !!O9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ A9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
- if (t.classList.toggle("open", e), R("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
- let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = yc();
+ if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
+ let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = xc();
t.classList.add("search-morphing");
- let h = t.animate(xPe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(CPe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- k9.searchMorph = h, J.handler(h, "onfinish", () => {
- k9.searchMorph === h && j9();
+ O9.searchMorph = h, J.handler(h, "onfinish", () => {
+ O9.searchMorph === h && A9();
});
}
-function CPe() {
- return n9.immerseOpen() ? s8().activeVideo() : i8()?.activeVideo() || null;
+function TPe() {
+ return t9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
}
-function wPe(e) {
+function EPe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function TPe() {
- k9.searchControl = null, k9.searchActions = {
+function DPe() {
+ O9.searchControl = null, O9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), a9(!1), W.q = e, gu(), Q.route(W.jav === "1" ? g7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
+ X.rememberSearchValue(), i9(!1), U.q = e, vu(), Q.route(U.jav === "1" ? h7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => l9(e),
- openEntity: (e, t) => y5(e, t),
+ openItem: (e) => c9(e),
+ openEntity: (e, t) => v5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, O9(e, !0, n);
- }
- }, k9.searchHelpers = {
- pool: () => TK(W, rn),
- recommendations: () => bPe(rn),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : SPe(e)}</span>`,
- present: (e) => Bo(e),
- dismiss: (e) => Vo(e),
- wireScroller: (e) => oc(e),
+ $.followMediaView = t, D9(e, !0, n);
+ }
+ }, O9.searchHelpers = {
+ pool: () => TK(U, on),
+ recommendations: () => SPe(on),
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? U8(e) : wPe(e)}</span>`,
+ present: (e) => Ho(e),
+ dismiss: (e) => Uo(e),
+ wireScroller: (e) => cc(e),
typed: (e) => {
let t = e.value;
!t && X.searchValueSnapshot.text ? X.clearSearchField(X.searchValueSnapshot) : (t && (X.cancelSearchDissolve(), X.cancelSearchDissolve = () => {}), X.rememberSearchValue(e));
@@ -80423,68 +80430,68 @@ function TPe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, RV("search", {
- input: R("#q"),
+ }, LV("search", {
+ input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: k9.searchActions,
- helpers: k9.searchHelpers,
+ actions: O9.searchActions,
+ helpers: O9.searchHelpers,
expose: (e) => {
- k9.searchControl = e;
+ O9.searchControl = e;
}
}, {
- container: R("#searchMenu"),
+ container: L("#searchMenu"),
isCurrent: () => !0
- }), J.listen(R("#q"), "beforeinput", (e) => {
+ }), J.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), J.listen(R("#q"), "scroll", (e) => {
+ }), J.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), J.listen(R("#q"), "pointerdown", (e) => {
+ }), J.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function EPe() {
- k9.searchMorph = null, k9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
- innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
- }, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), J.handler(R("#searchBtn"), "onclick", () => {
- M9(!0), R("#q").focus({ preventScroll: !0 });
- }), J.handler(R("#searchBack"), "onclick", () => {
- M9(!1), A9(), R("#q").blur(), R("#searchBtn").focus({ preventScroll: !0 });
+function M9() {
+ O9.searchMorph = null, O9.searchMorphViewport = innerWidth, J.listen.bind(J, window)("resize", () => {
+ innerWidth !== O9.searchMorphViewport && (O9.searchMorphViewport = innerWidth, A9());
+ }, { passive: !0 }), J.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", A9), J.handler(L("#searchBtn"), "onclick", () => {
+ j9(!0), L("#q").focus({ preventScroll: !0 });
+ }), J.handler(L("#searchBack"), "onclick", () => {
+ j9(!1), k9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
- e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (R("#q").value || M9(!1), A9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || j9(!1), k9());
};
- J.listen(document, "pointerdown", e, !0), J.listen(document, "focusin", e), J.handler(R("#brandHome"), "onclick", (e) => {
- e.preventDefault(), _7(null, !0);
+ J.listen(document, "pointerdown", e, !0), J.listen(document, "focusin", e), J.handler(L("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), g7(null, !0);
}), J.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = u8();
+ let t = l8();
if (t?.isOpen()) {
t.close();
return;
}
- if (!R("#searchMenu").hidden) {
- A9();
+ if (!L("#searchMenu").hidden) {
+ k9();
return;
}
- if (n9.immerseOpen()) {
- s8().close();
+ if (t9.immerseOpen()) {
+ o8().close();
return;
}
- if (n9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), i8().requestClose());
+ if (t9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), r8().requestClose());
return;
}
- if (R("#drawer").classList.contains("open")) {
- J5(!1);
+ if (L("#drawer").classList.contains("open")) {
+ q5(!1);
return;
}
- if (Gl || Ul.size || Wl.size) {
- k5(!1, !0);
+ if (ql || Gl.size || Kl.size) {
+ O5(!1, !0);
return;
}
return;
}
- if (wPe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (EPe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -80492,30 +80499,30 @@ function EPe() {
return;
}
}
- let t = CPe();
+ let t = TPe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), i8()?.toggleTheater();
+ e.preventDefault(), r8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), _M(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), yM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), gM(t);
+ e.preventDefault(), vM(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), Nj(t, ".vjs-mute-control");
+ e.preventDefault(), Pj(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), Nj(t, ".vjs-fullscreen-control");
+ e.preventDefault(), Pj(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), i8()?.toggleMiniplayer();
+ e.preventDefault(), r8()?.toggleMiniplayer();
return;
}
}
@@ -80523,7 +80530,7 @@ function EPe() {
}
//#endregion
//#region src/history/links.ts
-function DPe(e) {
+function OPe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -80537,9 +80544,9 @@ function DPe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && gV(i.pathname)) return null;
- let a = EV(i.pathname);
- return n.startsWith("#") && !a?.section || !hV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && hV(i.pathname)) return null;
+ let a = TV(i.pathname);
+ return n.startsWith("#") && !a?.section || !mV(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
//#endregion
//#region src/application/composition.js
@@ -80547,70 +80554,70 @@ var N9 = {
shellActions: void 0,
routing: void 0
};
-function OPe() {
+function kPe() {
let e = J, t = (e) => {
- e.kind === "item" ? l9(e.id, !1) : e.kind === "jav" ? d9(e.code, !1) : e.kind === "follow" ? O9(e.id, !1) : o9(e.queue, e.key, e.item, !1);
+ e.kind === "item" ? c9(e.id, !1) : e.kind === "jav" ? u9(e.code, !1) : e.kind === "follow" ? D9(e.id, !1) : a9(e.queue, e.key, e.item, !1);
};
- if (gMe(), I5.entityShapesReady = G8(), iNe(), location.pathname === "/") {
+ if (vMe(), F5.entityShapesReady = W8(), oNe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (R("#catalogPageHeading").hidden = !1);
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- Z8(decodeURIComponent(location.pathname)) && J8(R("#feedNew")), pNe(), N9.shellActions = {
- openSettings: (e) => Y5(e, !0),
- closeSettings: () => u8()?.close(!1),
- openItem: (e) => void l9(e),
- openEntity: (e, t) => void y5(e, t),
+ X8(decodeURIComponent(location.pathname)) && q8(L("#feedNew")), hNe(), N9.shellActions = {
+ openSettings: (e) => J5(e, !0),
+ closeSettings: () => l8()?.close(!1),
+ openItem: (e) => void c9(e),
+ openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- cNe(), F7(e);
+ uNe(), P7(e);
},
- openTasteSignal: MMe,
+ openTasteSignal: PMe,
navigate: (e) => {
- let n = new URL(e, location.href), r = hV(n.pathname, n.search);
+ let n = new URL(e, location.href), r = mV(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- y9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !gV(location.pathname)) {
+ v9(n.pathname + n.search + n.hash, e, () => t(r));
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !hV(location.pathname)) {
Q.route(e);
- let t = YV.navigation.seq;
- l6(n.hash, () => YV.navigation.seq === t);
+ let t = JV.navigation.seq;
+ c6(n.hash, () => JV.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: e7,
+ openManage: $5,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => D9(),
- receipt: (e, t) => C8.actionReceipt(e, t),
- toast: (e, t) => C8.toast(e, t),
- failure: C8.actionFailure,
- revealSource: m5,
- reopenTutorial: rPe,
- routeReview: FMe,
- routeFollowManage: ZMe,
+ openFollow: () => E9(),
+ receipt: (e, t) => S8.actionReceipt(e, t),
+ toast: (e, t) => S8.toast(e, t),
+ failure: S8.actionFailure,
+ revealSource: p5,
+ reopenTutorial: aPe,
+ routeReview: LMe,
+ routeFollowManage: $Me,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(N5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(M5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => k5(!1, !1),
- personAvatar: (e, t, n) => M5.personAvatar(e, t, n),
- authorAvatar: (e) => $Me(e),
- showIndexTags: eNe,
- openFollowAuthor: F5,
- openFollowTag: tNe,
- openPlaylist: (e, t) => void s9(e, t, !0),
- canFlip: () => !Gl && !$7() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => O5(!1, !1),
+ personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
+ authorAvatar: (e) => tNe(e),
+ showIndexTags: nNe,
+ openFollowAuthor: P5,
+ openFollowTag: rNe,
+ openPlaylist: (e, t) => void o9(e, t, !0),
+ canFlip: () => !ql && !Q7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
- e === "entity" ? (El(), hu({ barsContext: {
+ e === "entity" ? (Ol(), _u({ barsContext: {
type: "home",
- filters: W
- } }), W5(), document.body.classList.add("entity-open"), w7(), P5()) : e === "index" ? (El(), document.body.classList.remove("entity-open"), Q.claimSurface(t), W5(), document.body.classList.add("index-open"), w7(), P5()) : (El(), Q.claimSurface(t), e === "catalog" ? W5() : (U5(), H5({ manage: e === "management" })));
+ filters: U
+ } }), U5(), document.body.classList.add("entity-open"), C7(), N5()) : e === "index" ? (Ol(), document.body.classList.remove("entity-open"), Q.claimSurface(t), U5(), document.body.classList.add("index-open"), C7(), N5()) : (Ol(), Q.claimSurface(t), e === "catalog" ? U5() : (H5(), V5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = n9.requestedImmerseId === void 0 ? e : n9.requestedImmerseId;
- n9.requestedImmerseId = void 0, f9(t, !1);
+ let t = t9.requestedImmerseId === void 0 ? e : t9.requestedImmerseId;
+ t9.requestedImmerseId = void 0, d9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -80618,61 +80625,61 @@ function OPe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, YV.navigation.claimed && (!ZV() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (ZV() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, JV.navigation.claimed && (!XV() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (XV() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- n9.stageOpen() && a9(!1);
+ t9.stageOpen() && i9(!1);
},
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- configurable: () => !!iu,
+ configurable: () => !!ou,
surfaceShown: (e) => {
- e === "index" ? (_9(), d7()) : N7();
+ e === "index" ? (g9(), u7()) : M7();
},
entity: {
missing: (e) => {
- N9.shellActions.surfaceChanged("entity", location.pathname), v5(e);
+ N9.shellActions.surfaceChanged("entity", location.pathname), _5(e);
},
loading: (e, t, n) => Y.application.loading(e, t, n),
props: (e, t, n) => Y.application.addressProps(e, t, n),
refresh: (e, t, n) => {
let r = Y.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = s5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !l5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(s5()), !0);
+ let i = o5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (b7(r), x7(o5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => h7("local,115"),
+ defaultLoc: () => m7("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (b9(), u7(), $5()), t && k8(), e === "/trash" ? (X.clearSearchField(), W5()) : (R("#q").value = W.q, X.rememberSearchValue()), _9(), N7(), Z.handOff(R7());
+ n && (y9(), l7(), Q5()), t && O8(), e === "/trash" ? (X.clearSearchField(), U5()) : (L("#q").value = U.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
},
load: () => {
- Z.handOff(R7());
+ Z.handOff(L7());
},
fill: () => {
- if (U7() || !ZV() && !R("#grid").querySelector(".catalog-skeleton")) return;
- let e = R("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), V7(Q.surfaceToken(Q.surfacePath()));
+ if (H7() || !XV() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ let e = L("#count");
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), B7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- B7(), Q8();
+ z7(), Z8();
}
}
}, N9.routing = !1, e.listen(document, "click", (e) => {
- let t = DPe(e);
+ let t = OPe(e);
t && (e.preventDefault(), N9.shellActions.navigate(t));
- }), J.own(YV.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !gV(e.location.pathname) && a9(!1), N9.routing && !e.claimed && b9();
- })), Pje(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), gNe(), GMe(), Z5(), Promise.all([
- X7(),
- mNe(),
- I5.entityShapesReady
+ }), J.own(JV.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !hV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
+ })), Ije(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), vNe(), qMe(), X5(), Promise.all([
+ Y7(),
+ gNe(),
+ F5.entityShapesReady
]).then(() => {
- e.isActive && (I5.wantsDiscoveryBars() && N7().catch((e) => console.error("首页横条装载失败", e)), _9(), qNe(), N9.routing = !0, hu({ pageOpens: 1 }), b9(), d7());
+ e.isActive && (F5.wantsDiscoveryBars() && M7().catch((e) => console.error("首页横条装载失败", e)), g9(), YNe(), N9.routing = !0, _u({ pageOpens: 1 }), y9(), u7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
@@ -80680,7 +80687,7 @@ function OPe() {
//#endregion
//#region src/theme-transition.ts
var P9 = !1;
-async function kPe(e, t) {
+async function APe(e, t) {
if (P9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -80703,7 +80710,7 @@ async function kPe(e, t) {
}
//#endregion
//#region src/application/chrome.js
-function APe() {
+function jPe() {
(() => {
let e = J, t = [
"#brandHome",
@@ -80741,7 +80748,7 @@ function APe() {
e.handler(c, "onclick", (e) => {
e.preventDefault();
});
- let u = Wo(document.querySelector("#drawer"), c, l, { side: !0 });
+ let u = Ko(document.querySelector("#drawer"), c, l, { side: !0 });
e.own(u.dispose);
let d = null, f = null;
function p(e, t) {
@@ -80757,13 +80764,13 @@ function APe() {
w: r.offsetWidth,
h: r.offsetHeight
}, a = f;
- f = i, bc(d, e ? a : null, i, "y");
+ f = i, Sc(d, e ? a : null, i, "y");
}
e.listen(l, "toggle", (e) => {
e.newState === "open" && (l.querySelector("button")?.focus(), p(!1));
}), e.listen(l, "keydown", (e) => {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
- }), rn("/api/libraries", { signal: e.signal }).then((t) => {
+ }), on("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
zW(t.libraries);
let n = [[
@@ -80782,11 +80789,11 @@ function APe() {
}
let i = sessionStorage.getItem("peach.library") || "", a = n.find((e) => e[0] === i)?.[1] || "全部媒体库";
sessionStorage.setItem("peach.library-label", a), c.querySelector("h1").textContent = a;
- let o = (e) => Yo[e]?.startsWith("data:") ? `<img src="${Yo[e]}" alt="">` : z(Yo[e] || e), s = document.createElement("span");
- s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${B(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${B(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
+ let o = (e) => Zo[e]?.startsWith("data:") ? `<img src="${Zo[e]}" alt="">` : R(Zo[e] || e), s = document.createElement("span");
+ s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), J5(!1), C5("媒体库与入库");
+ u.setOpen(!1), q5(!1), S5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -80802,19 +80809,19 @@ function APe() {
let m = document.querySelector("#filterBtn"), h = document.createComment("sidebar toggle");
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
- g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${z("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${z("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && kPe(t, () => {
+ g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
+ t.getAttribute("aria-pressed") !== "true" && APe(t, () => {
Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), gA();
});
})), gA();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
- let v = g.querySelector("#boardGlowBtn"), y = Wo(g, v, _);
- e.own(y.dispose), e.own($oe(v)), Vje({
+ let v = g.querySelector("#boardGlowBtn"), y = Ko(g, v, _);
+ e.own(y.dispose), e.own(ese(v)), Uje({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), J5(!1), Y5("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), q5(!1), J5("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -80826,7 +80833,7 @@ function APe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !q5();
+ let r = n.classList.contains("open"), i = !K5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(J, window)("resize", b);
@@ -80950,17 +80957,17 @@ function APe() {
subtree: !0
}), y();
}
- })(), J5(!q5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), q5(!K5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
//#endregion
//#region src/application/initialize.js
-function jPe() {
- yPe(), aPe(), aNe(), oPe(), YNe(), Uje(), BNe(), iPe(), kMe(), tPe(), KMe(), VNe(), SMe(), IMe(), _Pe(), nNe(), AMe(), vPe(), rNe(), jMe(), SNe(), HNe(), TPe(), nPe(), EPe(), XNe(), OPe(), APe(), J.own(B7), J.own(v9);
+function MPe() {
+ xPe(), sPe(), sNe(), cPe(), ZNe(), Gje(), HNe(), oPe(), jMe(), rPe(), JMe(), UNe(), wMe(), RMe(), yPe(), iNe(), MMe(), bPe(), aNe(), NMe(), wNe(), WNe(), DPe(), iPe(), M9(), QNe(), kPe(), jPe(), J.own(z7), J.own(_9);
}
//#endregion
//#region src/ui-kit/middle-truncate.ts
var F9 = "…", I9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, L9 = /* @__PURE__ */ new WeakMap(), R9 = /* @__PURE__ */ new WeakSet(), z9 = null, B9 = null, V9 = /* @__PURE__ */ new Set(), H9 = (e) => I9 ? [...I9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function MPe(e, t) {
+function NPe(e, t) {
let n = H9(e);
if (!n.length || t(e)) return String(e ?? "");
let r = 0, i = Math.max(0, n.length - 1), a = F9;
@@ -80978,7 +80985,7 @@ var U9 = Object.assign((e, t) => {
Number.isFinite(a) && (i += Math.max(0, H9(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
-}, { canvas: null }), NPe = (e) => {
+}, { canvas: null }), PPe = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -80988,17 +80995,17 @@ var U9 = Object.assign((e, t) => {
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, PPe = (e) => {
+}, FPe = (e) => {
let t = L9.get(e);
if (!t || !e.isConnected) return;
- let n = NPe(e), r = n > 0 ? MPe(t.full, (t) => U9(e, t) <= n) : t.full;
+ let n = PPe(e), r = n > 0 ? NPe(t.full, (t) => U9(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), (!e.hasAttribute("title") || e.dataset.middleTitle === "true") && (e.title = t.full, e.dataset.middleTitle = "true");
}, W9 = (e) => {
let t = L9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, PPe(e);
+ t.raf = 0, FPe(e);
}));
}, G9 = (e) => {
e instanceof HTMLElement && (L9.has(e) || L9.set(e, {
@@ -81011,7 +81018,7 @@ var U9 = Object.assign((e, t) => {
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function FPe(e = document) {
+function IPe(e = document) {
B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();
let t = V9, n = !0;
z9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -81086,7 +81093,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], IPe = {
+], LPe = {
catalog: [
...q9,
...J9,
@@ -81107,29 +81114,29 @@ var q9 = [
"avatar-choices"
]
};
-function LPe() {
+function RPe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of IPe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of LPe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
e.clear();
- let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = U.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");
- if (await U.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);
+ let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = H.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");
+ if (await H.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);
}
})().finally(() => {
t = null;
})), t || Promise.resolve();
};
}
-function RPe() {
- let e = Nt({
- queryKey: SF,
- queryFn: ({ signal: e }) => wF(e),
- refetchInterval: (e) => CF(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(LPe), r = e.data?.result_versions;
- return (0, F.useEffect)(() => {
+function zPe() {
+ let e = Pt({
+ queryKey: xF,
+ queryFn: ({ signal: e }) => CF(e),
+ refetchInterval: (e) => SF(e.state.data)
+ }), t = (0, P.useRef)(void 0), [n] = (0, P.useState)(RPe), r = e.data?.result_versions;
+ return (0, P.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
@@ -81139,54 +81146,54 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function zPe() {
+function BPe() {
if (!X9) {
- let e = Hje();
+ let e = Wje();
X9 = {
effects: e,
owners: 0
- }, e.own(FPe(document)), e.own(() => {
- El(), U.cancelQueries();
- }), e.own(Fje), e.own(Wme), e.own(Ro);
+ }, e.own(IPe(document)), e.own(() => {
+ Ol(), H.cancelQueries();
+ }), e.own(Lje), e.own(Kme), e.own(Bo);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function BPe() {
- let [e, t] = (0, F.useState)(null);
- return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = zPe(), r = Nje(t);
+function VPe() {
+ let [e, t] = (0, P.useState)(null);
+ return (0, P.useLayoutEffect)(() => {
+ let e = X9 === null, n = BPe(), r = Fje(t);
if (e) try {
- jPe();
+ MPe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Mge, {
+ }, []), /* @__PURE__ */ (0, F.jsx)(Pge, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(RPe, {}) : null
+ background: e ? /* @__PURE__ */ (0, F.jsx)(zPe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function VPe(e) {
+function HPe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Lt.createRoot)(e, Nge);
+ let n = (0, Rt.createRoot)(e, Fge);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, It.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(BPe, {}))), n;
+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, F.jsx)(VPe, {}))), n;
}
//#endregion
//#region src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-VPe($9);
+HPe($9);
//#endregion
-export { jI as $2ec61d1d4f780267$export$a8a3e93435678ff9, BI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, rR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, MT as $72abaeab4d80592f$export$78efe591171d7d45, YR as $76d00c5a4edb230a$export$76ccd210b9029917, KR as $76d00c5a4edb230a$export$816b5d811295e6bc, QR as $76d00c5a4edb230a$export$b59bdbef9ce70de2, ez as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, GR as $76d00c5a4edb230a$export$f850895b287ef28e, lfe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, cfe as $b4f18e3395fe64d7$export$3e41faf802a29e71, afe as $b4f18e3395fe64d7$export$b2539bed5023c21c, iz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, ffe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, yw as $ea3928288112382f$export$439d29a4e110a164, gR as $f2ff30fde7b014be$export$3ddf2d174ce01153, CR as $fe21c36db05242bb$export$a98f0dcb43a68a25, wR as $fe21c36db05242bb$export$d7b12c4107be0d61, Jfe as $l, qA as ACCENT_CHOICES, STe as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, CTe as AMANE_BRIDGE_REBUILD_URL, Bn as ApiError, PW as ArtSlot, q as Button, iI as ButtonLink, rpe as Bx, Zt as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Tr as COLUMN_SORT, c1 as CONFIGURATION_KEY, qY as CONFIGURATION_URL, wTe as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, Oi as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, rV as Checkbox, nV as CheckboxGlyph, qB as ChevronSortDown, sZ as Chip, J2 as CloudDownloadDialog, GH as CollapseChevron, WH as CollapseRegion, f$ as CollectionSummary, abe as DEFAULT_CATEGORY, Wn as DEFAULT_SORT, jQ as DIAGNOSTICS_KEY, nxe as DIRECTORY_TEMPLATE_ERROR, M0 as DISCOVERY_SORTS, H2 as DOWNLOADS_KEY, V2 as DOWNLOADS_URL, _Y as DUPLICATES_KEY, QJ as DataTableFooter, JJ as DataTableFrame, ZJ as DataTableSort, ZH as Disclosure, MOe as DownloadsPanel, zfe as E3, obe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, Zfe as Ea, mpe as EmptyFocusButton, Iz as EmptyState, YH as ErrorText, Zhe as ExternalLink, br as FEEDS_KEY, tX as FEED_SCHEDULE_KEY, jAe as FLOW_LABEL_X, z3 as FLOW_VIEWBOX, vr as FOLLOW_CHECK_KEY, _r as FOLLOW_CREDENTIALS_KEY, P8 as FOLLOW_INITIAL_RANGE_OPTIONS, gr as FOLLOW_MANAGE_KEY, FZ as FOLLOW_MANAGE_NAV, yr as FOLLOW_RESOLVE_KEY, eX as FOLLOW_SCHEDULE_KEY, $he as Fact, Qhe as FactList, XH as FieldLabel, L$ as Fieldset, I$ as FieldsetTitle, JF as FilterGlass, YF as FilterGlassRows, qF as FilterIconButton, ZF as FilterPill, Xhe as Footer, bz as Gg, $F as GlassPill, JH as Help, Dz as HintText, CAe as IDLE_POLL_MS, Jye as IDLE_REPAIR, HF as IconButton, Mz as Input, jz as InputBase, vA as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, wX as JUNK_KEY, Q3 as JavHeader, Hye as KEEP_LABELS, Sr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, zY as LINKS_KEY, BY as LINK_CHECK_KEY, Obe as LINK_KINDS, VY as LINK_PRUNE_KEY, Fn as LOC, Ez as Label, B$ as LibraryProcessingCard, $z as LibraryShortcuts, EH as LinkButton, zH as LoadingDots, Vfe as M6, Nbe as MEDIA_PROCESSING_KEY, rX as MEDIA_PROCESSING_URL, SY as MEDIA_REPAIR_KEY, xY as MEDIA_REPAIR_URL, Qn as MEDIA_SOURCES_KEY, Yo as MEDIA_SOURCE_ICONS, Yt as MEDIA_SOURCE_OPTIONS, ZB as MENU_ITEM, QB as MENU_ITEM_INTERACTIVE, XB as MENU_POPOVER_SURFACE, AH as MenuDialog, AG as MixCard, Nz as ModalFrame, zv as MotionConfigContext, Tz as NR, Fz as Note, upe as OA, oX as ORGANIZE_KEY, lX as ORPHAN_RECORDS_KEY, yz as OV, fz as P7, Bwe as PHASES, JY as PICK_FOLDER_URL, H$ as PLAYLISTS_KEY, wEe as POLICY_COLUMNS, EEe as POLICY_COVER_NOTE, TEe as POLICY_MATRIX, K1 as POLICY_SUMMARY, XJ as Pagination, z$ as PathLine, pF as PillTabList, VH as Progress, DY as QUALITY_GOALS_KEY, A$ as REPAIR_CARD_TEXT, CY as REPAIR_LIBRARIES_KEY, mX as RESOURCE_APPLY_KEY, pX as RESOURCE_SCAN_KEY, $we as RESULT_PANEL, eTe as RESULT_SECTION, ibe as REVIEW_CATEGORIES, CX as REVIEW_COUNTS_KEY, AY as REVIEW_KEY, jY as REVIEW_LABELS, NW as RetryNote, lpe as Rf, qhe as Rows, bTe as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, yTe as SCRAPING_SETTINGS_URL, PU as SEGMENT, NU as SEGMENTED_TRACK, $Y as SETTINGS_KEY, YY as SETTINGS_URL, Gn as SORT_DEFAULT_DIR, Un as SORT_OPTIONS, Qt as SOURCE_LABELS, u3 as STATS_KEY, Khe as Section, Yhe as SectionSkeleton, MU as SegmentedRadioGroup, Uge as SegmentedTabList, dW as Segments, YJ as Select, TU as Select$1, f1 as SelectField, EU as SelectItem, aY as SelectionActions, Mk as SelectionDock, oY as SelectionPopover, KH as SettingsCard, Ghe as SettingsRow, qH as SettingsSectionLabel, rge as SiteLabel, zU as SortDirectionIcon, mW as SortKeys, mQ as SourceAvatar, tU as SourceLabel, QH as SourceMark, Jhe as Stack, R$ as StatusLabel, F2 as Switch, SF as TASKS_KEY, fAe as TASTE_REFRESH_KEY, pAe as TASTE_WINDOWS, nX as THUMBNAIL_JOBS_KEY, EX as TRASH_KEY, nue as TRIGGER_LABELS, zJ as Table, sY as TableColumnControls, cY as TableColumnResizer, uY as TableSelectionHeader, t$ as TagManager, HH as TaskProgress, kz as TextField, Oz as TextFieldContext, vz as Un, g$ as WANTS_KEY, i4 as WantMagnets, pp as WithPromise, pz as Wt, _z as Xc, wz as Xf, Ufe as Xt, Bfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, cpe as aB, ai as addAlias, ii as addSource, v$ as addWant, V as apiGet, H as apiSend, fA as appSettingsStore, xxe as applyConfirmText, SX as applyLeftovers, bxe as applyPlanText, Cxe as applyText, gA as applyTheme, l_ as asNumber, lxe as attachOrphan, Vr as authorAvatar, Ur as authorGroups, Br as authorInitial, zr as authorName, Dq as autoResetPageIndex, Ya as avatarInner, g3 as bandRows, rxe as baseName, qye as batchOperate, Lk as boundedPreference, Wye as bulkCloudPreferences, Bz as busyProps, spe as cB, HOe as cachedMagnetStates, rp as calcGeneratorVelocity, fbe as canApprove, Of as cancelFrame, mxe as candidateText, RH as cardClass, jA as cardRatio, gz as cc, wi as checkEvidenceGap, Ci as checkFailures, mi as checkFeeds, Mbe as checkLine, xi as checkReceipt, Si as checkSummary, ETe as checkText, Ti as checkedText, nG as clickedBlank, Iye as cloudLocations, D0 as cloudProxySkeleton, Rx as clsx, epe as cn, lh as collectMotionValues, qq as columnVisibilityFeature, PJ as column_getCanSort, AJ as column_getSortFn, ube as commonReviewSources, sV as configurationSection, _Ae as configureTasteBrowser, zc as confirmModal, lq as copyInstancePropertiesWithoutMemos, Ha as coverUrl, Rq as createColumnHelper, pTe as createPlaylist, ki as credentialDone, C0 as credentialsSkeleton, xbe as currentReviewRow, uF as cx, Sz as dZ, vbe as decisionPayload, ybe as decisionReceipt, _be as defaultChoice, hTe as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, Jwe as discoveryArtwork, C$ as discoveryKey, YEe as discoveryScore, Bye as distinctName, wbe as dropReviewRows, yi as dropSources, ope as du, Gye as duplicateVictims, kF as elapsedText, Ja as entityFaceImg, pn as entityPath, Pr as errorHeadline, Hn as errorMessage, B as esc, Eq as expandRowModel, lz as f1, Nr as feedIntervalText, $$ as fetchAmaneBridge, Zr as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, Xr as fetchCredentials, K$ as fetchCustomSources, MQ as fetchDiagnostics, w$ as fetchDiscoveries, yY as fetchDuplicates, Zle as fetchEarlier, Ibe as fetchFeedSchedule, di as fetchFeeds, Yr as fetchFollow, Fbe as fetchFollowSchedule, OX as fetchJunkSummary, WY as fetchLinkCheck, GY as fetchLinkPrune, UY as fetchLinkStats, Pbe as fetchMediaProcessing, wY as fetchMediaRepair, $n as fetchMediaSources, sX as fetchOrganize, Ybe as fetchOrganizeExample, uX as fetchOrphanRecords, ui as fetchPending, U$ as fetchPlaylists, OY as fetchQualityGoals, TY as fetchRepairLibraries, Qr as fetchResolveJob, gX as fetchResourceApply, hX as fetchResourceScan, IY as fetchReview, DX as fetchReviewCounts, iX as fetchSettings, Z$ as fetchSources, d3 as fetchStats, $r as fetchSuggestions, wF as fetchTasks, I3 as fetchTaste, vAe as fetchTasteJob, Lbe as fetchThumbnailJobs, kX as fetchTrashSummary, _$ as fetchWants, cbe as filterReviewRows, Nn as firstGrapheme, IK as flexRender, NAe as flowGraph, PAe as flowLabel, Mke as fmtCount, Dn as fmtDur, kn as fmtSize, due as foldRoutine, gi as followFeedByName, xr as followSuggestKey, pue as followupDetail, Df as frame, Afe as g4, Xq as getDefaultPaginationState, AA as gridLayout, Hr as groupByAuthor, uue as groupFollowups, NY as groupReviewRows, vxe as hasChanges, _X as hasResourceRoots, EF as hasResultProblems, wAe as historySpan, uz as i2, SAe as importTasteExport, w0 as indexersSkeleton, Yf as interpolate, b$ as invalidateWants, OF as isActive, Mr as isBroken, Er as isLayout, Ph as isMotionValue, MY as isReviewCategory, fue as isRoutine, T0 as javBrowserSkeleton, I0 as javContentSkeleton, CA as javLayout, F0 as javTagSkeleton, Oxe as junkBreakdown, gTe as keepPlaylist, Oe as keepPreviousData, Kr as keepSelected, f3 as known, Pfe as l7, lue as latestOfKind, Wke as lengthRows, nr as localTime, hi as lookupFeedActor, Lfe as m7, xz as mM, on as mapLimit, li as markItem, _3 as max, Hke as mediumRows, Qle as mergeFinished, v3 as min, Ebe as mirrorText, Zye as missingToolText, bY as mixedCloudPreferences, IF as momentText, Yy as motion, dh as motionValue, axe as organizeOutcome, Z0 as overlayHost, Dr as pageSizeOf, Gr as pageWindow, Jn as paginationRange, vi as patchSource, YV as peachHistory, YV as peachHistory$1, gbe as pendingGenres, Pke as percentText, Qbe as pickOrganizeFolder, ixe as planSummary, p3 as playedFor, Ike as playedItemUrl, CF as pollInterval, Ds as popCount, fTe as posterUrl, QW as previewLibraryColor, Zbe as previewOrganize, ebe as previewUrl, cue as problemDestination, AF as progressText, eU as providerIcon, jbe as pruneText, yX as purgeCount, uxe as purgeOrphan, Cz as pv, ape as qE, U as queryClient, dz as r2, AAe as radarRows, zke as radialArc, Bke as radialBarSize, Rke as radialCeiling, Lke as radialSlices, Xj as randomId, OAe as rankDetail, kAe as rankShares, h3 as reachedShare, jF as readableErrorHeadline, XEe as recommendationScore, Sbe as recordGenre, fxe as recordsText, _Te as recreatePlaylist, uTe as refreshPlaylists, yl as relayoutCovers, bi as reloadFollowManage, Tbe as reloadReview, kEe as rememberShape, exe as rememberTemplates, oi as removeAlias, pi as removeFeed, ri as removeSource, xAe as removeTasteSource, y$ as removeWants, si as renameAliasGroup, mTe as renamePlaylist, Kke as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, aq as require_with_selector, Uwe as resetWants, qn as resolveFollowSort, lp as resolveStartTime, dTe as resumeAssetId, sbe as reviewGroupingOptions, Dxe as reviewSummary, lbe as reviewWindow, mbe as rowEvidence, FY as rowFieldName, rJ as rowPaginationFeature, wJ as rowSelectionFeature, LJ as rowSortingFeature, PY as rowSubject, hbe as rowTags, pbe as rowTitle, jfe as s5, ci as saveCredential, yxe as scanLine, Hbe as schedulePollInterval, Gwe as searchNote, dbe as selectReviewRange, qr as selectionState, fi as setFeedEnabled, ni as setSourceEnabled, dV as settingsPath, zye as sharedNamePrefix, XV as shellNavigate, x8 as showToast, yn as siteMarkUrl, _q as skipFirstRun, dF as sortCx, kr as sortLabel, $t as sourceDefaultCost, Di as sourceIconUrl, Sxe as sourceMeta, vs as spinnerHtml, Kf as spring, Rz as spriteGlyph, ei as startCheck, kbe as startLinkCheck, Abe as startLinkPrune, $be as startOrganize, ti as startResolve, gxe as startResourceApply, hxe as startResourceScan, bAe as startTasteRefresh, iue as statusLabel, Xye as statusLine, jr as statusText, MA as storeJavLayout, bbe as submitDecision, RF as summaryItems, zq as tableFeatures, vq as tableMemo, Wr as tableRows, sue as taskIssues, L3 as tasteDate, EAe as tasteDimensions, TAe as tasteHours, F3 as tasteKey, hAe as tasteRefetchInterval, gAe as tasteTime, _F as textLang, sd as time, qfe as tl, Jr as toggleGroup, R3 as topScores, Xfe as uo, DH as useAction, AZ as useBackgroundJob, vU as useClientUpdates, yu as useConstant, GF as useHorizontalScroller, bu as useIsomorphicLayoutEffect, eG as useLibraryTints, Pt as useMutation, iV as useOverlayScrollbar, Nt as useQuery, ae as useQueryClient, Vy as useReducedMotion, Vbe as useRunSchedule, zbe as useSaveFollowSchedule, aX as useSaveSettings, Ube as useSaveThumbnailMode, RJ as useTable, tY as useTablePreferences, Kye as victimBytes, Wwe as wantName, Fke as watchNote, m3 as watchedShare, oc as wireHorizontalScroller, txe as withOrganizeJob };
+export { AI as $2ec61d1d4f780267$export$a8a3e93435678ff9, zI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, nR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, jT as $72abaeab4d80592f$export$78efe591171d7d45, JR as $76d00c5a4edb230a$export$76ccd210b9029917, GR as $76d00c5a4edb230a$export$816b5d811295e6bc, ZR as $76d00c5a4edb230a$export$b59bdbef9ce70de2, $R as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, WR as $76d00c5a4edb230a$export$f850895b287ef28e, dfe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, ufe as $b4f18e3395fe64d7$export$3e41faf802a29e71, sfe as $b4f18e3395fe64d7$export$b2539bed5023c21c, rz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, mfe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, vw as $ea3928288112382f$export$439d29a4e110a164, hR as $f2ff30fde7b014be$export$3ddf2d174ce01153, SR as $fe21c36db05242bb$export$a98f0dcb43a68a25, CR as $fe21c36db05242bb$export$d7b12c4107be0d61, Xfe as $l, qA as ACCENT_CHOICES, CTe as AMANE_BRIDGE_CHECK_URL, X$ as AMANE_BRIDGE_KEY, wTe as AMANE_BRIDGE_REBUILD_URL, Hn as ApiError, PW as ArtSlot, q as Button, rI as ButtonLink, ape as Bx, Qt as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Dr as COLUMN_SORT, c1 as CONFIGURATION_KEY, qY as CONFIGURATION_URL, TTe as COOKIE_TEXT_LIMIT, Y$ as COVER_JOB_KEY, Ai as CREDENTIAL_STATE, G$ as CUSTOM_SOURCES_KEY, W$ as CUSTOM_SOURCES_URL, nV as Checkbox, tV as CheckboxGlyph, KB as ChevronSortDown, sZ as Chip, q2 as CloudDownloadDialog, WH as CollapseChevron, UH as CollapseRegion, f$ as CollectionSummary, obe as DEFAULT_CATEGORY, Kn as DEFAULT_SORT, jQ as DIAGNOSTICS_KEY, rxe as DIRECTORY_TEMPLATE_ERROR, j0 as DISCOVERY_SORTS, V2 as DOWNLOADS_KEY, B2 as DOWNLOADS_URL, _Y as DUPLICATES_KEY, QJ as DataTableFooter, JJ as DataTableFrame, ZJ as DataTableSort, XH as Disclosure, POe as DownloadsPanel, Vfe as E3, sbe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, $fe as Ea, gpe as EmptyFocusButton, Fz as EmptyState, JH as ErrorText, $he as ExternalLink, Sr as FEEDS_KEY, tX as FEED_SCHEDULE_KEY, NAe as FLOW_LABEL_X, R3 as FLOW_VIEWBOX, br as FOLLOW_CHECK_KEY, yr as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, vr as FOLLOW_MANAGE_KEY, FZ as FOLLOW_MANAGE_NAV, xr as FOLLOW_RESOLVE_KEY, eX as FOLLOW_SCHEDULE_KEY, tge as Fact, ege as FactList, YH as FieldLabel, L$ as Fieldset, I$ as FieldsetTitle, qF as FilterGlass, JF as FilterGlassRows, KF as FilterIconButton, XF as FilterPill, Qhe as Footer, yz as Gg, QF as GlassPill, qH as Help, Ez as HintText, TAe as IDLE_POLL_MS, Yye as IDLE_REPAIR, VF as IconButton, jz as Input, Az as InputBase, vA as JAV_LAYOUTS, N0 as JAV_RECOMMENDATION_GRID, wX as JUNK_KEY, Z3 as JavHeader, Uye as KEEP_LABELS, wr as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, lH as LIBRARY_PROCESSING_KEY, zY as LINKS_KEY, BY as LINK_CHECK_KEY, kbe as LINK_KINDS, VY as LINK_PRUNE_KEY, Ln as LOC, Tz as Label, B$ as LibraryProcessingCard, Qz as LibraryShortcuts, TH as LinkButton, RH as LoadingDots, Ufe as M6, Pbe as MEDIA_PROCESSING_KEY, rX as MEDIA_PROCESSING_URL, SY as MEDIA_REPAIR_KEY, xY as MEDIA_REPAIR_URL, er as MEDIA_SOURCES_KEY, Zo as MEDIA_SOURCE_ICONS, Xt as MEDIA_SOURCE_OPTIONS, XB as MENU_ITEM, ZB as MENU_ITEM_INTERACTIVE, YB as MENU_POPOVER_SURFACE, kH as MenuDialog, AG as MixCard, Mz as ModalFrame, Hv as MotionConfigContext, wz as NR, Pz as Note, fpe as OA, oX as ORGANIZE_KEY, lX as ORPHAN_RECORDS_KEY, vz as OV, dz as P7, Vwe as PHASES, JY as PICK_FOLDER_URL, H$ as PLAYLISTS_KEY, TEe as POLICY_COLUMNS, DEe as POLICY_COVER_NOTE, EEe as POLICY_MATRIX, K1 as POLICY_SUMMARY, XJ as Pagination, z$ as PathLine, fF as PillTabList, BH as Progress, DY as QUALITY_GOALS_KEY, A$ as REPAIR_CARD_TEXT, CY as REPAIR_LIBRARIES_KEY, mX as RESOURCE_APPLY_KEY, pX as RESOURCE_SCAN_KEY, eTe as RESULT_PANEL, tTe as RESULT_SECTION, abe as REVIEW_CATEGORIES, CX as REVIEW_COUNTS_KEY, AY as REVIEW_KEY, jY as REVIEW_LABELS, NW as RetryNote, dpe as Rf, Yhe as Rows, xTe as SCRAPING_CHECK_URL, q$ as SCRAPING_COVER_URL, J$ as SCRAPING_KEY, bTe as SCRAPING_SETTINGS_URL, NU as SEGMENT, MU as SEGMENTED_TRACK, $Y as SETTINGS_KEY, YY as SETTINGS_URL, qn as SORT_DEFAULT_DIR, Gn as SORT_OPTIONS, $t as SOURCE_LABELS, l3 as STATS_KEY, Jhe as Section, Zhe as SectionSkeleton, jU as SegmentedRadioGroup, Gge as SegmentedTabList, dW as Segments, YJ as Select, wU as Select$1, f1 as SelectField, TU as SelectItem, aY as SelectionActions, jk as SelectionDock, oY as SelectionPopover, GH as SettingsCard, qhe as SettingsRow, KH as SettingsSectionLabel, age as SiteLabel, RU as SortDirectionIcon, mW as SortKeys, mQ as SourceAvatar, eU as SourceLabel, ZH as SourceMark, Xhe as Stack, R$ as StatusLabel, P2 as Switch, xF as TASKS_KEY, mAe as TASTE_REFRESH_KEY, hAe as TASTE_WINDOWS, nX as THUMBNAIL_JOBS_KEY, EX as TRASH_KEY, iue as TRIGGER_LABELS, zJ as Table, sY as TableColumnControls, cY as TableColumnResizer, uY as TableSelectionHeader, t$ as TagManager, VH as TaskProgress, Oz as TextField, Dz as TextFieldContext, _z as Un, g$ as WANTS_KEY, r4 as WantMagnets, mp as WithPromise, fz as Wt, gz as Xc, Cz as Xf, Gfe as Xt, Hfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, upe as aB, si as addAlias, oi as addSource, v$ as addWant, B as apiGet, V as apiSend, fA as appSettingsStore, Sxe as applyConfirmText, SX as applyLeftovers, xxe as applyPlanText, wxe as applyText, gA as applyTheme, u_ as asNumber, uxe as attachOrphan, Ur as authorAvatar, Gr as authorGroups, Hr as authorInitial, Vr as authorName, Dq as autoResetPageIndex, Za as avatarInner, h3 as bandRows, ixe as baseName, Jye as batchOperate, Ik as boundedPreference, Gye as bulkCloudPreferences, zz as busyProps, lpe as cB, WOe as cachedMagnetStates, ip as calcGeneratorVelocity, pbe as canApprove, kf as cancelFrame, hxe as candidateText, LH as cardClass, jA as cardRatio, hz as cc, Ei as checkEvidenceGap, Ti as checkFailures, gi as checkFeeds, Nbe as checkLine, Ci as checkReceipt, wi as checkSummary, DTe as checkText, Di as checkedText, nG as clickedBlank, Lye as cloudLocations, D0 as cloudProxySkeleton, Ix as clsx, npe as cn, uh as collectMotionValues, qq as columnVisibilityFeature, PJ as column_getCanSort, AJ as column_getSortFn, dbe as commonReviewSources, oV as configurationSection, yAe as configureTasteBrowser, Vc as confirmModal, lq as copyInstancePropertiesWithoutMemos, Wa as coverUrl, Rq as createColumnHelper, mTe as createPlaylist, ji as credentialDone, C0 as credentialsSkeleton, Sbe as currentReviewRow, lF as cx, xz as dZ, ybe as decisionPayload, bbe as decisionReceipt, vbe as defaultChoice, gTe as deletePlaylist, x as diagnosticHeaders, G1 as diagnosticsSkeleton, Ywe as discoveryArtwork, C$ as discoveryKey, ZEe as discoveryScore, Vye as distinctName, Tbe as dropReviewRows, xi as dropSources, cpe as du, Kye as duplicateVictims, OF as elapsedText, Xa as entityFaceImg, hn as entityPath, Ir as errorHeadline, Wn as errorMessage, z as esc, Eq as expandRowModel, cz as f1, Fr as feedIntervalText, $$ as fetchAmaneBridge, $r as fetchCheckJob, l1 as fetchConfiguration, Q$ as fetchCoverJob, Qr as fetchCredentials, K$ as fetchCustomSources, MQ as fetchDiagnostics, w$ as fetchDiscoveries, yY as fetchDuplicates, $le as fetchEarlier, Lbe as fetchFeedSchedule, pi as fetchFeeds, Zr as fetchFollow, Ibe as fetchFollowSchedule, OX as fetchJunkSummary, WY as fetchLinkCheck, GY as fetchLinkPrune, UY as fetchLinkStats, Fbe as fetchMediaProcessing, wY as fetchMediaRepair, tr as fetchMediaSources, sX as fetchOrganize, Xbe as fetchOrganizeExample, uX as fetchOrphanRecords, fi as fetchPending, U$ as fetchPlaylists, OY as fetchQualityGoals, TY as fetchRepairLibraries, ei as fetchResolveJob, gX as fetchResourceApply, hX as fetchResourceScan, IY as fetchReview, DX as fetchReviewCounts, iX as fetchSettings, Z$ as fetchSources, u3 as fetchStats, ti as fetchSuggestions, CF as fetchTasks, F3 as fetchTaste, bAe as fetchTasteJob, Rbe as fetchThumbnailJobs, kX as fetchTrashSummary, _$ as fetchWants, lbe as filterReviewRows, Fn as firstGrapheme, IK as flexRender, FAe as flowGraph, IAe as flowLabel, Pke as fmtCount, kn as fmtDur, jn as fmtSize, pue as foldRoutine, vi as followFeedByName, Cr as followSuggestKey, hue as followupDetail, Of as frame, Mfe as g4, Xq as getDefaultPaginationState, AA as gridLayout, Wr as groupByAuthor, fue as groupFollowups, NY as groupReviewRows, yxe as hasChanges, _X as hasResourceRoots, TF as hasResultProblems, EAe as historySpan, lz as i2, wAe as importTasteExport, w0 as indexersSkeleton, Xf as interpolate, b$ as invalidateWants, DF as isActive, Pr as isBroken, Or as isLayout, Fh as isMotionValue, MY as isReviewCategory, mue as isRoutine, T0 as javBrowserSkeleton, F0 as javContentSkeleton, CA as javLayout, P0 as javTagSkeleton, kxe as junkBreakdown, _Te as keepPlaylist, ke as keepPreviousData, Jr as keepSelected, d3 as known, Ife as l7, due as latestOfKind, Kke as lengthRows, ir as localTime, _i as lookupFeedActor, zfe as m7, bz as mM, cn as mapLimit, di as markItem, g3 as max, Wke as mediumRows, eue as mergeFinished, _3 as min, Dbe as mirrorText, Qye as missingToolText, bY as mixedCloudPreferences, FF as momentText, Zy as motion, fh as motionValue, oxe as organizeOutcome, X0 as overlayHost, kr as pageSizeOf, qr as pageWindow, Xn as paginationRange, bi as patchSource, JV as peachHistory, JV as peachHistory$1, _be as pendingGenres, Ike as percentText, $be as pickOrganizeFolder, axe as planSummary, f3 as playedFor, Rke as playedItemUrl, SF as pollInterval, ks as popCount, pTe as posterUrl, QW as previewLibraryColor, Qbe as previewOrganize, tbe as previewUrl, uue as problemDestination, kF as progressText, $H as providerIcon, Mbe as pruneText, yX as purgeCount, dxe as purgeOrphan, Sz as pv, spe as qE, H as queryClient, uz as r2, MAe as radarRows, Vke as radialArc, Hke as radialBarSize, Bke as radialCeiling, zke as radialSlices, Zj as randomId, AAe as rankDetail, jAe as rankShares, m3 as reachedShare, AF as readableErrorHeadline, QEe as recommendationScore, Cbe as recordGenre, pxe as recordsText, vTe as recreatePlaylist, dTe as refreshPlaylists, xl as relayoutCovers, Si as reloadFollowManage, Ebe as reloadReview, AEe as rememberShape, txe as rememberTemplates, ci as removeAlias, hi as removeFeed, ai as removeSource, CAe as removeTasteSource, y$ as removeWants, li as renameAliasGroup, hTe as renamePlaylist, Jke as replayRows, ie as require_jsx_runtime, A as require_react, te as require_react_dom, aq as require_with_selector, Wwe as resetWants, Yn as resolveFollowSort, up as resolveStartTime, fTe as resumeAssetId, cbe as reviewGroupingOptions, Oxe as reviewSummary, ube as reviewWindow, hbe as rowEvidence, FY as rowFieldName, rJ as rowPaginationFeature, wJ as rowSelectionFeature, LJ as rowSortingFeature, PY as rowSubject, gbe as rowTags, mbe as rowTitle, Nfe as s5, ui as saveCredential, bxe as scanLine, Ube as schedulePollInterval, Kwe as searchNote, fbe as selectReviewRange, Yr as selectionState, mi as setFeedEnabled, ii as setSourceEnabled, uV as settingsPath, Bye as sharedNamePrefix, YV as shellNavigate, b8 as showToast, xn as siteMarkUrl, _q as skipFirstRun, uF as sortCx, jr as sortLabel, en as sourceDefaultCost, ki as sourceIconUrl, Cxe as sourceMeta, bs as spinnerHtml, qf as spring, Lz as spriteGlyph, ni as startCheck, Abe as startLinkCheck, jbe as startLinkPrune, exe as startOrganize, ri as startResolve, _xe as startResourceApply, gxe as startResourceScan, SAe as startTasteRefresh, oue as statusLabel, Zye as statusLine, Nr as statusText, MA as storeJavLayout, xbe as submitDecision, LF as summaryItems, zq as tableFeatures, vq as tableMemo, Kr as tableRows, lue as taskIssues, I3 as tasteDate, OAe as tasteDimensions, DAe as tasteHours, P3 as tasteKey, _Ae as tasteRefetchInterval, vAe as tasteTime, gF as textLang, ld as time, Yfe as tl, Xr as toggleGroup, L3 as topScores, Qfe as uo, EH as useAction, AZ as useBackgroundJob, _U as useClientUpdates, xu as useConstant, WF as useHorizontalScroller, Su as useIsomorphicLayoutEffect, eG as useLibraryTints, Ft as useMutation, rV as useOverlayScrollbar, Pt as useQuery, oe as useQueryClient, Uy as useReducedMotion, Hbe as useRunSchedule, Bbe as useSaveFollowSchedule, aX as useSaveSettings, Wbe as useSaveThumbnailMode, RJ as useTable, tY as useTablePreferences, qye as victimBytes, Gwe as wantName, Lke as watchNote, p3 as watchedShare, cc as wireHorizontalScroller, nxe as withOrganizeJob };
-//# debugId=bcec6fda-92f7-49c8-a2c8-9f6c2d4639bf
\ No newline at end of file
+//# debugId=9528fd5e-47eb-40eb-9f44-c3791270f007
\ No newline at end of file