Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 首页头像排的等待占位照本机上次的结构画

longmeidaoae5e0fdc5d0f
diff --git a/frontend/e2e/catalog-filter.test.ts b/frontend/e2e/catalog-filter.test.ts
index 069a93679..8d6a8ed59 100644
--- a/frontend/e2e/catalog-filter.test.ts
+++ b/frontend/e2e/catalog-filter.test.ts
@@ -486,4 +486,39 @@ describe('首页筛选条', () => {
await opened.close();
}
});
+
+ it('上次两排都没人:再进首页时取回之前不铺两排占位,浮层不随取回移位', { timeout: 60_000 }, async () => {
+ const opened = await openHome(browser);
+ try {
+ const { page } = opened;
+ let delay = 0;
+ // 后注册的先拦:这一组两排都没人,第二次进页拖住三秒,量的就是取回之前那一刻。
+ await page.route((url) => url.pathname === '/api/tops', async (route) => {
+ await new Promise((resolve) => setTimeout(resolve, delay));
+ await route.fulfill({ json: { performers: [], studios: [] } });
+ });
+ await page.reload();
+ await page.locator(`${FILTER} [data-catalog-root]:not([data-loading])`).waitFor();
+ await settle(page);
+ delay = 3_000;
+ await page.reload({ waitUntil: 'domcontentloaded' });
+ const frame = page.locator(`${FILTER} [data-catalog-frame]`);
+ await frame.waitFor();
+ const read = () => page.evaluate((filter) => ({
+ rows: document.querySelectorAll(`${filter} [data-catalog-tier]`).length,
+ loading: !!document.querySelector(`${filter} [data-catalog-root][data-loading]`),
+ top: Math.round(document.querySelector(`${filter} [data-catalog-frame]`)!.getBoundingClientRect().top),
+ }), FILTER);
+ const waiting = await read();
+ assert.deepEqual({ rows: waiting.rows, loading: waiting.loading }, { rows: 0, loading: true }, JSON.stringify(waiting));
+ await page.locator(`${FILTER} [data-catalog-root]:not([data-loading])`).waitFor({ timeout: 10_000 });
+ await settle(page);
+ const done = await read();
+ assert.equal(done.rows, 0);
+ assert.ok(Math.abs(done.top - waiting.top) <= 1, `取回后浮层移位:${waiting.top} → ${done.top}`);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
});
diff --git a/frontend/src/catalog-filter-skeleton.ts b/frontend/src/catalog-filter-skeleton.ts
index b8c18f1b2..cc6b7194c 100644
--- a/frontend/src/catalog-filter-skeleton.ts
+++ b/frontend/src/catalog-filter-skeleton.ts
@@ -7,10 +7,9 @@
*
* 四枚视图由 state 决定,这一趟取数不改它们,所以现在就画成最终样子:`href` 是真地址,壳在宿主上
* 委托接住点击。头像与标签只画占位,读数是一条宽度定死的微光。 */
-import type { CatalogView } from './react/catalog-filter/catalog-filter';
+import { rememberedTiers, type CatalogFilterProps, type CatalogView } from './react/catalog-filter/catalog-filter';
import { islandShortcutsEntry } from './island-skeleton';
import { filterControlsSkeletonHtml } from './filter-controls-skeleton';
-import type { CatalogFilterProps } from './react/catalog-filter/catalog-filter';
/** 每排摆多少格,同岛里空馆藏占位的 `EMPTY_SLOTS`,由容器裁到可用宽度。 */
const EMPTY_SLOTS = 64;
@@ -23,13 +22,17 @@ const slots = (html: string): string => html.repeat(EMPTY_SLOTS);
export function catalogFilterSkeletonHtml(views: readonly CatalogView[], state: string, head?: Pick<CatalogFilterProps, 'sorts' | 'layout'>): string {
const viewHtml = views.map((view) => `<a href="${esc(view.href)}" data-catalog-view="${esc(view.k)}"`
+ ` data-entity-press="" aria-pressed="${state === view.k}">${esc(view.label)}</a>`).join('');
+ /* 两排照本机上次画好时的结构:上次没人的那排取回后也是收起的。 */
+ const shape = rememberedTiers();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading="">`
- + `<div data-catalog-tiers="" aria-busy="true">`
- + `<div data-catalog-tier="performers" data-skeleton="tiers">`
- + slots('<span data-catalog-placeholder="performer" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
- + `</div><div data-catalog-tier="studios">`
- + slots('<span data-catalog-placeholder="studio" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
- + `</div></div>`
+ + `<div data-catalog-tiers="" aria-busy="true"${shape.performers || shape.studios ? '' : ' hidden'}>`
+ + (shape.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">`
+ + slots('<span data-catalog-placeholder="performer" aria-hidden="true"><span></span><span>&nbsp;</span></span>')
+ + `</div>` : '')
+ + (shape.studios ? `<div data-catalog-tier="studios">`
+ + slots('<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"`
diff --git a/frontend/src/react/catalog-filter/catalog-filter-page.tsx b/frontend/src/react/catalog-filter/catalog-filter-page.tsx
index 038ca52f4..a0c84c932 100644
--- a/frontend/src/react/catalog-filter/catalog-filter-page.tsx
+++ b/frontend/src/react/catalog-filter/catalog-filter-page.tsx
@@ -19,8 +19,8 @@ import { useCatalogView } from '../catalog-grid/catalog-view';
import { CatalogViewToggle } from '../catalog-grid/catalog-view-toggle';
import { Combo, Segments, Shuffle, SortKeys } from '../entity-filter/entity-filter-page';
import {
- EMPTY_SLOTS, ROW_AHEAD, ROW_BATCH, ROW_FIRST, type CatalogFilterProps, type CatalogTag, type TierKind,
- type TierPerformer, type TierStudio,
+ EMPTY_SLOTS, ROW_AHEAD, ROW_BATCH, ROW_FIRST, rememberedTiers, rememberTiers, type CatalogFilterProps,
+ type CatalogTag, type TierKind, type TierPerformer, type TierStudio,
} from './catalog-filter';
/* 上一次写出去的读数。读数那一格每次取数都换成微光再建回来,靠它分清「换了个数」和「刚出现」:
@@ -123,7 +123,8 @@ function TagPill({ tag, onPress }: { tag: CatalogTag; onPress(tag: string): void
function Tiers(props: CatalogFilterProps) {
const { actions, helpers } = props;
const tiers = props.tiers ?? { key: '', performers: [], studios: [] };
- const empty = props.empty || !props.tiers;
+ const loading = !props.tiers;
+ const empty = props.empty || loading;
const performers = useRef<HTMLDivElement>(null);
const studios = useRef<HTMLDivElement>(null);
const more = useCallback((kind: TierKind) => () => actions.moreTops(kind), [actions]);
@@ -131,14 +132,19 @@ function Tiers(props: CatalogFilterProps) {
const shownPerformers = usePaged(performers, tiers.performers, tiers.key, ROW_FIRST,
empty ? undefined : more('performers'));
const shownStudios = usePaged(studios, tiers.studios, tiers.key, ROW_FIRST, empty ? undefined : more('studios'));
- const hasPerformers = empty || tiers.performers.length > 0;
- const hasStudios = empty || tiers.studios.length > 0;
+ /* 取回之前照本机上次的结构画占位,壳骨架同一份记录。 */
+ const shape = useMemo(() => loading ? rememberedTiers() : null, [loading]);
+ const hasPerformers = shape ? shape.performers : props.empty || tiers.performers.length > 0;
+ const hasStudios = shape ? shape.studios : props.empty || tiers.studios.length > 0;
+ useEffect(() => {
+ if (!loading) rememberTiers({ performers: hasPerformers, studios: hasStudios });
+ }, [loading, hasPerformers, hasStudios]);
useEffect(() => {
helpers.wireDrag(performers.current);
helpers.wireDrag(studios.current);
}, [helpers, hasPerformers, hasStudios]);
return (
- <div data-catalog-tiers="" hidden={!hasPerformers && !hasStudios}>
+ <div data-catalog-tiers="" hidden={!hasPerformers && !hasStudios} aria-busy={loading || undefined}>
{hasPerformers ? (
<div ref={performers} data-catalog-tier="performers">
{empty ? <Placeholders kind="performer" /> : (shownPerformers as TierPerformer[]).map((person) => (
diff --git a/frontend/src/react/catalog-filter/catalog-filter.ts b/frontend/src/react/catalog-filter/catalog-filter.ts
index abec3c1d7..dc4352b26 100644
--- a/frontend/src/react/catalog-filter/catalog-filter.ts
+++ b/frontend/src/react/catalog-filter/catalog-filter.ts
@@ -124,3 +124,23 @@ export const ROW_BATCH = 12;
export const ROW_AHEAD = 320;
/** 空馆藏占位每排摆多少格,由容器裁到可用宽度。 */
export const EMPTY_SLOTS = 64;
+
+/** 两排各画没画。取回之前的占位照本机上次画好时的这份排:没人的那排取回后会收起,先画出来
+ * 就是一整排的位移。没有记录或记录坏了时两排都画。 */
+export interface TiersShape { performers: boolean; studios: boolean }
+
+export const TIERS_SHAPE_KEY = 'peach.catalog.tiers.v1';
+
+export function rememberedTiers(): TiersShape {
+ try {
+ const value = JSON.parse(localStorage.getItem(TIERS_SHAPE_KEY) || '{}') as Partial<TiersShape> | null;
+ return { performers: value?.performers !== false, studios: value?.studios !== false };
+ } catch { return { performers: true, studios: true } }
+}
+
+export function rememberTiers(shape: TiersShape): void {
+ try {
+ const value = JSON.stringify({ performers: shape.performers, studios: shape.studios });
+ if (localStorage.getItem(TIERS_SHAPE_KEY) !== value) localStorage.setItem(TIERS_SHAPE_KEY, value);
+ } catch { /* 下次两排都画。 */ }
+}
diff --git a/frontend/test/react/catalog-filter.test.tsx b/frontend/test/react/catalog-filter.test.tsx
index 155bac04b..489e17323 100644
--- a/frontend/test/react/catalog-filter.test.tsx
+++ b/frontend/test/react/catalog-filter.test.tsx
@@ -1,10 +1,13 @@
/* 首页筛选条岛:空馆藏与首屏等待时两排、标签条摆什么。
*
* 点选、续页、排序、版式与详情往返要真的取数和量布局,由 `frontend/e2e/catalog-filter.test.ts` 在真浏览器里走。 */
-import { describe, expect, it, vi } from 'vitest';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
import { CatalogFilterPage } from '../../src/react/catalog-filter/catalog-filter-page';
-import { EMPTY_SLOTS, type CatalogFilterProps, type TierPerformer } from '../../src/react/catalog-filter/catalog-filter';
+import {
+ EMPTY_SLOTS, rememberedTiers, rememberTiers, TIERS_SHAPE_KEY, type CatalogFilterProps, type TierPerformer,
+} from '../../src/react/catalog-filter/catalog-filter';
+import { catalogFilterSkeletonHtml } from '../../src/catalog-filter-skeleton';
import { mount, mountRoot, pending, settle } from './render';
function props(patch: Partial<CatalogFilterProps> = {}): CatalogFilterProps {
@@ -44,6 +47,57 @@ describe('空馆藏', () => {
});
});
+describe('首屏等待两排头像', () => {
+ beforeEach(() => localStorage.clear());
+ const rows = (host: HTMLElement) => [...host.querySelectorAll('[data-catalog-tier]')].map((row) => row.getAttribute('data-catalog-tier'));
+
+ it('本机没有记录或记录坏了时两排都铺占位,整块挂忙态', async () => {
+ for (const saved of [null, 'broken', 'null']) {
+ if (saved !== null) localStorage.setItem(TIERS_SHAPE_KEY, saved);
+ const host = await mount(<CatalogFilterPage {...props({ tiers: null })} />);
+ expect(rows(host)).toEqual(['performers', 'studios']);
+ expect(host.querySelector('[data-catalog-tiers]')?.getAttribute('aria-busy')).toBe('true');
+ document.body.innerHTML = '';
+ }
+ });
+
+ it('照上次画好时的结构铺:上次没人的那排不画,两排都没人时整块不占位', async () => {
+ rememberTiers({ performers: false, studios: true });
+ const studiosOnly = await mount(<CatalogFilterPage {...props({ tiers: null })} />);
+ expect(rows(studiosOnly)).toEqual(['studios']);
+ document.body.innerHTML = '';
+ rememberTiers({ performers: false, studios: false });
+ const none = await mount(<CatalogFilterPage {...props({ tiers: null })} />);
+ expect(rows(none)).toEqual([]);
+ expect(none.querySelector<HTMLElement>('[data-catalog-tiers]')?.hidden).toBe(true);
+ });
+
+ it('取回后撤掉忙态,并记下这次画了哪几排;空馆藏两排占位都算画了', async () => {
+ const { host, rerender } = await mountRoot(<CatalogFilterPage {...props({ tiers: null })} />);
+ await rerender(<CatalogFilterPage {...props({ tiers: { key: 'k', performers: [], studios: [{ name: 'S1', logo: '', fallback: 'S1' }] } })} />);
+ expect(host.querySelector('[data-catalog-tiers]')?.hasAttribute('aria-busy')).toBe(false);
+ expect(rows(host)).toEqual(['studios']);
+ expect(rememberedTiers()).toEqual({ performers: false, studios: true });
+ await rerender(<CatalogFilterPage {...props({ empty: true })} />);
+ expect(rememberedTiers()).toEqual({ performers: true, studios: true });
+ });
+
+ it('岛挂上之前的壳骨架读同一份记录', () => {
+ const skeleton = () => {
+ const host = document.createElement('div');
+ host.innerHTML = catalogFilterSkeletonHtml([{ k: '', label: '全部', href: '/' }], '');
+ return host;
+ };
+ expect(rows(skeleton())).toEqual(['performers', 'studios']);
+ rememberTiers({ performers: true, studios: false });
+ expect(rows(skeleton())).toEqual(['performers']);
+ rememberTiers({ performers: false, studios: false });
+ const none = skeleton();
+ expect(rows(none)).toEqual([]);
+ expect(none.querySelector<HTMLElement>('[data-catalog-tiers]')?.hidden).toBe(true);
+ });
+});
+
describe('读数', () => {
it('取数期间是一条微光;这一趟失败时收起,不留着一直转的微光', async () => {
const waiting = await mount(<CatalogFilterPage {...props({ count: null })} />);
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 0f5ab4441..8cc0d5c71 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] = "99032ff4-87c0-4448-9107-37f6c03224b8", e._sentryDebugIdIdentifier = "sentry-dbid-99032ff4-87c0-4448-9107-37f6c03224b8");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3b7bc508-23d2-4dd0-8777-73eb0846b340", e._sentryDebugIdIdentifier = "sentry-dbid-3b7bc508-23d2-4dd0-8777-73eb0846b340");
} 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) => {
@@ -19048,7 +19048,7 @@ function Yv(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Xv(e, t, n, r, i, a) {
+function Ute(e, t, n, r, i, a) {
let { visualElement: o } = (0, D.useContext)(Lv), s = (0, D.useContext)(Nv), c = (0, D.useContext)(ru), l = (0, D.useContext)(Ev), u = l.reducedMotion, d = l.skipAnimations, f = (0, D.useRef)(null), p = (0, D.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
@@ -19061,7 +19061,7 @@ function Xv(e, t, n, r, i, a) {
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
let m = f.current, h = (0, D.useContext)(Jv);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Ute(f.current, n, i, h);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && Wte(f.current, n, i, h);
let g = (0, D.useRef)(!1);
(0, D.useInsertionEffect)(() => {
m && g.current && m.update(n, c);
@@ -19077,9 +19077,9 @@ function Xv(e, t, n, r, i, a) {
}), !1), m.enteringChildren = void 0);
}), m;
}
-function Ute(e, t, n, r) {
+function Wte(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 : Zv(e.parent)), e.projection.setOptions({
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Xv(e.parent)), e.projection.setOptions({
layoutId: i,
layout: a,
alwaysMeasureLayout: !!o || s && Yv(s),
@@ -19092,24 +19092,24 @@ function Ute(e, t, n, r) {
layoutAnchor: u
});
}
-function Zv(e) {
- if (e) return e.options.allowProjection === !1 ? Zv(e.parent) : e.projection;
+function Xv(e) {
+ if (e) return e.options.allowProjection === !1 ? Xv(e.parent) : e.projection;
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function Qv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+function Zv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
r && Dte(r);
let a = n ? n === "svg" : Wv(e), o = a ? Hte : Vte;
function s(n, s) {
let c, l = {
...(0, D.useContext)(Ev),
...n,
- layoutId: Wte(n)
+ layoutId: Gte(n)
}, { isStatic: u, isValidProp: d } = l, f = Ate(n), p = o(n, u);
if (!u && typeof window < "u") {
- Gte(l, r);
- let t = Kte(l);
- c = t.MeasureLayout, f.visualElement = Xv(e, p, l, i, t.ProjectionNode, a);
+ Kte(l, r);
+ let t = qte(l);
+ c = t.MeasureLayout, f.visualElement = Ute(e, p, l, i, t.ProjectionNode, a);
}
return (0, O.jsxs)(Lv.Provider, {
value: f,
@@ -19123,14 +19123,14 @@ function Qv(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
let c = (0, D.forwardRef)(s);
return c[Kv] = e, c;
}
-function Wte({ layoutId: e }) {
+function Gte({ layoutId: e }) {
let t = (0, D.useContext)(eu).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Gte(e, t) {
+function Kte(e, t) {
(0, D.useContext)(Nv).strict;
}
-function Kte(e) {
+function qte(e) {
let { drag: t, layout: n } = Iv();
if (!t && !n) return {};
let r = {
@@ -19144,14 +19144,14 @@ function Kte(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function qte(e, t) {
- if (typeof Proxy > "u") return Qv;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Qv(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Qv(a, void 0, e, t)), n.get(a)) });
+function Jte(e, t) {
+ if (typeof Proxy > "u") return Zv;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Zv(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Zv(a, void 0, e, t)), n.get(a)) });
}
//#endregion
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Jte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection: e !== D.Fragment }), Yte = class extends g_ {
+var Yte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection: e !== D.Fragment }), Xte = class extends g_ {
constructor(e) {
super(e), e.animationState ||= Iee(e);
}
@@ -19169,11 +19169,11 @@ var Jte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Xte = 0, Zte = {
- animation: { Feature: Yte },
+}, Zte = 0, Qte = {
+ animation: { Feature: Xte },
exit: { Feature: class extends g_ {
constructor() {
- super(...arguments), this.id = Xte++;
+ super(...arguments), this.id = Zte++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -19206,28 +19206,28 @@ var Jte = (e, t) => t.isSVG ?? Wv(e) ? new Pee(t) : new Mee(t, { allowProjection
};
//#endregion
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function $v(e) {
+function Qv(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var Qte = (e) => (t) => Lg(t) && e(t, $v(t));
+var $te = (e) => (t) => Lg(t) && e(t, Qv(t));
//#endregion
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function ey(e, t, n, r) {
- return ov(e, t, Qte(n), r);
+function $v(e, t, n, r) {
+ return ov(e, t, $te(n), r);
}
//#endregion
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var ty = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ny = (e, t) => Math.abs(e - t);
-function $te(e, t) {
- let n = ny(e.x, t.x), r = ny(e.y, t.y);
+var ey = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ty = (e, t) => Math.abs(e - t);
+function ene(e, t) {
+ let n = ty(e.x, t.x), r = ty(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
-var ry = /*#__PURE__*/ new Set(["auto", "scroll"]), iy = class {
+var ny = /*#__PURE__*/ new Set(["auto", "scroll"]), ry = 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);
@@ -19235,8 +19235,8 @@ var ry = /*#__PURE__*/ new Set(["auto", "scroll"]), iy = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = ay(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = sy(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = $te(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = iy(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = oy(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = ene(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19249,33 +19249,33 @@ var ry = /*#__PURE__*/ new Set(["auto", "scroll"]), iy = class {
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 = ay(t, this.transformPagePoint), this.hasPendingMove = !0, cf.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = iy(t, this.transformPagePoint), this.hasPendingMove = !0, cf.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 = sy(e.type === "pointercancel" ? this.lastMoveEventInfo : ay(t, this.transformPagePoint), this.history);
+ let a = oy(e.type === "pointercancel" ? this.lastMoveEventInfo : iy(t, this.transformPagePoint), this.history);
this.startEvent && n && n(e, a), r && r(e, a);
}, !Lg(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = ay($v(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Bu;
+ let s = iy(Qv(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Bu;
this.history = [{
...c,
timestamp: l
}];
let { onSessionStart: u } = t;
- u && u(e, sy(s, this.history));
+ u && u(e, oy(s, this.history));
let d = {
passive: !0,
capture: !0
};
- this.removeListeners = pu(ey(this.contextWindow, "pointermove", this.handlePointerMove, d), ey(this.contextWindow, "pointerup", this.handlePointerUp, d), ey(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = pu($v(this.contextWindow, "pointermove", this.handlePointerMove, d), $v(this.contextWindow, "pointerup", this.handlePointerUp, d), $v(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (ry.has(e.overflowX) || ry.has(e.overflowY)) && this.scrollPositions.set(t, {
+ (ny.has(e.overflowX) || ny.has(e.overflowY)) && this.scrollPositions.set(t, {
x: t.scrollLeft,
y: t.scrollTop
}), t = t.parentElement;
@@ -19309,35 +19309,35 @@ var ry = /*#__PURE__*/ new Set(["auto", "scroll"]), iy = class {
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), lf(this.updatePoint);
}
};
-function ay(e, t) {
+function iy(e, t) {
return t ? { point: t(e.point) } : e;
}
-function oy(e, t) {
+function ay(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function sy({ point: e }, t) {
+function oy({ point: e }, t) {
return {
point: e,
- delta: oy(e, cy(t)),
- offset: oy(e, ene(t)),
- velocity: tne(t, .1)
+ delta: ay(e, sy(t)),
+ offset: ay(e, tne(t)),
+ velocity: nne(t, .1)
};
}
-function ene(e) {
+function tne(e) {
return e[0];
}
-function cy(e) {
+function sy(e) {
return e[e.length - 1];
}
-function tne(e, t) {
+function nne(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = cy(e);
+ let n = e.length - 1, r = null, i = sy(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ gu(t)));) n--;
if (!r) return {
x: 0,
@@ -19357,61 +19357,61 @@ function tne(e, t) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function nne(e, { min: t, max: n }, r) {
+function rne(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Bd(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Bd(n, e, r.max) : Math.min(e, n)), e;
}
-function ly(e, t, n) {
+function cy(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 rne(e, { top: t, left: n, bottom: r, right: i }) {
+function ine(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: ly(e.x, n, i),
- y: ly(e.y, t, r)
+ x: cy(e.x, n, i),
+ y: cy(e.y, t, r)
};
}
-function uy(e, t) {
+function ly(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 dy(e, t) {
+function uy(e, t) {
return {
- x: uy(e.x, t.x),
- y: uy(e.y, t.y)
+ x: ly(e.x, t.x),
+ y: ly(e.y, t.y)
};
}
-function fy(e, t) {
+function dy(e, t) {
let n = .5, r = j_(e), i = j_(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)), ou(0, 1, n);
}
-function py(e, t) {
+function fy(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 my = .35;
-function hy(e = my) {
- return e === !1 ? e = 0 : e === !0 && (e = my), {
- x: gy(e, "left", "right"),
- y: gy(e, "top", "bottom")
+var py = .35;
+function my(e = py) {
+ return e === !1 ? e = 0 : e === !0 && (e = py), {
+ x: hy(e, "left", "right"),
+ y: hy(e, "top", "bottom")
};
}
-function gy(e, t, n) {
+function hy(e, t, n) {
return {
- min: _y(e, t),
- max: _y(e, n)
+ min: gy(e, t),
+ max: gy(e, n)
};
}
-function _y(e, t) {
+function gy(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var vy = /* @__PURE__ */ new WeakMap(), yy = class {
+var _y = /* @__PURE__ */ new WeakMap(), vy = class {
constructor(e) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
@@ -19444,7 +19444,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = 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 = ine(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && cf.update(() => a(e, t), !1, !0));
+ r && this.currentDirection === null ? (this.currentDirection = ane(o), this.currentDirection !== null && i && i(this.currentDirection)) : (this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && cf.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 = () => {
@@ -19454,7 +19454,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
y: 0
});
}, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new iy(e, {
+ this.panSession = new ry(e, {
onSessionStart: i,
onStart: a,
onMove: o,
@@ -19464,7 +19464,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
transformPagePoint: this.visualElement.getTransformPagePoint(),
dragSnapToOrigin: l,
distanceThreshold: n,
- contextWindow: ty(this.visualElement),
+ contextWindow: ey(this.visualElement),
element: this.visualElement.current
});
}
@@ -19488,14 +19488,14 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
}
updateAxis(e, t, n) {
let { drag: r } = this.getProps();
- if (!n || !Sy(e, r, this.currentDirection)) return;
+ if (!n || !xy(e, r, this.currentDirection)) return;
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = nne(a, this.constraints[e], this.elastic[e])), i.set(a);
+ this.constraints && this.constraints[e] && (a = rne(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 && Yv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? rne(n.layoutBox, e) : !1, this.elastic = hy(t), r !== this.constraints && !Yv(e) && n && this.constraints && !this.hasMutatedConstraints && $_((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = py(n.layoutBox[e], this.constraints[e]));
+ e && Yv(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? ine(n.layoutBox, e) : !1, this.elastic = my(t), r !== this.constraints && !Yv(e) && n && this.constraints && !this.hasMutatedConstraints && $_((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = fy(n.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
@@ -19504,7 +19504,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
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 = Eg(n, r.root, this.visualElement.getTransformPagePoint()), a = dy(r.layout.layoutBox, i);
+ let i = Eg(n, r.root, this.visualElement.getTransformPagePoint()), a = uy(r.layout.layoutBox, i);
if (t) {
let e = t(oee(a));
this.hasMutatedConstraints = !!e, e && (a = cg(e));
@@ -19513,7 +19513,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
}
startAnimation(e) {
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = $_((o) => {
- if (!Sy(o, t, this.currentDirection)) return;
+ if (!xy(o, t, this.currentDirection)) return;
let c = s && s[o] || {};
(a === !0 || a === o) && (c = {
min: 0,
@@ -19551,7 +19551,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
$_((e) => {
- if (!Sy(e, n, this.currentDirection)) return;
+ if (!xy(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Bd(r, o, .5));
});
@@ -19567,7 +19567,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
};
$_((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = fy({
+ i[e] = dy({
min: t,
max: t
}, r[e]);
@@ -19575,20 +19575,20 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
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(), $_((t) => {
let n = this.getAxisMotionValue(t);
- if (!Sy(t, e, null) || !n.get()) return;
+ if (!xy(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Bd(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- vy.set(this.visualElement, this);
- let e = this.visualElement.current, t = ey(e, "pointerdown", (t) => {
+ _y.set(this.visualElement, this);
+ let e = this.visualElement.current, t = $v(e, "pointerdown", (t) => {
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && hee(i);
n && r && !a && this.start(t);
}), n, r = () => {
let { dragConstraints: t } = this.getProps();
- Yv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= xy(e, t.current, () => this.scalePositionWithinConstraints()));
+ Yv(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= by(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), cf.read(r);
let o = ov(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
@@ -19602,7 +19602,7 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
};
}
getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = my, dragMomentum: o = !0 } = e;
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = py, dragMomentum: o = !0 } = e;
return {
...e,
drag: t,
@@ -19614,30 +19614,30 @@ var vy = /* @__PURE__ */ new WeakMap(), yy = class {
};
}
};
-function by(e) {
+function yy(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function xy(e, t, n) {
- let r = Yg(e, by(n)), i = Yg(t, by(n));
+function by(e, t, n) {
+ let r = Yg(e, yy(n)), i = Yg(t, yy(n));
return () => {
r(), i();
};
}
-function Sy(e, t, n) {
+function xy(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function ine(e, t = 10) {
+function ane(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 ane = class extends g_ {
+var one = class extends g_ {
constructor(e) {
- super(e), this.removeGroupControls = fu, this.removeListeners = fu, this.controls = new yy(e);
+ super(e), this.removeGroupControls = fu, this.removeListeners = fu, this.controls = new vy(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -19650,31 +19650,31 @@ var ane = class extends g_ {
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Cy = (e) => (t, n) => {
+}, Sy = (e) => (t, n) => {
e && cf.update(() => e(t, n), !1, !0);
-}, one = class extends g_ {
+}, sne = class extends g_ {
constructor() {
super(...arguments), this.removePointerDownListener = fu;
}
onPointerDown(e) {
- this.session = new iy(e, this.createPanHandlers(), {
+ this.session = new ry(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: ty(this.node)
+ contextWindow: ey(this.node)
});
}
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Cy(e),
- onStart: Cy(t),
- onMove: Cy(n),
+ onSessionStart: Sy(e),
+ onStart: Sy(t),
+ onMove: Sy(n),
onEnd: (e, t) => {
delete this.session, r && cf.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = ey(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = $v(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -19682,10 +19682,10 @@ var ane = class extends g_ {
unmount() {
this.removePointerDownListener(), this.session && this.session.end();
}
-}, wy = !1, sne = class extends D.Component {
+}, Cy = !1, cne = class extends D.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), wy && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Cy && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
this.safeToRemove();
}), i.setOptions({
...i.options,
@@ -19698,7 +19698,7 @@ var ane = class extends g_ {
return a && (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), wy = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || cf.postRender(() => {
+ }), Cy = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || cf.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
}))), null;
@@ -19711,7 +19711,7 @@ var ane = class extends g_ {
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- wy = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ Cy = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
}
safeToRemove() {
let { safeToRemove: e } = this.props;
@@ -19721,9 +19721,9 @@ var ane = class extends g_ {
return null;
}
};
-function Ty(e) {
+function wy(e) {
let [t, n] = Ov(), r = (0, D.useContext)(eu);
- return (0, O.jsx)(sne, {
+ return (0, O.jsx)(cne, {
...e,
layoutGroup: r,
switchLayoutGroup: (0, D.useContext)(Jv),
@@ -19733,29 +19733,29 @@ function Ty(e) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var cne = {
- pan: { Feature: one },
+var lne = {
+ pan: { Feature: sne },
drag: {
- Feature: ane,
+ Feature: one,
ProjectionNode: Tv,
- MeasureLayout: Ty
+ MeasureLayout: wy
}
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Ey(e, t, n) {
+function Ty(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && cf.postRender(() => i(t, $v(t)));
+ i && cf.postRender(() => i(t, Qv(t)));
}
-var lne = class extends g_ {
+var une = class extends g_ {
mount() {
let { current: e } = this.node;
- e && (this.unmount = dee(e, (e, t) => (Ey(this.node, t, "Start"), (e) => Ey(this.node, e, "End"))));
+ e && (this.unmount = dee(e, (e, t) => (Ty(this.node, t, "Start"), (e) => Ty(this.node, e, "End"))));
}
unmount() {}
-}, une = class extends g_ {
+}, dne = class extends g_ {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -19778,51 +19778,51 @@ var lne = class extends g_ {
};
//#endregion
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Dy(e, t, n) {
+function Ey(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 && cf.postRender(() => i(t, $v(t)));
+ i && cf.postRender(() => i(t, Qv(t)));
}
-var dne = class extends g_ {
+var fne = class extends g_ {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = _ee(e, (e, t) => (Dy(this.node, t, "Start"), (e, { success: t }) => Dy(this.node, e, t ? "End" : "Cancel")), {
+ this.unmount = _ee(e, (e, t) => (Ey(this.node, t, "Start"), (e, { success: t }) => Ey(this.node, e, t ? "End" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Oy = /* @__PURE__ */ new WeakMap(), ky = /* @__PURE__ */ new WeakMap(), fne = (e) => {
- let t = Oy.get(e.target);
+}, Dy = /* @__PURE__ */ new WeakMap(), Oy = /* @__PURE__ */ new WeakMap(), pne = (e) => {
+ let t = Dy.get(e.target);
t && t(e);
-}, pne = (e) => {
- e.forEach(fne);
+}, mne = (e) => {
+ e.forEach(pne);
};
-function mne({ root: e, ...t }) {
+function hne({ root: e, ...t }) {
let n = e || document;
- ky.has(n) || ky.set(n, {});
- let r = ky.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(pne, {
+ Oy.has(n) || Oy.set(n, {});
+ let r = Oy.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(mne, {
root: e,
...t
})), r[i];
}
-function hne(e, t, n) {
- let r = mne(t);
- return Oy.set(e, n), r.observe(e), () => {
- Oy.delete(e), r.unobserve(e);
+function gne(e, t, n) {
+ let r = hne(t);
+ return Dy.set(e, n), r.observe(e), () => {
+ Dy.delete(e), r.unobserve(e);
};
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var gne = {
+var _ne = {
some: 0,
all: 1
-}, _ne = class extends g_ {
+}, vne = class extends g_ {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -19831,7 +19831,7 @@ var gne = {
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 : gne[r]
+ threshold: typeof r == "number" ? r : _ne[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -19839,7 +19839,7 @@ var gne = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = hne(this.node.current, a, o);
+ this.stopObserver = gne(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -19851,68 +19851,68 @@ var gne = {
"amount",
"margin",
"root"
- ].some(vne(e, t)) && this.startObserver();
+ ].some(yne(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function vne({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function yne({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
//#endregion
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var yne = {
- inView: { Feature: _ne },
- tap: { Feature: dne },
- focus: { Feature: une },
- hover: { Feature: lne }
-}, bne = { layout: {
+var bne = {
+ inView: { Feature: vne },
+ tap: { Feature: fne },
+ focus: { Feature: dne },
+ hover: { Feature: une }
+}, xne = { layout: {
ProjectionNode: Tv,
- MeasureLayout: Ty
-} }, xne = /*@__PURE__*/ qte({
- ...Zte,
- ...yne,
- ...cne,
- ...bne
-}, Jte);
+ MeasureLayout: wy
+} }, Sne = /*@__PURE__*/ Jte({
+ ...Qte,
+ ...bne,
+ ...lne,
+ ...xne
+}, Yte);
//#endregion
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Ay() {
+function ky() {
!u_.current && d_();
let [e] = (0, D.useState)(l_.current);
return e;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function jy(e) {
+function Ay(e) {
return typeof e == "object" && !Array.isArray(e);
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function My(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && jy(t) ? Kh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function jy(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && Ay(t) ? Kh(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 Sne(e, t, n) {
+function Cne(e, t, n) {
return e * (t + 1) + n * t;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function Ny(e, t, n, r) {
+function My(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 Cne(e, t, n) {
+function wne(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (au(e, i), r--);
}
}
-function wne(e, t, n, r, i, a) {
- Cne(e, i, a);
+function Tne(e, t, n, r, i, a) {
+ wne(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Bd(i, a, r[o]),
@@ -19921,19 +19921,19 @@ function wne(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Tne(e, t, n = 0) {
+function Ene(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 Ene(e, t) {
+function Dne(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 Dne = "easeInOut", Py = 20;
-function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
+var One = "easeInOut", Ny = 20;
+function kne(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];
@@ -19942,16 +19942,16 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
continue;
}
if (!Array.isArray(o)) {
- l.set(o.name, Ny(d, o.at, u, l));
+ l.set(o.name, My(d, o.at, u, l));
continue;
}
let [p, m, h = {}] = o;
- h.at !== void 0 && (d = Ny(d, h.at, u, l));
+ h.at !== void 0 && (d = My(d, h.at, u, l));
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
- let c = kne(e), { delay: l = 0, times: u = Mf(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 = Zp(p) ? p : i?.[p || "keyframes"];
+ let c = Ane(e), { delay: l = 0, times: u = Mf(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 = Zp(p) ? p : i?.[p || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Mne(c)) {
+ if (S === 2 && Nne(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -19967,9 +19967,9 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
let w = d + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && jf(u, T), c.length === 1 && c.unshift(null), m && `${m}${Py}`, m && m < Py) {
+ if (T > 0 && jf(u, T), c.length === 1 && c.unshift(null), m && `${m}${Ny}`, m && m < Ny) {
let e = b > 0 ? _ / b : 0;
- b = Sne(b, m, _);
+ b = Cne(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;
@@ -19979,20 +19979,20 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
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__ */ Fu(f, e - 1));
}
- Tne(u, m, e);
+ Ene(u, m, e);
}
let E = w + b;
- wne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
+ Tne(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
};
if (hh(p)) {
- let e = Fy(p, s);
- _(m, h, Iy("default", e));
+ let e = Py(p, s);
+ _(m, h, Fy("default", e));
} else {
- let e = My(p, m, r, c), t = e.length;
+ let e = jy(p, m, r, c), t = e.length;
for (let n = 0; n < t; n++) {
m = m, h = h;
- let r = e[n], i = Fy(r, s);
- for (let e in m) _(m[e], Ane(h, e), Iy(e, i), n, t);
+ let r = e[n], i = Py(r, s);
+ for (let e in m) _(m[e], jne(h, e), Fy(e, i), n, t);
}
}
u = d, d += g;
@@ -20000,13 +20000,13 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
return s.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Ene);
+ a.sort(Dne);
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");
}
- c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(Dne)), 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(One)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
keyframes: {},
transition: {}
});
@@ -20023,33 +20023,33 @@ function One(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
}
}), o;
}
-function Fy(e, t) {
+function Py(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function Iy(e, t) {
+function Fy(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function kne(e) {
+function Ane(e) {
return Array.isArray(e) ? e : [e];
}
-function Ane(e, t) {
+function jne(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var jne = (e) => typeof e == "number", Mne = (e) => e.every(jne);
+var Mne = (e) => typeof e == "number", Nne = (e) => e.every(Mne);
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function Nne(e, t) {
- return hh(e) || typeof e == "number" || typeof e == "string" && !jy(t);
+function Pne(e, t) {
+ return hh(e) || typeof e == "number" || typeof e == "string" && !Ay(t);
}
-function Ly(e, t, n, r) {
+function Iy(e, t, n, r) {
let i = [];
- if (Nne(e, t)) i.push(av(e, jy(t) && t.default || t, n && (n.default || n)));
+ if (Pne(e, t)) i.push(av(e, Ay(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = My(e, t, r), o = a.length;
+ let a = jy(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(...Ag(r, t, s, n_.get(r))) : i.push(...Hh(Bh(r) ?? jg, r, t, s));
@@ -20059,9 +20059,9 @@ function Ly(e, t, n, r) {
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Pne(e, t, n) {
+function Fne(e, t, n) {
let r = [];
- return One(e.map((e) => {
+ return kne(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
let t = e[0], n = Km(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
@@ -20076,27 +20076,27 @@ function Pne(e, t, n) {
}
return e;
}), t, n, { spring: Df }).forEach(({ keyframes: e, transition: t }, n) => {
- r.push(...Ly(n, e, t));
+ r.push(...Iy(n, e, t));
}), r;
}
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Fne(e) {
+function Ine(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function Ine(e = {}) {
+function Lne(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), Fne(e)) {
+ if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), Ine(e)) {
let { onComplete: n, ...r } = i || {};
- typeof n == "function" && (s = n), o = Pne(e, {
+ typeof n == "function" && (s = n), o = Fne(e, {
...c,
...r
}, t);
} else {
let { onComplete: n, ...r } = a || {};
- typeof n == "function" && (s = n), o = Ly(e, i, {
+ typeof n == "function" && (s = n), o = Iy(e, i, {
...c,
...r
}, t);
@@ -20108,13 +20108,13 @@ function Ine(e = {}) {
}
return i;
}
-var Lne = Object.assign(Ine(), {
+var Rne = Object.assign(Lne(), {
addEffect: Rh,
removeEffect: zh
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Rne(e, t, n, r) {
+function zne(e, t, n, r) {
if (e == null) return [];
let i = Kh(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
@@ -20150,12 +20150,12 @@ function Rne(e, t, n, r) {
}
return s;
}
-var zne = /*@__PURE__*/ ((e) => {
+var Bne = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new Lm(Rne(t, n, r, e));
+ return new Lm(zne(t, n, r, e));
}
return t;
-})(), Ry = xne, zy = class {
+})(), Ly = Sne, Ry = 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;
}
@@ -20170,22 +20170,22 @@ var zne = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, By = class extends zy {
+}, zy = class extends Ry {
filter(e, t, n) {
- let [r, i] = Wy(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = Uy(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends zy {
+(class extends Ry {
static {
this.type = "header";
}
});
-var Vy = class extends zy {
+var By = class extends Ry {
static {
this.type = "loader";
}
-}, Hy = class extends By {
+}, Vy = class extends zy {
static {
this.type = "item";
}
@@ -20196,7 +20196,7 @@ var Vy = class extends zy {
}
return null;
}
-}, Bne = class extends By {
+}, Vne = class extends zy {
static {
this.type = "section";
}
@@ -20208,7 +20208,7 @@ var Vy = class extends zy {
}
return null;
}
-}, Uy = class {
+}, Hy = class {
get size() {
return this.itemCount;
}
@@ -20283,14 +20283,14 @@ var Vy = class extends zy {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = Wy(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = Uy(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 Wy(e, t, n, r) {
+function Uy(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -20305,7 +20305,7 @@ function Wy(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var Gy = class {
+var Wy = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -20386,7 +20386,7 @@ var Gy = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, Ky = class e extends Gy {
+}, Gy = class e extends Wy {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -20437,7 +20437,7 @@ var Gy = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, Vne = class extends Gy {
+}, Hne = class extends Wy {
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;
}
@@ -20445,7 +20445,7 @@ var Gy = class {
return !0;
}
createElement(e) {
- return new Ky(e, this);
+ return new Gy(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -20467,8 +20467,8 @@ var Gy = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof Ky && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof Ky ? (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 Gy && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof Gy ? (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() {
@@ -20487,13 +20487,13 @@ var Gy = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function qy(e) {
+function Ky(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, D.useMemo)(() => void 0, [t]), s = (0, D.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, D.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = Hne(a) ? a : null, o = n ? s.get(n) : null;
+ let n = Une(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -20518,7 +20518,7 @@ function qy(e) {
i
]);
}
-function Hne(e) {
+function Une(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -20528,25 +20528,25 @@ function Hne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function Jy(e) {
+function qy(e) {
e.focus({ preventScroll: !0 });
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var Yy = (e) => Une(e) ? e.document : Wne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Xy = (e) => Yy(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Zy(e) {
+var Jy = (e) => Wne(e) ? e.document : Gne(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Yy = (e) => Jy(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function Xy(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Une(e) {
+function Wne(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Wne(e) {
- return Zy(e) && e.nodeType === 9;
+function Gne(e) {
+ return Xy(e) && e.nodeType === 9;
}
-function Qy(e) {
- return Zy(e) && e.nodeType === 11 && "host" in e;
+function Zy(e) {
+ return Xy(e) && e.nodeType === 11 && "host" in e;
}
-function $y(e, t, n, r) {
+function Qy(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);
@@ -20554,7 +20554,7 @@ function $y(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function eb(e, t, n, r) {
+function $y(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -20569,73 +20569,73 @@ function eb(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var Gne = !1;
-function tb() {
- return Gne;
+var Kne = !1;
+function eb() {
+ return Kne;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function nb(e, t) {
- if (!tb()) return t && e ? e.contains(t) : !1;
+function tb(e, t) {
+ if (!eb()) 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 : Qy(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Zy(n) ? n.host : n.parentNode;
}
return !1;
}
-var rb = (e = document) => {
- if (!tb()) return e.activeElement;
+var nb = (e = document) => {
+ if (!eb()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function K(e) {
- if (tb() && e.target instanceof Element && e.target.shadowRoot) {
+ if (eb() && 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 ib(e, t) {
+function rb(e, t) {
if (t === null) return [];
- t ??= Xy(e);
+ t ??= Yy(e);
let n = [t];
- if (!tb() || !e || e === t) return n;
+ if (!eb() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Qy(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Zy(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function ab(e) {
+function ib(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = Xy(e);
+ let t = e.getRootNode(), n = Yy(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 ob = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function sb(e) {
- let t = Xy(e);
+var ab = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function ob(e) {
+ let t = Yy(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 } = Xy(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Yy(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function cb(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 lb(e, t) {
- return ob ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && sb(e) && cb(e, t) && (!e.parentElement || lb(e.parentElement, e));
+function cb(e, t) {
+ return ab ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && ob(e) && sb(e, t) && (!e.parentElement || cb(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var ub = [
+var lb = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -20650,41 +20650,41 @@ var ub = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], db = ub.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-ub.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var fb = ub.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function pb(e, t) {
- return e.matches(db) && !hb(e) && (t?.skipVisibilityCheck || lb(e));
+], ub = lb.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+lb.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var db = lb.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function fb(e, t) {
+ return e.matches(ub) && !mb(e) && (t?.skipVisibilityCheck || cb(e));
}
-function mb(e) {
- return e.matches(fb) && lb(e) && !hb(e);
+function pb(e) {
+ return e.matches(db) && cb(e) && !mb(e);
}
-function hb(e) {
+function mb(e) {
let t = e;
for (; t != null;) {
- if (t instanceof Xy(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Yy(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var gb = typeof document < "u" ? D.useLayoutEffect : () => {};
+var hb = typeof document < "u" ? D.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function _b(e) {
+function gb(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function vb(e, t) {
+function _b(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function yb(e) {
+function vb(e) {
let t = (0, D.useRef)({
isFocused: !1,
observer: null
});
- return gb(() => {
+ return hb(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -20696,14 +20696,14 @@ function yb(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = _b(r);
+ let t = gb(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 === rb() ? null : rb();
+ let e = n === nb() ? null : nb();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -20716,83 +20716,83 @@ function yb(e) {
}
}, [e]);
}
-var bb = !1;
-function xb(e) {
- for (; e && !pb(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = rb(Xy(e).document);
+var yb = !1;
+function bb(e) {
+ for (; e && !fb(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = nb(Yy(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Qy(n) ? n : Xy(e), i = (t) => t === e || Zy(t) && nb(e, t), a = (e) => e === t || t != null && Zy(e) && nb(t, e);
- bb = !0;
+ let n = e?.getRootNode(), r = n != null && Zy(n) ? n : Yy(e), i = (t) => t === e || Xy(t) && tb(e, t), a = (e) => e === t || t != null && Xy(e) && tb(t, e);
+ yb = !0;
let o = !1, s = (e) => {
(a(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, Jy(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, qy(t), d()));
}, l = (e) => {
(i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, Jy(t), d()));
+ (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, qy(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), bb = !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), yb = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Sb(e) {
+function xb(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 Cb(e) {
+function Sb(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function wb(e) {
+function Cb(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Tb = wb(function() {
- return Cb(/^Mac/i);
-}), Eb = wb(function() {
- return Cb(/^iPhone/i);
-}), Db = wb(function() {
- return Cb(/^iPad/i) || Tb() && navigator.maxTouchPoints > 1;
-}), Ob = wb(function() {
- return Eb() || Db();
-}), kb = wb(function() {
- return Tb() || Ob();
-}), Ab = wb(function() {
- return Sb(/AppleWebKit/i) && (Ob() || !jb());
-}), jb = wb(function() {
- return Sb(/Chrome|CriOS|CrMo/i);
-}), Mb = wb(function() {
- return Sb(/Android/i);
+var wb = Cb(function() {
+ return Sb(/^Mac/i);
+}), Tb = Cb(function() {
+ return Sb(/^iPhone/i);
+}), Eb = Cb(function() {
+ return Sb(/^iPad/i) || wb() && navigator.maxTouchPoints > 1;
+}), Db = Cb(function() {
+ return Tb() || Eb();
+}), Ob = Cb(function() {
+ return wb() || Db();
+}), kb = Cb(function() {
+ return xb(/AppleWebKit/i) && (Db() || !Ab());
+}), Ab = Cb(function() {
+ return xb(/Chrome|CriOS|CrMo/i);
+}), jb = Cb(function() {
+ return xb(/Android/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Nb(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Mb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function Mb(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : jb() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Pb(e) {
- return !Mb() && e.width === 0 && e.height === 0 || Mb() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Nb(e) {
+ return !jb() && e.width === 0 && e.height === 0 || jb() && 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 Fb = /*#__PURE__*/ (0, D.createContext)({
+var Pb = /*#__PURE__*/ (0, D.createContext)({
isNative: !0,
- open: qne,
+ open: Jne,
useHref: (e) => e
});
-function Ib() {
- return (0, D.useContext)(Fb);
+function Fb() {
+ return (0, D.useContext)(Pb);
}
-function Lb(e, t) {
+function Ib(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 Rb(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = Ab() && Tb() && !Db() ? new KeyboardEvent("keydown", {
+function Lb(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = kb() && wb() && !Eb() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -20807,21 +20807,21 @@ function Rb(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- Rb.isOpening = n, Jy(e), e.dispatchEvent(s), Rb.isOpening = !1;
+ Lb.isOpening = n, qy(e), e.dispatchEvent(s), Lb.isOpening = !1;
}
-Rb.isOpening = !1;
-function Kne(e, t) {
+Lb.isOpening = !1;
+function qne(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 qne(e, t) {
- Kne(e, (e) => Rb(e, t));
+function Jne(e, t) {
+ qne(e, (e) => Lb(e, t));
}
-function zb(e) {
- let t = Ib().useHref(e.href ?? "");
+function Rb(e) {
+ let t = Fb().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -20831,8 +20831,8 @@ function zb(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Bb(e) {
- let t = Ib().useHref(e?.href ?? ""), n = {};
+function zb(e) {
+ let t = Fb().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -20843,140 +20843,140 @@ function Bb(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Jne(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Lb(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Yne(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Ib(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 Vb = {
+var Bb = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, Hb = /*#__PURE__*/ D.createContext(Vb), Yne = /*#__PURE__*/ D.createContext(!1);
+}, Vb = /*#__PURE__*/ D.createContext(Bb), Xne = /*#__PURE__*/ D.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Ub = /* @__PURE__ */ new WeakMap();
-function Xne(e = !1) {
- let t = (0, D.useContext)(Hb), n = (0, D.useRef)(null);
+var Hb = /* @__PURE__ */ new WeakMap();
+function Zne(e = !1) {
+ let t = (0, D.useContext)(Vb), n = (0, D.useRef)(null);
if (n.current === null && !e) {
let e = D.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Ub.get(e);
- n == null ? Ub.set(e, {
+ let n = Hb.get(e);
+ n == null ? Hb.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Ub.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, Hb.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Zne(e) {
- let t = (0, D.useContext)(Hb), n = Xne(!!e), r = `react-aria${t.prefix}`;
+function Qne(e) {
+ let t = (0, D.useContext)(Vb), n = Zne(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Qne(e) {
- let t = D.useId(), [n] = (0, D.useState)(Wb()), r = n ? "react-aria" : `react-aria${Vb.prefix}`;
+function $ne(e) {
+ let t = D.useId(), [n] = (0, D.useState)(Ub()), r = n ? "react-aria" : `react-aria${Bb.prefix}`;
return e || `${r}-${t}`;
}
-var $ne = typeof D.useId == "function" ? Qne : Zne;
-function ere() {
+var ere = typeof D.useId == "function" ? $ne : Qne;
+function tre() {
return !1;
}
-function tre() {
+function nre() {
return !0;
}
-function nre(e) {
+function rre(e) {
return () => {};
}
-function Wb() {
- return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(nre, ere, tre) : (0, D.useContext)(Yne);
+function Ub() {
+ return typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore(rre, tre, nre) : (0, D.useContext)(Xne);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var Gb = null, Kb = /* @__PURE__ */ new Set(), qb = /* @__PURE__ */ new Map(), Jb = !1, Yb = !1, rre = {
+var Wb = null, Gb = /* @__PURE__ */ new Set(), Kb = /* @__PURE__ */ new Map(), qb = !1, Jb = !1, ire = {
Tab: !0,
Escape: !0
};
-function Xb(e, t) {
- for (let n of Kb) n(e, t);
+function Yb(e, t) {
+ for (let n of Gb) n(e, t);
+}
+function are(e) {
+ return !(e.metaKey || !wb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function ire(e) {
- return !(e.metaKey || !Tb() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Xb(e) {
+ qb = !0, !Lb.isOpening && are(e) && (Wb = "keyboard", Yb("keyboard", e));
}
function Zb(e) {
- Jb = !0, !Rb.isOpening && ire(e) && (Gb = "keyboard", Xb("keyboard", e));
+ Wb = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (qb = !0, Yb("pointer", e));
}
function Qb(e) {
- Gb = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (Jb = !0, Xb("pointer", e));
+ !Lb.isOpening && Mb(e) && (qb = !0, Wb = "virtual");
}
function $b(e) {
- !Rb.isOpening && Nb(e) && (Jb = !0, Gb = "virtual");
-}
-function ex(e) {
- if (bb) return;
- let t = K(e), n = Xy(t), r = Yy(t);
- t === n ? Yb = !0 : t !== r && e.isTrusted && (!Jb && !Yb && (Gb = "virtual", Xb("virtual", e)), Jb = !1, Yb = !1);
+ if (yb) return;
+ let t = K(e), n = Yy(t), r = Jy(t);
+ t === n ? Jb = !0 : t !== r && e.isTrusted && (!qb && !Jb && (Wb = "virtual", Yb("virtual", e)), qb = !1, Jb = !1);
}
-function tx() {
- bb || (Jb = !1, Yb = !0);
+function ex() {
+ yb || (qb = !1, Jb = !0);
}
-function nx(e) {
- let t = rb(Yy(K(e)));
+function tx(e) {
+ let t = nb(Jy(K(e)));
queueMicrotask(() => {
- rb(Yy(K(e))) !== t && sx("keyboard");
+ nb(Jy(K(e))) !== t && ox("keyboard");
});
}
-function rx(e) {
+function nx(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = Xy(e), n = Yy(e);
- if (qb.get(t)) return;
+ let t = Yy(e), n = Jy(e);
+ if (Kb.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- Jb = !0, r.apply(this, arguments);
+ qb = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", Zb, !0), n.addEventListener("keyup", Zb, !0), n.addEventListener("click", $b, !0), n.addEventListener("invalid", nx, !0), t.addEventListener("focus", ex, !0), t.addEventListener("blur", tx, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Qb, !0), n.addEventListener("pointermove", Qb, !0), n.addEventListener("pointerup", Qb, !0)), t.addEventListener("beforeunload", () => {
- ix(e);
- }, { once: !0 }), qb.set(t, { focus: r });
+ }), n.addEventListener("keydown", Xb, !0), n.addEventListener("keyup", Xb, !0), n.addEventListener("click", Qb, !0), n.addEventListener("invalid", tx, !0), t.addEventListener("focus", $b, !0), t.addEventListener("blur", ex, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Zb, !0), n.addEventListener("pointermove", Zb, !0), n.addEventListener("pointerup", Zb, !0)), t.addEventListener("beforeunload", () => {
+ rx(e);
+ }, { once: !0 }), Kb.set(t, { focus: r });
}
-var ix = (e, t) => {
- let n = Xy(e), r = Yy(e);
- t && r.removeEventListener("DOMContentLoaded", t), qb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var rx = (e, t) => {
+ let n = Yy(e), r = Jy(e);
+ t && r.removeEventListener("DOMContentLoaded", t), Kb.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: qb.get(n).focus
- }), r.removeEventListener("keydown", Zb, !0), r.removeEventListener("keyup", Zb, !0), r.removeEventListener("click", $b, !0), r.removeEventListener("invalid", nx, !0), n.removeEventListener("focus", ex, !0), n.removeEventListener("blur", tx, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Qb, !0), r.removeEventListener("pointermove", Qb, !0), r.removeEventListener("pointerup", Qb, !0)), qb.delete(n));
+ value: Kb.get(n).focus
+ }), r.removeEventListener("keydown", Xb, !0), r.removeEventListener("keyup", Xb, !0), r.removeEventListener("click", Qb, !0), r.removeEventListener("invalid", tx, !0), n.removeEventListener("focus", $b, !0), n.removeEventListener("blur", ex, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Zb, !0), r.removeEventListener("pointermove", Zb, !0), r.removeEventListener("pointerup", Zb, !0)), Kb.delete(n));
};
-function are(e) {
- let t = Yy(e), n;
+function ore(e) {
+ let t = Jy(e), n;
return t.readyState === "loading" ? (n = () => {
- rx(e);
- }, t.addEventListener("DOMContentLoaded", n)) : rx(e), () => ix(e, n);
+ nx(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : nx(e), () => rx(e, n);
}
-typeof document < "u" && are();
-function ax() {
- return Gb !== "pointer";
+typeof document < "u" && ore();
+function ix() {
+ return Wb !== "pointer";
}
-function ox() {
- return Gb;
+function ax() {
+ return Wb;
}
-function sx(e) {
- Gb = e, Xb(e, null);
+function ox(e) {
+ Wb = e, Yb(e, null);
}
-function cx() {
- rx();
- let [e, t] = (0, D.useState)(Gb);
+function sx() {
+ nx();
+ let [e, t] = (0, D.useState)(Wb);
return (0, D.useEffect)(() => {
let e = () => {
- t(Gb);
+ t(Wb);
};
- return Kb.add(e), () => {
- Kb.delete(e);
+ return Gb.add(e), () => {
+ Gb.delete(e);
};
- }, []), Wb() ? null : e;
+ }, []), Ub() ? null : e;
}
-var ore = /* @__PURE__ */ new Set([
+var sre = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -20987,90 +20987,90 @@ var ore = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function sre(e, t, n) {
- let r = n ? K(n) : void 0, i = Yy(r), a = Xy(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 = rb(i);
- return e = e || u instanceof o && !ore.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !rre[n.key]);
+function cre(e, t, n) {
+ let r = n ? K(n) : void 0, i = Jy(r), a = Yy(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 = nb(i);
+ return e = e || u instanceof o && !sre.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !ire[n.key]);
}
-function lx(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || ax());
- return ux((e) => {
+function cx(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, D.useState)(n || ix());
+ return lx((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function ux(e, t, n) {
- rx(), (0, D.useEffect)(() => {
+function lx(e, t, n) {
+ nx(), (0, D.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- sre(!!n?.isTextInput, t, r) && e(ax());
+ cre(!!n?.isTextInput, t, r) && e(ix());
};
- return Kb.add(t), () => {
- Kb.delete(t);
+ return Gb.add(t), () => {
+ Gb.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var dx = /* @__PURE__ */ new Map(), fx = /* @__PURE__ */ new Set();
-function px(e) {
+var ux = /* @__PURE__ */ new Map(), dx = /* @__PURE__ */ new Set();
+function fx(e) {
return "propertyName" in e;
}
-function cre(e) {
+function lre(e) {
let t = K(e);
- if (!px(e) || !t) return;
- let n = dx.get(t);
- n || (n = /* @__PURE__ */ new Set(), dx.set(t, n), t.addEventListener("transitioncancel", mx, { once: !0 })), n.add(e.propertyName);
+ if (!fx(e) || !t) return;
+ let n = ux.get(t);
+ n || (n = /* @__PURE__ */ new Set(), ux.set(t, n), t.addEventListener("transitioncancel", px, { once: !0 })), n.add(e.propertyName);
}
-function mx(e) {
+function px(e) {
let t = K(e);
- if (!px(e) || !t) return;
- let n = dx.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", mx), dx.delete(t)), dx.size === 0)) for (let e of fx) e(!0), fx.delete(e);
+ if (!fx(e) || !t) return;
+ let n = ux.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", px), ux.delete(t)), ux.size === 0)) for (let e of dx) e(!0), dx.delete(e);
}
-function hx() {
- $y(document, "transitionrun", cre), $y(document, "transitionend", mx);
+function mx() {
+ Qy(document, "transitionrun", lre), Qy(document, "transitionend", px);
}
-function lre() {
- for (let [e] of dx) "isConnected" in e && !e.isConnected && dx.delete(e);
+function ure() {
+ for (let [e] of ux) "isConnected" in e && !e.isConnected && ux.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? $y(document, "DOMContentLoaded", hx) : hx());
-function gx(e) {
+typeof document < "u" && (document.readyState === "loading" ? Qy(document, "DOMContentLoaded", mx) : mx());
+function hx(e) {
let t = window.requestAnimationFrame(() => {
- if (lre(), dx.size === 0) return e(!1);
- fx.add(e);
+ if (ure(), ux.size === 0) return e(!1);
+ dx.add(e);
});
return () => {
- window.cancelAnimationFrame(t), fx.delete(e);
+ window.cancelAnimationFrame(t), dx.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function _x(e) {
+function gx(e) {
if (!e.isConnected) return;
- let t = Yy(e);
- if (ox() === "virtual") {
- let n = rb(t);
- gx(() => {
- let r = rb(t);
- (r === n || r === t.body) && e.isConnected && Jy(e);
+ let t = Jy(e);
+ if (ax() === "virtual") {
+ let n = nb(t);
+ hx(() => {
+ let r = nb(t);
+ (r === n || r === t.body) && e.isConnected && qy(e);
});
- } else Jy(e);
+ } else qy(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function vx(...e) {
+function _x(...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 ure(e) {
+function dre(e) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(t), i = (0, D.useRef)(null), a = (0, D.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 gb(() => {
+ return hb(() => {
r.current = t, i.current && a.current();
}), [t, (0, D.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -21078,21 +21078,21 @@ function ure(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var dre = !!(typeof window < "u" && window.document && window.document.createElement), yx = /* @__PURE__ */ new Map(), bx;
-typeof FinalizationRegistry < "u" && (bx = new FinalizationRegistry((e) => {
- yx.delete(e);
+var fre = !!(typeof window < "u" && window.document && window.document.createElement), vx = /* @__PURE__ */ new Map(), yx;
+typeof FinalizationRegistry < "u" && (yx = new FinalizationRegistry((e) => {
+ vx.delete(e);
}));
-var xx = /* @__PURE__ */ new WeakMap();
-function Sx(e) {
- let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = $ne(t), a = (0, D.useRef)(null), o = xx.get(a);
- if (bx && o !== i && (o != null && bx.unregister(a), bx.register(a, i, a), xx.set(a, i)), dre) {
- let e = yx.get(i);
- e && !e.includes(r) ? e.push(r) : yx.set(i, [r]);
- }
- return gb(() => {
+var bx = /* @__PURE__ */ new WeakMap();
+function xx(e) {
+ let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(null), i = ere(t), a = (0, D.useRef)(null), o = bx.get(a);
+ if (yx && o !== i && (o != null && yx.unregister(a), yx.register(a, i, a), bx.set(a, i)), fre) {
+ let e = vx.get(i);
+ e && !e.includes(r) ? e.push(r) : vx.set(i, [r]);
+ }
+ return hb(() => {
let e = i;
return () => {
- bx && (bx.unregister(a), xx.delete(a)), yx.delete(e);
+ yx && (yx.unregister(a), bx.delete(a)), vx.delete(e);
};
}, [i]), (0, D.useEffect)(() => {
let e = r.current;
@@ -21101,20 +21101,20 @@ function Sx(e) {
};
}), i;
}
-function fre(e, t) {
+function pre(e, t) {
if (e === t) return e;
- let n = yx.get(e);
+ let n = vx.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = yx.get(t);
+ let r = vx.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Cx(e = []) {
- let t = Sx(), [n, r] = ure(t), i = (0, D.useCallback)(() => {
+function Sx(e = []) {
+ let t = xx(), [n, r] = dre(t), i = (0, D.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return gb(i, [
+ return hb(i, [
t,
i,
...e
@@ -21122,38 +21122,38 @@ function Cx(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function wx(...e) {
+function Cx(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Tx(e, t);
+ let r = wx(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Tx(e[n], null);
+ typeof t == "function" ? t() : wx(e[n], null);
});
};
};
}
-function Tx(e, t) {
+function wx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Ex(e) {
+function Tx(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 = Ex(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Tx(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Dx() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ex(e)) && (r && (r += " "), r += t);
+function Ex() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Tx(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -21164,18 +21164,18 @@ function q(...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] = vx(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Dx(n, i) : e === "id" && n && i ? t.id = fre(n, i) : e === "ref" && n && i ? t.ref = wx(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] = _x(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Ex(n, i) : e === "id" && n && i ? t.id = pre(n, i) : e === "ref" && n && i ? t.ref = Cx(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Ox(e) {
+function Dx(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, D.useCallback)((e) => {
if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = yb(a), s = (0, D.useCallback)((e) => {
- let t = K(e), r = Yy(t), a = r ? rb(r) : rb();
+ }, [r, i]), o = vb(a), s = (0, D.useCallback)((e) => {
+ let t = K(e), r = Jy(t), a = r ? nb(r) : nb();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -21189,7 +21189,7 @@ function Ox(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function kx(e) {
+function Ox(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -21214,33 +21214,33 @@ function kx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var pre = /* @__PURE__ */ new Set([
+var mre = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), mre = [
+]), hre = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function hre(e) {
+function gre(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(Tb() ? "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(wb() ? "Meta" : "Control"), t;
}
-function gre(e) {
+function _re(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 Ax(e) {
- return mre.filter((t) => e.has(t));
+function kx(e) {
+ return hre.filter((t) => e.has(t));
}
-function _re(e) {
+function vre(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return pre.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 mre.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,
@@ -21252,10 +21252,10 @@ function _re(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 jx(e) {
+function Ax(e) {
return e.toLowerCase();
}
-var vre = {
+var yre = {
space: " ",
esc: "escape",
del: "delete",
@@ -21267,26 +21267,26 @@ var vre = {
pageup: "pageup",
pagedown: "pagedown"
};
-function yre(e) {
- let t = jx(e);
- return vre[t] ?? t;
-}
function bre(e) {
- let t = Ax(hre(e)), n = yre(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = Ax(e);
+ return yre[t] ?? t;
}
function xre(e) {
- let t = Ax(gre(e)), n = jx(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = kx(gre(e)), n = bre(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Sre(e) {
+ let t = kx(_re(e)), n = Ax(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function Cre(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = _re(n);
- t.set(bre(e), r);
+ let e = vre(n);
+ t.set(xre(e), r);
}
return (e) => {
- let n = xre(e), r = t.get(n), i = r?.(e);
+ let n = Sre(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -21298,16 +21298,16 @@ function Sre(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Mx(e) {
+function jx(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Sre(t), s = kx((e) => {
- nb(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = kx((e) => {
- nb(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = Cre(t), s = Ox((e) => {
+ tb(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = Ox((e) => {
+ tb(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? vx(e.onKeyDown, s) : s, a = e.onKeyUp ? vx(e.onKeyUp, c) : c;
- } else i = kx(e.onKeyDown), a = kx(e.onKeyUp);
+ i = e.onKeyDown ? _x(e.onKeyDown, s) : s, a = e.onKeyUp ? _x(e.onKeyUp, c) : c;
+ } else i = Ox(e.onKeyDown), a = Ox(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -21315,7 +21315,7 @@ function Mx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Nx(e) {
+function Mx(e) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(void 0), r = (0, D.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -21338,8 +21338,8 @@ function Nx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function Px(e, t) {
- gb(() => {
+function Nx(e, t) {
+ hb(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -21347,17 +21347,17 @@ function Px(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Fx = /*#__PURE__*/ D.createContext(null);
-function Cre(e) {
- let t = (0, D.useContext)(Fx) || {};
- Px(t, e);
+var Px = /*#__PURE__*/ D.createContext(null);
+function wre(e) {
+ let t = (0, D.useContext)(Px) || {};
+ Nx(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Ix(e, t) {
- let { focusProps: n } = Ox(e), { keyboardProps: r } = Mx(e), i = q(n, r), a = Cre(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
+function Fx(e, t) {
+ let { focusProps: n } = Dx(e), { keyboardProps: r } = jx(e), i = q(n, r), a = wre(t), o = e.isDisabled ? {} : a, s = (0, D.useRef)(e.autoFocus);
(0, D.useEffect)(() => {
- s.current && t.current && _x(t.current), s.current = !1;
+ s.current && t.current && gx(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: q({
@@ -21392,22 +21392,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Lx = /*#__PURE__*/ (0, D.createContext)(!1);
-function wre(e) {
- if ((0, D.useContext)(Lx)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
- let t = /*#__PURE__*/ D.createElement(Lx.Provider, { value: !0 }, e.children);
+var Ix = /*#__PURE__*/ (0, D.createContext)(!1);
+function Tre(e) {
+ if ((0, D.useContext)(Ix)) return /*#__PURE__*/ D.createElement(D.Fragment, null, e.children);
+ let t = /*#__PURE__*/ D.createElement(Ix.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ D.createElement("template", null, t);
}
-function Rx(e) {
- let t = (t, n) => (0, D.useContext)(Lx) ? null : e(t, n);
+function Lx(e) {
+ let t = (t, n) => (0, D.useContext)(Ix) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, D.forwardRef)(t);
}
-function zx() {
- return (0, D.useContext)(Lx);
+function Rx() {
+ return (0, D.useContext)(Ix);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Tre = /* @__PURE__ */ o(((e) => {
+var Ere = /* @__PURE__ */ o(((e) => {
var t = v();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -21445,47 +21445,47 @@ var Tre = /* @__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;
-})), Bx = /* @__PURE__ */ o(((e, t) => {
- t.exports = Tre();
-})), Ere = Bx(), Vx = /*#__PURE__*/ (0, D.createContext)(!1), Hx = /*#__PURE__*/ (0, D.createContext)(null);
-function Ux(e) {
- if ((0, D.useContext)(Hx)) return e.content;
- let { collection: t, document: n } = Are(e.createCollection);
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(wre, null, /*#__PURE__*/ D.createElement(Hx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Dre, {
+})), zx = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Ere();
+})), Dre = zx(), Bx = /*#__PURE__*/ (0, D.createContext)(!1), Vx = /*#__PURE__*/ (0, D.createContext)(null);
+function Hx(e) {
+ if ((0, D.useContext)(Vx)) return e.content;
+ let { collection: t, document: n } = jre(e.createCollection);
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(Tre, null, /*#__PURE__*/ D.createElement(Vx.Provider, { value: n }, e.content)), /*#__PURE__*/ D.createElement(Ore, {
render: e.children,
collection: t
}));
}
-function Dre({ collection: e, render: t }) {
+function Ore({ collection: e, render: t }) {
return t(e);
}
-function Ore(e, t, n) {
- let r = Wb(), i = (0, D.useRef)(r);
+function kre(e, t, n) {
+ let r = Ub(), i = (0, D.useRef)(r);
i.current = r;
let a = (0, D.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Ere.useSyncExternalStore)(e, a);
+ return (0, Dre.useSyncExternalStore)(e, a);
}
-var kre = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : Ore;
-function Are(e) {
- let [t] = (0, D.useState)(() => new Vne(e?.() || new Uy()));
+var Are = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : kre;
+function jre(e) {
+ let [t] = (0, D.useState)(() => new Hne(e?.() || new Hy()));
return {
- collection: kre((0, D.useCallback)((e) => t.subscribe(e), [t]), (0, D.useCallback)(() => {
+ collection: Are((0, D.useCallback)((e) => t.subscribe(e), [t]), (0, D.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, D.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Wx = /*#__PURE__*/ (0, D.createContext)(null);
-function jre(e) {
- return class extends zy {
+var Ux = /*#__PURE__*/ (0, D.createContext)(null);
+function Mre(e) {
+ return class extends Ry {
static {
this.type = e;
}
};
}
-function Gx(e, t, n, r, i, a) {
- typeof e == "string" && (e = jre(e));
+function Wx(e, t, n, r, i, a) {
+ typeof e == "string" && (e = Mre(e));
let o = (0, D.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -21494,86 +21494,86 @@ function Gx(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, D.useContext)(Wx);
+ ]), s = (0, D.useContext)(Ux);
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__*/ D.createElement(Wx.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__*/ D.createElement(Ux.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ D.createElement(e.type, { ref: o }, i);
}
-function Kx(e, t) {
+function Gx(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, D.forwardRef)((r, i) => {
- let a = (0, D.useContext)(Fx);
- if (!(0, D.useContext)(Vx)) {
+ let a = (0, D.useContext)(Px);
+ if (!(0, D.useContext)(Bx)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Gx(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(Fx.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
+ return Wx(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ D.createElement(Px.Provider, { value: a }, /*#__PURE__*/ D.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function qx(e, t, n = Jx) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => Gx(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
+function Kx(e, t, n = qx) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, D.forwardRef)((t, i) => Wx(e, t, i, null, n(t), (e) => /*#__PURE__*/ D.createElement(r, { node: e })) ?? /*#__PURE__*/ D.createElement(D.Fragment, null));
return i.displayName = t.name, i;
}
-function Jx(e) {
- return qy({
+function qx(e) {
+ return Ky({
...e,
addIdAndValue: !0
});
}
-var Yx = /*#__PURE__*/ (0, D.createContext)(null);
-function Xx(e) {
- let t = (0, D.useContext)(Yx), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = Jx({
+var Jx = /*#__PURE__*/ (0, D.createContext)(null);
+function Yx(e) {
+ let t = (0, D.useContext)(Jx), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = qx({
...e,
idScope: r,
dependencies: n
});
- return (0, D.useContext)(Hx) && (i = /*#__PURE__*/ D.createElement(Mre, null, i)), t = (0, D.useMemo)(() => ({
+ return (0, D.useContext)(Vx) && (i = /*#__PURE__*/ D.createElement(Nre, null, i)), t = (0, D.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ D.createElement(Yx.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ D.createElement(Jx.Provider, { value: t }, i);
}
-function Mre({ children: e }) {
- let t = (0, D.useContext)(Hx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(Hx.Provider, { value: null }, /*#__PURE__*/ D.createElement(Vx.Provider, { value: !0 }, e)), [e]);
- return Wb() ? /*#__PURE__*/ D.createElement(Wx.Provider, { value: t }, n) : /*#__PURE__*/ (0, Tt.createPortal)(n, t);
+function Nre({ children: e }) {
+ let t = (0, D.useContext)(Vx), n = (0, D.useMemo)(() => /*#__PURE__*/ D.createElement(Vx.Provider, { value: null }, /*#__PURE__*/ D.createElement(Bx.Provider, { value: !0 }, e)), [e]);
+ return Ub() ? /*#__PURE__*/ D.createElement(Ux.Provider, { value: t }, n) : /*#__PURE__*/ (0, Tt.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var Nre = "react-aria-clear-focus", Pre = "react-aria-focus";
+var Pre = "react-aria-clear-focus", Fre = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Zx(e) {
- let t = Ire(Yy(e));
- t !== e && (t && Fre(t, e), e && Qx(e, t));
+function Xx(e) {
+ let t = Lre(Jy(e));
+ t !== e && (t && Ire(t, e), e && Zx(e, t));
}
-function Fre(e, t) {
+function Ire(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function Qx(e, t) {
+function Zx(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Ire(e) {
- let t = rb(e), n = t?.getAttribute("aria-activedescendant");
+function Lre(e) {
+ let t = nb(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function $x(e, t) {
- let n = Xy(t), r = Yy(t);
+function Qx(e, t) {
+ let n = Yy(t), r = Jy(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 eS = 100, tS = 600, nS = {
+var $x = 100, eS = 600, tS = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21583,7 +21583,7 @@ var eS = 100, tS = 600, nS = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, Lre = /* @__PURE__ */ new Set([
+}, Rre = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21594,7 +21594,7 @@ var eS = 100, tS = 600, nS = {
"submit",
"reset"
]);
-function rS() {
+function nS() {
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,
@@ -21602,59 +21602,59 @@ function rS() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function Rre(e) {
- nS.resizeTimeStamp <= e.timeStamp + 50 && (nS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(nS.resizeTimeout), nS.resizeTimeout = window.setTimeout(iS, 150));
+function zre(e) {
+ tS.resizeTimeStamp <= e.timeStamp + 50 && (tS.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(tS.resizeTimeout), tS.resizeTimeout = window.setTimeout(rS, 150));
}
-function iS() {
- let e = $x("viewport");
- if (Mb() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = rS(), r = t - nS.startTimeStamp, i = nS.screenHeight - n.height, a = nS.screenAngle - n.angle;
- Math.abs(a) % 180 && nS.screenWidth - n.height < eS && (nS.screenWidth = n.width, nS.screenHeight = n.height, nS.screenAngle = n.angle, i = 0), r > tS && (window.clearTimeout(nS.screenTimeout), nS.screenTimeout = window.setTimeout(() => {
- let e = sS(document.hasFocus() ? rb() : null), t = rS();
- Math.abs(nS.screenAngle - t.angle) % 180 || nS.isOpen && e || (nS.screenWidth = t.width, nS.screenHeight = t.height, nS.screenAngle = t.angle, nS.isOpen = !1);
- }, tS)), r <= tS && i >= eS && (nS.endTimeStamp = t), nS.isOpen = i >= eS;
-}
-function zre() {
- let e = rS(), t = nS.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !nS.isOpen) {
- let e = nS.screenWidth;
- nS.screenWidth = nS.screenHeight, nS.screenHeight = e;
- }
- nS.isOpen || (nS.screenAngle = e.angle);
-}
-function Bre(e) {
- let t = sS(K(e)), n = performance.now(), r = rS(), i = nS.screenHeight - r.height;
- i < eS && t && (nS.screenWidth = r.width, nS.screenHeight = r.height, nS.screenAngle = r.angle, nS.startTimeStamp = n), t && window.clearTimeout(nS.screenTimeout), i >= eS && t && (nS.endTimeStamp = n);
+function rS() {
+ let e = Qx("viewport");
+ if (jb() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = nS(), r = t - tS.startTimeStamp, i = tS.screenHeight - n.height, a = tS.screenAngle - n.angle;
+ Math.abs(a) % 180 && tS.screenWidth - n.height < $x && (tS.screenWidth = n.width, tS.screenHeight = n.height, tS.screenAngle = n.angle, i = 0), r > eS && (window.clearTimeout(tS.screenTimeout), tS.screenTimeout = window.setTimeout(() => {
+ let e = oS(document.hasFocus() ? nb() : null), t = nS();
+ Math.abs(tS.screenAngle - t.angle) % 180 || tS.isOpen && e || (tS.screenWidth = t.width, tS.screenHeight = t.height, tS.screenAngle = t.angle, tS.isOpen = !1);
+ }, eS)), r <= eS && i >= $x && (tS.endTimeStamp = t), tS.isOpen = i >= $x;
+}
+function Bre() {
+ let e = nS(), t = tS.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !tS.isOpen) {
+ let e = tS.screenWidth;
+ tS.screenWidth = tS.screenHeight, tS.screenHeight = e;
+ }
+ tS.isOpen || (tS.screenAngle = e.angle);
+}
+function Vre(e) {
+ let t = oS(K(e)), n = performance.now(), r = nS(), i = tS.screenHeight - r.height;
+ i < $x && t && (tS.screenWidth = r.width, tS.screenHeight = r.height, tS.screenAngle = r.angle, tS.startTimeStamp = n), t && window.clearTimeout(tS.screenTimeout), i >= $x && t && (tS.endTimeStamp = n);
}
-function aS() {
- let e = rS();
- $y(window.visualViewport, "resize", Ab() ? iS : Rre), $y(window.screen.orientation, "change", zre), $y(window, "focus", Bre, {
+function iS() {
+ let e = nS();
+ Qy(window.visualViewport, "resize", kb() ? rS : zre), Qy(window.screen.orientation, "change", Bre), Qy(window, "focus", Vre, {
capture: !0,
passive: !0
- }), nS.screenWidth = e.width, nS.screenHeight = e.height, nS.screenAngle = e.angle;
+ }), tS.screenWidth = e.width, tS.screenHeight = e.height, tS.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? $y(document, "DOMContentLoaded", aS) : aS());
-function oS() {
- let e = $x("viewport");
- return Mb() && e?.includes("overlays-content") ? !1 : nS.isOpen ? !0 : nS.startTimeStamp ? nS.endTimeStamp >= nS.startTimeStamp ? !0 : performance.now() - nS.startTimeStamp <= tS ? nS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? Qy(document, "DOMContentLoaded", iS) : iS());
+function aS() {
+ let e = Qx("viewport");
+ return jb() && e?.includes("overlays-content") ? !1 : tS.isOpen ? !0 : tS.startTimeStamp ? tS.endTimeStamp >= tS.startTimeStamp ? !0 : performance.now() - tS.startTimeStamp <= eS ? tS.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function sS(e) {
- if (!(e instanceof Element) || !pb(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Lre.has(e.type);
+function oS(e) {
+ if (!(e instanceof Element) || !fb(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Rre.has(e.type);
return t || n || r;
}
-function cS(e) {
- return Tb() ? e.metaKey : e.ctrlKey;
+function sS(e) {
+ return wb() ? e.metaKey : e.ctrlKey;
}
-function lS() {
- return nS.isOpen;
+function cS() {
+ return tS.isOpen;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Vre = D.useInsertionEffect ?? gb;
-function uS(e) {
+var Hre = D.useInsertionEffect ?? hb;
+function lS(e) {
let t = (0, D.useRef)(null);
- return Vre(() => {
+ return Hre(() => {
t.current = e;
}, [e]), (0, D.useCallback)((...e) => {
let n = t.current;
@@ -21663,10 +21663,10 @@ function uS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function dS(e, t, n, r) {
- let i = uS(n), a = n == null;
+function uS(e, t, n, r) {
+ let i = lS(n), a = n == null;
(0, D.useEffect)(() => {
- if (!(a || e.current == null)) return $y(e.current, t, i, r);
+ if (!(a || e.current == null)) return Qy(e.current, t, i, r);
}, [
e,
t,
@@ -21676,9 +21676,9 @@ function dS(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function fS(e, t) {
+function dS(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Sx(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 = xx(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
@@ -21686,7 +21686,7 @@ function fS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Hre = /* @__PURE__ */ new Set([
+var Ure = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -21697,7 +21697,7 @@ var Hre = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Ure = /* @__PURE__ */ new Set([
+]), Wre = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -21718,20 +21718,20 @@ var Hre = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Wre(e) {
+function Gre(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 Hre.has(t.script);
+ if (t.script) return Ure.has(t.script);
}
let t = e.split("-")[0];
- return Ure.has(t);
+ return Wre.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var pS = Symbol.for("react-aria.i18n.locale");
-function mS() {
- let e = typeof window < "u" && window[pS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var fS = Symbol.for("react-aria.i18n.locale");
+function pS() {
+ let e = typeof window < "u" && window[fS] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21739,33 +21739,33 @@ function mS() {
}
return {
locale: e,
- direction: Wre(e) ? "rtl" : "ltr"
+ direction: Gre(e) ? "rtl" : "ltr"
};
}
-var hS = mS(), gS = /* @__PURE__ */ new Set();
-function _S() {
- hS = mS();
- for (let e of gS) e(hS);
+var mS = pS(), hS = /* @__PURE__ */ new Set();
+function gS() {
+ mS = pS();
+ for (let e of hS) e(mS);
}
-function Gre() {
- let e = Wb(), [t, n] = (0, D.useState)(hS);
- return (0, D.useEffect)(() => (gS.size === 0 && window.addEventListener("languagechange", _S), gS.add(n), () => {
- gS.delete(n), gS.size === 0 && window.removeEventListener("languagechange", _S);
+function Kre() {
+ let e = Ub(), [t, n] = (0, D.useState)(mS);
+ return (0, D.useEffect)(() => (hS.size === 0 && window.addEventListener("languagechange", gS), hS.add(n), () => {
+ hS.delete(n), hS.size === 0 && window.removeEventListener("languagechange", gS);
}), []), e ? {
- locale: typeof window < "u" && window[pS] || "en-US",
+ locale: typeof window < "u" && window[fS] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Kre = /*#__PURE__*/ D.createContext(null);
-function vS() {
- let e = Gre();
- return (0, D.useContext)(Kre) || e;
+var qre = /*#__PURE__*/ D.createContext(null);
+function _S() {
+ let e = Kre();
+ return (0, D.useContext)(qre) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var qre = Symbol.for("react-aria.i18n.locale"), Jre = Symbol.for("react-aria.i18n.strings"), yS = void 0, bS = class e {
+var Jre = Symbol.for("react-aria.i18n.locale"), Yre = Symbol.for("react-aria.i18n.strings"), vS = void 0, yS = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -21776,39 +21776,39 @@ var qre = Symbol.for("react-aria.i18n.locale"), Jre = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Yre(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Xre(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[qre];
- if (yS === void 0) {
- let t = window[Jre];
+ let n = window[Jre];
+ if (vS === void 0) {
+ let t = window[Yre];
if (!t) return null;
- yS = {};
- for (let r in t) yS[r] = new e({ [n]: t[r] }, n);
+ vS = {};
+ for (let r in t) vS[r] = new e({ [n]: t[r] }, n);
}
- let r = yS?.[t];
+ let r = vS?.[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 Yre(e, t, n = "en-US") {
+function Xre(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Xre(e), i = Zre(e);
+ let r = Zre(e), i = Qre(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 Xre(e) {
+function Zre(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Zre(e) {
+function Qre(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var xS = /* @__PURE__ */ new Map(), SS = /* @__PURE__ */ new Map(), Qre = class {
+var bS = /* @__PURE__ */ new Map(), xS = /* @__PURE__ */ new Map(), $re = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -21819,37 +21819,37 @@ var xS = /* @__PURE__ */ new Map(), SS = /* @__PURE__ */ new Map(), Qre = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = xS.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), xS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = bS.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), bS.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = SS.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), SS.set(this.locale, t)), t.format(e);
+ let t = xS.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), xS.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, CS = /* @__PURE__ */ new WeakMap();
-function $re(e) {
- let t = CS.get(e);
- return t || (t = new bS(e), CS.set(e, t)), t;
+}, SS = /* @__PURE__ */ new WeakMap();
+function eie(e) {
+ let t = SS.get(e);
+ return t || (t = new yS(e), SS.set(e, t)), t;
}
-function eie(e, t) {
- return t && bS.getGlobalDictionaryForPackage(t) || $re(e);
+function tie(e, t) {
+ return t && yS.getGlobalDictionaryForPackage(t) || eie(e);
}
-function wS(e, t) {
- let { locale: n } = vS(), r = eie(e, t);
- return (0, D.useMemo)(() => new Qre(n, r), [n, r]);
+function CS(e, t) {
+ let { locale: n } = _S(), r = tie(e, t);
+ return (0, D.useMemo)(() => new $re(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var tie = /* @__PURE__ */ new Set(["id"]), nie = /* @__PURE__ */ new Set([
+var nie = /* @__PURE__ */ new Set(["id"]), rie = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), rie = /* @__PURE__ */ new Set([
+]), iie = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -21857,64 +21857,64 @@ var tie = /* @__PURE__ */ new Set(["id"]), nie = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), iie = /* @__PURE__ */ new Set([
+]), aie = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), TS = /* @__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(".")), aie = /^(data-.*)$/;
-function ES(e, t = {}) {
+]), wS = /* @__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(".")), oie = /^(data-.*)$/;
+function TS(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) && (tie.has(t) || n && nie.has(t) || r && rie.has(t) || i && iie.has(t) || a && (TS.has(t) || t.endsWith("Capture") && TS.has(t.slice(0, -7))) || o?.has(t) || aie.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (nie.has(t) || n && rie.has(t) || r && iie.has(t) || i && aie.has(t) || a && (wS.has(t) || t.endsWith("Capture") && wS.has(t.slice(0, -7))) || o?.has(t) || oie.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var DS = "default", OS = "", kS = /* @__PURE__ */ new WeakMap();
-function AS(e) {
- if (Ob() && Ab()) {
- if (DS === "default") {
- let t = Yy(e);
- OS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- DS = "disabled";
+var ES = "default", DS = "", OS = /* @__PURE__ */ new WeakMap();
+function kS(e) {
+ if (Db() && kb()) {
+ if (ES === "default") {
+ let t = Jy(e);
+ DS = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ ES = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- kS.set(e, e.style[t]), e.style[t] = "none";
+ OS.set(e, e.style[t]), e.style[t] = "none";
}
}
-function jS(e) {
- if (Ob() && Ab()) {
- if (DS !== "disabled") return;
- DS = "restoring", setTimeout(() => {
- gx(() => {
- if (DS === "restoring") {
- let t = Yy(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = OS || ""), OS = "", DS = "default";
+function AS(e) {
+ if (Db() && kb()) {
+ if (ES !== "disabled") return;
+ ES = "restoring", setTimeout(() => {
+ hx(() => {
+ if (ES === "restoring") {
+ let t = Jy(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = DS || ""), DS = "", ES = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && kS.has(e)) {
- let t = kS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), kS.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && OS.has(e)) {
+ let t = OS.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), OS.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var MS = /* @__PURE__ */ new WeakMap();
-function NS(e) {
- let t = Yy(e), n = MS.get(t);
- return n ??= $x("csp-nonce", t), n !== void 0 && MS.set(t, n), n;
+var jS = /* @__PURE__ */ new WeakMap();
+function MS(e) {
+ let t = Jy(e), n = jS.get(t);
+ return n ??= Qx("csp-nonce", t), n !== void 0 && jS.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var PS = D.createContext({ register: () => {} });
-PS.displayName = "PressResponderContext";
+var NS = D.createContext({ register: () => {} });
+NS.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function FS() {
+function PS() {
let e = (0, D.useRef)(/* @__PURE__ */ new Map()), t = (0, D.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -21941,15 +21941,15 @@ function FS() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function oie(e) {
- let t = (0, D.useContext)(PS);
+function sie(e) {
+ let t = (0, D.useContext)(NS);
if (t) {
let { register: n, ref: r, ...i } = t;
e = q(i, e), n();
}
- return Px(t, e.ref), e;
+ return Nx(t, e.ref), e;
}
-var IS = class {
+var FS = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -21962,9 +21962,9 @@ var IS = class {
get shouldStopPropagation() {
return this.#e;
}
-}, LS = Symbol("linkClicked"), RS = "react-aria-pressable-style", zS = "data-react-aria-pressable";
-function BS(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 } = oie(e), [m, h] = (0, D.useState)(!1), g = (0, D.useRef)({
+}, IS = Symbol("linkClicked"), LS = "react-aria-pressable-style", RS = "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 } = sie(e), [m, h] = (0, D.useState)(!1), g = (0, D.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -21974,12 +21974,12 @@ function BS(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = FS(), y = (0, D.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = PS(), y = (0, D.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new IS("pressstart", t, e);
+ let n = new FS("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -21993,11 +21993,11 @@ function BS(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new IS("pressend", r, e);
+ let t = new FS("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new IS("press", r, e);
+ let n = new FS("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22006,19 +22006,19 @@ function BS(e) {
i,
n,
t
- ]), x = uS(b), S = uS((0, D.useCallback)((e, t) => {
+ ]), x = lS(b), S = lS((0, D.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new IS("pressup", t, e);
+ let r = new FS("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, D.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(US(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || jS(t.target);
+ t.didFirePressStart && t.pointerType != null && b(HS(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || AS(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22026,7 +22026,7 @@ function BS(e) {
d,
v,
b
- ]), w = uS(C);
+ ]), w = lS(C);
(0, D.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -22043,39 +22043,39 @@ function BS(e) {
}, [s, o]), O = (0, D.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- vb(n, t), o(_b(n));
+ _b(n, t), o(gb(n));
}
}, [s, o]), k = (0, D.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (HS(t.nativeEvent, t.currentTarget) && nb(t.currentTarget, K(t))) {
- WS(K(t), t.key) && t.preventDefault();
+ if (VS(t.nativeEvent, t.currentTarget) && tb(t.currentTarget, K(t))) {
+ US(K(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;
- _(Yy(t.currentTarget), "keyup", vx((t) => {
- HS(t, i) && !t.repeat && nb(i, K(t)) && e.target && S(US(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Tb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(Jy(t.currentTarget), "keyup", _x((t) => {
+ VS(t, i) && !t.repeat && tb(i, K(t)) && e.target && S(HS(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && wb() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || nb(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Rb.isOpening) {
+ if ((!t || tb(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Lb.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Nb(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Mb(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(US(t.currentTarget, t), r), a = x(US(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(HS(t.currentTarget, t), r), a = x(HS(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 && HS(t, e.target)) {
- WS(K(t), t.key) && t.preventDefault();
- let n = K(t), r = nb(e.target, n);
- x(US(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && VS(e.target) && nb(e.target, n) && !t[LS] && (t[LS] = !0, Rb(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && VS(t, e.target)) {
+ US(K(t), t.key) && t.preventDefault();
+ let n = K(t), r = tb(e.target, n);
+ x(HS(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && BS(e.target) && tb(e.target, n) && !t[IS] && (t[IS] = !0, Lb(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;
@@ -22084,39 +22084,39 @@ function BS(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !nb(t.currentTarget, K(t))) return;
- if (Pb(t.nativeEvent)) {
+ if (t.button !== 0 || !tb(t.currentTarget, K(t))) return;
+ if (Nb(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 || AS(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || kS(e.target), i = y(t, e.pointerType);
let a = K(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Yy(t.currentTarget), "pointerup", n, !1), _(Yy(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Jy(t.currentTarget), "pointerup", n, !1), _(Jy(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (nb(t.currentTarget, K(t)) && t.button === 0) {
+ if (tb(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = xb(t.target);
+ let n = bb(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- nb(t.currentTarget, K(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ tb(t.currentTarget, K(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(US(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(HS(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(US(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(HS(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (nb(e.target, K(t)) && e.pointerType != null) {
+ if (tb(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (Jy(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (qy(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -22126,7 +22126,7 @@ function BS(e) {
w(e);
};
t.onDragStart = (e) => {
- nb(e.currentTarget, K(e)) && w(e);
+ tb(e.currentTarget, K(e)) && w(e);
};
}
return t;
@@ -22143,14 +22143,14 @@ function BS(e) {
]);
return (0, D.useEffect)(() => {
if (!f) return;
- let e = Yy(f.current);
- if (!e || !e.head || e.getElementById(RS)) return;
+ let e = Jy(f.current);
+ if (!e || !e.head || e.getElementById(LS)) return;
let t = e.createElement("style");
- t.id = RS;
- let n = NS(e);
+ t.id = LS;
+ let n = MS(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${zS}] {
+ [${RS}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -22158,23 +22158,23 @@ function BS(e) {
}, [f]), (0, D.useEffect)(() => {
let e = g.current;
return () => {
- d || jS(e.target ?? void 0);
+ d || AS(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: q(p, k, { [zS]: !0 })
+ pressProps: q(p, k, { [RS]: !0 })
};
}
-function VS(e) {
+function BS(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function HS(e, t) {
+function VS(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Xy(i).HTMLInputElement && !GS(i, n) || i instanceof Xy(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && VS(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Yy(i).HTMLInputElement && !WS(i, n) || i instanceof Yy(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && BS(i)) && n !== "Enter");
}
-function US(e, t) {
+function HS(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22187,13 +22187,13 @@ function US(e, t) {
key: t.key
};
}
-function sie(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !VS(e);
+function cie(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !BS(e);
}
-function WS(e, t) {
- return Tb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !GS(e, t) : sie(e);
+function US(e, t) {
+ return wb() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !WS(e, t) : cie(e);
}
-var cie = /* @__PURE__ */ new Set([
+var lie = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22204,12 +22204,12 @@ var cie = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function GS(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : cie.has(e.type);
+function WS(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : lie.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function lie(e, t) {
+function uie(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,
@@ -22231,7 +22231,7 @@ function lie(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = BS({
+ let { pressProps: _, isPressed: v } = zS({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22241,9 +22241,9 @@ function lie(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Ix(e, t);
+ }), { focusableProps: y } = Fx(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = q(y, _, ES(e, { labelable: !0 }));
+ let b = q(y, _, TS(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: q(g, b, {
@@ -22258,7 +22258,7 @@ function lie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var uie = class {
+var die = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -22283,7 +22283,7 @@ var uie = class {
return this._currentNode;
}
set currentNode(e) {
- if (!nb(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!tb(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 });
@@ -22297,7 +22297,7 @@ var uie = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return nb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return tb(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -22361,45 +22361,45 @@ var uie = class {
return null;
}
};
-function KS(e, t, n, r) {
- return tb() ? new uie(e, t, n, r) : e.createTreeWalker(t, n, r);
+function GS(e, t, n, r) {
+ return eb() ? new die(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var qS = /*#__PURE__*/ D.createContext(null), JS = "react-aria-focus-scope-restore", YS = null;
-function XS(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(qS) || {}, l = (0, D.useMemo)(() => new pC({ scopeRef: s }), [s]);
- gb(() => {
- let e = c || mC.root;
- if (mC.getTreeNode(e.scopeRef) && YS && !nC(YS, e.scopeRef)) {
- let t = mC.getTreeNode(YS);
+var KS = /*#__PURE__*/ D.createContext(null), qS = "react-aria-focus-scope-restore", JS = null;
+function YS(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)([]), { parentNode: c } = (0, D.useContext)(KS) || {}, l = (0, D.useMemo)(() => new fC({ scopeRef: s }), [s]);
+ hb(() => {
+ let e = c || pC.root;
+ if (pC.getTreeNode(e.scopeRef) && JS && !tC(JS, e.scopeRef)) {
+ let t = pC.getTreeNode(JS);
t && (e = t);
}
- e.addChild(l), mC.addNode(l);
- }, [l, c]), gb(() => {
- let e = mC.getTreeNode(s);
+ e.addChild(l), pC.addNode(l);
+ }, [l, c]), hb(() => {
+ let e = pC.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), gb(() => {
+ }, [n]), hb(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(JS, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(qS, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(JS, n);
+ for (let e of t) e.removeEventListener(qS, n);
};
- }, [t]), sC(s, r, n), mie(s, n), lC(s, r, n), oC(s, i), (0, D.useEffect)(() => {
- let e = rb(Yy(s.current ? s.current[0] : void 0)), t = null;
- if (eC(e, s.current)) {
- for (let n of mC.traverse()) n.scopeRef && eC(e, n.scopeRef.current) && (t = n);
- t === mC.getTreeNode(s) && (YS = t.scopeRef);
- }
- }, [s]), gb(() => () => {
- let e = mC.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === YS || nC(s, YS)) && (!e || mC.getTreeNode(e)) && (YS = e), mC.removeTreeNode(s);
+ }, [t]), oC(s, r, n), hie(s, n), cC(s, r, n), aC(s, i), (0, D.useEffect)(() => {
+ let e = nb(Jy(s.current ? s.current[0] : void 0)), t = null;
+ if ($S(e, s.current)) {
+ for (let n of pC.traverse()) n.scopeRef && $S(e, n.scopeRef.current) && (t = n);
+ t === pC.getTreeNode(s) && (JS = t.scopeRef);
+ }
+ }, [s]), hb(() => () => {
+ let e = pC.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === JS || tC(s, JS)) && (!e || pC.getTreeNode(e)) && (JS = e), pC.removeTreeNode(s);
}, [s]);
- let u = (0, D.useMemo)(() => die(s), []), d = (0, D.useMemo)(() => ({
+ let u = (0, D.useMemo)(() => fie(s), []), d = (0, D.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ D.createElement(qS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
+ return /*#__PURE__*/ D.createElement(KS.Provider, { value: d }, /*#__PURE__*/ D.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -22409,154 +22409,154 @@ function XS(e) {
ref: o
}));
}
-function die(e) {
+function fie(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rb(Yy(n[0] ?? void 0)), c = n[0].previousElementSibling, l = dC(ZS(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || nb(Jy(n[0] ?? void 0)), c = n[0].previousElementSibling, l = uC(XS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = eC(s, n) ? s : c;
+ l.currentNode = $S(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && rC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && nC(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rb(Yy(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = dC(ZS(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || nb(Jy(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = uC(XS(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = eC(s, n) ? s : c;
+ l.currentNode = $S(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && rC(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && nC(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = dC(ZS(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = uC(XS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && rC(o, !0), o;
+ return o && nC(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = dC(ZS(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = uC(XS(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && rC(o, !0), o;
+ return o && nC(o, !0), o;
}
};
}
-function ZS(e) {
+function XS(e) {
return e[0].parentElement;
}
-function QS(e) {
- let t = mC.getTreeNode(YS);
+function ZS(e) {
+ let t = pC.getTreeNode(JS);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function fie(e) {
- if (!e.form) return Array.from(Yy(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = Xy(e);
+function pie(e) {
+ if (!e.form) return Array.from(Jy(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = Yy(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function pie(e) {
+function mie(e) {
if (e.checked) return !0;
- let t = fie(e);
+ let t = pie(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function mie(e, t) {
+function hie(e, t) {
let n = (0, D.useRef)(void 0), r = (0, D.useRef)(void 0);
- gb(() => {
+ hb(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = Yy(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !QS(e) || t.isComposing) return;
- let n = rb(a), r = e.current;
- if (!r || !eC(n, r)) return;
- let i = dC(ZS(r), { tabbable: !0 }, r);
+ let a = Jy(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ZS(e) || t.isComposing) return;
+ let n = nb(a), r = e.current;
+ if (!r || !$S(n, r)) return;
+ let i = uC(XS(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 && (rC(o, !0), o instanceof Xy(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 && (nC(o, !0), o instanceof Yy(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!YS || nC(YS, e)) && eC(K(t), e.current) ? (YS = e, n.current = K(t)) : QS(e) && !tC(K(t), e) ? n.current ? rC(n.current) : YS && YS.current && aC(YS.current) : QS(e) && (n.current = K(t));
+ (!JS || tC(JS, e)) && $S(K(t), e.current) ? (JS = e, n.current = K(t)) : ZS(e) && !eC(K(t), e) ? n.current ? nC(n.current) : JS && JS.current && iC(JS.current) : ZS(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = ox(), i = (r === "virtual" || r === null) && Mb() && jb(), o = rb(a);
- if (!i && o && QS(e) && !tC(o, e)) {
- YS = e;
+ let r = ax(), i = (r === "virtual" || r === null) && jb() && Ab(), o = nb(a);
+ if (!i && o && ZS(e) && !eC(o, e)) {
+ JS = e;
let r = K(t);
- r && r.isConnected ? (n.current = r, rC(n.current)) : YS.current && aC(YS.current);
+ r && r.isConnected ? (n.current = r, nC(n.current)) : JS.current && iC(JS.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]), gb(() => () => {
+ }, [e, t]), hb(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function $S(e) {
- return tC(e);
+function QS(e) {
+ return eC(e);
}
-function eC(e, t) {
- return !e || !t ? !1 : t.some((t) => nb(t, e));
+function $S(e, t) {
+ return !e || !t ? !1 : t.some((t) => tb(t, e));
}
-function tC(e, t = null) {
+function eC(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of mC.traverse(mC.getTreeNode(t))) if (n && eC(e, n.current)) return !0;
+ for (let { scopeRef: n } of pC.traverse(pC.getTreeNode(t))) if (n && $S(e, n.current)) return !0;
return !1;
}
-function hie(e) {
- return tC(e, YS);
+function gie(e) {
+ return eC(e, JS);
}
-function nC(e, t) {
- let n = mC.getTreeNode(t)?.parent;
+function tC(e, t) {
+ let n = pC.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function rC(e, t = !1) {
+function nC(e, t = !1) {
if (e != null && !t) try {
- _x(e);
+ gx(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function iC(e, t = !0) {
- let n = e[0].previousElementSibling, r = ZS(e), i = dC(r, { tabbable: t }, e);
+function rC(e, t = !0) {
+ let n = e[0].previousElementSibling, r = XS(e), i = uC(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = ZS(e), i = dC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = XS(e), i = uC(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function aC(e, t = !0) {
- rC(iC(e, t));
+function iC(e, t = !0) {
+ nC(rC(e, t));
}
-function oC(e, t) {
+function aC(e, t) {
let n = D.useRef(t);
(0, D.useEffect)(() => {
- n.current && (YS = e, !eC(rb(Yy(e.current ? e.current[0] : void 0)), YS.current) && e.current && aC(e.current)), n.current = !1;
+ n.current && (JS = e, !$S(nb(Jy(e.current ? e.current[0] : void 0)), JS.current) && e.current && iC(e.current)), n.current = !1;
}, [e]);
}
-function sC(e, t, n) {
- gb(() => {
+function oC(e, t, n) {
+ hb(() => {
if (t || n) return;
- let r = e.current, i = Yy(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = Jy(r ? r[0] : void 0), a = (t) => {
let n = K(t);
- eC(n, e.current) ? YS = e : $S(n) || (YS = null);
+ $S(n, e.current) ? JS = e : QS(n) || (JS = 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));
@@ -22567,43 +22567,43 @@ function sC(e, t, n) {
n
]);
}
-function cC(e) {
- let t = mC.getTreeNode(YS);
+function sC(e) {
+ let t = pC.getTreeNode(JS);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function lC(e, t, n) {
- let r = (0, D.useRef)(typeof document < "u" ? rb(Yy(e.current ? e.current[0] : void 0)) : null);
- gb(() => {
- let r = e.current, i = Yy(r ? r[0] : void 0);
+function cC(e, t, n) {
+ let r = (0, D.useRef)(typeof document < "u" ? nb(Jy(e.current ? e.current[0] : void 0)) : null);
+ hb(() => {
+ let r = e.current, i = Jy(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!YS || nC(YS, e)) && eC(rb(i), e.current) && (YS = e);
+ (!JS || tC(JS, e)) && $S(nb(i), e.current) && (JS = 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]), gb(() => {
- let r = Yy(e.current ? e.current[0] : void 0);
+ }, [e, n]), hb(() => {
+ let r = Jy(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !QS(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ZS(e) || t.isComposing) return;
let n = r.activeElement;
- if (!tC(n, e) || !cC(e)) return;
- let i = mC.getTreeNode(e);
+ if (!eC(n, e) || !sC(e)) return;
+ let i = pC.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = dC(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = uC(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 || !tC(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !eC(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (tC(s, e));
- t.preventDefault(), t.stopPropagation(), s ? rC(s, !0) : $S(a) ? rC(a, !0) : n.blur();
+ while (eC(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? nC(s, !0) : QS(a) ? nC(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22613,31 +22613,31 @@ function lC(e, t, n) {
e,
t,
n
- ]), gb(() => {
- let n = Yy(e.current ? e.current[0] : void 0);
+ ]), hb(() => {
+ let n = Jy(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = mC.getTreeNode(e);
+ let i = pC.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = mC.getTreeNode(e);
+ let r = pC.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = rb(n);
- if (t && i && (a && tC(a, e) || a === n.body && cC(e))) {
- let t = mC.clone();
+ let i = r.nodeToRestore, a = nb(n);
+ if (t && i && (a && eC(a, e) || a === n.body && sC(e))) {
+ let t = pC.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- uC(n.nodeToRestore);
+ lC(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && mC.getTreeNode(n.scopeRef)) {
- let e = iC(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && pC.getTreeNode(n.scopeRef)) {
+ let e = rC(n.scopeRef.current, !0);
if (e) {
- uC(e);
+ lC(e);
return;
}
}
@@ -22649,21 +22649,21 @@ function lC(e, t, n) {
};
}, [e, t]);
}
-function uC(e) {
- e.dispatchEvent(new CustomEvent(JS, {
+function lC(e) {
+ e.dispatchEvent(new CustomEvent(qS, {
bubbles: !0,
cancelable: !0
- })) && rC(e);
+ })) && nC(e);
}
-function dC(e, t, n) {
- let r = t?.tabbable ? mb : pb, i = Yy(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = KS(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return nb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!pie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || eC(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function uC(e, t, n) {
+ let r = t?.tabbable ? pb : fb, i = Jy(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = GS(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return tb(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!mie(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || $S(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var fC = class e {
+var dC = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new pC({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new fC({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22674,7 +22674,7 @@ var fC = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new pC({ scopeRef: e });
+ let i = new fC({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22685,7 +22685,7 @@ var fC = 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 && eC(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && $S(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -22697,7 +22697,7 @@ var fC = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, pC = class {
+}, fC = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22707,13 +22707,13 @@ var fC = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, mC = new fC(), hC = 7e3, gC = null;
-function _C(e, t = "assertive", n = hC) {
- gC ? gC.announce(e, t, n) : (gC = new vC(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? gC.announce(e, t, n) : setTimeout(() => {
- gC?.isAttached() && gC?.announce(e, t, n);
+}, pC = new dC(), mC = 7e3, hC = null;
+function gC(e, t = "assertive", n = mC) {
+ hC ? hC.announce(e, t, n) : (hC = new _C(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? hC.announce(e, t, n) : setTimeout(() => {
+ hC?.isAttached() && hC?.announce(e, t, n);
}, 100));
}
-var vC = class {
+var _C = 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,
@@ -22738,7 +22738,7 @@ var vC = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = hC) {
+ announce(e, t = "assertive", n = mC) {
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(() => {
@@ -22751,8 +22751,8 @@ var vC = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function yC(e, t) {
- let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = uS(e);
+function vC(e, t) {
+ let n = (0, D.useRef)(!0), r = (0, D.useRef)(null), i = lS(e);
(0, D.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, D.useEffect)(() => {
@@ -22762,33 +22762,33 @@ function yC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function bC(e, t) {
+function yC(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 xC(e, t) {
+function bC(e, t) {
let n = e;
- for (bC(n, t) && (n = n.parentElement); n && !bC(n, t);) n = n.parentElement;
+ for (yC(n, t) && (n = n.parentElement); n && !yC(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function SC(e, t) {
+function xC(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (bC(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (yC(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function CC(e, t, n = {}) {
- e !== t && wC(e, t, t.getBoundingClientRect(), n);
+function SC(e, t, n = {}) {
+ e !== t && CC(e, t, t.getBoundingClientRect(), n);
}
-function wC(e, t, n, r = {}) {
+function CC(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, te = p + (f ? 0 : T) + x, I = m - (f ? 0 : E) - S - F, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
- Ob() && Ab() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
+ Db() && kb() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
let ie = k < te || A > I, ae = j < ne || M > re;
if (ie && i === "start") o += k - te;
else if (ie && i === "center") o += (k + A) / 2 - (te + I) / 2;
@@ -22809,7 +22809,7 @@ function wC(e, t, n, r = {}) {
top: o
});
}
-function TC(e, t = {}) {
+function wC(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -22822,47 +22822,47 @@ function TC(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = SC(e, !0);
- for (let t of i) CC(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = xC(e, !0);
+ for (let t of i) SC(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? SC(n, !0) : [];
- for (let e of i) CC(e, n, {
+ i = n ? xC(n, !0) : [];
+ for (let e of i) SC(e, n, {
block: "center",
inline: "center"
});
- for (let t of SC(e, !0)) CC(t, e);
+ for (let t of xC(e, !0)) SC(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var EC = 0, DC = /* @__PURE__ */ new Map();
-function OC(e) {
+var TC = 0, EC = /* @__PURE__ */ new Map();
+function DC(e) {
let [t, n] = (0, D.useState)();
- return gb(() => {
+ return hb(() => {
if (!e) return;
- let t = DC.get(e);
+ let t = EC.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${EC++}`;
+ let r = `react-aria-description-${TC++}`;
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
- }, DC.set(e, t);
+ }, EC.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), DC.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), EC.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function kC(e, t, n) {
- let r = uS((e) => {
+function OC(e, t, n) {
+ let r = lS((e) => {
n && !e.defaultPrevented && n(t);
});
(0, D.useEffect)(() => {
@@ -22874,21 +22874,21 @@ function kC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function AC(e, t, n) {
+function kC(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- gb(() => {
+ hb(() => {
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(MC(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(jC(n.current));
}
});
- let a = (0, D.useRef)(!1), o = uS(() => {
+ let a = (0, D.useRef)(!1), o = lS(() => {
a.current || t.resetValidation();
- }), s = uS((e) => {
+ }), s = lS((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && NC(r) === n.current && (i ? i() : n.current?.focus(), sx("keyboard")), e.preventDefault();
- }), c = uS(() => {
+ !e.defaultPrevented && n && r && MC(r) === n.current && (i ? i() : n.current?.focus(), ox("keyboard")), e.preventDefault();
+ }), c = lS(() => {
t.commitValidation();
});
(0, D.useEffect)(() => {
@@ -22902,7 +22902,7 @@ function AC(e, t, n) {
};
}, [n, r]);
}
-function jC(e) {
+function AC(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -22918,14 +22918,14 @@ function jC(e) {
valid: t.valid
};
}
-function MC(e) {
+function jC(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: jC(e),
+ validationDetails: AC(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function NC(e) {
+function MC(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -22934,16 +22934,16 @@ function NC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function PC(e = !0) {
+function NC(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return gb(() => {
+ return hb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function FC(e = !0) {
- let t = Sx(), [n, r] = PC(e);
+function PC(e = !0) {
+ let t = xx(), [n, r] = NC(e);
return {
id: r ? t : void 0,
ref: n
@@ -22951,7 +22951,7 @@ function FC(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var IC = {
+var FC = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -22963,18 +22963,18 @@ var IC = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, LC = {
- ...IC,
+}, IC = {
+ ...FC,
customError: !0,
valid: !1
-}, RC = {
+}, LC = {
isInvalid: !1,
- validationDetails: IC,
+ validationDetails: FC,
validationErrors: []
-}, zC = (0, D.createContext)({}), BC = "__reactAriaFormValidationState";
-function VC(e) {
+}, RC = (0, D.createContext)({}), zC = "__reactAriaFormValidationState";
+function BC(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[BC];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[zC];
return {
realtimeValidation: t,
displayValidation: n,
@@ -22983,71 +22983,71 @@ function VC(e) {
commitValidation: a
};
}
- return HC(e);
+ return VC(e);
}
-function HC(e) {
+function VC(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: LC
- }, l = (0, D.useMemo)(() => !o || i == null ? null : GC(WC(o, i)), [o, i]);
+ validationDetails: IC
+ }, l = (0, D.useMemo)(() => !o || i == null ? null : WC(UC(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, D.useContext)(zC), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => UC(u[e])) : UC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
+ let u = (0, D.useContext)(RC), d = (0, D.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => HC(u[e])) : HC(u[r]) : [], [u, r]), [f, p] = (0, D.useState)(u), [m, h] = (0, D.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, D.useMemo)(() => GC(m ? [] : d), [m, d]), _ = (0, D.useRef)(RC), [v, y] = (0, D.useState)(RC), b = (0, D.useRef)(RC), x = () => {
+ let g = (0, D.useMemo)(() => WC(m ? [] : d), [m, d]), _ = (0, D.useRef)(LC), [v, y] = (0, D.useState)(LC), b = (0, D.useRef)(LC), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- KC(e, b.current) || (b.current = e, y(e));
+ GC(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, D.useState)(!1);
return (0, D.useEffect)(x), {
- realtimeValidation: c || g || l || a || RC,
+ realtimeValidation: c || g || l || a || LC,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !KC(v, e) ? y(e) : _.current = e;
+ s === "aria" && !GC(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = RC;
- KC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = LC;
+ GC(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function UC(e) {
+function HC(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function WC(e, t) {
+function UC(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return UC(n);
+ if (n && typeof n != "boolean") return HC(n);
}
return [];
}
-function GC(e) {
+function WC(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: LC
+ validationDetails: IC
} : null;
}
-function KC(e, t) {
+function GC(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 qC(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 = VC({
+function KC(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 = BC({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- AC(e, b, n);
+ kC(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(K(e).checked);
- }, { pressProps: T, isPressed: E } = BS({
+ }, { pressProps: T, isPressed: E } = zS({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23055,7 +23055,7 @@ function qC(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, D.useState)(!1), { pressProps: A } = BS({
+ }), [O, k] = (0, D.useState)(!1), { pressProps: A } = zS({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), k(!0));
},
@@ -23072,13 +23072,13 @@ function qC(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [BC]: i } = e, { commitValidation: a } = i || b;
+ let { [zC]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = Ix(e, n), M = q(T, j), N = ES(e, { labelable: !0 });
- kC(n, t.defaultSelected, t.setSelected);
- let P = FC(), ee = FC();
+ }), { focusableProps: j } = Fx(e, n), M = q(T, j), N = TS(e, { labelable: !0 });
+ OC(n, t.defaultSelected, t.setSelected);
+ let P = PC(), ee = PC();
return {
labelProps: q(A, { onClick: (e) => e.preventDefault() }),
inputProps: q(N, {
@@ -23115,8 +23115,8 @@ function qC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function JC(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 } = qC(e, t, n), { isIndeterminate: m } = e;
+function qC(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 } = KC(e, t, n), { isIndeterminate: m } = e;
return (0, D.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -23135,18 +23135,18 @@ function JC(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var YC = /* @__PURE__ */ new WeakMap();
+var JC = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function XC(e) {
+function YC(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Sx(t);
- let o = Sx(), s = {};
+ t = xx(t);
+ let o = xx(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = fS({
+ let c = dS({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23158,13 +23158,13 @@ function XC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function ZC(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = XC(e), s = Cx([
+function XC(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = YC(e), s = Sx([
!!t,
!!n,
r,
i
- ]), c = Cx([
+ ]), c = Sx([
!!t,
!!n,
r,
@@ -23183,26 +23183,26 @@ function ZC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function QC(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = FS(), c = (0, D.useCallback)((e) => {
- nb(e.currentTarget, K(e)) && a.current.isFocusWithin && !nb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function ZC(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, D.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = PS(), c = (0, D.useCallback)((e) => {
+ tb(e.currentTarget, K(e)) && a.current.isFocusWithin && !tb(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = yb(c), u = (0, D.useCallback)((e) => {
- if (!nb(e.currentTarget, K(e))) return;
- let t = K(e), n = Yy(t), s = rb(n);
+ ]), l = vb(c), u = (0, D.useCallback)((e) => {
+ if (!tb(e.currentTarget, K(e))) return;
+ let t = K(e), n = Jy(t), s = nb(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 = K(e);
- if (a.current.isFocusWithin && !nb(t, r)) {
+ if (a.current.isFocusWithin && !tb(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- vb(e, t);
- let i = _b(e);
+ _b(e, t);
+ let i = gb(e);
c(i);
}
}, { capture: !0 });
@@ -23224,14 +23224,14 @@ function QC(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var $C = D.useInsertionEffect ?? D.useLayoutEffect;
-function ew(e, t, n) {
+var QC = D.useInsertionEffect ?? D.useLayoutEffect;
+function $C(e, t, n) {
let [r, i] = (0, D.useState)(e || t), a = (0, D.useRef)(r), o = (0, D.useRef)(e !== void 0), s = e !== void 0;
(0, D.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- $C(() => {
+ QC(() => {
a.current = c;
});
let [, l] = (0, D.useReducer)(() => ({}), {});
@@ -23242,8 +23242,8 @@ function ew(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function tw(e = {}) {
- let { isReadOnly: t } = e, [n, r] = ew(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
+function ew(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = $C(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, D.useState)(n);
function a(e) {
t || r(e);
}
@@ -23259,26 +23259,26 @@ function tw(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function gie(e, t, n) {
- let r = tw({
+function _ie(e, t, n) {
+ let r = ew({
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 } = YC.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = JC.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = VC({
+ let { realtimeValidation: l } = BC({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, D.useRef)(RC), d = () => {
+ }), u = (0, D.useRef)(LC), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, D.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = JC({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = qC({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23286,7 +23286,7 @@ function gie(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [BC]: {
+ [zC]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23310,10 +23310,10 @@ function gie(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function nw(e, t = -Infinity, n = Infinity) {
+function tw(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function rw(e, t) {
+function nw(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 {
@@ -23326,24 +23326,24 @@ function rw(e, t) {
}
return n;
}
-function iw(e, t, n, r) {
+function rw(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = rw(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(rw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(rw((n - t) / r, r)) * r), a = rw(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = nw(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(nw(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(nw((n - t) / r, r)) * r), a = nw(a, r), a;
}
//#endregion
//#region node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var aw = /* @__PURE__ */ new Map(), ow = !1;
+var iw = /* @__PURE__ */ new Map(), aw = !1;
try {
- ow = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ aw = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var _ie = class {
+var vie = class {
constructor(e, t = {}) {
- this.numberFormatter = vie(e, t), this.options = t;
+ this.numberFormatter = yie(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !ow && this.options.signDisplay != null ? yie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !aw && this.options.signDisplay != null ? bie(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23375,21 +23375,21 @@ var _ie = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !ow && this.options.signDisplay != null && (e = {
+ return !aw && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function vie(e, t = {}) {
+function yie(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 (aw.has(r)) return aw.get(r);
+ if (iw.has(r)) return iw.get(r);
let i = new Intl.NumberFormat(e, t);
- return aw.set(r, i), i;
+ return iw.set(r, i), i;
}
-function yie(e, t, n) {
+function bie(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -23403,12 +23403,12 @@ function yie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
-function sw(e) {
+function ow(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, D.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = FS(), s = uS((0, D.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = PS(), s = lS((0, D.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23430,8 +23430,8 @@ function sw(e) {
t,
n,
i
- ])), c = uS((0, D.useCallback)((e, t) => {
- jS(), i.current.didMove && r?.({
+ ])), c = lS((0, D.useCallback)((e, t) => {
+ AS(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23442,7 +23442,7 @@ function sw(e) {
}, [r, i]));
return { moveProps: (0, D.useMemo)(() => {
let e = {}, t = () => {
- AS(), i.current.didMove = !1;
+ kS(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23457,7 +23457,7 @@ function sw(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = Xy(K(e));
+ let a = Yy(K(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -23467,7 +23467,7 @@ function sw(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = Xy(K(e));
+ let o = Yy(K(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -23501,7 +23501,7 @@ function sw(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var cw = {
+var sw = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23513,38 +23513,38 @@ var cw = {
width: "1px",
whiteSpace: "nowrap"
};
-function lw(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = QC({
+function cw(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, D.useState)(!1), { focusWithinProps: a } = ZC({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, D.useMemo)(() => r ? t : t ? {
- ...cw,
+ ...sw,
...t
- } : cw, [r]);
+ } : sw, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function uw(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = lw(e);
+function lw(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = cw(e);
return /*#__PURE__*/ D.createElement(n, q(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function bie(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ew(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Ix(e, t), d = VC({
+function xie(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = $C(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Fx(e, t), d = BC({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ZC({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = XC({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = ES(e, { labelable: !0 }), b = {
+ }), y = TS(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, D.useState)(c);
- return kC(t, e.defaultValue ?? x, l), AC(e, d, t), {
+ return OC(t, e.defaultValue ?? x, l), kC(e, d, t), {
labelProps: h,
inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
@@ -23591,28 +23591,28 @@ function bie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function xie(e = {}) {
- let { locale: t } = vS();
- return (0, D.useMemo)(() => new _ie(t, e), [t, e]);
+function Sie(e = {}) {
+ let { locale: t } = _S();
+ return (0, D.useMemo)(() => new vie(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/utils.mjs
-var dw = /* @__PURE__ */ new WeakMap();
-function fw(e, t) {
- let n = dw.get(e);
+var uw = /* @__PURE__ */ new WeakMap();
+function dw(e, t) {
+ let n = uw.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 Sie(e, t, n) {
- let { labelProps: r, fieldProps: i } = XC(e), a = e.orientation === "vertical";
- dw.set(t, {
+function Cie(e, t, n) {
+ let { labelProps: r, fieldProps: i } = YC(e), a = e.orientation === "vertical";
+ uw.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = vS(), { addGlobalListener: s, removeGlobalListener: c } = FS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = sw({
+ let { direction: o } = _S(), { addGlobalListener: s, removeGlobalListener: c } = PS(), l = (0, D.useRef)(null), u = o === "rtl", d = (0, D.useRef)(null), { moveProps: f } = ow({
onMoveStart() {
d.current = null;
},
@@ -23622,7 +23622,7 @@ function Sie(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 = nw(d.current / s, 0, 1);
+ let e = tw(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -23646,7 +23646,7 @@ function Sie(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(fw(t, 0))?.focus(), sx("keyboard");
+ document.getElementById(dw(t, 0))?.focus(), ox("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -23669,27 +23669,27 @@ function Sie(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => fw(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => dw(t, n)).join(" "),
"aria-live": "off"
}
};
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function Cie(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 } = vS(), { addGlobalListener: m, removeGlobalListener: h } = FS(), g = dw.get(t), { labelProps: _, fieldProps: v } = XC({
+function wie(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 } = _S(), { addGlobalListener: m, removeGlobalListener: h } = PS(), g = uw.get(t), { labelProps: _, fieldProps: v } = YC({
...e,
- id: fw(t, n),
+ id: dw(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, D.useCallback)(() => {
- s.current && Jy(s.current);
+ s.current && qy(s.current);
}, [s]), x = t.focusedThumb === n;
(0, D.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, D.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = Mx({
+ }, { keyboardProps: T } = jx({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -23705,7 +23705,7 @@ function Cie(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = sw({
+ }), { moveProps: E } = ow({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -23716,7 +23716,7 @@ function Cie(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, nw(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, tw(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23724,7 +23724,7 @@ function Cie(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: O } = Ix(q(e, {
+ let { focusableProps: O } = Fx(q(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), k = (0, D.useRef)(void 0), A = (e) => {
@@ -23744,7 +23744,7 @@ function Cie(e, t) {
A(e.changedTouches[0].identifier);
}
});
- return kC(s, t.defaultValues[n], (e) => {
+ return OC(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: q(O, v, {
@@ -23785,42 +23785,42 @@ function Cie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var wie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function pw(e) {
+var Tie = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function fw(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var mw = /* @__PURE__ */ new WeakMap(), hw = [];
-function gw(e, t) {
- let n = Xy(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && wie, 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 pw = /* @__PURE__ */ new WeakMap(), mw = [];
+function hw(e, t) {
+ let n = Yy(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Tie, 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 (tb()) {
+ if (eb()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Qy(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Zy(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 (nb(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (tb(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = KS(Yy(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = GS(Jy(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 = mw.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), mw.set(e, t + 1));
+ let t = pw.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), pw.set(e, t + 1));
};
- hw.length && hw[hw.length - 1].disconnect(), d(i);
+ mw.length && mw[mw.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) => nb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pw(e) ? o.add(e) : e instanceof Element && d(e);
- if (tb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => tb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (eb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23833,11 +23833,11 @@ function gw(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (tb()) for (let e of u) {
+ if (eb()) 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) => nb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pw(e) ? o.add(e) : e instanceof Element && d(e);
- if (tb()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => tb(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fw(e) ? o.add(e) : e instanceof Element && d(e);
+ if (eb()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -23863,59 +23863,59 @@ function gw(e, t) {
p.disconnect();
}
};
- return hw.push(h), () => {
- if (p.disconnect(), tb()) for (let e of m) e.disconnect();
+ return mw.push(h), () => {
+ if (p.disconnect(), eb()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = mw.get(e);
- t != null && (t === 1 ? (l(e, !1), mw.delete(e)) : mw.set(e, t - 1));
+ let t = pw.get(e);
+ t != null && (t === 1 ? (l(e, !1), pw.delete(e)) : pw.set(e, t - 1));
}
- h === hw[hw.length - 1] ? (hw.pop(), hw.length && hw[hw.length - 1].observe()) : hw.splice(hw.indexOf(h), 1);
+ h === mw[mw.length - 1] ? (mw.pop(), mw.length && mw[mw.length - 1].observe()) : mw.splice(mw.indexOf(h), 1);
};
}
-function _w(e) {
- let t = hw[hw.length - 1];
+function gw(e) {
+ let t = mw[mw.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 vw = /* @__PURE__ */ new WeakMap();
-function Tie(e) {
+var _w = /* @__PURE__ */ new WeakMap();
+function Eie(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Eie(e, t) {
- let n = vw.get(e);
+function Die(e, t) {
+ let n = _w.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Tie(t)}`;
+ return `${n.id}-option-${Eie(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function yw(e) {
- return kb() ? e.altKey : e.ctrlKey;
+function vw(e) {
+ return Ob() ? e.altKey : e.ctrlKey;
}
-function bw(e, t) {
+function yw(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 xw = /* @__PURE__ */ new WeakMap();
-function Die(e) {
- let t = Sx();
- return xw.set(e, t), t;
-}
+var bw = /* @__PURE__ */ new WeakMap();
function Oie(e) {
- return xw.get(e);
+ let t = xx();
+ return bw.set(e, t), t;
+}
+function kie(e) {
+ return bw.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var Sw = class {
+var xw = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : bw(this.ref, e);
+ let n = e == null ? null : yw(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -23941,12 +23941,12 @@ var Sw = class {
height: e?.clientHeight ?? 0
};
}
-}, Cw = class {
+}, Sw = 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 Sw(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 Sw(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 xw(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 xw(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -23986,14 +23986,14 @@ var Sw = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = bw(this.ref, e);
+ let t = this.getNextKey(e), n = yw(this.ref, e);
if (t != null) {
- let e = bw(this.ref, t);
+ let e = yw(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = bw(this.ref, r);
+ let e = yw(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24027,7 +24027,7 @@ var Sw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !bC(t)) return this.getFirstKey();
+ if (t && !yC(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24042,7 +24042,7 @@ var Sw = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !bC(t)) return this.getLastKey();
+ if (t && !yC(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);
@@ -24065,184 +24065,184 @@ var Sw = class {
}
return null;
}
-}, ww = {};
-ww = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, Cw = {};
+Cw = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Tw = {};
-Tw = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var ww = {};
+ww = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Ew = {};
-Ew = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var Tw = {};
+Tw = { 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 Dw = {};
-Dw = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Ew = {};
+Ew = { 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 Ow = {};
-Ow = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Dw = {};
+Dw = { 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 kw = {};
-kw = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Ow = {};
+Ow = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Aw = {};
-Aw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var kw = {};
+kw = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var jw = {};
-jw = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Aw = {};
+Aw = { 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 Mw = {};
-Mw = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var jw = {};
+jw = { 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 Nw = {};
-Nw = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Mw = {};
+Mw = { 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 Pw = {};
-Pw = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var Nw = {};
+Nw = { 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 Fw = {};
-Fw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Pw = {};
+Pw = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Iw = {};
-Iw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Fw = {};
+Fw = { 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 Lw = {};
-Lw = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Iw = {};
+Iw = { 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 Rw = {};
-Rw = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Lw = {};
+Lw = { 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 zw = {};
-zw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Rw = {};
+Rw = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Bw = {};
-Bw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var zw = {};
+zw = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Vw = {};
-Vw = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Bw = {};
+Bw = { 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 Hw = {};
-Hw = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Vw = {};
+Vw = { 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 Uw = {};
-Uw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Hw = {};
+Hw = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ww = {};
-Ww = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Uw = {};
+Uw = { 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 Gw = {};
-Gw = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Ww = {};
+Ww = { 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 Kw = {};
-Kw = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Gw = {};
+Gw = { 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 qw = {};
-qw = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Kw = {};
+Kw = { 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 Jw = {};
-Jw = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var qw = {};
+qw = { 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 Yw = {};
-Yw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Jw = {};
+Jw = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Xw = {};
-Xw = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Yw = {};
+Yw = { 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 Zw = {};
-Zw = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Xw = {};
+Xw = { 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 Qw = {};
-Qw = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Zw = {};
+Zw = { 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 $w = {};
-$w = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Qw = {};
+Qw = { 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 eT = {};
-eT = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var $w = {};
+$w = { 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 tT = {};
-tT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var eT = {};
+eT = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var nT = {};
-nT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var tT = {};
+tT = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var rT = {};
-rT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var nT = {};
+nT = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var iT = {};
-iT = {
- "ar-AE": ww,
- "bg-BG": Tw,
- "cs-CZ": Ew,
- "da-DK": Dw,
- "de-DE": Ow,
- "el-GR": kw,
- "en-US": Aw,
- "es-ES": jw,
- "et-EE": Mw,
- "fi-FI": Nw,
- "fr-FR": Pw,
- "he-IL": Fw,
- "hr-HR": Iw,
- "hu-HU": Lw,
- "it-IT": Rw,
- "ja-JP": zw,
- "ko-KR": Bw,
- "lt-LT": Vw,
- "lv-LV": Hw,
- "nb-NO": Uw,
- "nl-NL": Ww,
- "pl-PL": Gw,
- "pt-BR": Kw,
- "pt-PT": qw,
- "ro-RO": Jw,
- "ru-RU": Yw,
- "sk-SK": Xw,
- "sl-SI": Zw,
- "sr-SP": Qw,
- "sv-SE": $w,
- "tr-TR": eT,
- "uk-UA": tT,
- "zh-CN": nT,
- "zh-TW": rT
+var rT = {};
+rT = {
+ "ar-AE": Cw,
+ "bg-BG": ww,
+ "cs-CZ": Tw,
+ "da-DK": Ew,
+ "de-DE": Dw,
+ "el-GR": Ow,
+ "en-US": kw,
+ "es-ES": Aw,
+ "et-EE": jw,
+ "fi-FI": Mw,
+ "fr-FR": Nw,
+ "he-IL": Pw,
+ "hr-HR": Fw,
+ "hu-HU": Iw,
+ "it-IT": Lw,
+ "ja-JP": Rw,
+ "ko-KR": zw,
+ "lt-LT": Bw,
+ "lv-LV": Vw,
+ "nb-NO": Hw,
+ "nl-NL": Uw,
+ "pl-PL": Ww,
+ "pt-BR": Gw,
+ "pt-PT": Kw,
+ "ro-RO": qw,
+ "ru-RU": Jw,
+ "sk-SK": Yw,
+ "sl-SI": Xw,
+ "sr-SP": Zw,
+ "sv-SE": Qw,
+ "tr-TR": $w,
+ "uk-UA": eT,
+ "zh-CN": tT,
+ "zh-TW": nT
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var kie = 500;
-function aT(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kie, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = FS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = BS({
+var Aie = 500;
+function iT(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Aie, accessibilityDescription: s } = e, c = (0, D.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = PS(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = zS({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24250,12 +24250,12 @@ function aT(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Yy(e.target).activeElement !== e.target && Jy(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Jy(e.target).activeElement !== e.target && qy(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 = Xy(e.target);
+ let t = Yy(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -24270,12 +24270,12 @@ function aT(e) {
});
}
});
- return { longPressProps: q(f, OC(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, DC(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Aie(e) {
- let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = aT({
+function jie(e) {
+ let { onContextMenu: t } = e, n = (0, D.useRef)(!1), { longPressProps: r } = iT({
onLongPressStart() {
n.current = !1;
},
@@ -24287,7 +24287,7 @@ function Aie(e) {
});
}
});
- return t ? { contextMenuProps: q(Ob() ? r : {}, {
+ return t ? { contextMenuProps: q(Db() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -24298,7 +24298,7 @@ function Aie(e) {
});
},
onKeyDown(e) {
- if (Tb() && e.ctrlKey && e.key === "Enter") {
+ if (wb() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -24318,13 +24318,13 @@ function Aie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var oT = /* @__PURE__ */ new WeakMap();
-function jie(e) {
+var aT = /* @__PURE__ */ new WeakMap();
+function Mie(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, D.useEffect)(() => !n || r === null ? void 0 : $y(ib(t.current), "scroll", (e) => {
+ (0, D.useEffect)(() => !n || r === null ? void 0 : Qy(rb(t.current), "scroll", (e) => {
let n = K(e);
- if (!t.current || n instanceof Node && !nb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || oT.get(t.current);
+ if (!t.current || n instanceof Node && !tb(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || aT.get(t.current);
i && i();
}, !0), [
n,
@@ -24334,14 +24334,14 @@ function jie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Mie(e, t, n) {
+function Nie(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, D.useEffect)(() => {
- n && n.current && oT.set(n.current, t.close);
+ n && n.current && aT.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Sx();
+ let o = xx();
return {
triggerProps: {
"aria-haspopup": a,
@@ -24354,14 +24354,14 @@ function Mie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Nie(e) {
+function Pie(e) {
return e && e.__esModule ? e.default : e;
}
-function sT(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Sx(), { triggerProps: s, overlayProps: c } = Mie({ type: r }, t, n), l = (e, n, r = "first") => {
+function oT(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = xx(), { triggerProps: s, overlayProps: c } = Nie({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Mx({
+ }, { keyboardProps: u } = jx({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -24373,7 +24373,7 @@ function sT(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = wS(Nie(iT), "@react-aria/menu"), { longPressProps: f } = aT({
+ }), d = CS(Pie(rT), "@react-aria/menu"), { longPressProps: f } = iT({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24385,14 +24385,14 @@ function sT(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (Jy(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (qy(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (Jy(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (qy(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Aie({ onContextMenu(e) {
+ let { contextMenuProps: m } = jie({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -24437,8 +24437,8 @@ function sT(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var cT = 1e3;
-function lT(e) {
+var sT = 1e3;
+function cT(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, D.useRef)({
search: "",
timeout: void 0
@@ -24457,12 +24457,12 @@ function lT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, cT);
+ }, sT);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Pie(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !nb(e.currentTarget, K(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Fie(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !tb(e.currentTarget, K(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();
@@ -24473,34 +24473,34 @@ function lT(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, cT);
+ }, sT);
}
} : void 0
} };
}
-function Pie(e) {
+function Fie(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function uT(e, t) {
+function lT(e, t) {
let n = (0, D.useRef)(!0), r = (0, D.useRef)(null);
- gb(() => (n.current = !0, () => {
+ hb(() => (n.current = !0, () => {
n.current = !1;
- }), []), gb(() => {
+ }), []), hb(() => {
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 dT(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 } = vS(), _ = Ib(), v = (e, n, i) => {
+function uT(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 } = _S(), _ = Fb(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !yw(e)) {
+ if (t.isLink(n) && m === "selection" && l && !vw(e)) {
(0, Tt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = bw(r, n), o = t.getItemProps(n);
+ let a = yw(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24512,7 +24512,7 @@ function dT(e) {
t.extendSelection(n);
return;
}
- if (l && !yw(e)) {
+ if (l && !vw(e)) {
t.replaceSelection(n);
return;
}
@@ -24539,9 +24539,9 @@ function dT(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, cS(e));
+ let r = n.getFirstKey(t.focusedKey, sS(e));
if (t.setFocusedKey(r), r != null) {
- if (cS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (sS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24573,9 +24573,9 @@ function dT(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, cS(e));
+ let r = n.getLastKey(t.focusedKey, sS(e));
if (t.setFocusedKey(r), r != null) {
- if (cS(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (sS(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24606,12 +24606,12 @@ function dT(e) {
else return !1;
}, A = () => {
if (!f && r.current) {
- let e = dC(r.current, { tabbable: !0 }), t, n;
+ let e = uC(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = rb();
- t && (!ab(t) || i && !mb(i)) && Jy(t);
+ let i = nb();
+ t && (!ib(t) || i && !pb(i)) && qy(t);
}
return {
shouldContinuePropagation: !0,
@@ -24621,11 +24621,11 @@ function dT(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), M = (e, t) => ({
- [Tb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [wb() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Tb() ? e + "+Alt" : e + "+Control"]: t,
+ [wb() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = Mx({
+ }), { keyboardProps: N } = jx({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
@@ -24635,7 +24635,7 @@ function dT(e) {
...M("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: P } = Mx({ shortcuts: {
+ }), { keyboardProps: P } = jx({ shortcuts: {
...M("Home", x),
...M("End", w),
"Mod+A": O,
@@ -24646,7 +24646,7 @@ function dT(e) {
top: 0,
left: 0
});
- dS(p, "scroll", () => {
+ uS(p, "scroll", () => {
ee.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -24654,11 +24654,11 @@ function dT(e) {
});
let F = (e) => {
if (t.isFocused) {
- nb(e.currentTarget, K(e)) || t.setFocused(!1);
+ tb(e.currentTarget, K(e)) || t.setFocused(!1);
return;
}
- if (!nb(e.currentTarget, K(e))) return;
- let i = ox();
+ if (!tb(e.currentTarget, K(e))) return;
+ let i = ax();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -24669,27 +24669,27 @@ function dT(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = bw(r, t.focusedKey);
- e instanceof HTMLElement && (!ab(e) && !d && Jy(e), (i === "keyboard" || h && i === "virtual") && TC(e, { containingElement: r.current }));
+ let e = yw(r, t.focusedKey);
+ e instanceof HTMLElement && (!ib(e) && !d && qy(e), (i === "keyboard" || h && i === "virtual") && wC(e, { containingElement: r.current }));
}
}, te = (e) => {
- nb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ tb(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, I = (0, D.useRef)(!1);
- dS(r, Pre, d ? (e) => {
+ uS(r, Fre, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- uT(() => {
+ lT(() => {
if (I.current) {
if (ne == null) {
- let e = rb();
- Zx(r.current), Qx(e, null), t.collection.size > 0 && (I.current = !1);
+ let e = nb();
+ Xx(r.current), Zx(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(ne), I.current = !1;
}
- }, [ne, t.collection.size]), uT(() => {
+ }, [ne, t.collection.size]), lT(() => {
t.collection.size > 0 && (I.current = !1);
- }, [t.focusedKey]), dS(r, Nre, d ? (e) => {
+ }, [t.focusedKey]), uS(r, Pre, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let re = (0, D.useRef)(i), ie = (0, D.useRef)(!1);
@@ -24704,22 +24704,22 @@ function dT(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && _x(r.current), t.collection.size > 0 && (re.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 && gx(r.current), t.collection.size > 0 && (re.current = !1, ie.current = !0);
}
});
let ae = (0, D.useRef)(t.focusedKey), oe = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = ox(), n = bw(r, t.focusedKey);
+ let e = ax(), n = yw(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (CC(p.current, n), e !== "virtual" && TC(n, { containingElement: r.current }));
+ p.current && (SC(p.current, n), e !== "virtual" && wC(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && _x(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && gx(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, D.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), dS(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), uS(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -24729,14 +24729,14 @@ function dT(e) {
onMouseDown(e) {
p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = lT({
+ }, { typeSelectProps: ce } = cT({
keyboardDelegate: n,
selectionManager: t
});
u || (se = q(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Die(t.collection);
+ let ue = Oie(t.collection);
return { collectionProps: q(se, {
tabIndex: le,
"data-collection": ue
@@ -24744,13 +24744,13 @@ function dT(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function fT(e, t) {
+function dT(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function pT(e) {
- return mT(e, 0);
+function fT(e) {
+ return pT(e, 0);
}
-function mT(e, t) {
+function pT(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -24758,112 +24758,112 @@ function mT(e, t) {
n++;
}
}
-function hT(e) {
+function mT(e) {
let t;
for (let n of e) t = n;
return t;
}
-function gT(e, t, n) {
+function hT(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [..._T(e, t), t], i = [..._T(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...gT(e, t), t], i = [...gT(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 _T(e, t) {
+function gT(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 vT = /* @__PURE__ */ new WeakMap();
-function yT(e) {
- let t = vT.get(e);
+var _T = /* @__PURE__ */ new WeakMap();
+function vT(e) {
+ let t = _T.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(fT(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(dT(i, e)) : i.type === "item" && n++;
};
- return r(e), vT.set(e, n), n;
+ return r(e), _T.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var bT = /* @__PURE__ */ new Map();
-function xT(e) {
- let { locale: t } = vS(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (bT.has(n)) return bT.get(n);
+var yT = /* @__PURE__ */ new Map();
+function bT(e) {
+ let { locale: t } = _S(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (yT.has(n)) return yT.get(n);
let r = new Intl.Collator(t, e);
- return bT.set(n, r), r;
+ return yT.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Fie = /*#__PURE__*/ D.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, D.useRef)(!1), i = (0, D.useContext)(PS), a = q(i || {}, {
+var Iie = /*#__PURE__*/ D.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, D.useRef)(!1), i = (0, D.useContext)(NS), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Nx(n || i?.ref), Px(i, a.ref), (0, D.useEffect)(() => {
+ return a.ref = Mx(n || i?.ref), Nx(i, a.ref), (0, D.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ D.createElement(PS.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ D.createElement(NS.Provider, { value: a }, e);
});
-function Iie({ children: e }) {
+function Lie({ children: e }) {
let t = (0, D.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ D.createElement(PS.Provider, { value: t }, e);
+ return /*#__PURE__*/ D.createElement(NS.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ST = /*#__PURE__*/ (0, D.createContext)({});
-function CT(e) {
- let { getContainer: t } = e, { getContainer: n } = wT();
- return /*#__PURE__*/ D.createElement(ST.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var xT = /*#__PURE__*/ (0, D.createContext)({});
+function ST(e) {
+ let { getContainer: t } = e, { getContainer: n } = CT();
+ return /*#__PURE__*/ D.createElement(xT.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function wT() {
- return (0, D.useContext)(ST) ?? {};
+function CT() {
+ return (0, D.useContext)(xT) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var TT = /*#__PURE__*/ D.createContext(null);
-function ET(e) {
- let t = Wb(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
+var wT = /*#__PURE__*/ D.createContext(null);
+function TT(e) {
+ let t = Ub(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = wT();
+ }), [i, a]), { getContainer: s } = CT();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(XS, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ D.createElement(YS, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ D.createElement(TT.Provider, { value: o }, /*#__PURE__*/ D.createElement(Iie, null, /*#__PURE__*/ D.createElement(Fx.Provider, { value: null }, c))), /*#__PURE__*/ Tt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ D.createElement(wT.Provider, { value: o }, /*#__PURE__*/ D.createElement(Lie, null, /*#__PURE__*/ D.createElement(Px.Provider, { value: null }, c))), /*#__PURE__*/ Tt.createPortal(c, n);
}
-function DT() {
- let e = (0, D.useContext)(TT)?.setContain;
- gb(() => {
+function ET() {
+ let e = (0, D.useContext)(wT)?.setContain;
+ hb(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Lie(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = Cx();
+function Rie(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = Sx();
i = e["aria-label"] ? void 0 : i;
- let a = Cx();
+ let a = Sx();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, D.useRef)(!1);
(0, D.useEffect)(() => {
- if (!r && t.current && !ab(t.current)) {
- _x(t.current);
+ if (!r && t.current && !ib(t.current)) {
+ gx(t.current);
let e = setTimeout(() => {
- (rb() === t.current || rb() === document.body) && (o.current = !0, t.current && (t.current.blur(), _x(t.current)), o.current = !1);
+ (nb() === t.current || nb() === document.body) && (o.current = !0, t.current && (t.current.blur(), gx(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), DT(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
+ }, [t, r]), ET(), (0, D.useRef)(!1), (0, D.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...ES(e, { labelable: !0 }),
+ ...TS(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -24878,23 +24878,23 @@ function Lie(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function OT(e = {}) {
+function DT(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, D.useRef)({
isFocused: !1,
- isFocusVisible: t || ax()
+ isFocusVisible: t || ix()
}), [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, D.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, D.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = ax(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = ix(), o(e), l();
}, [l]);
- ux((e) => {
+ lx((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Ox({
+ let { focusProps: d } = Dx({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = QC({
+ }), { focusWithinProps: f } = ZC({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -24906,42 +24906,42 @@ function OT(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Rie(e = {}) {
- let { locale: t } = vS();
+function zie(e = {}) {
+ let { locale: t } = _S();
return (0, D.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var kT = !1, AT = 0;
-function zie() {
- kT = !0, setTimeout(() => {
- kT = !1;
+var OT = !1, kT = 0;
+function Bie() {
+ OT = !0, setTimeout(() => {
+ OT = !1;
}, 500);
}
-function jT(e) {
- e.pointerType === "touch" && zie();
+function AT(e) {
+ e.pointerType === "touch" && Bie();
}
-function Bie() {
- let e = Yy(null);
- if (e !== void 0) return AT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jT), AT++, () => {
- AT--, !(AT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jT);
+function Vie() {
+ let e = Jy(null);
+ if (e !== void 0) return kT === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", AT), kT++, () => {
+ kT--, !(kT > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", AT);
};
}
-function MT(e) {
+function jT(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, D.useState)(!1), s = (0, D.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, D.useEffect)(Bie, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = FS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
+ (0, D.useEffect)(Vie, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = PS(), { hoverProps: u, triggerHoverEnd: d } = (0, D.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !nb(e.currentTarget, K(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !tb(e.currentTarget, K(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(Yy(K(e)), "pointerover", (e) => {
- s.isHovered && s.target && !nb(s.target, K(e)) && a(e, e.pointerType);
+ s.target = l, c(Jy(K(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !tb(s.target, K(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -24956,9 +24956,9 @@ function MT(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- kT && t.pointerType === "mouse" || e(t, t.pointerType);
+ OT && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && nb(e.currentTarget, K(e)) && a(e, e.pointerType);
+ !i && tb(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -24981,22 +24981,22 @@ function MT(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Vie(e) {
+function Hie(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, D.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = uS((e) => {
- n && NT(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = uS((e) => {
+ }), o = lS((e) => {
+ n && MT(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = lS((e) => {
n && n(e);
});
(0, D.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = Yy(n);
+ let n = t.current, i = Jy(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && NT(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && MT(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);
@@ -25004,30 +25004,30 @@ function Vie(e) {
}
}, [t, r]);
}
-function NT(e, t) {
+function MT(e, t) {
if (e.button > 0) return !1;
let n = K(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !nb(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !tb(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 PT = /* @__PURE__ */ new WeakMap();
-function FT(e, t) {
- let { id: n } = PT.get(e) ?? {};
+var NT = /* @__PURE__ */ new WeakMap();
+function PT(e, t) {
+ let { id: n } = NT.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Hie(t)}`;
+ return `${n}-${Uie(t)}`;
}
-function Hie(e) {
+function Uie(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var IT = {};
-IT = {
+var FT = {};
+FT = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25041,8 +25041,8 @@ IT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var LT = {};
-LT = {
+var IT = {};
+IT = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25056,8 +25056,8 @@ LT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var RT = {};
-RT = {
+var LT = {};
+LT = {
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",
@@ -25071,8 +25071,8 @@ RT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var zT = {};
-zT = {
+var RT = {};
+RT = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25086,8 +25086,8 @@ zT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var BT = {};
-BT = {
+var zT = {};
+zT = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25101,8 +25101,8 @@ BT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var VT = {};
-VT = {
+var BT = {};
+BT = {
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: "Επιλογή",
@@ -25116,8 +25116,8 @@ VT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var HT = {};
-HT = {
+var VT = {};
+VT = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25131,8 +25131,8 @@ HT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var UT = {};
-UT = {
+var HT = {};
+HT = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25146,8 +25146,8 @@ UT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var WT = {};
-WT = {
+var UT = {};
+UT = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25161,8 +25161,8 @@ WT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var GT = {};
-GT = {
+var WT = {};
+WT = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25176,8 +25176,8 @@ GT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var KT = {};
-KT = {
+var GT = {};
+GT = {
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",
@@ -25191,8 +25191,8 @@ KT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var qT = {};
-qT = {
+var KT = {};
+KT = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25206,8 +25206,8 @@ qT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var JT = {};
-JT = {
+var qT = {};
+qT = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25221,8 +25221,8 @@ JT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var YT = {};
-YT = {
+var JT = {};
+JT = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25236,8 +25236,8 @@ YT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var XT = {};
-XT = {
+var YT = {};
+YT = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25251,8 +25251,8 @@ XT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var ZT = {};
-ZT = {
+var XT = {};
+XT = {
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: "選択",
@@ -25266,8 +25266,8 @@ ZT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var QT = {};
-QT = {
+var ZT = {};
+ZT = {
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: "선택",
@@ -25281,8 +25281,8 @@ QT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var $T = {};
-$T = {
+var QT = {};
+QT = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25296,8 +25296,8 @@ $T = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var eE = {};
-eE = {
+var $T = {};
+$T = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25311,8 +25311,8 @@ eE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var tE = {};
-tE = {
+var eE = {};
+eE = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25326,8 +25326,8 @@ tE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var nE = {};
-nE = {
+var tE = {};
+tE = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25341,8 +25341,8 @@ nE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var rE = {};
-rE = {
+var nE = {};
+nE = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25356,8 +25356,8 @@ rE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var iE = {};
-iE = {
+var rE = {};
+rE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25371,8 +25371,8 @@ iE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var aE = {};
-aE = {
+var iE = {};
+iE = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25386,8 +25386,8 @@ aE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var oE = {};
-oE = {
+var aE = {};
+aE = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25401,8 +25401,8 @@ oE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var sE = {};
-sE = {
+var oE = {};
+oE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25416,8 +25416,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var cE = {};
-cE = {
+var sE = {};
+sE = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25431,8 +25431,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var lE = {};
-lE = {
+var cE = {};
+cE = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25446,8 +25446,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var uE = {};
-uE = {
+var lE = {};
+lE = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25461,8 +25461,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var dE = {};
-dE = {
+var uE = {};
+uE = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25476,8 +25476,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var fE = {};
-fE = {
+var dE = {};
+dE = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25491,8 +25491,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var pE = {};
-pE = {
+var fE = {};
+fE = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25506,8 +25506,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var mE = {};
-mE = {
+var pE = {};
+pE = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25521,8 +25521,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var hE = {};
-hE = {
+var mE = {};
+mE = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25536,55 +25536,55 @@ hE = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var gE = {};
-gE = {
- "ar-AE": IT,
- "bg-BG": LT,
- "cs-CZ": RT,
- "da-DK": zT,
- "de-DE": BT,
- "el-GR": VT,
- "en-US": HT,
- "es-ES": UT,
- "et-EE": WT,
- "fi-FI": GT,
- "fr-FR": KT,
- "he-IL": qT,
- "hr-HR": JT,
- "hu-HU": YT,
- "it-IT": XT,
- "ja-JP": ZT,
- "ko-KR": QT,
- "lt-LT": $T,
- "lv-LV": eE,
- "nb-NO": tE,
- "nl-NL": nE,
- "pl-PL": rE,
- "pt-BR": iE,
- "pt-PT": aE,
- "ro-RO": oE,
- "ru-RU": sE,
- "sk-SK": cE,
- "sl-SI": lE,
- "sr-SP": uE,
- "sv-SE": dE,
- "tr-TR": fE,
- "uk-UA": pE,
- "zh-CN": mE,
- "zh-TW": hE
+var hE = {};
+hE = {
+ "ar-AE": FT,
+ "bg-BG": IT,
+ "cs-CZ": LT,
+ "da-DK": RT,
+ "de-DE": zT,
+ "el-GR": BT,
+ "en-US": VT,
+ "es-ES": HT,
+ "et-EE": UT,
+ "fi-FI": WT,
+ "fr-FR": GT,
+ "he-IL": KT,
+ "hr-HR": qT,
+ "hu-HU": JT,
+ "it-IT": YT,
+ "ja-JP": XT,
+ "ko-KR": ZT,
+ "lt-LT": QT,
+ "lv-LV": $T,
+ "nb-NO": eE,
+ "nl-NL": tE,
+ "pl-PL": nE,
+ "pt-BR": rE,
+ "pt-PT": iE,
+ "ro-RO": aE,
+ "ru-RU": oE,
+ "sk-SK": sE,
+ "sl-SI": cE,
+ "sr-SP": lE,
+ "sv-SE": uE,
+ "tr-TR": dE,
+ "uk-UA": fE,
+ "zh-CN": pE,
+ "zh-TW": mE
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Uie(e) {
+function Wie(e) {
return e && e.__esModule ? e.default : e;
}
-function _E(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = wS(Uie(gE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
+function gE(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = CS(Wie(hE), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, D.useRef)(i), o = (0, D.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = vE(i, a.current), o = vE(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = _E(i, a.current), o = _E(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)) {
@@ -25604,7 +25604,7 @@ function _E(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 && _C(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 && gC(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25615,7 +25615,7 @@ function _E(e, t) {
n,
r
]);
- yC(() => {
+ vC(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25623,7 +25623,7 @@ function _E(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function vE(e, t) {
+function _E(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);
@@ -25631,13 +25631,13 @@ function vE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function yE(e, t) {
+function vE(e, t) {
let n = t?.isDisabled, [r, i] = (0, D.useState)(!1);
- return gb(() => {
+ return hb(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = dC(e.current, { tabbable: !0 });
+ let t = uC(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25656,12 +25656,12 @@ function yE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Wie(e) {
+function Gie(e) {
return e && e.__esModule ? e.default : e;
}
-function bE(e) {
- let t = wS(Wie(gE), "@react-aria/grid"), n = cx(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return OC((0, D.useMemo)(() => {
+function yE(e) {
+ let t = CS(Gie(hE), "@react-aria/grid"), n = sx(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return DC((0, D.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;
}, [
@@ -25674,11 +25674,11 @@ function bE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function xE(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = xT({
+function bE(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = bT({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new Cw({
+ }), l = t.disabledBehavior, u = (0, D.useMemo)(() => a || new Sw({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25695,7 +25695,7 @@ function xE(e) {
c,
l,
s
- ]), { collectionProps: d } = dT({
+ ]), { collectionProps: d } = uT({
...e,
ref: i,
selectionManager: t,
@@ -25705,10 +25705,10 @@ function xE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Gie(e, t, n) {
+function Kie(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 } = xE({
+ let { listProps: f } = bE({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25723,31 +25723,31 @@ function Gie(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = Sx(e.id);
- PT.set(t, {
+ }), p = xx(e.id);
+ NT.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = bE({
+ let m = yE({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = yE(n, { isDisabled: t.collection.size !== 0 }), g = q(ES(e, { labelable: !0 }), {
+ }), h = vE(n, { isDisabled: t.collection.size !== 0 }), g = q(TS(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), _E({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), gE({}, t), { gridProps: g };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function SE(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 = Ib();
- t = Sx(t);
+function xE(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 = Fb();
+ t = xx(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && yw(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && vw(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -25758,11 +25758,11 @@ function SE(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 && (cS(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 && (sS(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, D.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Zx(i.current) : s ? s() : rb() !== i.current && i.current && _x(i.current));
+ r === n.focusedKey && n.isFocused && (o ? Xx(i.current) : s ? s() : nb() !== i.current && i.current && gx(i.current));
}, [
i,
r,
@@ -25790,22 +25790,22 @@ function SE(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || wE(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || CE(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !CE(e.key)) return;
+ if (e.pointerType === "keyboard" && !SE(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || wE(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || CE(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && CE(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && SE(e.key) || e.pointerType === "mouse" && E.current) && (S ? k(e) : v && p(e));
});
- let j = Oie(n.collection);
+ let j = kie(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = q(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -25820,10 +25820,10 @@ function SE(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = vx(A[e], O[e]));
- let { pressProps: M, isPressed: N } = BS(A), P = x ? (e) => {
+ ]) O[e] && (A[e] = _x(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = zS(A), P = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: ee } = aT({
+ } : void 0, { longPressProps: ee } = iT({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -25831,7 +25831,7 @@ function SE(e) {
}), F = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, te = d !== "none" && n.isLink(r) ? (e) => {
- Rb.isOpening || e.preventDefault();
+ Lb.isOpening || e.preventDefault();
} : void 0, I = q(m, v || b || o && !c ? M : {}, w ? ee : {}, {
onDoubleClick: P,
onDragStartCapture: F,
@@ -25844,7 +25844,7 @@ function SE(e) {
if (e != null) return e !== j;
t = t.parentElement;
}
- return mb(e);
+ return pb(e);
}, re = I.onPointerDown;
I.onPointerDown = (e) => {
let t = K(e);
@@ -25864,15 +25864,15 @@ function SE(e) {
hasAction: S
};
}
-function CE(e) {
+function SE(e) {
return e === "Enter";
}
-function wE(e) {
+function CE(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var TE = {
+var wE = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -25882,18 +25882,18 @@ var TE = {
rtl: "ArrowRight"
}
};
-function Kie(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = vS(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = PT.get(t), f = Cx(), p = (0, D.useRef)(null), m = () => {
+function qie(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = _S(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = NT.get(t), f = Sx(), p = (0, D.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (ab(n.current) && n.current !== rb(Yy(n.current))) return;
- let e = dC(n.current, { tabbable: !0 }).firstChild();
+ if (ib(n.current) && n.current !== nb(Jy(n.current))) return;
+ let e = uC(n.current, { tabbable: !0 }).firstChild();
if (e) {
- _x(e), TC(e, { containingElement: xC(e) });
+ gx(e), wC(e, { containingElement: bC(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !ab(n.current)) && _x(n.current);
+ (p.current != null && r.key !== p.current || !ib(n.current)) && gx(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -25903,7 +25903,7 @@ function Kie(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = qie(e, t.collection);
+ let n = Jie(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;
@@ -25914,75 +25914,75 @@ function Kie(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = SE({
+ let { itemProps: v, ...y } = xE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? vx(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? _x(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = rb(Yy(n.current));
- if (!nb(e.currentTarget, K(e)) || !n.current || !i) return;
- let a = dC(n.current);
- if (a.currentNode = i, !EE(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = nb(Jy(n.current));
+ if (!tb(e.currentTarget, K(e)) || !n.current || !i) return;
+ let a = uC(n.current);
+ if (a.currentNode = i, !TE(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(), _x(t), TC(t, { containingElement: xC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") _x(n.current), TC(n.current, { containingElement: xC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), gx(t), wC(t, { containingElement: bC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") gx(n.current), wC(n.current, { containingElement: bC(n.current) });
else {
a.currentNode = n.current;
- let e = DE(a);
- e && (_x(e), TC(e, { containingElement: xC(n.current) }));
+ let e = EE(a);
+ e && (gx(e), wC(e, { containingElement: bC(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), _x(t), TC(t, { containingElement: xC(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") _x(n.current), TC(n.current, { containingElement: xC(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), gx(t), wC(t, { containingElement: bC(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") gx(n.current), wC(n.current, { containingElement: bC(n.current) });
else {
a.currentNode = n.current;
- let e = DE(a);
- e && (_x(e), TC(e, { containingElement: xC(n.current) }));
+ let e = EE(a);
+ e && (gx(e), wC(e, { containingElement: bC(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && nb(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && tb(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && nb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && rb(Yy(n.current)) === n.current && m();
- }) : ax() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && tb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && nb(Jy(n.current)) === n.current && m();
+ }) : ix() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = rb(Yy(n.current));
- if (nb(e.currentTarget, K(e)) && n.current && i) {
+ let i = nb(Jy(n.current));
+ if (tb(e.currentTarget, K(e)) && n.current && i) {
if (u === "tab") {
if (K(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (EE(e, t, r, g, s, i, n.current, o)) return;
+ if (TE(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = dC(n.current, { tabbable: !0 });
+ let t = uC(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = zb(r.props), w = q(v, y.hasAction ? C : {}, {
+ }, C = Rb(r.props), w = q(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) ? `${FT(t, r.key)} ${f}` : void 0,
- id: FT(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${PT(t, r.key)} ${f}` : void 0,
+ id: PT(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -26003,37 +26003,37 @@ function Kie(e, t, n) {
...y
};
}
-function EE(e, t, n, r, i, a, o, s) {
+function TE(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === TE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === TE.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === wE.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === wE.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 DE(e) {
+function EE(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function qie(e, t) {
+function Jie(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 Jie(e) {
+function Yie(e) {
return e && e.__esModule ? e.default : e;
}
-function OE(e, t) {
- let { key: n } = e, r = t.selectionManager, i = Sx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function DE(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = xx(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": wS(Jie(gE), "@react-aria/grid").format("select"),
+ "aria-label": CS(Yie(hE), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -26041,31 +26041,31 @@ function OE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Yie(e, t) {
- let { key: n } = e, { checkboxProps: r } = OE(e, t);
+function Xie(e, t) {
+ let { key: n } = e, { checkboxProps: r } = DE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${FT(t, n)}`
+ "aria-labelledby": `${r.id} ${PT(t, n)}`
} };
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Xie(e, t, n) {
- let r = ES(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Zie(e, t, n) {
+ let r = TS(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 } = xE({
+ let { listProps: s } = bE({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = QC({
+ }), { focusWithinProps: c } = ZC({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Sx(e.id);
- vw.set(t, {
+ }), l = xx(e.id);
+ _w.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26075,7 +26075,7 @@ function Xie(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = XC({
+ let { labelProps: u, fieldProps: d } = YC({
...e,
id: l,
labelElementType: "span"
@@ -26091,8 +26091,8 @@ function Xie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Zie(e) {
- let { heading: t, "aria-label": n } = e, r = Sx();
+function Qie(e) {
+ let { heading: t, "aria-label": n } = e, r = xx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26111,8 +26111,8 @@ function Zie(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Qie(e, t, n) {
- let { key: r } = e, i = vw.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 = Cx(), f = Cx(), p = {
+function $ie(e, t, n) {
+ let { key: r } = e, i = _w.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 = Sx(), f = Sx(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26122,9 +26122,9 @@ function Qie(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"] = yT(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = vT(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Eie(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = SE({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Die(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = xE({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26133,18 +26133,18 @@ function Qie(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? vx(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? _x(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = MT({
+ }), { hoverProps: S } = jT({
isDisabled: a || !c,
onHoverStart() {
- ax() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ ix() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = ES(m?.props);
+ }), C = TS(m?.props);
delete C.id;
- let w = Bb(m?.props);
+ let w = zb(m?.props);
return {
optionProps: {
...p,
@@ -26154,7 +26154,7 @@ function Qie(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && ax(),
+ isFocusVisible: y && t.selectionManager.isFocused && ix(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -26164,13 +26164,13 @@ function Qie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var kE = /* @__PURE__ */ new WeakMap();
+var OE = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function $ie(e, t, n) {
+function eae(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = ES(e, { labelable: !0 }), { listProps: c } = xE({
+ let s = TS(e, { labelable: !0 }), { listProps: c } = bE({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26179,7 +26179,7 @@ function $ie(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return kE.set(t, {
+ return OE.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -26196,15 +26196,15 @@ function $ie(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function eae(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), O = e.isSelected ?? C.isSelected(i), k = kE.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = Ib(), N = () => {
+function tae(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), O = e.isSelected ?? C.isSelected(i), k = OE.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = Fb(), N = () => {
if (!w && (A?.props?.onAction ? A.props.onAction() : e.onAction && e.onAction(i), k.onAction)) {
let e = k.onAction;
e(i, A?.value);
}
}, P = "menuitem";
w || (C.selectionMode === "single" ? P = "menuitemradio" : C.selectionMode === "multiple" && (P = "menuitemcheckbox"));
- let ee = Cx(), F = Cx(), te = Cx(), I = {
+ let ee = Sx(), F = Sx(), te = Sx(), I = {
id: r,
"aria-disabled": E || void 0,
role: P,
@@ -26221,17 +26221,17 @@ function eae(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = O), s) {
let e = Number(A?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = yT(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = vT(t.collection);
}
let ne = (0, D.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
}, ie = (0, D.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (ne.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), N(), Jne(e, M, A.props.href, A?.props.routerOptions);
+ m?.(e), N(), Yne(e, M, A.props.href, A?.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, j && !w && t && j(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = SE({
+ }, { itemProps: se, isFocused: ce } = xE({
id: r,
selectionManager: C,
key: i,
@@ -26240,27 +26240,27 @@ function eae(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: k.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = BS({
+ }), { pressProps: le, isPressed: ue } = zS({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = MT({
+ }), { hoverProps: de } = jT({
isDisabled: E,
onHoverStart(e) {
- !ax() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !ix() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = Mx({
+ }), { keyboardProps: fe } = jx({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, K(e).click(), sx("keyboard");
+ }, K(e).click(), ox("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -26268,8 +26268,8 @@ function eae(e, t, n) {
key: "Enter"
};
let t = K(e);
- if (t.tagName !== "A") t.click(), sx("keyboard");
- else return sx("keyboard"), {
+ if (t.tagName !== "A") t.click(), ox("keyboard");
+ else return ox("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -26277,13 +26277,13 @@ function eae(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = Ix({
+ }), { focusableProps: pe } = Fx({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = ES(A?.props);
+ }, n), me = TS(A?.props);
delete me.id;
- let he = Bb(A?.props);
+ let he = zb(A?.props);
return {
menuItemProps: {
...I,
@@ -26298,7 +26298,7 @@ function eae(e, t, n) {
descriptionProps: { id: F },
keyboardShortcutProps: { id: te },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && ax() && !T,
+ isFocusVisible: ce && C.isFocused && ix() && !T,
isSelected: O,
isPressed: ue,
isDisabled: E
@@ -26306,8 +26306,8 @@ function eae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function tae(e) {
- let { heading: t, "aria-label": n } = e, r = Sx();
+function nae(e) {
+ let { heading: t, "aria-label": n } = e, r = xx();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26323,15 +26323,15 @@ function tae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function nae() {
+function rae() {
return window.ResizeObserver !== void 0;
}
-function AE(e) {
- let { ref: t, box: n, onResize: r } = e, i = uS(r);
+function kE(e) {
+ let { ref: t, box: n, onResize: r } = e, i = lS(r);
(0, D.useEffect)(() => {
let e = t?.current;
if (e) {
- if (nae()) {
+ if (rae()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -26347,189 +26347,189 @@ function AE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var jE = {};
-jE = { dismiss: "تجاهل" };
+var AE = {};
+AE = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var ME = {};
-ME = { dismiss: "Отхвърляне" };
+var jE = {};
+jE = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var NE = {};
-NE = { dismiss: "Odstranit" };
+var ME = {};
+ME = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var PE = {};
-PE = { dismiss: "Luk" };
+var NE = {};
+NE = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var FE = {};
-FE = { dismiss: "Schließen" };
+var PE = {};
+PE = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var IE = {};
-IE = { dismiss: "Απόρριψη" };
+var FE = {};
+FE = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var LE = {};
-LE = { dismiss: "Dismiss" };
+var IE = {};
+IE = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var RE = {};
-RE = { dismiss: "Descartar" };
+var LE = {};
+LE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var zE = {};
-zE = { dismiss: "Lõpeta" };
+var RE = {};
+RE = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var BE = {};
-BE = { dismiss: "Hylkää" };
+var zE = {};
+zE = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var VE = {};
-VE = { dismiss: "Rejeter" };
+var BE = {};
+BE = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var HE = {};
-HE = { dismiss: "התעלם" };
+var VE = {};
+VE = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var UE = {};
-UE = { dismiss: "Odbaci" };
+var HE = {};
+HE = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var WE = {};
-WE = { dismiss: "Elutasítás" };
+var UE = {};
+UE = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var GE = {};
-GE = { dismiss: "Ignora" };
+var WE = {};
+WE = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var KE = {};
-KE = { dismiss: "閉じる" };
+var GE = {};
+GE = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var qE = {};
-qE = { dismiss: "무시" };
+var KE = {};
+KE = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var JE = {};
-JE = { dismiss: "Atmesti" };
+var qE = {};
+qE = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var YE = {};
-YE = { dismiss: "Nerādīt" };
+var JE = {};
+JE = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var XE = {};
-XE = { dismiss: "Lukk" };
+var YE = {};
+YE = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var ZE = {};
-ZE = { dismiss: "Negeren" };
+var XE = {};
+XE = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var QE = {};
-QE = { dismiss: "Zignoruj" };
+var ZE = {};
+ZE = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var $E = {};
-$E = { dismiss: "Descartar" };
+var QE = {};
+QE = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var eD = {};
-eD = { dismiss: "Dispensar" };
+var $E = {};
+$E = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var tD = {};
-tD = { dismiss: "Revocare" };
+var eD = {};
+eD = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var nD = {};
-nD = { dismiss: "Пропустить" };
+var tD = {};
+tD = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var rD = {};
-rD = { dismiss: "Zrušiť" };
+var nD = {};
+nD = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var iD = {};
-iD = { dismiss: "Opusti" };
+var rD = {};
+rD = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var aD = {};
-aD = { dismiss: "Odbaci" };
+var iD = {};
+iD = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var oD = {};
-oD = { dismiss: "Avvisa" };
+var aD = {};
+aD = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var sD = {};
-sD = { dismiss: "Kapat" };
+var oD = {};
+oD = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var cD = {};
-cD = { dismiss: "Скасувати" };
+var sD = {};
+sD = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var lD = {};
-lD = { dismiss: "取消" };
+var cD = {};
+cD = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var uD = {};
-uD = { dismiss: "關閉" };
+var lD = {};
+lD = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var dD = {};
-dD = {
- "ar-AE": jE,
- "bg-BG": ME,
- "cs-CZ": NE,
- "da-DK": PE,
- "de-DE": FE,
- "el-GR": IE,
- "en-US": LE,
- "es-ES": RE,
- "et-EE": zE,
- "fi-FI": BE,
- "fr-FR": VE,
- "he-IL": HE,
- "hr-HR": UE,
- "hu-HU": WE,
- "it-IT": GE,
- "ja-JP": KE,
- "ko-KR": qE,
- "lt-LT": JE,
- "lv-LV": YE,
- "nb-NO": XE,
- "nl-NL": ZE,
- "pl-PL": QE,
- "pt-BR": $E,
- "pt-PT": eD,
- "ro-RO": tD,
- "ru-RU": nD,
- "sk-SK": rD,
- "sl-SI": iD,
- "sr-SP": aD,
- "sv-SE": oD,
- "tr-TR": sD,
- "uk-UA": cD,
- "zh-CN": lD,
- "zh-TW": uD
+var uD = {};
+uD = {
+ "ar-AE": AE,
+ "bg-BG": jE,
+ "cs-CZ": ME,
+ "da-DK": NE,
+ "de-DE": PE,
+ "el-GR": FE,
+ "en-US": IE,
+ "es-ES": LE,
+ "et-EE": RE,
+ "fi-FI": zE,
+ "fr-FR": BE,
+ "he-IL": VE,
+ "hr-HR": HE,
+ "hu-HU": UE,
+ "it-IT": WE,
+ "ja-JP": GE,
+ "ko-KR": KE,
+ "lt-LT": qE,
+ "lv-LV": JE,
+ "nb-NO": YE,
+ "nl-NL": XE,
+ "pl-PL": ZE,
+ "pt-BR": QE,
+ "pt-PT": $E,
+ "ro-RO": eD,
+ "ru-RU": tD,
+ "sk-SK": nD,
+ "sl-SI": rD,
+ "sr-SP": iD,
+ "sv-SE": aD,
+ "tr-TR": oD,
+ "uk-UA": sD,
+ "zh-CN": cD,
+ "zh-TW": lD
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function rae(e) {
+function iae(e) {
return e && e.__esModule ? e.default : e;
}
-function fD(e) {
- let { onDismiss: t, ...n } = e, r = fS(n, wS(rae(dD), "@react-aria/overlays").format("dismiss")), i = () => {
+function dD(e) {
+ let { onDismiss: t, ...n } = e, r = dS(n, CS(iae(uD), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ D.createElement(uw, null, /*#__PURE__*/ D.createElement("button", {
+ return /*#__PURE__*/ D.createElement(lw, null, /*#__PURE__*/ D.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26541,35 +26541,35 @@ function fD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var pD = [];
-function mD(e, t) {
+var fD = [];
+function pD(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
- if (i && !pD.includes(t)) return pD.push(t), () => {
- let e = pD.indexOf(t);
- e >= 0 && pD.splice(e, 1);
+ if (i && !fD.includes(t)) return fD.push(t), () => {
+ let e = fD.indexOf(t);
+ e >= 0 && fD.splice(e, 1);
};
}, [i, t]);
let l = () => {
- pD[pD.length - 1] === t && n && n();
+ fD[fD.length - 1] === t && n && n();
}, u = (e) => {
- let n = pD[pD.length - 1];
+ let n = fD[fD.length - 1];
c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(K(e))) && (pD[pD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Mx({ shortcuts: { Escape: () => {
+ (!s || s(K(e))) && (fD[fD.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = jx({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Vie({
+ Hie({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = QC({
+ let { focusWithinProps: p } = ZC({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !hie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !gie(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -26582,88 +26582,88 @@ function mD(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var iae = 200, aae = 50, oae = 600, hD = /* @__PURE__ */ new WeakMap(), gD = /* @__PURE__ */ new Set(), _D = /* @__PURE__ */ new Set();
-function sae(e, t) {
- let n = lS();
- if (e !== n || t.aborted) for (let e of _D) e(n), _D.delete(e);
- if (!e && n && Ab() && !t.aborted) window.clearInterval(hD.get(window)), hD.set(window, vD(iae));
+var aae = 200, oae = 50, sae = 600, mD = /* @__PURE__ */ new WeakMap(), hD = /* @__PURE__ */ new Set(), gD = /* @__PURE__ */ new Set();
+function cae(e, t) {
+ let n = cS();
+ if (e !== n || t.aborted) for (let e of gD) e(n), gD.delete(e);
+ if (!e && n && kb() && !t.aborted) window.clearInterval(mD.get(window)), mD.set(window, _D(aae));
else {
- if (e !== n || t.aborted) for (let e of gD) e(n), gD.delete(e);
- (_D.size + gD.size <= 0 || t.aborted) && (window.clearInterval(hD.get(window)), hD.delete(window));
+ if (e !== n || t.aborted) for (let e of hD) e(n), hD.delete(e);
+ (gD.size + hD.size <= 0 || t.aborted) && (window.clearInterval(mD.get(window)), mD.delete(window));
}
}
-function vD(e = oae) {
- return window.setInterval(sae, aae, lS(), AbortSignal.timeout(e));
+function _D(e = sae) {
+ return window.setInterval(cae, oae, cS(), AbortSignal.timeout(e));
}
-function yD(e) {
- if (!oS()) return e(!1), () => {};
+function vD(e) {
+ if (!aS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = sS(document.hasFocus() ? rb() : null);
- if (lS() === t || lS() && !t) return e(t);
- _D.add(e), hD.has(window) || hD.set(window, vD());
+ let t = oS(document.hasFocus() ? nb() : null);
+ if (cS() === t || cS() && !t) return e(t);
+ gD.add(e), mD.has(window) || mD.set(window, _D());
});
});
return () => {
- window.cancelAnimationFrame(t), _D.delete(e);
+ window.cancelAnimationFrame(t), gD.delete(e);
};
}
-function cae(e) {
- if (!oS()) return e(!1), () => {};
+function lae(e) {
+ if (!aS()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = sS(document.hasFocus() ? rb() : null);
- if (lS() === t) return e(t);
- gD.add(e), hD.has(window) || hD.set(window, vD());
+ let t = oS(document.hasFocus() ? nb() : null);
+ if (cS() === t) return e(t);
+ hD.add(e), mD.has(window) || mD.set(window, _D());
});
});
return () => {
- window.cancelAnimationFrame(t), gD.delete(e);
+ window.cancelAnimationFrame(t), hD.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var bD = typeof document < "u" && window.visualViewport, xD = 0, SD;
-function CD(e = {}) {
+var yD = typeof document < "u" && window.visualViewport, bD = 0, xD;
+function SD(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- gb(() => {
- if (!t) return xD++, xD === 1 && (SD = Ob() && Ab() ? uae() : lae(n)), () => {
- xD--, xD === 0 && SD();
+ hb(() => {
+ if (!t) return bD++, bD === 1 && (xD = Db() && kb() ? dae() : uae(n)), () => {
+ bD--, bD === 0 && xD();
};
}, [t, n]);
}
-function lae(e) {
+function uae(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return vx(t > 0 && ("scrollbarGutter" in document.documentElement.style ? eb(document.documentElement, "scrollbar-gutter", "stable") : eb(document.documentElement, "padding-right", `${t}px`)), eb(document.documentElement, "overflow", "hidden"), e && TD(), e && oS() && wD());
+ return _x(t > 0 && ("scrollbarGutter" in document.documentElement.style ? $y(document.documentElement, "scrollbar-gutter", "stable") : $y(document.documentElement, "padding-right", `${t}px`)), $y(document.documentElement, "overflow", "hidden"), e && wD(), e && aS() && CD());
}
-function uae() {
- let e = eb(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function dae() {
+ let e = $y(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = K(e);
- t = bC(r, !0) ? r : xC(r, !0), n = !1;
+ t = yC(r, !0) ? r : bC(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 = NS();
+ }, i = document.createElement("style"), a = MS();
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 = TD(), c = vx($y(document, "touchstart", r, {
+ }, s = wD(), c = _x(Qy(document, "touchstart", r, {
passive: !1,
capture: !0
- }), $y(document, "touchmove", o, {
+ }), Qy(document, "touchmove", o, {
passive: !1,
capture: !0
- }), wD());
+ }), CD());
return () => {
e(), c(), i.remove(), s();
};
}
-function wD() {
- return $y(document, "blur", (e) => {
+function CD() {
+ return Qy(document, "blur", (e) => {
let t = K(e), n = e.relatedTarget;
- n && sS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && oS(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function TD() {
+function wD() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26674,9 +26674,9 @@ function TD() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- rb() === this && dae(this);
+ nb() === this && fae(this);
};
- yD((t) => t ? e() : cae(() => e()));
+ vD((t) => t ? e() : lae(() => e()));
}
}
}), () => {
@@ -26687,15 +26687,15 @@ function TD() {
});
};
}
-function dae(e) {
+function fae(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = xC(n);
+ let e = bC(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;
- bD && (n = Math.min(n, bD.offsetTop + bD.height));
+ yD && (n = Math.min(n, yD.offsetTop + yD.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)),
@@ -26708,19 +26708,19 @@ function dae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function fae(e, t, n) {
- let { overlayProps: r, underlayProps: i } = mD({
+function pae(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = pD({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- CD({
+ SD({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), DT();
+ }), ET();
let { isEntering: a } = e;
return (0, D.useEffect)(() => {
- if (t.isOpen && n.current) return a ? _w(n.current) : gw([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? gw(n.current) : hw([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -26732,33 +26732,33 @@ function fae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var ED = {
+var TD = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, DD = {
+}, ED = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, pae = {
+}, mae = {
top: "left",
left: "top"
-}, OD = {
+}, DD = {
top: "height",
left: "width"
-}, kD = {
+}, OD = {
width: "totalWidth",
height: "totalHeight"
-}, AD = {}, mae = () => typeof document < "u" ? window.visualViewport : null;
-function jD(e, t) {
+}, kD = {}, hae = () => typeof document < "u" ? window.visualViewport : null;
+function AD(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} = LD(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return Ab() && (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} = ID(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return kb() && (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,
@@ -26768,7 +26768,7 @@ function jD(e, t) {
left: s
};
}
-function hae(e) {
+function gae(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -26776,11 +26776,11 @@ function hae(e) {
height: e.scrollHeight
};
}
-function MD(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[OD[e]], l = o[e] + r.scroll[ED[e]] + a, u = o[e] + r.scroll[ED[e]] + c - a, d = t - s + r.scroll[ED[e]] + o[e] - r[ED[e]], f = t - s + n + r.scroll[ED[e]] + o[e] - r[ED[e]];
+function jD(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[DD[e]], l = o[e] + r.scroll[TD[e]] + a, u = o[e] + r.scroll[TD[e]] + c - a, d = t - s + r.scroll[TD[e]] + o[e] - r[TD[e]], f = t - s + n + r.scroll[TD[e]] + o[e] - r[TD[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function gae(e) {
+function _ae(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -26789,55 +26789,55 @@ function gae(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ND(e) {
- if (AD[e]) return AD[e];
- let [t, n] = e.split(" "), r = ED[t] || "right", i = pae[r];
- ED[n] || (n = "center");
- let a = OD[r], o = OD[i];
- return AD[e] = {
+function MD(e) {
+ if (kD[e]) return kD[e];
+ let [t, n] = e.split(" "), r = TD[t] || "right", i = mae[r];
+ TD[n] || (n = "center");
+ let a = DD[r], o = DD[i];
+ return kD[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, AD[e];
+ }, kD[e];
}
-function PD(e, t, n, r, i, a, o, s, c, l, u) {
+function ND(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] = nw(_[m], v, y), d === p) {
- let t = s ? u[h] : u[kD[h]];
- _[DD[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = tw(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[OD[h]];
+ _[ED[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function _ae(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[kD.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function vae(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[OD.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 FD(e, t, n, r, i, a, o, s) {
+function PD(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[DD[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[DD[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[ED[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[ED[l]] - i);
}
-function vae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ND(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = PD(t, s, n, v, u, d, l, f, m, h, c), T = u, E = FD(s, l, t, i, a + u, v, c, g);
+function yae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = MD(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ND(t, s, n, v, u, d, l, f, m, h, c), T = u, E = PD(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ND(`${DD[S]} ${C}`), r = PD(t, s, n, e, u, d, l, f, m, h, c);
- FD(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = MD(`${ED[S]} ${C}`), r = ND(t, s, n, e, u, d, l, f, m, h, c);
+ PD(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 = MD(b, w[b], n[x], s, c, a, l);
+ let O = jD(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = _ae(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = PD(t, s, n, v, T, d, l, f, m, h, c), O = MD(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[ED[b]], M = j + .5 * t[x], N = m / 2 + h, P = ED[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = nw(nw(M, t[b] + m / 2 - (w[b] + i[ED[b]]), t[b] + t[x] - m / 2 - (w[b] + i[ED[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = vae(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = ND(t, s, n, v, T, d, l, f, m, h, c), O = jD(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[TD[b]], M = j + .5 * t[x], N = m / 2 + h, P = TD[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = tw(tw(M, t[b] + m / 2 - (w[b] + i[TD[b]]), t[b] + t[x] - m / 2 - (w[b] + i[TD[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let F = S === "left" || S === "top" ? n[y] : 0, te = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -26851,17 +26851,17 @@ function vae(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: te
};
}
-function yae(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 = mae(), h = r instanceof HTMLElement ? bae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? LD(n, !1, p) : RD(n, h, !1, p);
+function bae(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 = hae(), h = r instanceof HTMLElement ? xae(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ID(n, !1, p) : LD(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 = LD(r, !0), x = gae(r);
+ let b = ID(r, !0), x = _ae(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = hae(i), C = jD(s, m), w = jD(h, m), T;
+ let S = gae(i), C = AD(s, m), w = AD(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = ID(h, !1);
+ let e = FD(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -26873,11 +26873,11 @@ function yae(e) {
left: 0,
width: 0,
height: 0
- } : RD(s, h, !1);
- let E = nb(s, h);
- return vae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : LD(s, h, !1);
+ let E = tb(s, h);
+ return yae(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function ID(e, t) {
+function FD(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,
@@ -26886,8 +26886,8 @@ function ID(e, t) {
height: a
};
}
-function LD(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || ID(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function ID(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || FD(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -26895,30 +26895,30 @@ function LD(e, t, n) {
height: o
};
}
-function RD(e, t, n, r) {
+function LD(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || ID(e, n);
+ if (i.position === "fixed") a = r || FD(e, n);
else {
- a = LD(e, n, r);
- let i = LD(t, n), o = window.getComputedStyle(t);
+ a = ID(e, n, r);
+ let i = ID(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 bae(e) {
+function xae(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !zD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !zD(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !RD(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !RD(t);) t = t.parentElement;
return t || document.documentElement;
}
-function zD(e) {
+function RD(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 BD = typeof document < "u" ? window.visualViewport : null;
-function xae(e) {
- let { direction: t } = vS(), { 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, D.useState)(null), x = [
+var zD = typeof document < "u" ? window.visualViewport : null;
+function Sae(e) {
+ let { direction: t } = _S(), { 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, D.useState)(null), x = [
p,
s,
i.current,
@@ -26935,15 +26935,15 @@ function xae(e) {
g,
_,
n
- ], S = (0, D.useRef)(BD?.scale);
+ ], S = (0, D.useRef)(zD?.scale);
(0, D.useEffect)(() => {
- m && (S.current = BD?.scale);
+ m && (S.current = zD?.scale);
}, [m]);
let C = (0, D.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || BD?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || zD?.scale !== S.current) return;
let e = null;
- if (o.current && ab(o.current)) {
- let t = rb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && ib(o.current)) {
+ let t = nb()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -26951,8 +26951,8 @@ function xae(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 = yae({
- placement: Cae(s, t),
+ let y = bae({
+ placement: wae(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -26962,28 +26962,28 @@ function xae(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? ID(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? FD(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 = rb();
+ let x = nb();
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);
- gb(C, x), Sae(C), AE({
+ hb(C, x), Cae(C), kE({
ref: i,
onResize: C
- }), AE({
+ }), kE({
ref: r,
onResize: C
});
let w = (0, D.useRef)(!1);
- gb(() => {
+ hb(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -26991,16 +26991,16 @@ function xae(e) {
}, n = () => {
w.current && t();
};
- BD?.addEventListener("resize", t), BD?.addEventListener("scroll", n);
- let r = $y(ib(window), "scroll", n);
+ zD?.addEventListener("resize", t), zD?.addEventListener("scroll", n);
+ let r = Qy(rb(window), "scroll", n);
return () => {
- BD?.removeEventListener("resize", t), BD?.removeEventListener("scroll", n), r();
+ zD?.removeEventListener("resize", t), zD?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, D.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return jie({
+ return Mie({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -27026,25 +27026,25 @@ function xae(e) {
updatePosition: C
};
}
-function Sae(e) {
- gb(() => (window.addEventListener("resize", e, !1), () => {
+function Cae(e) {
+ hb(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Cae(e, t) {
+function wae(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 wae(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 } = mD({
+function Tae(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 } = pD({
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 } = xae({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Sae({
...c,
targetRef: n,
overlayRef: r,
@@ -27052,15 +27052,15 @@ function wae(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)
});
- CD({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
- if (t.isOpen && r.current) return a ? _w(i?.current ?? r.current) : gw([i?.current ?? r.current], { shouldUseInert: !0 });
+ SD({ isDisabled: a || !t.isOpen }), (0, D.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? gw(i?.current ?? r.current) : hw([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = QC(e);
+ let { focusWithinProps: g } = ZC(e);
return {
popoverProps: q(u, f, g),
arrowProps: p,
@@ -27071,13 +27071,13 @@ function wae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var VD = /* @__PURE__ */ new WeakMap();
+var BD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Tae(e, t, n) {
+function Eae(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: _ } = BS({
+ }, { pressProps: g, isPressed: _ } = zS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27085,7 +27085,7 @@ function Tae(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = BS({
+ }), { pressProps: v, isPressed: y } = zS({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27095,11 +27095,11 @@ function Tae(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Ix(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = ES(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Fx(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = TS(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: O, validationBehavior: k } = VD.get(t);
- kC(n, t.defaultSelectedValue, t.setSelectedValue), AC({ validationBehavior: k }, t, n);
- let A = FC();
+ let { name: w, form: T, descriptionId: E, errorMessageId: O, validationBehavior: k } = BD.get(t);
+ OC(n, t.defaultSelectedValue, t.setSelectedValue), kC({ validationBehavior: k }, t, n);
+ let A = PC();
return {
labelProps: q(v, (0, D.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -27131,13 +27131,13 @@ function Tae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Eae(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = vS(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ZC({
+function Dae(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = _S(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = XC({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = ES(e, { labelable: !0 }), { focusWithinProps: v } = QC({
+ }), _ = TS(e, { labelable: !0 }), { focusWithinProps: v } = ZC({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27145,13 +27145,13 @@ function Eae(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = dC(n.currentTarget, {
+ let r = uC(n.currentTarget, {
from: K(n),
- accept: (e) => e instanceof Xy(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof Yy(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 } = Mx({
+ let { keyboardProps: b } = jx({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -27159,8 +27159,8 @@ function Eae(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Sx(n);
- return VD.set(t, {
+ }), x = xx(n);
+ return BD.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -27189,21 +27189,21 @@ function Eae(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var HD = /* @__PURE__ */ new WeakMap();
-function Dae(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = xT({
+var VD = /* @__PURE__ */ new WeakMap();
+function Oae(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = bT({
usage: "search",
sensitivity: "base"
- }), u = (0, D.useMemo)(() => r || new Cw(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, D.useMemo)(() => r || new Sw(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = sT({
+ ]), { menuTriggerProps: d, menuProps: f } = oT({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Mx({
+ }, t, n), { keyboardProps: p } = jx({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -27219,21 +27219,21 @@ function Dae(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = lT({
+ }), { typeSelectProps: m } = cT({
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 } = ZC({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = XC({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = ES(e, { labelable: !0 }), C = q(m, d, y), w = Sx();
- return HD.set(t, {
+ let S = TS(e, { labelable: !0 }), C = q(m, d, y), w = xx();
+ return VD.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27243,13 +27243,13 @@ function Dae(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), sx("keyboard"));
+ e.isDisabled || (n.current?.focus(), ox("keyboard"));
}
},
triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: vx(C.onKeyDown, p.onKeyDown),
+ onKeyDown: _x(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -27273,7 +27273,7 @@ function Dae(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- nb(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ tb(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(" ")
},
@@ -27294,13 +27294,13 @@ function Dae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Oae(e, t, n) {
- let r = HD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = lw({ style: {
+function kae(e, t, n) {
+ let r = VD.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = cw({ style: {
position: "fixed",
top: 0,
left: 0
} });
- kC(e.selectRef, t.defaultValue, t.setValue), AC({
+ OC(e.selectRef, t.defaultValue, t.setValue), kC({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -27330,8 +27330,8 @@ function Oae(e, t, n) {
}
};
}
-function kae(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, D.useRef)(null), c = (0, D.useRef)(null), { containerProps: l, selectProps: u } = Oae({
+function Aae(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, D.useRef)(null), c = (0, D.useRef)(null), { containerProps: l, selectProps: u } = kae({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -27355,7 +27355,7 @@ function kae(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = HD.get(t) || {};
+ let { validationBehavior: e } = VD.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27386,8 +27386,8 @@ function kae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Aae(e) {
- let t = ES(e, { labelable: !0 }), n;
+function jae(e) {
+ let t = TS(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27396,8 +27396,8 @@ function Aae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function jae(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = qC(e, t, n);
+function Mae(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = KC(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27411,10 +27411,10 @@ function jae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var UD = class {
+var HD = 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 Mae(e.layout) : new Sw(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Nae(e.layout) : new xw(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27450,7 +27450,7 @@ var UD = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of fT(n, this.collection)) {
+ for (let e of dT(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27484,13 +27484,13 @@ var UD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = fT(t, this.collection);
- return (this.direction === "rtl" ? hT(e)?.key : pT(e)?.key) ?? null;
+ let e = dT(t, this.collection);
+ return (this.direction === "rtl" ? mT(e)?.key : fT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = fT(n, this.collection), i = (this.direction === "rtl" ? mT(r, t.index - 1) : mT(r, t.index + 1)) ?? null;
+ let r = dT(n, this.collection), i = (this.direction === "rtl" ? pT(r, t.index - 1) : pT(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;
@@ -27499,13 +27499,13 @@ var UD = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = fT(t, this.collection);
- return (this.direction === "rtl" ? pT(e)?.key : hT(e)?.key) ?? null;
+ let e = dT(t, this.collection);
+ return (this.direction === "rtl" ? fT(e)?.key : mT(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = fT(n, this.collection), i = (this.direction === "rtl" ? mT(r, t.index + 1) : mT(r, t.index - 1)) ?? null;
+ let r = dT(n, this.collection), i = (this.direction === "rtl" ? pT(r, t.index + 1) : pT(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;
@@ -27516,13 +27516,13 @@ var UD = 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 ? pT(fT(e, this.collection))?.key ?? null : null;
+ return e ? fT(dT(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 = pT(fT(e, this.collection))?.key ?? null;
+ n = fT(dT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27532,13 +27532,13 @@ var UD = 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 ? hT(fT(e, this.collection))?.key ?? null : null;
+ return e ? mT(dT(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 = hT(fT(e, this.collection))?.key ?? null;
+ n = mT(dT(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27574,13 +27574,13 @@ var UD = 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" ? pT(fT(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? fT(dT(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;
}
-}, Mae = class {
+}, Nae = class {
constructor(e) {
this.layout = e;
}
@@ -27593,16 +27593,16 @@ var UD = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, WD = /* @__PURE__ */ new WeakMap();
+}, UD = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Nae(e, t, n) {
+function Pae(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 = xT({
+ let h = bT({
usage: "search",
sensitivity: "base"
- }), { direction: g } = vS(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new UD({
+ }), { direction: g } = _S(), _ = t.selectionManager.disabledBehavior, v = (0, D.useMemo)(() => a || new HD({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27619,7 +27619,7 @@ function Nae(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = dT({
+ ]), { collectionProps: y } = uT({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27627,8 +27627,8 @@ function Nae(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = Sx(e.id);
- WD.set(t, {
+ }), b = xx(e.id);
+ UD.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27637,44 +27637,44 @@ function Nae(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = bE({
+ let x = yE({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = ES(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
- m.isFocused ? nb(e.currentTarget, K(e)) || m.setFocused(!1) : nb(e.currentTarget, K(e)) && m.setFocused(!0);
+ }), S = TS(e, { labelable: !0 }), C = (0, D.useCallback)((e) => {
+ m.isFocused ? tb(e.currentTarget, K(e)) || m.setFocused(!1) : tb(e.currentTarget, K(e)) && m.setFocused(!0);
}, [m]), w = (0, D.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = yE(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
+ }), [C, y.onBlur]), T = vE(n, { isDisabled: t.collection.size !== 0 }), E = q(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), _E({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), gE({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var GD = /* @__PURE__ */ new WeakMap();
-function KD(e) {
+var WD = /* @__PURE__ */ new WeakMap();
+function GD(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function qD(e, t) {
- let n = GD.get(e);
+function KD(e, t) {
+ let n = WD.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${KD(t)}`;
+ return `${n}-${GD(t)}`;
}
-function JD(e, t, n) {
- let r = GD.get(e);
+function qD(e, t, n) {
+ let r = WD.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${KD(t)}-${KD(n)}`;
+ return `${r}-${GD(t)}-${GD(n)}`;
}
-function YD(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => JD(e, t, n)).join(" ");
+function JD(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => qD(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
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: "طي",
@@ -27689,8 +27689,8 @@ XD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
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: "Свиване",
@@ -27705,8 +27705,8 @@ ZD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27721,8 +27721,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27737,8 +27737,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27753,8 +27753,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
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: "Σύμπτυξη",
@@ -27769,8 +27769,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -27785,8 +27785,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -27801,8 +27801,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -27817,8 +27817,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -27833,8 +27833,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -27849,8 +27849,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
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: "כווץ",
@@ -27865,8 +27865,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -27881,8 +27881,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -27897,8 +27897,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -27913,8 +27913,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -27929,8 +27929,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
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: "접기",
@@ -27945,8 +27945,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -27961,8 +27961,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
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",
@@ -27977,8 +27977,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -27993,8 +27993,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28009,8 +28009,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28025,8 +28025,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28041,8 +28041,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28057,8 +28057,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var bO = {};
-bO = {
+var yO = {};
+yO = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28073,8 +28073,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var xO = {};
-xO = {
+var bO = {};
+bO = {
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: "Свернуть",
@@ -28089,8 +28089,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var SO = {};
-SO = {
+var xO = {};
+xO = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28105,8 +28105,8 @@ SO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var CO = {};
-CO = {
+var SO = {};
+SO = {
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",
@@ -28121,8 +28121,8 @@ CO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var wO = {};
-wO = {
+var CO = {};
+CO = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28137,8 +28137,8 @@ wO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var TO = {};
-TO = {
+var wO = {};
+wO = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28153,8 +28153,8 @@ TO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var EO = {};
-EO = {
+var TO = {};
+TO = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28169,8 +28169,8 @@ EO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var DO = {};
-DO = {
+var EO = {};
+EO = {
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: "Згорнути",
@@ -28185,8 +28185,8 @@ DO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var OO = {};
-OO = {
+var DO = {};
+DO = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28201,8 +28201,8 @@ OO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var kO = {};
-kO = {
+var OO = {};
+OO = {
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: "收合",
@@ -28217,46 +28217,46 @@ kO = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var AO = {};
-AO = {
- "ar-AE": XD,
- "bg-BG": ZD,
- "cs-CZ": QD,
- "da-DK": $D,
- "de-DE": eO,
- "el-GR": tO,
- "en-US": nO,
- "es-ES": rO,
- "et-EE": iO,
- "fi-FI": aO,
- "fr-FR": oO,
- "he-IL": sO,
- "hr-HR": cO,
- "hu-HU": lO,
- "it-IT": uO,
- "ja-JP": dO,
- "ko-KR": fO,
- "lt-LT": pO,
- "lv-LV": mO,
- "nb-NO": hO,
- "nl-NL": gO,
- "pl-PL": _O,
- "pt-BR": vO,
- "pt-PT": yO,
- "ro-RO": bO,
- "ru-RU": xO,
- "sk-SK": SO,
- "sl-SI": CO,
- "sr-SP": wO,
- "sv-SE": TO,
- "tr-TR": EO,
- "uk-UA": DO,
- "zh-CN": OO,
- "zh-TW": kO
+var kO = {};
+kO = {
+ "ar-AE": YD,
+ "bg-BG": XD,
+ "cs-CZ": ZD,
+ "da-DK": QD,
+ "de-DE": $D,
+ "el-GR": eO,
+ "en-US": tO,
+ "es-ES": nO,
+ "et-EE": rO,
+ "fi-FI": iO,
+ "fr-FR": aO,
+ "he-IL": oO,
+ "hr-HR": sO,
+ "hu-HU": cO,
+ "it-IT": lO,
+ "ja-JP": uO,
+ "ko-KR": dO,
+ "lt-LT": fO,
+ "lv-LV": pO,
+ "nb-NO": mO,
+ "nl-NL": hO,
+ "pl-PL": gO,
+ "pt-BR": _O,
+ "pt-PT": vO,
+ "ro-RO": yO,
+ "ru-RU": bO,
+ "sk-SK": xO,
+ "sl-SI": SO,
+ "sr-SP": CO,
+ "sv-SE": wO,
+ "tr-TR": TO,
+ "uk-UA": EO,
+ "zh-CN": DO,
+ "zh-TW": OO
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Pae = class extends UD {
+var Fae = class extends HD {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28264,7 +28264,7 @@ var Pae = class extends UD {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = pT(fT(n, this.collection));
+ let e = fT(dT(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);
@@ -28285,13 +28285,13 @@ var Pae = class extends UD {
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 fT(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of dT(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 = [...fT(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...dT(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28320,7 +28320,7 @@ var Pae = class extends UD {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of fT(o, this.collection)) {
+ for (let r of dT(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);
@@ -28334,14 +28334,14 @@ var Pae = class extends UD {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Fae(e) {
+function Iae(e) {
return e && e.__esModule ? e.default : e;
}
-function Iae(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = xT({
+function Lae(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = bT({
usage: "search",
sensitivity: "base"
- }), { direction: c } = vS(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Pae({
+ }), { direction: c } = _S(), l = t.selectionManager.disabledBehavior, u = (0, D.useMemo)(() => r || new Fae({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28360,52 +28360,52 @@ function Iae(e, t, n) {
s,
a,
o
- ]), d = Sx(e.id);
- GD.set(t, d);
- let { gridProps: f } = Nae({
+ ]), d = xx(e.id);
+ WD.set(t, d);
+ let { gridProps: f } = Pae({
...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 = wS(Fae(AO), "@react-aria/table"), g = (0, D.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = CS(Iae(kO), "@react-aria/table"), g = (0, D.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
- ]), _ = OC(g);
- return yC(() => {
- g && _C(g, "assertive", 500);
+ ]), _ = DC(g);
+ return vC(() => {
+ g && gC(g, "assertive", 500);
}, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function jO(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vS(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = WD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
+function AO(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = _S(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = UD.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = () => {
if (n.current) {
- let e = dC(n.current);
+ let e = uC(n.current);
if (p === "child") {
- let i = rb(Yy(n.current));
- if (ab(n.current) && n.current !== i) return;
- let a = Yy(n.current);
+ let i = nb(Jy(n.current));
+ if (ib(n.current) && n.current !== i) return;
+ let a = Jy(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && nb(n.current, e)) {
- _x(e);
+ if (e && m.current === r.key && tb(n.current, e)) {
+ gx(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? MO(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? jO(e) : e.firstChild();
if (o) {
- _x(o);
+ gx(o);
return;
}
}
- (m.current != null && r.key !== m.current || !ab(n.current)) && _x(n.current);
+ (m.current != null && r.key !== m.current || !ib(n.current)) && gx(n.current);
}
- }, { itemProps: _, isPressed: v } = SE({
+ }, { itemProps: _, isPressed: v } = xE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28417,44 +28417,44 @@ function jO(e, t, n) {
}), y = q(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = rb(Yy(n.current));
- if (!nb(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = dC(n.current);
+ let i = nb(Jy(n.current));
+ if (!tb(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = uC(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) _x(t), TC(t, { containingElement: xC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) gx(t), wC(t, { containingElement: bC(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" ? (_x(n.current), TC(n.current, { containingElement: xC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : MO(a), t && (_x(t), TC(t, { containingElement: xC(n.current) })));
+ p === "cell" && l === "rtl" ? (gx(n.current), wC(n.current, { containingElement: bC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : jO(a), t && (gx(t), wC(t, { containingElement: bC(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) _x(t), TC(t, { containingElement: xC(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) gx(t), wC(t, { containingElement: bC(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" ? (_x(n.current), TC(n.current, { containingElement: xC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? MO(a) : a.firstChild(), t && (_x(t), TC(t, { containingElement: xC(n.current) })));
+ p === "cell" && l === "ltr" ? (gx(n.current), wC(n.current, { containingElement: bC(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? jO(a) : a.firstChild(), t && (gx(t), wC(t, { containingElement: bC(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && nb(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && tb(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = rb(Yy(n.current));
- if (nb(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = nb(Jy(n.current));
+ if (tb(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && K(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = dC(n.current, { tabbable: !0 });
+ let t = uC(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28465,9 +28465,9 @@ function jO(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, K(e) !== n.current) {
let i = K(e);
- n.current && nb(n.current, i) && (h.current = i), ax() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && nb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && rb(Yy(n.current)) === n.current && g();
+ n.current && tb(n.current, i) && (h.current = i), ix() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && tb(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && nb(Jy(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -28482,7 +28482,7 @@ function jO(e, t, n) {
isPressed: v
};
}
-function MO(e) {
+function jO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -28491,33 +28491,33 @@ function MO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Lae(e, t, n) {
- let { gridCellProps: r, isPressed: i } = jO(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = JD(t, e.node.parentKey, a)), {
+function Rae(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = AO(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = qD(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Rae(e) {
+function zae(e) {
return e && e.__esModule ? e.default : e;
}
-function zae(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = jO({
+function Bae(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = AO({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = BS({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zS({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Ix({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Mb() && (u = d ? f : "none");
- let p = wS(Rae(AO), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Mb() && (m = `${m}, ${p.format(f)}`));
- let h = OC(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = Fx({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !jb() && (u = d ? f : "none");
+ let p = CS(zae(kO), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && jb() && (m = `${m}, ${p.format(f)}`));
+ let h = DC(m), g = t.collection.size === 0;
return (0, D.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -28528,7 +28528,7 @@ function zae(e, t, n) {
columnHeaderProps: {
...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: qD(t, r.key),
+ id: KD(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28537,17 +28537,17 @@ function zae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Bae(e) {
+function Vae(e) {
return e && e.__esModule ? e.default : e;
}
-function Vae(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = wS(Bae(AO), "@react-aria/table"), d = Sx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = vS(), b = (0, D.useCallback)((e) => {
+function Hae(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = CS(Vae(kO), "@react-aria/table"), d = xx(), f = t.resizingColumn === r.key, p = (0, D.useRef)(f), m = (0, D.useRef)(null), h = (0, D.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, D.useState)(!1), { direction: y } = _S(), b = (0, D.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, D.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, D.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 && _x(i.current)), m.current = null;
+ 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 && gx(i.current)), m.current = null;
}, [
t,
i,
@@ -28555,14 +28555,14 @@ function Vae(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = Mx({ shortcuts: {
+ }, { keyboardProps: w } = jx({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, D.useRef)(0), { moveProps: E } = sw({
+ } }), T = (0, D.useRef)(0), { moveProps: E } = ow({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28578,12 +28578,12 @@ function Vae(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), k = Math.floor(t.getColumnMinWidth(r.key)), A = Math.floor(t.getColumnMaxWidth(r.key));
A === Infinity && (A = 2 ** 53 - 1);
- let j = Math.floor(t.getColumnWidth(r.key)), M = cx();
+ let j = Math.floor(t.getColumnWidth(r.key)), M = sx();
M === "virtual" && typeof window < "u" && "ontouchstart" in window && (M = "touch");
- let N = OC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
+ let N = DC(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${qD(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${KD(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: j }),
type: "range",
min: k,
@@ -28591,11 +28591,11 @@ function Vae(e, t, n) {
value: j,
...N
}, ee = (0, D.useCallback)(() => {
- n.current && _x(n.current);
- }, [n]), F = t.resizingColumn, te = (0, D.useRef)(null), I = uS(b);
+ n.current && gx(n.current);
+ }, [n]), F = t.resizingColumn, te = (0, D.useRef)(null), I = lS(b);
(0, D.useEffect)(() => {
if (te.current !== F && F != null && F === r.key) {
- h.current = rb() === n.current, I(r);
+ h.current = nb() === n.current, I(r);
let e = setTimeout(() => ee(), 0), t = setTimeout(ee, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -28611,7 +28611,7 @@ function Vae(e, t, n) {
let ne = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(K(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: re } = BS({
+ }, { pressProps: re } = zS({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (ee(), e.pointerType !== "virtual" && b(r)));
@@ -28619,7 +28619,7 @@ function Vae(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = lw();
+ }), { visuallyHiddenProps: ie } = cw();
return {
resizerProps: q(w, {
...E,
@@ -28639,20 +28639,20 @@ function Vae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Hae(e, t, n) {
+function Uae(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 Uae(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = WD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = SE({
+function Wae(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = UD.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = xE({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? vx(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? _x(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -28667,10 +28667,10 @@ function Uae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Wae(e) {
+function Gae(e) {
return e && e.__esModule ? e.default : e;
}
-var NO = {
+var MO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -28680,21 +28680,21 @@ var NO = {
rtl: "ArrowRight"
}
};
-function Gae(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Uae(e, t, n), { direction: s } = vS();
+function Kae(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Wae(e, t, n), { direction: s } = _S();
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 = wS(Wae(AO), "@react-aria/table"), u = fS({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = CS(Gae(kO), "@react-aria/table"), u = dS({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": YD(t, r.key)
+ "aria-labelledby": JD(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = PO(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 = PO(t.collection, a);
+ let n = NO(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 = NO(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === NO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === NO.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 === MO.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === MO.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,
@@ -28712,45 +28712,45 @@ function Gae(e, t, n) {
};
}
}
- let p = zb(r.props), m = o.hasAction ? p : {};
+ let p = Rb(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...q(a, d, m),
- "aria-labelledby": YD(t, r.key)
+ "aria-labelledby": JD(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function PO(e, t) {
+function NO(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 Kae() {
+function qae() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function FO() {
- return Kae();
+function PO() {
+ return qae();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function qae(e) {
+function Jae(e) {
return e && e.__esModule ? e.default : e;
}
-function Jae(e, t) {
- let { key: n } = e, { checkboxProps: r } = OE(e, t);
+function Yae(e, t) {
+ let { key: n } = e, { checkboxProps: r } = DE(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${YD(t, n)}`
+ "aria-labelledby": `${r.id} ${JD(t, n)}`
} };
}
-function Yae(e) {
+function Xae(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": wS(qae(AO), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": CS(Jae(kO), "@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,
@@ -28759,23 +28759,23 @@ function Yae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var IO = /* @__PURE__ */ new WeakMap();
-function LO(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${IO.get(e)}-${n}-${t}`) : "";
+var FO = /* @__PURE__ */ new WeakMap();
+function IO(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${FO.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Xae(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 } = SE({
+function Zae(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 } = xE({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = LO(t, r, "tab"), m = LO(t, r, "tabpanel"), { tabIndex: h } = d, g = ES(u?.props, { labelable: !0 });
+ }), p = IO(t, r, "tab"), m = IO(t, r, "tabpanel"), { tabIndex: h } = d, g = TS(u?.props, { labelable: !0 });
delete g.id;
- let _ = Bb(u?.props), { focusableProps: v } = Ix({
+ let _ = zb(u?.props), { focusableProps: v } = Fx({
...u?.props,
isDisabled: l
}, n);
@@ -28795,7 +28795,7 @@ function Xae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Zae = class {
+var Qae = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -28839,11 +28839,11 @@ var Zae = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Qae(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = vS(), { collectionProps: l } = dT({
+function $ae(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = _S(), { collectionProps: l } = uT({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, D.useMemo)(() => new Zae(a, c, r, s), [
+ keyboardDelegate: (0, D.useMemo)(() => new Qae(a, c, r, s), [
a,
s,
r,
@@ -28853,9 +28853,9 @@ function Qae(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = Sx();
- return IO.set(t, u), { tabListProps: {
- ...q(l, fS({
+ }), u = xx();
+ return FO.set(t, u), { tabListProps: {
+ ...q(l, dS({
...e,
id: u
})),
@@ -28866,12 +28866,12 @@ function Qae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function $ae(e, t, n) {
- let r = yE(n) ? void 0 : 0, i = LO(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: q(fS({
+function eoe(e, t, n) {
+ let r = vE(n) ? void 0 : 0, i = IO(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(dS({
...e,
id: i,
- "aria-labelledby": LO(t, t?.selectedKey, "tab")
+ "aria-labelledby": IO(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -28881,301 +28881,301 @@ function $ae(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTree.mjs
-function eoe(e, t, n) {
- let { gridProps: r } = Gie(e, t, n);
+function toe(e, t, n) {
+ let { gridProps: r } = Kie(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var RO = {};
-RO = {
+var LO = {};
+LO = {
collapse: "طي",
expand: "تمديد"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var zO = {};
-zO = {
+var RO = {};
+RO = {
collapse: "Свиване",
expand: "Разширяване"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var BO = {};
-BO = {
+var zO = {};
+zO = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var VO = {};
-VO = {
+var BO = {};
+BO = {
collapse: "Skjul",
expand: "Udvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var HO = {};
-HO = {
+var VO = {};
+VO = {
collapse: "Reduzieren",
expand: "Erweitern"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var UO = {};
-UO = {
+var HO = {};
+HO = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var WO = {};
-WO = {
+var UO = {};
+UO = {
expand: "Expand",
collapse: "Collapse"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var GO = {};
-GO = {
+var WO = {};
+WO = {
collapse: "Contraer",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var KO = {};
-KO = {
+var GO = {};
+GO = {
collapse: "Ahenda",
expand: "Laienda"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var qO = {};
-qO = {
+var KO = {};
+KO = {
collapse: "Pienennä",
expand: "Laajenna"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var JO = {};
-JO = {
+var qO = {};
+qO = {
collapse: "Réduire",
expand: "Développer"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var YO = {};
-YO = {
+var JO = {};
+JO = {
collapse: "כווץ",
expand: "הרחב"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var XO = {};
-XO = {
+var YO = {};
+YO = {
collapse: "Sažmi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ZO = {};
-ZO = {
+var XO = {};
+XO = {
collapse: "Összecsukás",
expand: "Kibontás"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var QO = {};
-QO = {
+var ZO = {};
+ZO = {
collapse: "Comprimi",
expand: "Espandi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var $O = {};
-$O = {
+var QO = {};
+QO = {
collapse: "折りたたむ",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var ek = {};
-ek = {
+var $O = {};
+$O = {
collapse: "접기",
expand: "펼치기"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var tk = {};
-tk = {
+var ek = {};
+ek = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var nk = {};
-nk = {
+var tk = {};
+tk = {
collapse: "Sakļaut",
expand: "Izvērst"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var rk = {};
-rk = {
+var nk = {};
+nk = {
collapse: "Skjul",
expand: "Utvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var ik = {};
-ik = {
+var rk = {};
+rk = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var ak = {};
-ak = {
+var ik = {};
+ik = {
collapse: "Zwiń",
expand: "Rozwiń"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var ok = {};
-ok = {
+var ak = {};
+ak = {
collapse: "Recolher",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var sk = {};
-sk = {
+var ok = {};
+ok = {
collapse: "Colapsar",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var ck = {};
-ck = {
+var sk = {};
+sk = {
collapse: "Restrângeți",
expand: "Extindeți"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var lk = {};
-lk = {
+var ck = {};
+ck = {
collapse: "Свернуть",
expand: "Развернуть"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var uk = {};
-uk = {
+var lk = {};
+lk = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var dk = {};
-dk = {
+var uk = {};
+uk = {
collapse: "Strni",
expand: "Razširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var fk = {};
-fk = {
+var dk = {};
+dk = {
collapse: " Skupi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var pk = {};
-pk = {
+var fk = {};
+fk = {
collapse: "Dölj",
expand: "Expandera"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var mk = {};
-mk = {
+var pk = {};
+pk = {
collapse: "Daralt",
expand: "Genişlet"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var hk = {};
-hk = {
+var mk = {};
+mk = {
collapse: "Згорнути",
expand: "Розгорнути"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var gk = {};
-gk = {
+var hk = {};
+hk = {
collapse: "折叠",
expand: "扩展"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var _k = {};
-_k = {
+var gk = {};
+gk = {
collapse: "收合",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var vk = {};
-vk = {
- "ar-AE": RO,
- "bg-BG": zO,
- "cs-CZ": BO,
- "da-DK": VO,
- "de-DE": HO,
- "el-GR": UO,
- "en-US": WO,
- "es-ES": GO,
- "et-EE": KO,
- "fi-FI": qO,
- "fr-FR": JO,
- "he-IL": YO,
- "hr-HR": XO,
- "hu-HU": ZO,
- "it-IT": QO,
- "ja-JP": $O,
- "ko-KR": ek,
- "lt-LT": tk,
- "lv-LV": nk,
- "nb-NO": rk,
- "nl-NL": ik,
- "pl-PL": ak,
- "pt-BR": ok,
- "pt-PT": sk,
- "ro-RO": ck,
- "ru-RU": lk,
- "sk-SK": uk,
- "sl-SI": dk,
- "sr-SP": fk,
- "sv-SE": pk,
- "tr-TR": mk,
- "uk-UA": hk,
- "zh-CN": gk,
- "zh-TW": _k
+var _k = {};
+_k = {
+ "ar-AE": LO,
+ "bg-BG": RO,
+ "cs-CZ": zO,
+ "da-DK": BO,
+ "de-DE": VO,
+ "el-GR": HO,
+ "en-US": UO,
+ "es-ES": WO,
+ "et-EE": GO,
+ "fi-FI": KO,
+ "fr-FR": qO,
+ "he-IL": JO,
+ "hr-HR": YO,
+ "hu-HU": XO,
+ "it-IT": ZO,
+ "ja-JP": QO,
+ "ko-KR": $O,
+ "lt-LT": ek,
+ "lv-LV": tk,
+ "nb-NO": nk,
+ "nl-NL": rk,
+ "pl-PL": ik,
+ "pt-BR": ak,
+ "pt-PT": ok,
+ "ro-RO": sk,
+ "ru-RU": ck,
+ "sk-SK": lk,
+ "sl-SI": uk,
+ "sr-SP": dk,
+ "sv-SE": fk,
+ "tr-TR": pk,
+ "uk-UA": mk,
+ "zh-CN": hk,
+ "zh-TW": gk
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function toe(e) {
+function noe(e) {
return e && e.__esModule ? e.default : e;
}
-function yk(e, t, n) {
- let { node: r } = e, i = Kie(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = wS(toe(vk), "@react-aria/tree"), s = {
+function vk(e, t, n) {
+ let { node: r } = e, i = qie(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = CS(noe(_k), "@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,
- ...fS({
+ ...dS({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -29187,15 +29187,15 @@ function yk(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var bk = "(prefers-reduced-motion: reduce)", noe = () => matchMedia(bk).matches, roe = (e) => {
- let t = matchMedia(bk);
+var yk = "(prefers-reduced-motion: reduce)", roe = () => matchMedia(yk).matches, ioe = (e) => {
+ let t = matchMedia(yk);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, xk = /* @__PURE__ */ new Map(), Sk = () => {
+}, bk = /* @__PURE__ */ new Map(), xk = () => {
let e = document.documentElement;
- xk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...xk.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ bk.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...bk.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function ioe({ children: e, count: t, label: n }) {
- let r = (0, D.useRef)(null), i = kv(), a = (0, D.useSyncExternalStore)(roe, noe, () => !1), { isFocusVisible: o } = lx(), s = a || o, c = {
+function aoe({ children: e, count: t, label: n }) {
+ let r = (0, D.useRef)(null), i = kv(), a = (0, D.useSyncExternalStore)(ioe, roe, () => !1), { isFocusVisible: o } = cx(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -29203,12 +29203,12 @@ function ioe({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- xk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Sk();
+ bk.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), xk();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), xk.delete(e), Sk();
+ n.disconnect(), window.removeEventListener("resize", t), bk.delete(e), xk();
};
- }, [i]), /* @__PURE__ */ (0, O.jsxs)(Ry.div, {
+ }, [i]), /* @__PURE__ */ (0, O.jsxs)(Ly.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -29241,18 +29241,18 @@ function ioe({ children: e, count: t, label: n }) {
}), e]
});
}
-function Ck({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, O.jsx)(Mv, { children: e ? /* @__PURE__ */ (0, O.jsx)(ioe, { ...t }, "selection") : null });
+function Sk({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, O.jsx)(Mv, { children: e ? /* @__PURE__ */ (0, O.jsx)(aoe, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var wk = {
+var Ck = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function aoe(e, t = !1) {
+function ooe(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -29268,7 +29268,7 @@ function aoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- wk
+ Ck
];
case "junk": return [
t ? {
@@ -29289,7 +29289,7 @@ function aoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- wk
+ Ck
];
case "follow": return [
{
@@ -29310,7 +29310,7 @@ function aoe(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- wk
+ Ck
];
default: return [
{
@@ -29344,39 +29344,39 @@ function aoe(e, t = !1) {
glyph: "trash",
danger: !0
},
- wk
+ Ck
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var Tk = null, Ek = {
+var wk = null, Tk = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Dk = /* @__PURE__ */ new Set();
-function ooe(e) {
- return Dk.add(e), () => {
- Dk.delete(e);
+}, Ek = /* @__PURE__ */ new Set();
+function soe(e) {
+ return Ek.add(e), () => {
+ Ek.delete(e);
};
}
-function soe() {
- for (let e of [...Dk]) e();
+function coe() {
+ for (let e of [...Ek]) e();
}
-var coe = { render(e) {
- Ek = e, (0, Tt.flushSync)(soe);
+var loe = { render(e) {
+ Tk = e, (0, Tt.flushSync)(coe);
} };
-function loe(e) {
- return Tk = e, coe;
+function uoe(e) {
+ return wk = e, loe;
}
-function uoe() {
- let e = (0, D.useSyncExternalStore)(ooe, () => Ek);
- return Tk ? /* @__PURE__ */ (0, O.jsx)(doe, {
- host: Tk,
+function doe() {
+ let e = (0, D.useSyncExternalStore)(soe, () => Tk);
+ return wk ? /* @__PURE__ */ (0, O.jsx)(foe, {
+ host: wk,
props: e
}) : null;
}
-function doe({ host: e, props: t }) {
+function foe({ host: e, props: t }) {
let n = t.count > 0;
return (0, D.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -29386,11 +29386,11 @@ function doe({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, O.jsx)(Ck, {
+ children: /* @__PURE__ */ (0, O.jsx)(Sk, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: aoe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: ooe(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -29407,12 +29407,12 @@ function doe({ host: e, props: t }) {
}
//#endregion
//#region src/number-setting.ts
-function Ok(e, t, n, r) {
+function Dk(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/settings-store.ts
-function foe(e, t) {
+function poe(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -29432,7 +29432,7 @@ function foe(e, t) {
}
//#endregion
//#region src/sort-preferences.ts
-var kk = [
+var Ok = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -29441,7 +29441,7 @@ var kk = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Ak = ["release", "发行时间"], jk = [...kk, Ak].map(([e]) => e), Mk = {
+], kk = ["release", "发行时间"], Ak = [...Ok, kk].map(([e]) => e), jk = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -29450,28 +29450,28 @@ var kk = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Nk = {
+}, Mk = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Pk = (e, t, n = Mk) => (n[e] || [])[+(t === "asc")] || "", Fk = (e, t = Mk) => t[e] ? "desc" : "";
-function Ik(e, t, n, r = Mk) {
+}, Nk = (e, t, n = jk) => (n[e] || [])[+(t === "asc")] || "", Pk = (e, t = jk) => t[e] ? "desc" : "";
+function Fk(e, t, n, r = jk) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Fk(e, r)
+ dir: Pk(e, r)
};
}
-function Lk(e, t, n) {
+function Ik(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Rk(e, t, n, r, i = n) {
- let a = e ? Nk[e] : void 0, o = a ? a[0] : e, s = o && jk.includes(o) ? o : i;
- return Mk[s] ? {
+function Lk(e, t, n, r, i = n) {
+ let a = e ? Mk[e] : void 0, o = a ? a[0] : e, s = o && Ak.includes(o) ? o : i;
+ return jk[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Lk(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Ik(s, n, r)
} : {
sort: s,
dir: ""
@@ -29479,15 +29479,15 @@ function Rk(e, t, n, r, i = n) {
}
//#endregion
//#region src/appearance/home-glow.ts
-var zk = [
+var Rk = [
"spot1",
"spot2",
"spot3"
-], poe = [
+], moe = [
"光晕一",
"光晕二",
"光晕三"
-], Bk = "native", Vk = [
+], zk = "native", Bk = [
[
"ash",
"灰雾",
@@ -29793,7 +29793,7 @@ var zk = [
"rose"
],
[
- Bk,
+ zk,
"玻璃原色",
{
spot1: {
@@ -29811,7 +29811,7 @@ var zk = [
},
"blue"
]
-], Hk = (e) => e === Bk, Uk = [...Vk.map(([e, t]) => [e, t]), ["custom", "自定义"]], moe = (e) => (Uk.find(([t]) => t === e) || Uk[0])[1], Wk = (e) => structuredClone((Vk.find(([t]) => t === e) || Vk[0])[2]), Gk = [
+], Vk = (e) => e === zk, Hk = [...Bk.map(([e, t]) => [e, t]), ["custom", "自定义"]], hoe = (e) => (Hk.find(([t]) => t === e) || Hk[0])[1], Uk = (e) => structuredClone((Bk.find(([t]) => t === e) || Bk[0])[2]), Wk = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -29824,7 +29824,7 @@ var zk = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Kk = "blue", qk = (e) => Gk.some(([t]) => t === e) ? e : Kk, hoe = (e) => (Vk.find(([t]) => t === e) || [])[3] || "blue", Jk = [
+], Gk = "blue", Kk = (e) => Wk.some(([t]) => t === e) ? e : Gk, goe = (e) => (Bk.find(([t]) => t === e) || [])[3] || "blue", qk = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -29834,7 +29834,7 @@ var zk = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], goe = [
+], _oe = [
[
"gray",
"云灰",
@@ -30230,11 +30230,11 @@ var zk = [
"霁蓝",
"#6686b8"
]
-], Yk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Xk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, _oe = (e, t) => `rgba(${[
+], Jk = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Yk = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, voe = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, voe = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, yoe = {
strength: [
0,
100,
@@ -30260,7 +30260,7 @@ var zk = [
100,
50
]
-}, Zk = {
+}, Xk = {
on: !0,
preset: "ash",
strength: 100,
@@ -30268,57 +30268,57 @@ var zk = [
speed: 100,
soften: 50,
size: 50,
- ...Wk("ash")
+ ...Uk("ash")
};
-function Qk(e) {
- let t = e && typeof e == "object" ? e : {}, n = Uk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Wk(r === "custom" ? "ash" : r), a = {
+function Zk(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Hk.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Uk(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(voe)) a[e] = Yk(+t[e], n, r, i);
- for (let e of zk) {
+ for (let [e, [n, r, i]] of Object.entries(yoe)) a[e] = Jk(+t[e], n, r, i);
+ for (let e of Rk) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Xk(r.color, o.color),
- alpha: Yk(+r.alpha, 0, 100, o.alpha)
+ color: Yk(r.color, o.color),
+ alpha: Jk(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var yoe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, $k = /* @__PURE__ */ new WeakMap();
-function boe(e, t) {
+var boe = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Qk = /* @__PURE__ */ new WeakMap();
+function xoe(e, t) {
if (!e) return;
- let n = $k.get(e);
- n || (n = /* @__PURE__ */ new Map(), $k.set(e, n));
- let r = t.on && !Hk(t.preset), i = (t, r) => {
+ let n = Qk.get(e);
+ n || (n = /* @__PURE__ */ new Map(), Qk.set(e, n));
+ let r = t.on && !Vk(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"), zk.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"), Rk.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, _oe(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, voe(r.color, r.alpha));
});
}
-function xoe(e, t) {
+function Soe(e, t) {
if (!e) return;
- let n = !t.on || Hk(t.preset);
+ let n = !t.on || Vk(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 Soe = "peach.settings.v1", Coe = [
+var Coe = "peach.settings.v1", woe = [
"system",
"light",
"dark"
-], eA = [
+], $k = [
0,
7,
30,
90
-], woe = [
+], Toe = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], tA = {
+], eA = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -30339,46 +30339,46 @@ var Soe = "peach.settings.v1", Coe = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...hl],
- homeGlow: Zk,
- accent: Kk
-}, nA = (e, t, n) => t.includes(e) ? e : n;
-function Toe(e) {
+ homeGlow: Xk,
+ accent: Gk
+}, tA = (e, t, n) => t.includes(e) ? e : n;
+function Eoe(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...tA,
+ ...eA,
...t
};
- n.followInitialDays = eA.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = $k.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 = Nk[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ok(+n.batchSize, 1, 200, 60), n.defaultSort = nA(n.defaultSort, jk, "seed"), n.hoverDelaySeconds = Ok(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ok(+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 = Ok(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ok(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ok(+n.feedLimit, 1, 100, 12), Object.assign(n, ba(n)), n.theme = nA(n.theme, Coe, "system"), n.homeGlow = Qk(n.homeGlow), n.accent = qk(n.accent), n.sidebarOrder = yl(n.sidebarOrder), {
+ let a = Mk[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Dk(+n.batchSize, 1, 200, 60), n.defaultSort = tA(n.defaultSort, Ak, "seed"), n.hoverDelaySeconds = Dk(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Dk(+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 = Dk(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Dk(+n.relatedLimit, 0, 60, 20), n.feedLimit = Dk(+n.feedLimit, 1, 100, 12), Object.assign(n, ba(n)), n.theme = tA(n.theme, woe, "system"), n.homeGlow = Zk(n.homeGlow), n.accent = Kk(n.accent), n.sidebarOrder = yl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Eoe(e) {
+function Doe(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Toe(t);
+ return Eoe(t);
}
-var rA = null;
-function iA() {
- if (rA) return rA;
- let { settings: e, migrated: t } = Eoe(localStorage);
- return rA = foe(Soe, e), t && rA.save(), rA;
+var nA = null;
+function rA() {
+ if (nA) return nA;
+ let { settings: e, migrated: t } = Doe(localStorage);
+ return nA = poe(Coe, e), t && nA.save(), nA;
}
-function aA(e, t, n = iA()) {
+function iA(e, t, n = rA()) {
let r = n.value, i = e && e.followInitialDays;
- eA.includes(i) && (r.followInitialDays = i, n.save());
- for (let t of woe) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ $k.includes(i) && (r.followInitialDays = i, n.save());
+ for (let t of Toe) 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 = Ok(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== tA.searchHistoryLimit && Doe(n);
+ Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = Dk(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== eA.searchHistoryLimit && Ooe(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 Doe(e = iA()) {
+function Ooe(e = rA()) {
return z("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
@@ -30386,7 +30386,7 @@ function Doe(e = iA()) {
}
//#endregion
//#region src/appearance/theme.ts
-var Ooe = [
+var koe = [
[
"system",
"跟随系统",
@@ -30402,32 +30402,32 @@ var Ooe = [
"深色",
"moon"
]
-], koe = null, oA = () => koe ??= matchMedia("(prefers-color-scheme: dark)"), sA = null;
-function Aoe() {
- return sA || (sA = document.createElement("style"), sA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), sA.isConnected || document.head.append(sA), () => {
+], Aoe = null, aA = () => Aoe ??= matchMedia("(prefers-color-scheme: dark)"), oA = null;
+function joe() {
+ return oA || (oA = document.createElement("style"), oA.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), oA.isConnected || document.head.append(oA), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), sA?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), oA?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function cA(e = iA().value.theme) {
- let t = Aoe(), n = document.documentElement;
+function sA(e = rA().value.theme) {
+ let t = joe(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && oA().matches;
+ let r = e === "dark" || e === "system" && aA().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) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var lA = !1;
-function uA() {
- lA || (lA = !0, oA().addEventListener("change", () => {
- iA().value.theme === "system" && cA();
+var cA = !1;
+function lA() {
+ cA || (cA = !0, aA().addEventListener("change", () => {
+ rA().value.theme === "system" && sA();
}));
}
//#endregion
//#region src/appearance/layout.ts
-var dA = [[
+var uA = [[
"big",
"大图",
"maximize"
@@ -30435,7 +30435,7 @@ var dA = [[
"small",
"小图",
"layout-grid"
-]], fA = [[
+]], dA = [[
"big",
"大图",
"maximize"
@@ -30443,7 +30443,7 @@ var dA = [[
"small",
"小图",
"layout-grid"
-]], pA = [[
+]], fA = [[
"fixed",
"固定比例",
"layout-grid"
@@ -30451,130 +30451,130 @@ var dA = [[
"masonry",
"瀑布流",
"columns-2"
-]], mA = .75, hA = () => iA().value, gA = (e = hA()) => ya(e.javLayout), joe = (e = hA()) => ya(e.homeLayout), _A = (e, t = hA()) => e ? joe(t) : gA(t), vA = fA.map(([e]) => e), yA = pA.map(([e]) => e), bA = (e = hA()) => nA(e.photoSize, vA, "small"), xA = (e = hA()) => nA(e.photoLayout, yA, "masonry"), SA = null;
-function CA(e, t = hA()) {
+]], pA = .75, mA = () => rA().value, hA = (e = mA()) => ya(e.javLayout), Moe = (e = mA()) => ya(e.homeLayout), gA = (e, t = mA()) => e ? Moe(t) : hA(t), _A = dA.map(([e]) => e), vA = fA.map(([e]) => e), yA = (e = mA()) => tA(e.photoSize, _A, "small"), bA = (e = mA()) => tA(e.photoLayout, vA, "masonry"), xA = null;
+function SA(e, t = mA()) {
let n = {
active: e.active,
- size: _A(e.home, t),
+ size: gA(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = SA;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (SA = n), SA;
+ }, r = xA;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (xA = n), xA;
}
-function wA(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? mA : 16 / 9;
+function CA(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? pA : 16 / 9;
}
-function Moe(e, t = iA()) {
+function Noe(e, t = rA()) {
t.value.homeLayout = ya(e), t.save();
}
-function TA(e, t = iA()) {
+function wA(e, t = rA()) {
t.value.javLayout = ya(e), t.save();
}
-function Noe(e, t = iA()) {
+function Poe(e, t = rA()) {
t.value.homeLayout = t.value.javLayout = ya(e), t.save();
}
-function Poe(e, t = iA()) {
- t.value.photoSize = nA(e, vA, "small"), t.save();
+function Foe(e, t = rA()) {
+ t.value.photoSize = tA(e, _A, "small"), t.save();
}
-function EA(e, t = iA()) {
- t.value.photoLayout = nA(e, yA, "masonry"), t.save();
+function TA(e, t = rA()) {
+ t.value.photoLayout = tA(e, vA, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
-var DA = "density", OA = {
+var EA = "density", DA = {
big: "336px",
dense: "168px"
-}, kA = () => localStorage.getItem(DA) === "dense" ? "dense" : "big";
-function AA(e, t) {
- let [n, r] = fA;
+}, OA = () => localStorage.getItem(EA) === "dense" ? "dense" : "big";
+function kA(e, t) {
+ let [n, r] = dA;
if (e.querySelector("[data-icon-swap]")) ls(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = cs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- jA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ AA(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function jA(e, t, n) {
+function AA(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var MA = () => document.querySelector("#density");
-function NA(e = kA()) {
+var jA = () => document.querySelector("#density");
+function MA(e = OA()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== OA[e] && t.style.setProperty("--tile", OA[e]), jA(document.body, "data-density", e);
- let n = MA();
- n && (jA(n, "aria-pressed", String(e === "dense")), jA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), AA(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== DA[e] && t.style.setProperty("--tile", DA[e]), AA(document.body, "data-density", e);
+ let n = jA();
+ n && (AA(n, "aria-pressed", String(e === "dense")), AA(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), kA(n, e === "big" ? "big" : "small"));
}
-function Foe() {
- let e = kA() === "big" ? "dense" : "big";
- localStorage.setItem(DA, e), NA(e);
+function Ioe() {
+ let e = OA() === "big" ? "dense" : "big";
+ localStorage.setItem(EA, e), MA(e);
}
-function Ioe(e) {
- let t = MA();
- t && (jA(t, "aria-pressed", String(e === "small")), jA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), AA(t, e));
+function Loe(e) {
+ let t = jA();
+ t && (AA(t, "aria-pressed", String(e === "small")), AA(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), kA(t, e));
}
//#endregion
//#region src/appearance/glow.ts
-function PA(e = iA()) {
- boe(document.querySelector(".glowlayer"), e.value.homeGlow);
+function NA(e = rA()) {
+ xoe(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var FA = 0;
-function IA(e = iA()) {
- FA ||= requestAnimationFrame(() => {
- FA = 0, PA(e);
+var PA = 0;
+function FA(e = rA()) {
+ PA ||= requestAnimationFrame(() => {
+ PA = 0, NA(e);
});
}
-function LA(e = iA()) {
- xoe(document.documentElement, e.value.homeGlow);
+function IA(e = rA()) {
+ Soe(document.documentElement, e.value.homeGlow);
}
-function RA(e = iA()) {
+function LA(e = rA()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var zA = (e, t, n) => ({
+var RA = (e, t, n) => ({
key: e,
label: t,
- native: Hk(e),
- fill: Hk(e) ? "" : yoe(n)
+ native: Vk(e),
+ fill: Vk(e) ? "" : boe(n)
});
-function Loe(e) {
- let t = Vk.map(([e, t, n]) => zA(e, t, zk.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(zA("custom", "自定义", zk.map((t) => e[t].color))), t;
+function Roe(e) {
+ let t = Bk.map(([e, t, n]) => RA(e, t, Rk.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(RA("custom", "自定义", Rk.map((t) => e[t].color))), t;
}
-var BA = Gk;
-function Roe(e, t = iA()) {
+var zA = Wk;
+function zoe(e, t = rA()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Wk(e)), t.value.accent = hoe(e), t.save(), IA(t), LA(t), RA(t);
+ n.preset = e, Object.assign(n, Uk(e)), t.value.accent = goe(e), t.save(), FA(t), IA(t), LA(t);
}
-function zoe(e, t = iA()) {
- t.value.accent = qk(e), t.save(), RA(t);
+function Boe(e, t = rA()) {
+ t.value.accent = Kk(e), t.save(), LA(t);
}
-function Boe(e = iA()) {
+function Voe(e = rA()) {
let t = e.value.homeGlow;
- t.preset = Zk.preset, Object.assign(t, Wk(t.preset)), e.value.accent = Kk, e.save(), IA(e), LA(e), RA(e);
+ t.preset = Xk.preset, Object.assign(t, Uk(t.preset)), e.value.accent = Gk, e.save(), FA(e), IA(e), LA(e);
}
-function VA(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Hk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function BA(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Vk(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Voe(e, t = iA()) {
- return VA(e, t.value.homeGlow), t.subscribe(() => VA(e, t.value.homeGlow));
+function Hoe(e, t = rA()) {
+ return BA(e, t.value.homeGlow), t.subscribe(() => BA(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function HA({ store: e, label: t, hidden: n }) {
+function VA({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Loe(r).map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: Roe(r).map((t) => /* @__PURE__ */ (0, O.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: () => Roe(t.key, e),
+ onClick: () => zoe(t.key, e),
children: /* @__PURE__ */ (0, O.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30586,14 +30586,14 @@ function HA({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var UA = null;
-function Hoe(e) {
- UA = e;
+var HA = null;
+function Uoe(e) {
+ HA = e;
}
-function Uoe() {
- return UA ? /* @__PURE__ */ (0, O.jsx)(WA, { host: UA }) : null;
+function Woe() {
+ return HA ? /* @__PURE__ */ (0, O.jsx)(UA, { host: HA }) : null;
}
-function WA({ host: e }) {
+function UA({ host: e }) {
let { store: t } = e;
(0, D.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -30605,11 +30605,11 @@ function WA({ host: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Boe(t),
+ onClick: () => Voe(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(HA, {
+ /* @__PURE__ */ (0, O.jsx)(VA, {
store: t,
label: "光晕",
hidden: !n.on
@@ -30623,14 +30623,14 @@ function WA({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: BA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: zA.map(([e, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => zoe(e, t),
+ onClick: () => Boe(e, t),
children: /* @__PURE__ */ (0, O.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -30649,32 +30649,32 @@ function WA({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var GA = null;
-function KA(e) {
- GA = e;
+var WA = null;
+function GA(e) {
+ WA = e;
}
-function qA() {
- if (!GA) throw Error("播放器还没有接上宿主(configurePlayer)");
- return GA;
+function KA() {
+ if (!WA) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return WA;
}
//#endregion
//#region src/player/menu.ts
-var JA = null;
-function YA(e) {
- JA = e;
+var qA = null;
+function JA(e) {
+ qA = e;
}
-function XA() {
+function YA() {
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 ZA = null, QA = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function $A() {
+var XA = null, ZA = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function QA() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && To(e, () => {
e.innerHTML = "";
- }), ZA &&= (ZA(), null);
+ }), XA &&= (XA(), null);
}
-async function Woe(e) {
+async function Goe(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -30687,8 +30687,8 @@ async function Woe(e) {
return t.remove(), n;
}
}
-function Goe(e) {
- let t = !!JA?.inMiniplayer(e), n = e.peachItem, r = JA?.kind(e) ?? "item", i = (t) => {
+function Koe(e) {
+ let t = !!qA?.inMiniplayer(e), n = e.peachItem, r = qA?.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);
@@ -30704,7 +30704,7 @@ function Goe(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Woe(i(e)).then((e) => qA().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Goe(i(e)).then((e) => KA().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -30716,11 +30716,11 @@ function Goe(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => JA?.expand()
+ run: () => qA?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => JA?.toMiniplayer()
+ run: () => qA?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -30743,29 +30743,29 @@ function Goe(e) {
run: () => s.click()
}), o;
}
-function Koe(e, t, n) {
- let r = XA();
- $A();
- let i = qA().stage();
+function qoe(e, t, n) {
+ let r = YA();
+ QA();
+ let i = KA().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Goe(e);
+ let a = Koe(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}">${QA(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? QA(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${ZA(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? ZA(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), wo(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)];
- $A(), n?.run();
+ QA(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || $A();
+ r.contains(e.target) || QA();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), $A();
+ e.preventDefault(), e.stopPropagation(), QA();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -30773,51 +30773,51 @@ function Koe(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Do(t, e.el()) && $A();
+ Do(t, e.el()) && QA();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), ZA = () => {
+ }, 0), XA = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function qoe(e) {
+function Joe(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Koe(e, t.clientX, t.clientY));
- }), e.on("dispose", $A);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), qoe(e, t.clientX, t.clientY));
+ }), e.on("dispose", QA);
}
//#endregion
//#region src/player/registry.ts
-var ej = null, tj = () => ej;
-function nj(e) {
- ej = e;
+var $A = null, ej = () => $A;
+function tj(e) {
+ $A = e;
}
-function rj(e) {
+function nj(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function ij(e) {
+function rj(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Joe(e) {
+function Yoe(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var aj = 3e3;
-function oj(e, t) {
+var ij = 3e3;
+function aj(e, t) {
let n = Number(e) || 0, r = mn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Yoe(e) {
+function Xoe(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -30832,10 +30832,10 @@ function Yoe(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Joe(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Yoe(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 > aj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > ij * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -30844,56 +30844,56 @@ function Yoe(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > aj;) t.shift();
+ }); t.length > 2 && a - t[0].at > ij;) 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 sj = 24;
-function cj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > sj && e.splice(0, e.length - sj);
+var oj = 24;
+function sj(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > oj && e.splice(0, e.length - oj);
}
-var lj = "peach-player-panel";
-function uj(e, t, n, r) {
- let i = [...Array(Math.max(0, sj - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var cj = "peach-player-panel";
+function lj(e, t, n, r) {
+ let i = [...Array(Math.max(0, oj - 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>`;
}
-function Xoe() {
+function Zoe() {
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 dj(e, t = "") {
+function uj(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 fj(e, t = "") {
- let n = dj(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 dj(e, t = "") {
+ let n = uj(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 pj(e, t, n = "", r = null) {
+function fj(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : fj(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : dj(t, n);
}
-function mj(e) {
+function pj(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 Zoe(e, t) {
- return e > 0 ? mj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : mj(0);
+function Qoe(e, t) {
+ return e > 0 ? pj(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : pj(0);
}
//#endregion
//#region src/player/subtitle-style.ts
-var hj = {
+var mj = {
font: {
label: "字体",
values: [
@@ -30996,7 +30996,7 @@ var hj = {
["shadow", "阴影"]
]
}
-}, gj = {
+}, hj = {
font: "sans",
size: "100",
color: "white",
@@ -31006,7 +31006,7 @@ var hj = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, _j = "peach.caption-style.v1", Qoe = {
+}, gj = "peach.caption-style.v1", $oe = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -31015,7 +31015,7 @@ var hj = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, $oe = {
+}, ese = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -31023,28 +31023,28 @@ var hj = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, ese = {
+}, tse = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function tse() {
+function nse() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(_j) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(gj) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(gj).map(([t, n]) => [t, hj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(hj).map(([t, n]) => [t, mj[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function vj(e, t, n) {
- let r = tse(), i = document.createElement("div");
+function _j(e, t, n) {
+ let r = nse(), i = document.createElement("div");
i.className = "vjs-peach-captions", i.setAttribute("aria-hidden", "true");
let a = document.createElement("div");
a.className = "vjs-peach-caption-window", i.append(a), e.querySelector("media-container").append(i), e.dataset.peachCaptions = "";
let o = () => {
- let t = (e, t) => `rgba(${Qoe[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", $oe[r.font]), e.style.setProperty("--peach-caption-scale", String(Number(r.size) / 100)), e.style.setProperty("--peach-caption-color", t(r.color, r.opacity)), e.style.setProperty("--peach-caption-background", t(r.background, r.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(r.window, r.windowOpacity)), e.style.setProperty("--peach-caption-edge", ese[r.edge]), e.style.setProperty("--peach-caption-variant", r.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${$oe[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", ese[r.font]), e.style.setProperty("--peach-caption-scale", String(Number(r.size) / 100)), e.style.setProperty("--peach-caption-color", t(r.color, r.opacity)), e.style.setProperty("--peach-caption-background", t(r.background, r.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(r.window, r.windowOpacity)), e.style.setProperty("--peach-caption-edge", tse[r.edge]), e.style.setProperty("--peach-caption-variant", r.font === "small-caps" ? "small-caps" : "normal");
}, s = () => {
a.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -31059,27 +31059,27 @@ function vj(e, t, n) {
return t.textTracks.addEventListener("addtrack", l, { signal: n }), t.textTracks.addEventListener("removetrack", l, { signal: n }), t.textTracks.addEventListener("change", s, { signal: n }), o(), l(), {
current: () => r,
set(e, t) {
- if (hj[e].values.some(([e]) => e === t)) {
+ if (mj[e].values.some(([e]) => e === t)) {
r = {
...r,
[e]: t
}, o();
try {
- localStorage.setItem(_j, JSON.stringify(r));
+ localStorage.setItem(gj, JSON.stringify(r));
} catch {}
}
},
reset() {
- r = { ...gj }, o();
+ r = { ...hj }, o();
try {
- localStorage.removeItem(_j);
+ localStorage.removeItem(gj);
} catch {}
}
};
}
//#endregion
//#region src/player/subtitle-memory.ts
-var yj = /* @__PURE__ */ new Map(), bj = class {
+var vj = /* @__PURE__ */ new Map(), yj = class {
player;
video;
changed;
@@ -31128,7 +31128,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (yj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (vj.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = await fetch(this.url, {
method: "PUT",
headers: { "Content-Type": "application/json" },
@@ -31142,15 +31142,15 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
let n = !!this.error;
this.error = "", n && !this.cleanup.signal.aborted && this.changed();
});
- return yj.set(this.url, t), t.finally(() => {
- yj.get(this.url) === t && yj.delete(this.url);
+ return vj.set(this.url, t), t.finally(() => {
+ vj.get(this.url) === t && vj.delete(this.url);
}).catch(() => {}), t;
}
async restore() {
if (!this.url) return;
let e = this.cleanup.signal;
try {
- if (await yj.get(this.url)?.catch(() => {}), e.aborted) return;
+ if (await vj.get(this.url)?.catch(() => {}), e.aborted) return;
let t = await z(this.url, { signal: e });
if (e.aborted) return;
this.selected === void 0 && (this.selected = t.selected), this.apply();
@@ -31205,7 +31205,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, xj = () => "<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>", nse = class {
+}, bj = () => "<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>", rse = class {
player;
video;
panels;
@@ -31224,7 +31224,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = vj(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = xj(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = _j(e.el(), t, this.cleanup.signal), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = bj(), 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", () => {
@@ -31234,7 +31234,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new bj(e, t, () => {
+ }), this.session = new yj(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -31282,7 +31282,7 @@ var yj = /* @__PURE__ */ new Map(), bj = 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(hj).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(mj).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>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -31294,7 +31294,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
}
styleOptions(e) {
this.page = "style";
- let t = hj[e];
+ let t = mj[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 ? R("check") : ""}</span><span class="vjs-peach-option-label">${B(n)}</span></button>`;
@@ -31411,7 +31411,7 @@ var yj = /* @__PURE__ */ new Map(), bj = class {
};
//#endregion
//#region src/player/controls.ts
-function Sj(e, t, n = "") {
+function xj(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));
@@ -31422,27 +31422,27 @@ function Sj(e, t, n = "") {
};
return o(), o;
}
-function Cj(e, t) {
+function Sj(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function rse(e, t = !0) {
- let n = qA(), r = n.settings();
+function ise(e, t = !0) {
+ let n = KA(), 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 wj = /* @__PURE__ */ new WeakMap();
-function Tj(e) {
+var Cj = /* @__PURE__ */ new WeakMap();
+function wj(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"), wj.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = KA().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), Cj.get(e)?.(t ? "默认视图" : "影院模式");
}
-function Ej(e, t = !0) {
- let n = qA(), r = n.settings();
+function Tj(e, t = !0) {
+ let n = KA(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), Tj(i?.querySelector("[data-player-theater]")), rj(tj());
+ i?.toggleAttribute("data-theater", r.theaterMode), wj(i?.querySelector("[data-player-theater]")), nj(ej());
}
-function ise(e) {
- let t = qA().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function ase(e) {
+ let t = KA().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -31465,9 +31465,9 @@ function ise(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 || (KA().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 && KA().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -31476,7 +31476,7 @@ function ise(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function Dj(e, t, n = 0, r = null) {
+function Ej(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");
@@ -31486,7 +31486,7 @@ function Dj(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- Sj(s, "设置");
+ xj(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u, d = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, f = r, p = "auto", m = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -31526,11 +31526,11 @@ function Dj(e, t, n = 0, r = null) {
active: n
};
}, _ = () => l.getAttribute("aria-hidden") !== "true", v = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(lj, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || u?.hide(), e && document.dispatchEvent(new CustomEvent(cj, { detail: "settings" }));
}, y = () => v(!1), b = (e) => {
e.detail !== "settings" && y();
};
- document.addEventListener(lj, b);
+ document.addEventListener(cj, b);
let x = null, S = 0, C = (e, t) => {
let n = ++S;
x && (clearTimeout(x), x = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -31546,13 +31546,13 @@ function Dj(e, t, n = 0, r = null) {
}), i;
}, w = (e, t) => e.querySelector(t), T = "main", E = (t = 0) => {
T = "main";
- let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${qA().settings().ambientMode}">
+ let { active: n } = g(), r = Number(e.playbackRate()) || 1, i = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${KA().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>${r === 1 ? "正常" : `${r}×`}</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">${xj()}</span><span>字幕</span><b>${B(u?.label() || "关闭")}</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">${bj()}</span><span>字幕</span><b>${B(u?.label() || "关闭")}</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>${B(n.label)}</b>${R("player-menu-next")}</button></div>`, t);
w(i, "[data-player-ambient]").onclick = () => {
- rse(!qA().settings().ambientMode), E();
+ ise(!KA().settings().ambientMode), E();
}, w(i, "[data-player-speed]").onclick = () => A(), w(i, "[data-player-subtitles]").onclick = () => u?.show(), w(i, "[data-player-quality-view]").onclick = () => M();
}, D = .05, O = [
1,
@@ -31632,8 +31632,8 @@ function Dj(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], N), e.on("dispose", () => {
- S++, document.removeEventListener("pointerdown", P), document.removeEventListener(lj, b), x && clearTimeout(x);
- }), u = new nse(e, t, {
+ S++, document.removeEventListener("pointerdown", P), document.removeEventListener(cj, b), x && clearTimeout(x);
+ }), u = new rse(e, t, {
render: C,
open: () => {
T = "subtitles", v(!0);
@@ -31642,21 +31642,21 @@ function Dj(e, t, n = 0, r = null) {
back: () => {
u?.hide(), E(-1);
}
- }), g(), ase(e, a), ose(e), (e) => {
+ }), g(), ose(e, a), sse(e), (e) => {
f = e?.length ? e : null, N();
};
}
-function ase(e, t) {
+function ose(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");
+ let r = KA().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");
- wj.set(a, Sj(a, "影院模式", "T")), Tj(a), a.onclick = (e) => {
- e.stopPropagation(), Ej(!qA().settings().theaterMode);
+ Cj.set(a, xj(a, "影院模式", "T")), wj(a), a.onclick = (e) => {
+ e.stopPropagation(), Tj(!KA().settings().theaterMode);
};
}
-function ose(e) {
+function sse(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -31668,7 +31668,7 @@ function ose(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, 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 = Sj(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 = xj(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 ? "播放" : "暂停");
};
@@ -31679,7 +31679,7 @@ function ose(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 = Sj(p, "静音", "M"), g = () => {
+ let h = xj(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 ? "取消静音" : "静音");
};
@@ -31705,7 +31705,7 @@ function ose(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 = Sj(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = xj(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = gn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : gn(t)} / ${gn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${gn(n)};点击显示已播放时间` : `已播放 ${gn(t)},总时长 ${gn(n)};点击显示剩余时间`);
};
@@ -31717,12 +31717,12 @@ function ose(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- Sj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
- let D = Sj(E, "画中画");
+ xj(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip");
+ let D = xj(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = Sj(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = xj(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), rj(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), nj(e);
};
e.on([
"fullscreenchange",
@@ -31743,7 +31743,7 @@ function ose(e) {
});
let P = document.createElement("div");
P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);
- let ee = P.querySelector("button"), F = Sj(ee, "展开控件"), te = (t) => {
+ let ee = P.querySelector("button"), F = xj(ee, "展开控件"), te = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");
};
ee.onclick = (t) => {
@@ -31755,7 +31755,7 @@ function ose(e) {
}, ne = new ResizeObserver(I);
ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), te(!1), I();
}
-function Oj(e, t, n = {}) {
+function Dj(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");
@@ -31789,13 +31789,13 @@ function Oj(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function sse(e, t) {
+function cse(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => mn(e.duration()) || mn(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(KA().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -31836,11 +31836,11 @@ function sse(e, t) {
} catch {}
});
}
-function kj(e) {
+function Oj(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 Aj(e, t) {
+function kj(e, t) {
z(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -31856,35 +31856,35 @@ function Aj(e, t) {
}
//#endregion
//#region src/player/progress.ts
-var jj = "peach.playback-position.v1", Mj = /* @__PURE__ */ new WeakMap();
-function Nj(e) {
- Mj.get(e)?.(), Mj.delete(e);
+var Aj = "peach.playback-position.v1", jj = /* @__PURE__ */ new WeakMap();
+function Mj(e) {
+ jj.get(e)?.(), jj.delete(e);
}
-function Pj(e, t, n = null) {
+function Nj(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 cse(e) {
+function lse(e) {
try {
- let t = localStorage.getItem(`${jj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${Aj}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function lse(e, t) {
- let n = cse(e);
+function use(e, t) {
+ let n = lse(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * mn(t.duration) : 0;
}
-function use(e, t) {
- Nj(t);
+function dse(e, t) {
+ Mj(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(`${jj}:${e}`, String(r));
+ localStorage.setItem(`${Aj}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -31898,7 +31898,7 @@ function use(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), Mj.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), jj.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -31911,19 +31911,19 @@ function use(e, t) {
}
//#endregion
//#region src/player/telemetry.ts
-var Fj = /* @__PURE__ */ new WeakMap();
-function Ij(e) {
- Fj.get(e)?.(), Fj.delete(e);
+var Pj = /* @__PURE__ */ new WeakMap();
+function Fj(e) {
+ Pj.get(e)?.(), Pj.delete(e);
}
-function Lj(e, t, n, r) {
+function Ij(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Fj.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), Pj.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 Rj(e, t, n = {}) {
+function Lj(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 = mn(e.duration) || mn(t.duration);
@@ -31964,11 +31964,11 @@ function Rj(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, Lj(t, l, u, () => {
+ }, Ij(t, l, u, () => {
a++;
}), c();
}
-function dse(e, t) {
+function fse(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = mn(e.duration) || mn(t.duration);
(r || n) && (z("/api/follow/activity", {
@@ -31999,24 +31999,24 @@ function dse(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, Lj(t, o, s, () => {});
+ }, Ij(t, o, s, () => {});
}
//#endregion
//#region src/player/dispose.ts
-function zj(e) {
+function Rj(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (Nj(t), Ij(t));
+ t && (Mj(t), Fj(t));
try {
e.dispose();
} catch {}
}
//#endregion
//#region src/core/random-id.ts
-function Bj() {
+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;
@@ -32025,23 +32025,23 @@ function Bj() {
}
//#endregion
//#region src/player/stream.ts
-function Vj() {
- return Bj();
+function Bj() {
+ return zj();
}
-function Hj(e, t) {
+function Vj(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function fse(e) {
+function pse(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function Uj(e, t) {
- let n = fse(e);
+async function Hj(e, t) {
+ let n = pse(e);
if (n) return n;
try {
let n = await z(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -32050,9 +32050,9 @@ async function Uj(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return Hj(e, t);
+ return Vj(e, t);
}
-function Wj(e) {
+function Uj(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -32061,23 +32061,23 @@ function Wj(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var Gj = "";
+var Wj = "";
+function Gj() {
+ return Wj;
+}
function Kj() {
- return Gj;
+ return Wj ||= Bj(), Wj;
}
+var mse = (e) => Vj(e, Kj()), hse = (e) => Hj(e, Kj());
function qj() {
- return Gj ||= Vj(), Gj;
-}
-var pse = (e) => Hj(e, qj()), mse = (e) => Uj(e, qj());
-function Jj() {
- let e = Gj;
- e && (Gj = "", Wj(e));
+ let e = Wj;
+ e && (Wj = "", Uj(e));
}
//#endregion
//#region src/player/v10-player.ts
-var Yj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
+var Jj = (e) => typeof e == "string" ? [e] : e, gse = (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-${Bj()}`, 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 = {
@@ -32172,9 +32172,9 @@ var Yj = (e) => typeof e == "string" ? [e] : e, hse = (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) => Yj(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => Yj(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => Yj(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => Jj(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => Jj(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => Jj(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -32229,7 +32229,7 @@ var Yj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
n.id = String(t.id || ""), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, gse = "/vendor/videojs/10.1.0/", _se = [
+}, _se = "/vendor/videojs/10.1.0/", vse = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -32247,18 +32247,18 @@ var Yj = (e) => typeof e == "string" ? [e] : e, hse = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], Xj = null;
-function Zj() {
- return Xj ??= Promise.all(_se.map((e) => import(
+], Yj = null;
+function Xj() {
+ return Yj ??= Promise.all(vse.map((e) => import(
/* @vite-ignore */
- `${gse}${e}`
-))).then(() => hse).catch((e) => {
- throw Xj = null, e;
- }), Xj;
+ `${_se}${e}`
+))).then(() => gse).catch((e) => {
+ throw Yj = null, e;
+ }), Yj;
}
//#endregion
//#region src/player/immerse-player.ts
-var vse = {
+var yse = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -32270,39 +32270,39 @@ var vse = {
errorDisplay: !1,
textTrackSettings: !1
};
-function yse(e, t) {
+function bse(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([Uj(n, r), Zj().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([Hj(n, r), Xj().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = Hj(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = Vj(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, vse);
- i = t, t.peachItem = n, t.peachPlaybackKey = Pj("item", n);
+ let t = s(e, yse);
+ i = t, t.peachItem = n, t.peachPlaybackKey = Nj("item", n);
let r = new AbortController();
- vj(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new bj(t, e), Aj(t, n.id), l && t.one("error", () => {
+ _j(t.el(), e, r.signal), t.on("dispose", () => r.abort()), new yj(t, e), kj(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- Rj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ Lj(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, Wj(r), i ? zj(i) : (e.pause(), Ij(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, Uj(r), i ? Rj(i) : (e.pause(), Fj(e), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var Qj = /* @__PURE__ */ new WeakMap(), $j = null, eM = null, tM = null;
-function nM() {
- $j &&= (clearInterval($j), null), eM &&= (clearInterval(eM), null), tM &&= (clearTimeout(tM), null);
+var Zj = /* @__PURE__ */ new WeakMap(), Qj = null, $j = null, eM = null;
+function tM() {
+ Qj &&= (clearInterval(Qj), null), $j &&= (clearInterval($j), null), eM &&= (clearTimeout(eM), null);
}
-async function bse(e, t, n, r = {}) {
- let i = tj();
+async function xse(e, t, n, r = {}) {
+ let i = ej();
if (i && !i.isDisposed()) return i;
- let a = qA(), o = r.resume ?? null;
+ let a = KA(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : mse(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : hse(e), c;
try {
- c = await Zj();
+ c = await Xj();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -32328,7 +32328,7 @@ async function bse(e, t, n, r = {}) {
} }
}
});
- nj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Pj("item", e), qoe(l), l.on("loadedmetadata", () => {
+ tj(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || Nj("item", e), Joe(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}`);
});
@@ -32336,7 +32336,7 @@ async function bse(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Yoe(oj(f, e.duration)), m = 0, h = !1, g = () => tj() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Xoe(aj(f, e.duration)), m = 0, h = !1, g = () => ej() === 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(() => {
@@ -32347,15 +32347,15 @@ async function bse(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- Qj.set(l, y), y.updateStats = () => {
+ Zj.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 = Kj(), h = s ? dj(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 = Gj(), h = s ? uj(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 = pj(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 = fj(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 = ij(t);
- cj(d.speed, x), cj(d.activity, C), cj(d.buffer, w);
+ let w = rj(t);
+ sj(d.speed, x), sj(d.activity, C), sj(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 ? [
"网络活动",
`${_ ? _n(_) : "—"} · ${h.length} 请求`,
@@ -32373,17 +32373,17 @@ async function bse(e, t, n, r = {}) {
[
"连接速度",
D,
- uj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ lj(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- uj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ lj(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- uj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ lj(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${gn(t.currentTime)} / ${gn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -32399,15 +32399,15 @@ async function bse(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = pj(l, e.id, Kj(), r ? null : p), a = r ? mj(i) : Zoe(i, ij(t));
+ let i = fj(l, e.id, Gj(), r ? null : p), a = r ? pj(i) : Qoe(i, rj(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), eM && clearInterval(eM), eM = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), $j && clearInterval($j), $j = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (tM && clearTimeout(tM), tM = setTimeout(() => {
- e.hidden = !0, eM &&= (clearInterval(eM), null);
+ e && (eM && clearTimeout(eM), eM = setTimeout(() => {
+ e.hidden = !0, $j &&= (clearInterval($j), null);
}, 1400));
};
return l.on([
@@ -32418,7 +32418,7 @@ async function bse(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(pse(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(mse(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -32426,13 +32426,13 @@ async function bse(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = Dj(l, t, e.height, r.qualities ?? null);
+ let n = Ej(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 = oj(r, e.duration));
- }).catch(() => {}), Oj(l, e, { thumbnail: !r.source }), sse(l, e), kj(l), r.source || Aj(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = aj(r, e.duration));
+ }).catch(() => {}), Dj(l, e, { thumbnail: !r.source }), cse(l, e), Oj(l), r.source || kj(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;
@@ -32441,14 +32441,14 @@ async function bse(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var xse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function rM(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", xse), e.querySelector(":scope > #playerStatsBtn")) return;
+var Sse = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function nM(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Sse), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Xoe(), e.insertBefore(n.content, t);
+ n.innerHTML = Zoe(), e.insertBefore(n.content, t);
}
-function iM(e, t) {
- let n = Qj.get(e);
+function rM(e, t) {
+ let n = Zj.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -32460,29 +32460,29 @@ function iM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), $j &&= (clearInterval($j), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), Qj &&= (clearInterval(Qj), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(lj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), $j && clearInterval($j), $j = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(cj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), Qj && clearInterval(Qj), Qj = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(lj, t), s = () => document.removeEventListener(lj, t);
+ document.addEventListener(cj, t), s = () => document.removeEventListener(cj, t);
}
- let c = e.el().querySelector("video"), l = c ? ise(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, nM()));
+ let c = e.el().querySelector("video"), l = c ? ase(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, tM()));
};
return e.one("dispose", d), d;
}
-function aM(e, t) {
- if (t.kind === "immerse") return yse(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 && rM(c, e);
- let l = Pj(n, r, i?.index ?? null), u = {
+function iM(e, t) {
+ if (t.kind === "immerse") return bse(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = KA(), c = t.chrome === !1 ? null : e.parentElement;
+ c && nM(c, e);
+ let l = Nj(n, r, i?.index ?? null), u = {
playbackKey: l,
resume: t.resume ?? {
- time: lse(l, r),
+ time: use(l, r),
autoplay: !1
}
};
@@ -32502,38 +32502,38 @@ function aM(e, t) {
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && (Nj(m), d ? (tj() === d && (nj(null), nM()), zj(d)) : Ij(m));
+ p(), !(d && a?.(d)) && (Mj(m), d ? (ej() === d && (tj(null), tM()), Rj(d)) : Fj(m));
};
- return bse(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, use(l, m), n === "follow" ? dse(r, m) : (m.addEventListener("play", () => {
+ return xse(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
+ d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, dse(l, m), n === "follow" ? fse(r, m) : (m.addEventListener("play", () => {
z("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), Rj(r, m, {
+ }, { once: !0 }), Lj(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = iM(t, c)), o?.(t)) : o?.(null));
+ })), t ? (c && (p = rM(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
//#endregion
//#region src/player/playback.ts
-function oM(e) {
+function aM(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function sM(e, t) {
+function oM(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 cM(e, t, n) {
+function sM(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return Zj().then((a) => {
+ return Xj().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -32558,57 +32558,57 @@ function cM(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (Dj(o, e), Oj(o, null, { thumbnail: !1 }), kj(o));
+ r || o.isDisposed() || (Ej(o, e), Dj(o, null, { thumbnail: !1 }), Oj(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, zj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, Rj(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
//#endregion
//#region src/react/catalog-grid/catalog-view.ts
-var lM = "peach.catalog-view.v1", uM = /* @__PURE__ */ new Set(), dM = "cards";
-function fM() {
+var cM = "peach.catalog-view.v1", lM = /* @__PURE__ */ new Set(), uM = "cards";
+function dM() {
try {
- return localStorage.getItem(lM) === "list" ? "list" : "cards";
+ return localStorage.getItem(cM) === "list" ? "list" : "cards";
} catch {
- return dM;
+ return uM;
}
}
-function pM(e) {
- dM = e === "list" ? "list" : "cards";
+function fM(e) {
+ uM = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(lM, dM);
+ localStorage.setItem(cM, uM);
} catch {}
- uM.forEach((e) => e());
+ lM.forEach((e) => e());
}
-function mM(e) {
- uM.add(e);
+function pM(e) {
+ lM.add(e);
let t = (t) => {
- (t.key === lM || t.key === null) && e();
+ (t.key === cM || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- uM.delete(e), removeEventListener("storage", t);
+ lM.delete(e), removeEventListener("storage", t);
};
}
-var hM = () => (0, D.useSyncExternalStore)(mM, fM, () => "cards");
-function gM(e, t) {
+var mM = () => (0, D.useSyncExternalStore)(pM, dM, () => "cards");
+function hM(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var _M = (e, t) => [
+var gM = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], vM = (e, t) => [
+], _M = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function yM(e, t, n, r, i) {
+async function vM(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 = {
@@ -32618,22 +32618,22 @@ async function yM(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await V("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var bM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, xM = (e, t) => {
+var yM = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, bM = (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 SM(e) {
- let t = gM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function xM(e) {
+ let t = hM(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: _M(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => yM(t, e, n, r, i),
+ queryKey: gM(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => vM(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: bM(n)
+ getNextPageParam: yM(n)
};
}
-function CM(e) {
+function SM(e) {
return {
- queryKey: vM(e.entityKey || "", e.revision || 0),
+ queryKey: _M(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -32648,12 +32648,12 @@ function CM(e) {
};
},
initialPageParam: 0,
- getNextPageParam: xM
+ getNextPageParam: bM
};
}
-async function wM(e, t) {
- if (e.mode !== "catalog" || e.wall || fM() === "list") return;
- let n = SM(e);
+async function CM(e, t) {
+ if (e.mode !== "catalog" || e.wall || dM() === "list") return;
+ let n = xM(e);
await U.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -32662,11 +32662,11 @@ async function wM(e, t) {
})
});
}
-function TM(e) {
+function wM(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;
}
-function EM(e, t, n) {
+function TM(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -32681,24 +32681,24 @@ function EM(e, t, n) {
return !0;
}) : [...e];
}
-var DM = (e, t) => !!e && !!Sa(e, t);
-function OM(e, t) {
- let n = (e) => DM(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) => DM(e, t)) || e[e.length - 1];
+var EM = (e, t) => !!e && !!Sa(e, t);
+function DM(e, t) {
+ let n = (e) => EM(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) => EM(e, t)) || e[e.length - 1];
}
-function kM(e, { collapse: t, mix: n, javImage: r }) {
+function OM(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 = EM(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = TM(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 = OM(e, r);
+ let t = DM(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -32711,16 +32711,16 @@ function kM(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function AM(e, t, n) {
+function kM(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 jM(e, t) {
+function AM(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 MM(e, t) {
+function jM(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -32733,10 +32733,10 @@ function MM(e, t) {
strip: null
}), r;
}
-function NM(e, t) {
- PM((t) => t.id === e, t);
+function MM(e, t) {
+ NM((t) => t.id === e, t);
}
-function PM(e, t) {
+function NM(e, t) {
U.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
@@ -32757,34 +32757,34 @@ function PM(e, t) {
} : n)
});
}
-var FM = (e) => Math.min(Math.max(e || 0, 0), 100), IM = (e) => Math.round(FM(e) / 20), LM = (e) => {
- let t = IM(e);
+var PM = (e) => Math.min(Math.max(e || 0, 0), 100), FM = (e) => Math.round(PM(e) / 20), IM = (e) => {
+ let t = FM(e);
return t ? `${t} 星` : "未评分";
-}, RM = (e, t) => t === IM(e) ? 0 : t * 20, zM = (e) => ["item", e], BM = (e) => [
+}, LM = (e, t) => t === FM(e) ? 0 : t * 20, RM = (e) => ["item", e], zM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Sse = (e, t) => [
+], Cse = (e, t) => [
"item-related",
e,
t
-], Cse = (e) => `/api/item?id=${e}`, wse = (e, t) => `/api/related?id=${e}&limit=${t}`, VM = "/api/playlist", HM = "/api/feedback", UM = "/api/item-tag", WM = "/api/watch-later", GM = "/api/quality-goal", KM = "/api/preference", qM = class extends Error {};
-async function JM(e, t) {
- let n = await V(Cse(e), t);
- if (n.error) throw new qM(n.error);
+], wse = (e) => `/api/item?id=${e}`, Tse = (e, t) => `/api/related?id=${e}&limit=${t}`, BM = "/api/playlist", VM = "/api/feedback", HM = "/api/item-tag", UM = "/api/watch-later", WM = "/api/quality-goal", GM = "/api/preference", KM = class extends Error {};
+async function qM(e, t) {
+ let n = await V(wse(e), t);
+ if (n.error) throw new KM(n.error);
return n;
}
-async function YM(e, t, n) {
+async function JM(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([JM(r, n), t.mixRelated(r)]);
- return U.setQueryData(zM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([qM(r, n), t.mixRelated(r)]);
+ return U.setQueryData(RM(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Qa(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return XM(await V(`${VM}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return YM(await V(`${BM}?id=${e.playlistId}`, n));
let r = await V(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -32795,19 +32795,19 @@ async function YM(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var XM = (e) => ({
+var YM = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), ZM = (e) => e.disposal === "vanished";
-function QM(e, t) {
+}), XM = (e) => e.disposal === "vanished";
+function ZM(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !ZM(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !XM(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 Tse(e, t) {
+function Ese(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 : {
@@ -32815,20 +32815,20 @@ function Tse(e, t) {
part_label: n
};
}
-function $M(e, t) {
+function QM(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 eN(e, t) {
+async function $M(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = BM(n);
+ let o = zM(n);
try {
let r = n.fresh ? void 0 : U.getQueryData(o);
a = !r && n.kind === "mix", i = r || await U.fetchQuery({
queryKey: o,
- queryFn: () => YM(n, e.helpers, t),
+ queryFn: () => JM(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -32840,21 +32840,21 @@ async function eN(e, t) {
return;
}
}
- let o = i ? QM(i, e.id) : e.id;
+ let o = i ? ZM(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(zM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? U.getQueryData(RM(o)) : void 0;
try {
s = c || await U.fetchQuery({
- queryKey: zM(o),
- queryFn: () => JM(o, t),
+ queryKey: RM(o),
+ queryFn: () => qM(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof qM) {
+ if (e instanceof KM) {
r.redirect({ kind: "gone" });
return;
}
@@ -32865,7 +32865,7 @@ async function eN(e, t) {
id: Number(s.follow_item_id)
});
}
-function Ese(e) {
+function Dse(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = un(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -32887,35 +32887,35 @@ function Ese(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Dse(e, t) {
+function Ose(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = un(t.tagLabel(e.k)), i = n.get(r);
(!i || un(e.k) === r && un(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var tN = (e, t) => (e.tags || []).some((e) => un(e.k) === un(t)), nN = (e, t) => ({
+var eN = (e, t) => (e.tags || []).some((e) => un(e.k) === un(t)), tN = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => un(e.k) !== un(t))
-}), rN = (e, t) => tN(e, t.k) ? e : {
+}), nN = (e, t) => eN(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, iN = "peach.recentTags";
-function aN() {
+}, rN = "peach.recentTags";
+function iN() {
try {
- let e = JSON.parse(localStorage.getItem(iN) || "[]");
+ let e = JSON.parse(localStorage.getItem(rN) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Ose(e) {
+function kse(e) {
try {
- let t = aN().filter((t) => un(t) !== un(e));
- localStorage.setItem(iN, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = iN().filter((t) => un(t) !== un(e));
+ localStorage.setItem(rN, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function kse(e, t, n) {
+function Ase(e, t, n) {
let r = un(e), i = new Map(t.map((e) => [un(e.k), e])), a = t.filter((e) => !r || un(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(un(e)) || {
k: e,
n: 0
@@ -32926,73 +32926,73 @@ function kse(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Ase = {
+var jse = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, jse = {
+}, Mse = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Mse(e) {
+function Nse(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: jse[e.kind],
+ title: Mse[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var oN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Nse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(oN(e.part_label))}</small>` : "";
-function Pse(e, t, n, r) {
+var aN = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Pse = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(aN(e.part_label))}</small>` : "";
+function Fse(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Fse = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Ise(e, t) {
+var Ise = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Lse(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 Lse(e) {
+function Rse(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 sN(e, t) {
+function oN(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 Rse = (e, t, n) => [
+var zse = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function zse(e) {
+function Bse(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 Bse = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Vse(e, t = Math.random) {
+var Vse = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Hse(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 Hse(e, t) {
- return Vse(((await V(`/api/items?${e}`)).items || []).filter((e) => Bse(e, t)));
+async function Use(e, t) {
+ return Hse(((await V(`/api/items?${e}`)).items || []).filter((e) => Vse(e, t)));
}
-var cN = (e) => U.ensureQueryData({
- queryKey: zM(e),
- queryFn: ({ signal: t }) => JM(e, t)
+var sN = (e) => U.ensureQueryData({
+ queryKey: RM(e),
+ queryFn: ({ signal: t }) => qM(e, t)
});
-function Use(e, t) {
+function Wse(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Wse(e) {
+function Gse(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,
@@ -33001,306 +33001,306 @@ function Wse(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Gse(e, t, n) {
+function Kse(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 Kse(e, t) {
+function qse(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 qse = 15e3, lN = {
+var Jse = 15e3, cN = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, uN = null, dN = null, fN = lN, pN = /* @__PURE__ */ new Set(), mN = 0, hN = 0, gN = 0, _N = "", vN = [], yN = 0, bN = !1, xN = !1, SN = null, CN = /* @__PURE__ */ new Set(), wN = "", TN = null, EN = 0, DN = null, ON = !1;
-function kN() {
- if (!uN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return uN;
+}, lN = null, uN = null, dN = cN, fN = /* @__PURE__ */ new Set(), pN = 0, mN = 0, hN = 0, gN = "", _N = [], vN = 0, yN = !1, bN = !1, xN = null, SN = /* @__PURE__ */ new Set(), CN = "", wN = null, TN = 0, EN = null, DN = !1;
+function ON() {
+ if (!lN) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return lN;
}
-function Jse(e) {
- return pN.add(e), () => {
- pN.delete(e);
+function Yse(e) {
+ return fN.add(e), () => {
+ fN.delete(e);
};
}
-function Yse() {
- for (let e of [...pN]) e();
+function Xse() {
+ for (let e of [...fN]) e();
}
-function AN() {
- (0, Tt.flushSync)(Yse);
+function kN() {
+ (0, Tt.flushSync)(Xse);
}
-function jN() {
- let e = TN ? fj(TN.id) : 0;
- return e ? `${wN} · ${mj(e)}` : wN;
+function AN() {
+ let e = wN ? dj(wN.id) : 0;
+ return e ? `${CN} · ${pj(e)}` : CN;
}
-function MN(e, t = null) {
- clearInterval(EN), EN = 0, e === null ? (fN = {
- ...fN,
+function jN(e, t = null) {
+ clearInterval(TN), TN = 0, e === null ? (dN = {
+ ...dN,
loading: null
- }, AN()) : (wN = e, TN = t, fN = {
- ...fN,
- loading: jN()
- }, AN(), EN = window.setInterval(() => {
- TN = vN[yN] ?? null, fN = {
- ...fN,
- loading: jN()
- }, AN();
+ }, kN()) : (CN = e, wN = t, dN = {
+ ...dN,
+ loading: AN()
+ }, kN(), TN = window.setInterval(() => {
+ wN = _N[vN] ?? null, dN = {
+ ...dN,
+ loading: AN()
+ }, kN();
}, 500));
}
-function Xse(e) {
+function Zse(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), dN.track.append(t);
- let r = Vj(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), uN.track.append(t);
+ let r = Bj(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => Wj(r),
+ release: () => Uj(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return CN.add(a), a;
+ return SN.add(a), a;
}
-function Zse(e, t) {
+function Qse(e, t) {
return new Promise((n) => {
- e.release = aM(e.video, {
+ e.release = iM(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- fN.open && zN(1);
+ dN.open && RN(1);
}
}), e.gone.then(n);
});
}
-function NN(e) {
- e && !e.disposed && (e.disposed = !0, CN.delete(e), e.leave(), e.release(), e.el.remove(), SN === e && (SN = null));
+function MN(e) {
+ e && !e.disposed && (e.disposed = !0, SN.delete(e), e.leave(), e.release(), e.el.remove(), xN === e && (xN = null));
}
-var PN = [
+var NN = [
"loadeddata",
"canplay",
"error"
];
-function Qse(e) {
+function $se(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), PN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), NN.forEach((e) => t.removeEventListener(e, i)), n());
};
- PN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, qse);
+ NN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, Jse);
e.gone.then(i);
});
}
-function FN(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Gse(e.videoWidth, e.videoHeight, n);
+function PN(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Kse(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var IN = () => dN?.track.querySelectorAll("video").forEach(FN);
-function $se(e) {
- delete e.dataset.fit, e.readyState >= 1 ? FN(e) : e.addEventListener("loadedmetadata", () => FN(e), { once: !0 });
-}
+var FN = () => uN?.track.querySelectorAll("video").forEach(PN);
function ece(e) {
- fN = {
- ...fN,
+ delete e.dataset.fit, e.readyState >= 1 ? PN(e) : e.addEventListener("loadedmetadata", () => PN(e), { once: !0 });
+}
+function tce(e) {
+ dN = {
+ ...dN,
wide: e
- }, AN(), IN();
+ }, kN(), FN();
}
-var LN = () => {
- let e = _N;
+var IN = () => {
+ let e = gN;
return U.fetchQuery({
- queryKey: Rse(e, hN, gN),
- queryFn: () => Hse(e, kN().sourceOffline),
+ queryKey: zse(e, mN, hN),
+ queryFn: () => Use(e, ON().sourceOffline),
staleTime: Infinity
});
};
-function tce(e, t) {
+function nce(e, t) {
let n = () => mn(e.duration) || mn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && dN && (dN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), DN = {
+ t && uN && (uN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), EN = {
video: e,
duration: n
};
}
-async function RN(e = 0) {
- let t = vN[yN];
- if (!t || bN) return;
- let n = mN;
- kN().route(t.id), bN = !0, MN(e ? "切换中" : "加载中", t);
+async function LN(e = 0) {
+ let t = _N[vN];
+ if (!t || yN) return;
+ let n = pN;
+ ON().route(t.id), yN = !0, jN(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await cN(t.id).catch((e) => {
- if (!(e instanceof qM)) throw e;
- }), n !== mN) return;
- let i = SN, a = !!(e && i);
- a || NN(i);
- let o = Xse(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, $se(o.video), await Zse(o, t), await Qse(o), o.disposed || (ece(Kse(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await sN(t.id).catch((e) => {
+ if (!(e instanceof KM)) throw e;
+ }), n !== pN) return;
+ let i = xN, a = !!(e && i);
+ a || MN(i);
+ let o = Zse(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, ece(o.video), await Qse(o, t), await $se(o), o.disposed || (tce(qse(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)), NN(i), o.el.style.transform = ""), o.disposed)) return;
- SN = o, r = null, o.video.play()?.catch(() => {}), fN = {
- ...fN,
+ })), await new Promise((e) => setTimeout(e, 210)), MN(i), o.el.style.transform = ""), o.disposed)) return;
+ xN = o, r = null, o.video.play()?.catch(() => {}), dN = {
+ ...dN,
idle: !1,
shown: {
item: t,
- index: yN,
- length: vN.length
+ index: vN,
+ length: _N.length
}
- }, tce(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), MN(null);
+ }, nce(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), jN(null);
} catch {
- NN(r), n === mN && MN(null);
+ MN(r), n === pN && jN(null);
} finally {
- n === mN && (bN = !1);
+ n === pN && (yN = !1);
}
}
-async function zN(e) {
- if (bN || !fN.open) return;
- let t = mN;
- if (yN += e, MN("切换中", vN[yN] ?? null), yN >= vN.length - 3 && !xN) {
- xN = !0;
+async function RN(e) {
+ if (yN || !dN.open) return;
+ let t = pN;
+ if (vN += e, jN("切换中", _N[vN] ?? null), vN >= _N.length - 3 && !bN) {
+ bN = !0;
try {
- gN += 1;
- let e = await LN();
- t === mN && (vN = Use(vN, e));
+ hN += 1;
+ let e = await IN();
+ t === pN && (_N = Wse(_N, e));
} catch {} finally {
- xN = !1;
+ bN = !1;
}
}
- t === mN && (yN >= vN.length && (yN = 0), yN < 0 && (yN = vN.length - 1), await RN(e));
+ t === pN && (vN >= _N.length && (vN = 0), vN < 0 && (vN = _N.length - 1), await LN(e));
}
-async function nce(e) {
- let t = ++mN;
- BN(), hN += 1, gN = 0, _N = zse(kN().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), fN = {
- ...fN,
+async function rce(e) {
+ let t = ++pN;
+ zN(), mN += 1, hN = 0, gN = Bse(ON().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), dN = {
+ ...dN,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), MN("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), jN("加载内容");
try {
- let n = await LN();
+ let n = await IN();
if (e && !n.some((t) => t.id === e)) {
- let t = await cN(e).catch((e) => {
- if (e instanceof qM) return null;
+ let t = await sN(e).catch((e) => {
+ if (e instanceof KM) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== mN) return;
- if (vN = n, !vN.length) {
- VN(), kN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== pN) return;
+ if (_N = n, !_N.length) {
+ BN(), ON().warn("当前筛选下没有可直接播放的内容");
return;
}
- yN = Math.max(0, vN.findIndex((t) => t.id === e)), await RN();
+ vN = Math.max(0, _N.findIndex((t) => t.id === e)), await LN();
} catch {
- if (t !== mN) return;
- MN(null), VN();
+ if (t !== pN) return;
+ jN(null), BN();
}
}
-function BN() {
- clearInterval(EN), EN = 0, qN(), GN = null, DN = null, ON = !1, [...CN].forEach(NN), bN = !1;
+function zN() {
+ clearInterval(TN), TN = 0, KN(), WN = null, EN = null, DN = !1, [...SN].forEach(MN), yN = !1;
}
-function VN() {
- fN.open && (mN++, BN(), fN = lN, document.body.removeAttribute("data-immerse-open"), AN(), kN().closed());
+function BN() {
+ dN.open && (pN++, zN(), dN = cN, document.body.removeAttribute("data-immerse-open"), kN(), ON().closed());
}
-var HN = 0, UN = null, WN = 0, GN = null, KN = 0;
-function qN() {
- clearTimeout(HN), HN = 0, UN = null;
+var VN = 0, HN = null, UN = 0, WN = null, GN = 0;
+function KN() {
+ clearTimeout(VN), VN = 0, HN = null;
}
-function rce(e) {
- let t = SN?.video;
+function ice(e) {
+ let t = xN?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- UN && UN.side === n && r - UN.at <= 280 ? (qN(), sM(t, kN().seekSeconds() * n)) : (HN && (clearTimeout(HN), HN = 0, oM(t)), UN = {
+ HN && HN.side === n && r - HN.at <= 280 ? (KN(), oM(t, ON().seekSeconds() * n)) : (VN && (clearTimeout(VN), VN = 0, aM(t)), HN = {
side: n,
at: r
- }, HN = window.setTimeout(() => {
- HN = 0, UN = null, fN.open && oM(SN?.video);
+ }, VN = window.setTimeout(() => {
+ VN = 0, HN = null, dN.open && aM(xN?.video);
}, 280));
}
-function ice() {
- Date.now() < WN || oM(SN?.video);
+function ace() {
+ Date.now() < UN || aM(xN?.video);
}
-var JN = (e) => dN?.bar.toggleAttribute("data-scrubbing", e);
-function YN(e) {
- dN && (dN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var qN = (e) => uN?.bar.toggleAttribute("data-scrubbing", e);
+function JN(e) {
+ uN && (uN.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function XN(e) {
+function YN(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- GN = null;
+ WN = null;
return;
}
- let n = SN?.video;
- GN = {
+ let n = xN?.video;
+ WN = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function ZN(e) {
- if (!GN || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - GN.x, n = e.touches[0].clientY - GN.y;
- if (!GN.axis) {
+function XN(e) {
+ if (!WN || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - WN.x, n = e.touches[0].clientY - WN.y;
+ if (!WN.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- GN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", GN.axis === "x" && JN(!0);
+ WN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", WN.axis === "x" && qN(!0);
}
- if (GN.axis !== "x") return;
- let r = SN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), GN.to = Math.min(i, Math.max(0, GN.from + t / window.innerWidth * i)), YN(GN.to / i));
+ if (WN.axis !== "x") return;
+ let r = xN?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), WN.to = Math.min(i, Math.max(0, WN.from + t / window.innerWidth * i)), JN(WN.to / i));
}
-function QN(e) {
- if (!GN) return;
- let t = GN;
- if (GN = null, WN = Date.now() + 700, JN(!1), t.axis === "x") {
- let e = SN?.video;
+function ZN(e) {
+ if (!WN) return;
+ let t = WN;
+ if (WN = null, UN = Date.now() + 700, qN(!1), t.axis === "x") {
+ let e = xN?.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 ? (qN(), zN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), rce(n.clientX));
+ Math.abs(i) > 60 ? (KN(), RN(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ice(n.clientX));
}
-function $N() {
- GN = null, JN(!1);
+function QN() {
+ WN = null, qN(!1);
}
-function eP(e) {
+function $N(e) {
let t = Date.now();
- t - KN < 260 || (KN = t, zN(e.deltaY > 0 ? 1 : -1));
+ t - GN < 260 || (GN = t, RN(e.deltaY > 0 ? 1 : -1));
}
-function tP(e) {
- let t = dN.bar.getBoundingClientRect();
+function eP(e) {
+ let t = uN.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function ace(e) {
- DN?.duration() && (ON = !0, JN(!0), e.currentTarget.setPointerCapture(e.pointerId), YN(tP(e)), e.preventDefault());
-}
function oce(e) {
- ON && YN(tP(e));
+ EN?.duration() && (DN = !0, qN(!0), e.currentTarget.setPointerCapture(e.pointerId), JN(eP(e)), e.preventDefault());
}
function sce(e) {
- if (!ON) return;
- ON = !1, JN(!1);
- let t = DN?.duration();
- DN && t && (DN.video.currentTime = t * tP(e));
+ DN && JN(eP(e));
}
-function cce() {
- ON = !1, JN(!1);
+function cce(e) {
+ if (!DN) return;
+ DN = !1, qN(!1);
+ let t = EN?.duration();
+ EN && t && (EN.video.currentTime = t * eP(e));
}
-async function nP(e, t) {
- let n = await H(HM, {
+function lce() {
+ DN = !1, qN(!1);
+}
+async function tP(e, t) {
+ let n = await H(VM, {
id: e,
kind: t
- }), r = U.getQueryData(zM(e));
- if (!r) return NM(e, {
+ }), r = U.getQueryData(RM(e));
+ if (!r) return MM(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -33309,7 +33309,7 @@ async function nP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return U.setQueryData(zM(e), i), NM(e, {
+ return U.setQueryData(RM(e), i), MM(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -33317,7 +33317,7 @@ async function nP(e, t) {
o_count: i.o_count
}), n;
}
-var lce = [
+var uce = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -33334,31 +33334,31 @@ var lce = [
label: "记一次高潮"
}
];
-function rP(e) {
+function nP(e) {
return St({
- queryKey: zM(e ?? 0),
- queryFn: ({ signal: t }) => JM(e, t),
+ queryKey: RM(e ?? 0),
+ queryFn: ({ signal: t }) => qM(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function uce({ kind: e, glyph: t, label: n, id: r }) {
- let i = rP(r), a = Ct({
+function dce({ kind: e, glyph: t, label: n, id: r }) {
+ let i = nP(r), a = Ct({
mutationFn: async (t) => {
- let n = U.getQueryData(zM(t))?.feedback || null;
+ let n = U.getQueryData(RM(t))?.feedback || null;
return {
- result: await nP(t, e),
+ result: await tP(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- kN().toast(sN(e, t), { undo: async () => {
- e === "o" ? await nP(r, "o-undo") : (t.feedback && await nP(r, t.feedback), n && await nP(r, n));
+ ON().toast(oN(e, t), { undo: async () => {
+ e === "o" ? await tP(r, "o-undo") : (t.feedback && await tP(r, t.feedback), n && await tP(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- zN(1);
+ RN(1);
}, 260);
},
- onError: (e) => kN().failure("更新反馈", e)
+ onError: (e) => ON().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-action": "",
@@ -33389,11 +33389,11 @@ function uce({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function dce({ shown: e }) {
- let t = e?.item ?? null, n = rP(t?.id ?? null), r = n ? Wse(n) : null, i = kN(), a = (e) => {
- e.preventDefault(), n && (VN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function fce({ shown: e }) {
+ let t = e?.item ?? null, n = nP(t?.id ?? null), r = n ? Gse(n) : null, i = ON(), a = (e) => {
+ e.preventDefault(), n && (BN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (VN(), i.openItem(t.id));
+ t && (BN(), i.openItem(t.id));
}, s = r ? La(r.name, r.ref, va(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-immerse-ui": "",
@@ -33422,18 +33422,18 @@ function dce({ shown: e }) {
})]
});
}
-var fce = { __html: ns("媒体加载中") };
-function pce({ view: e }) {
+var pce = { __html: ns("媒体加载中") };
+function mce({ view: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current;
- return dN = {
+ return uN = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", XN, { passive: !0 }), e.addEventListener("touchmove", ZN, { passive: !1 }), e.addEventListener("touchend", QN, { passive: !1 }), e.addEventListener("touchcancel", $N, { passive: !0 }), e.addEventListener("wheel", eP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", XN), e.removeEventListener("touchmove", ZN), e.removeEventListener("touchend", QN), e.removeEventListener("touchcancel", $N), e.removeEventListener("wheel", eP), dN = null;
+ }, e.addEventListener("touchstart", YN, { passive: !0 }), e.addEventListener("touchmove", XN, { passive: !1 }), e.addEventListener("touchend", ZN, { passive: !1 }), e.addEventListener("touchcancel", QN, { passive: !0 }), e.addEventListener("wheel", $N, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", YN), e.removeEventListener("touchmove", XN), e.removeEventListener("touchend", ZN), e.removeEventListener("touchcancel", QN), e.removeEventListener("wheel", $N), uN = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -33450,10 +33450,10 @@ function pce({ view: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: ice
+ onClick: ace
}), /* @__PURE__ */ (0, O.jsx)("div", {
"data-immerse-actions": "",
- children: lce.map((e) => /* @__PURE__ */ (0, O.jsx)(uce, {
+ children: uce.map((e) => /* @__PURE__ */ (0, O.jsx)(dce, {
...e,
id: a
}, e.kind))
@@ -33466,7 +33466,7 @@ function pce({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: fce
+ dangerouslySetInnerHTML: pce
}), /* @__PURE__ */ (0, O.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -33474,7 +33474,7 @@ function pce({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: VN,
+ onClick: BN,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-x" })
@@ -33483,90 +33483,90 @@ function pce({ view: e }) {
/* @__PURE__ */ (0, O.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: ace,
- onPointerMove: oce,
- onPointerUp: sce,
- onPointerCancel: cce,
+ onPointerDown: oce,
+ onPointerMove: sce,
+ onPointerUp: cce,
+ onPointerCancel: lce,
children: /* @__PURE__ */ (0, O.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, O.jsx)(dce, { shown: e.shown })
+ /* @__PURE__ */ (0, O.jsx)(fce, { shown: e.shown })
]
});
}
-var mce = {
- open: nce,
- close: VN,
- isOpen: () => fN.open,
- activeVideo: () => fN.open ? SN?.video ?? null : null
+var hce = {
+ open: rce,
+ close: BN,
+ isOpen: () => dN.open,
+ activeVideo: () => dN.open ? xN?.video ?? null : null
};
-function hce(e) {
- if (!fN.open) return;
+function gce(e) {
+ if (!dN.open) return;
let t = e.target;
- (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && zN(1), e.key === "ArrowUp" && zN(-1)));
+ (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && RN(1), e.key === "ArrowUp" && RN(-1)));
}
-function gce(e) {
- let t = !uN;
- return uN = e, t && (document.addEventListener("keydown", hce), addEventListener("resize", () => {
- fN.open && IN();
+function _ce(e) {
+ let t = !lN;
+ return lN = e, t && (document.addEventListener("keydown", gce), addEventListener("resize", () => {
+ dN.open && FN();
}), addEventListener("pagehide", () => {
- CN.forEach((e) => Wj(e.session));
- })), mce;
+ SN.forEach((e) => Uj(e.session));
+ })), hce;
}
-function _ce() {
- let e = (0, D.useSyncExternalStore)(Jse, () => fN);
- return uN ? /* @__PURE__ */ (0, O.jsx)(pce, { view: e }) : null;
+function vce() {
+ let e = (0, D.useSyncExternalStore)(Yse, () => dN);
+ return lN ? /* @__PURE__ */ (0, O.jsx)(mce, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var iP = {
+var rP = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, vce = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function yce(e) {
- let t = iP[e.path] ? "cleanup" : e.section;
+}, yce = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function bce(e) {
+ let t = rP[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var bce = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function aP(e) {
+var xce = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function iP(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = iP[e.path] ?? "";
+ let n = rP[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: yce(e),
+ pressed: bce(e),
crumb: n,
- compact: vce.has(e.path) || e.section === "configuration",
+ compact: yce.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: bce(e.trash),
+ text: xce(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var oP = (e) => e.replace(/[&<>"']/g, (e) => ({
+var aP = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), sP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${oP(e)}"/></svg>`, cP = "<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 xce(e) {
- let t = aP(e);
+})[e]), oP = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${aP(e)}"/></svg>`, sP = "<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 Sce(e) {
+ let t = iP(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${oP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${sP(r)}<span>${oP(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${sP("chevron-right")}</li><li aria-current="true"><span>${oP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? cP : `<span data-lede-text="">${oP(t.lede.text)}</span>${t.lede.total ? Sce : ""}`}</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=\"\"" : ""}>${oP(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${aP(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${oP(r)}<span>${aP(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${oP("chevron-right")}</li><li aria-current="true"><span>${aP(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? sP : `<span data-lede-text="">${aP(t.lede.text)}</span>${t.lede.total ? Cce : ""}`}</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=\"\"" : ""}>${aP(t.title)}</h2>` + i;
}
-var Sce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Cce = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function lP({ name: e }) {
+function cP({ name: e }) {
let { wide: t, viewBox: n } = Gt(e);
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: n,
@@ -33575,7 +33575,7 @@ function lP({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function Cce({ name: e }) {
+function wce({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -33584,88 +33584,88 @@ function Cce({ name: e }) {
}
//#endregion
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var wce = (e, t) => {
+var Tce = (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;
-}, Tce = (e, t) => ({
+}, Ece = (e, t) => ({
classGroupId: e,
validator: t
-}), uP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), lP = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), dP = "-", fP = [], Ece = "arbitrary..", Dce = (e) => {
- let t = kce(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), uP = "-", dP = [], Dce = "arbitrary..", Oce = (e) => {
+ let t = Ace(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Oce(e);
- let n = e.split(dP);
- return pP(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return kce(e);
+ let n = e.split(uP);
+ return fP(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? wce(i, t) : t : i || fP;
+ return t ? i ? Tce(i, t) : t : i || dP;
}
- return n[e] || fP;
+ return n[e] || dP;
}
};
-}, pP = (e, t, n) => {
+}, fP = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = pP(e, t + 1, i);
+ let n = fP(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(dP) : e.slice(t).join(dP), s = a.length;
+ let o = t === 0 ? e.join(uP) : e.slice(t).join(uP), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Oce = (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 ? Ece + r : void 0;
-})(), kce = (e) => {
+ return r ? Dce + r : void 0;
+})(), Ace = (e) => {
let { theme: t, classGroups: n } = e;
- return Ace(n, t);
-}, Ace = (e, t) => {
- let n = uP();
+ return jce(n, t);
+}, jce = (e, t) => {
+ let n = lP();
for (let r in e) {
let i = e[r];
- mP(i, n, r, t);
+ pP(i, n, r, t);
}
return n;
-}, mP = (e, t, n, r) => {
+}, pP = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- jce(i, t, n, r);
+ Mce(i, t, n, r);
}
-}, jce = (e, t, n, r) => {
- typeof e == "string" ? Mce(e, t, n) : typeof e == "function" ? Nce(e, t, n, r) : Pce(e, t, n, r);
-}, Mce = (e, t, n) => {
- let r = e === "" ? t : hP(t, e);
+}, Mce = (e, t, n, r) => {
+ typeof e == "string" ? Nce(e, t, n) : typeof e == "function" ? Pce(e, t, n, r) : Fce(e, t, n, r);
+}, Nce = (e, t, n) => {
+ let r = e === "" ? t : mP(t, e);
r.classGroupId = n;
-}, Nce = (e, t, n, r) => {
- Fce(e) ? mP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Tce(n, e)));
}, Pce = (e, t, n, r) => {
+ Ice(e) ? pP(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Ece(n, e)));
+}, Fce = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- mP(o, hP(t, a), n, r);
+ pP(o, mP(t, a), n, r);
}
-}, hP = (e, t) => {
- let n = e, r = t.split(dP), i = r.length;
+}, mP = (e, t) => {
+ let n = e, r = t.split(uP), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = uP(), n.nextPart.set(t, i)), n = i;
+ i || (i = lP(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Fce = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ice = (e) => {
+}, Ice = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lce = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -33683,19 +33683,19 @@ var wce = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, gP = "!", _P = ":", Lce = [], vP = (e, t, n, r, i) => ({
+}, hP = "!", gP = ":", Rce = [], _P = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Rce = (e) => {
+}), zce = (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 === _P) {
+ if (o === gP) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -33707,13 +33707,13 @@ var wce = (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(gP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(gP) && (c = s.slice(1), l = !0);
+ s.endsWith(hP) ? (c = s.slice(0, -1), l = !0) : s.startsWith(hP) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return vP(t, l, c, u);
+ return _P(t, l, c, u);
};
if (t) {
- let e = t + _P, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : vP(Lce, !1, t, void 0, !0);
+ let e = t + gP, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : _P(Rce, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -33723,7 +33723,7 @@ var wce = (e, t) => {
});
}
return r;
-}, zce = (e) => {
+}, Bce = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -33735,18 +33735,18 @@ var wce = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Bce = (e) => ({
- cache: Ice(e.cacheSize),
- parseClassName: Rce(e),
- sortModifiers: zce(e),
- postfixLookupClassGroupIds: Vce(e),
- ...Dce(e)
-}), Vce = (e) => {
+}, Vce = (e) => ({
+ cache: Lce(e.cacheSize),
+ parseClassName: zce(e),
+ sortModifiers: Bce(e),
+ postfixLookupClassGroupIds: Hce(e),
+ ...Oce(e)
+}), Hce = (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;
-}, Hce = /\s+/, Uce = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hce), l = "";
+}, Uce = /\s+/, Wce = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Uce), 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) {
@@ -33766,7 +33766,7 @@ var wce = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + gP : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + hP : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -33777,34 +33777,34 @@ var wce = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Wce = (...e) => {
+}, Gce = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = yP(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = vP(n)) && (i && (i += " "), i += r);
return i;
-}, yP = (e) => {
+}, vP = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = yP(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = vP(e[r])) && (n && (n += " "), n += t);
return n;
-}, bP = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Bce(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, yP = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Vce(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 = Uce(e, n);
+ let a = Wce(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Wce(...e));
-}, Gce = [], xP = (e) => {
- let t = (t) => t[e] || Gce;
+ return a = o, (...e) => a(Gce(...e));
+}, Kce = [], bP = (e) => {
+ let t = (t) => t[e] || Kce;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, SP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, CP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kce = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qce = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jce = /\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$/, Yce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, wP = (e) => Kce.test(e), TP = (e) => !!e && !Number.isNaN(Number(e)), EP = (e) => !!e && Number.isInteger(Number(e)), DP = (e) => e.endsWith("%") && TP(e.slice(0, -1)), OP = (e) => qce.test(e), kP = () => !0, Qce = (e) => Jce.test(e) && !Yce.test(e), AP = () => !1, $ce = (e) => Xce.test(e), ele = (e) => Zce.test(e), tle = (e) => !jP(e) && !IP(e), nle = (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)), rle = (e) => BP(e, WP, AP), jP = (e) => SP.test(e), MP = (e) => BP(e, GP, Qce), NP = (e) => BP(e, dle, TP), ile = (e) => BP(e, qP, kP), ale = (e) => BP(e, KP, AP), PP = (e) => BP(e, HP, AP), ole = (e) => BP(e, UP, ele), FP = (e) => BP(e, JP, $ce), IP = (e) => CP.test(e), LP = (e) => VP(e, GP), sle = (e) => VP(e, KP), RP = (e) => VP(e, HP), cle = (e) => VP(e, WP), lle = (e) => VP(e, UP), zP = (e) => VP(e, JP, !0), ule = (e) => VP(e, qP, !0), BP = (e, t, n) => {
- let r = SP.exec(e);
+}, xP = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, SP = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qce = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jce = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yce = /\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$/, Xce = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Zce = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qce = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, CP = (e) => qce.test(e), wP = (e) => !!e && !Number.isNaN(Number(e)), TP = (e) => !!e && Number.isInteger(Number(e)), EP = (e) => e.endsWith("%") && wP(e.slice(0, -1)), DP = (e) => Jce.test(e), OP = () => !0, $ce = (e) => Yce.test(e) && !Xce.test(e), kP = () => !1, ele = (e) => Zce.test(e), tle = (e) => Qce.test(e), nle = (e) => !AP(e) && !FP(e), rle = (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)), ile = (e) => zP(e, UP, kP), AP = (e) => xP.test(e), jP = (e) => zP(e, WP, $ce), MP = (e) => zP(e, fle, wP), ale = (e) => zP(e, KP, OP), ole = (e) => zP(e, GP, kP), NP = (e) => zP(e, VP, kP), sle = (e) => zP(e, HP, tle), PP = (e) => zP(e, qP, ele), FP = (e) => SP.test(e), IP = (e) => BP(e, WP), cle = (e) => BP(e, GP), LP = (e) => BP(e, VP), lle = (e) => BP(e, UP), ule = (e) => BP(e, HP), RP = (e) => BP(e, qP, !0), dle = (e) => BP(e, KP, !0), zP = (e, t, n) => {
+ let r = xP.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, VP = (e, t, n = !1) => {
- let r = CP.exec(e);
+}, BP = (e, t, n = !1) => {
+ let r = SP.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, HP = (e) => e === "position" || e === "percentage", UP = (e) => e === "image" || e === "url", WP = (e) => e === "length" || e === "size" || e === "bg-size", GP = (e) => e === "length", dle = (e) => e === "number", KP = (e) => e === "family-name", qP = (e) => e === "number" || e === "weight", JP = (e) => e === "shadow", YP = () => {
- let e = xP("color"), t = xP("font"), n = xP("text"), r = xP("font-weight"), i = xP("tracking"), a = xP("leading"), o = xP("breakpoint"), s = xP("container"), c = xP("spacing"), l = xP("radius"), u = xP("shadow"), d = xP("inset-shadow"), f = xP("text-shadow"), p = xP("drop-shadow"), m = xP("blur"), h = xP("perspective"), g = xP("aspect"), _ = xP("ease"), v = xP("animate"), y = () => [
+}, VP = (e) => e === "position" || e === "percentage", HP = (e) => e === "image" || e === "url", UP = (e) => e === "length" || e === "size" || e === "bg-size", WP = (e) => e === "length", fle = (e) => e === "number", GP = (e) => e === "family-name", KP = (e) => e === "number" || e === "weight", qP = (e) => e === "shadow", JP = () => {
+ let e = bP("color"), t = bP("font"), n = bP("text"), r = bP("font-weight"), i = bP("tracking"), a = bP("leading"), o = bP("breakpoint"), s = bP("container"), c = bP("spacing"), l = bP("radius"), u = bP("shadow"), d = bP("inset-shadow"), f = bP("text-shadow"), p = bP("drop-shadow"), m = bP("blur"), h = bP("perspective"), g = bP("aspect"), _ = bP("ease"), v = bP("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -33829,8 +33829,8 @@ var wce = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- IP,
- jP
+ FP,
+ AP
], S = () => [
"auto",
"hidden",
@@ -33842,43 +33842,43 @@ var wce = (e, t) => {
"contain",
"none"
], w = () => [
- IP,
- jP,
+ FP,
+ AP,
c
], T = () => [
- wP,
+ CP,
"full",
"auto",
...w()
], E = () => [
- EP,
+ TP,
"none",
"subgrid",
- IP,
- jP
+ FP,
+ AP
], D = () => [
"auto",
{ span: [
"full",
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
] },
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
], O = () => [
- EP,
+ TP,
"auto",
- IP,
- jP
+ FP,
+ AP
], k = () => [
"auto",
"min",
"max",
"fr",
- IP,
- jP
+ FP,
+ AP
], A = () => [
"start",
"end",
@@ -33898,7 +33898,7 @@ var wce = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- wP,
+ CP,
"auto",
"full",
"dvw",
@@ -33913,7 +33913,7 @@ var wce = (e, t) => {
...w()
], P = () => [
s,
- wP,
+ CP,
"screen",
"full",
"dvw",
@@ -33924,7 +33924,7 @@ var wce = (e, t) => {
"fit",
...w()
], ee = () => [
- wP,
+ CP,
"screen",
"full",
"lh",
@@ -33937,13 +33937,13 @@ var wce = (e, t) => {
...w()
], F = () => [
e,
- IP,
- jP
+ FP,
+ AP
], te = () => [
...b(),
- RP,
- PP,
- { position: [IP, jP] }
+ LP,
+ NP,
+ { position: [FP, AP] }
], I = () => ["no-repeat", { repeat: [
"",
"x",
@@ -33954,25 +33954,25 @@ var wce = (e, t) => {
"auto",
"cover",
"contain",
- cle,
- rle,
- { size: [IP, jP] }
+ lle,
+ ile,
+ { size: [FP, AP] }
], re = () => [
- DP,
- LP,
- MP
+ EP,
+ IP,
+ jP
], ie = () => [
"",
"none",
"full",
l,
- IP,
- jP
+ FP,
+ AP
], ae = () => [
"",
- TP,
- LP,
- MP
+ wP,
+ IP,
+ jP
], oe = () => [
"solid",
"dashed",
@@ -33996,32 +33996,32 @@ var wce = (e, t) => {
"color",
"luminosity"
], ce = () => [
- TP,
- DP,
- RP,
- PP
+ wP,
+ EP,
+ LP,
+ NP
], le = () => [
"",
"none",
m,
- IP,
- jP
+ FP,
+ AP
], ue = () => [
"none",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
], de = () => [
"none",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
], fe = () => [
- TP,
- IP,
- jP
- ], pe = () => [
wP,
+ FP,
+ AP
+ ], pe = () => [
+ CP,
"full",
...w()
];
@@ -34035,17 +34035,17 @@ var wce = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [OP],
- breakpoint: [OP],
- color: [kP],
- container: [OP],
- "drop-shadow": [OP],
+ blur: [DP],
+ breakpoint: [DP],
+ color: [OP],
+ container: [DP],
+ "drop-shadow": [DP],
ease: [
"in",
"out",
"in-out"
],
- font: [tle],
+ font: [nle],
"font-weight": [
"thin",
"extralight",
@@ -34057,7 +34057,7 @@ var wce = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [OP],
+ "inset-shadow": [DP],
leading: [
"none",
"tight",
@@ -34074,11 +34074,11 @@ var wce = (e, t) => {
"distant",
"none"
],
- radius: [OP],
- shadow: [OP],
- spacing: ["px", TP],
- text: [OP],
- "text-shadow": [OP],
+ radius: [DP],
+ shadow: [DP],
+ spacing: ["px", wP],
+ text: [DP],
+ "text-shadow": [DP],
tracking: [
"tighter",
"tight",
@@ -34092,9 +34092,9 @@ var wce = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- wP,
- jP,
- IP,
+ CP,
+ AP,
+ FP,
g
] }],
container: ["container"],
@@ -34102,15 +34102,15 @@ var wce = (e, t) => {
"",
"normal",
"size",
- IP,
- jP
+ FP,
+ AP
] }],
- "container-named": [nle],
+ "container-named": [rle],
columns: [{ columns: [
- TP,
+ wP,
"auto",
- jP,
- IP,
+ AP,
+ FP,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -34207,13 +34207,13 @@ var wce = (e, t) => {
"collapse"
],
z: [{ z: [
- EP,
+ TP,
"auto",
- IP,
- jP
+ FP,
+ AP
] }],
basis: [{ basis: [
- wP,
+ CP,
"full",
"auto",
s,
@@ -34231,32 +34231,32 @@ var wce = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- TP,
wP,
+ CP,
"auto",
"initial",
"none",
- jP
+ AP
] }],
grow: [{ grow: [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
shrink: [{ shrink: [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
order: [{ order: [
- EP,
+ TP,
"first",
"last",
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -34363,15 +34363,15 @@ var wce = (e, t) => {
"font-size": [{ text: [
"base",
n,
- LP,
- MP
+ IP,
+ jP
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- ule,
- ile
+ dle,
+ ale
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -34383,15 +34383,15 @@ var wce = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- DP,
- jP
+ EP,
+ AP
] }],
"font-family": [{ font: [
- sle,
- ale,
+ cle,
+ ole,
t
] }],
- "font-features": [{ "font-features": [jP] }],
+ "font-features": [{ "font-features": [AP] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -34400,14 +34400,14 @@ var wce = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- IP,
- jP
+ FP,
+ AP
] }],
"line-clamp": [{ "line-clamp": [
- TP,
+ wP,
"none",
- IP,
- NP
+ FP,
+ MP
] }],
leading: [{ leading: [
"none",
@@ -34416,16 +34416,16 @@ var wce = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"text-alignment": [{ text: [
"left",
@@ -34445,18 +34445,18 @@ var wce = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- TP,
+ wP,
"from-font",
"auto",
- IP,
- MP
+ FP,
+ jP
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- TP,
+ wP,
"auto",
- IP,
- jP
+ FP,
+ AP
] }],
"text-transform": [
"uppercase",
@@ -34477,9 +34477,9 @@ var wce = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
] }],
"vertical-align": [{ align: [
"baseline",
@@ -34490,8 +34490,8 @@ var wce = (e, t) => {
"text-bottom",
"sub",
"super",
- IP,
- jP
+ FP,
+ AP
] }],
whitespace: [{ whitespace: [
"normal",
@@ -34519,8 +34519,8 @@ var wce = (e, t) => {
] }],
content: [{ content: [
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -34555,24 +34555,24 @@ var wce = (e, t) => {
"l",
"tl"
] },
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
],
radial: [
"",
- IP,
- jP
+ FP,
+ AP
],
conic: [
"",
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
]
},
- lle,
- ole
+ ule,
+ sle
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: re() }],
@@ -34639,15 +34639,15 @@ var wce = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"outline-w": [{ outline: [
"",
- TP,
- LP,
- MP
+ wP,
+ IP,
+ jP
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -34655,35 +34655,35 @@ var wce = (e, t) => {
"inner",
"none",
u,
- zP,
- FP
+ RP,
+ PP
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- zP,
- FP
+ RP,
+ PP
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [TP, MP] }],
+ "ring-offset-w": [{ "ring-offset": [wP, jP] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- zP,
- FP
+ RP,
+ PP
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -34705,7 +34705,7 @@ var wce = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [TP] }],
+ "mask-image-linear-pos": [{ "mask-linear": [wP] }],
"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": F() }],
@@ -34734,7 +34734,7 @@ var wce = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [IP, jP] }],
+ "mask-image-radial": [{ "mask-radial": [FP, AP] }],
"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": F() }],
@@ -34745,7 +34745,7 @@ var wce = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [TP] }],
+ "mask-image-conic-pos": [{ "mask-conic": [wP] }],
"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": F() }],
@@ -34769,111 +34769,111 @@ var wce = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- IP,
- jP
+ FP,
+ AP
] }],
filter: [{ filter: [
"",
"none",
- IP,
- jP
+ FP,
+ AP
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
contrast: [{ contrast: [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- zP,
- FP
+ RP,
+ PP
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"hue-rotate": [{ "hue-rotate": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
invert: [{ invert: [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
saturate: [{ saturate: [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
sepia: [{ sepia: [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -34889,39 +34889,39 @@ var wce = (e, t) => {
"shadow",
"transform",
"none",
- IP,
- jP
+ FP,
+ AP
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- TP,
+ wP,
"initial",
- IP,
- jP
+ FP,
+ AP
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- IP,
- jP
+ FP,
+ AP
] }],
delay: [{ delay: [
- TP,
- IP,
- jP
+ wP,
+ FP,
+ AP
] }],
animate: [{ animate: [
"none",
v,
- IP,
- jP
+ FP,
+ AP
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- IP,
- jP
+ FP,
+ AP
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -34937,8 +34937,8 @@ var wce = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- IP,
- jP,
+ FP,
+ AP,
"",
"none",
"gpu",
@@ -34952,9 +34952,9 @@ var wce = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- EP,
- IP,
- jP
+ TP,
+ FP,
+ AP
] }],
accent: [{ accent: F() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -35004,8 +35004,8 @@ var wce = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- IP,
- jP
+ FP,
+ AP
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -35091,15 +35091,15 @@ var wce = (e, t) => {
"scroll",
"contents",
"transform",
- IP,
- jP
+ FP,
+ AP
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- TP,
- LP,
- MP,
- NP
+ wP,
+ IP,
+ jP,
+ MP
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -35357,16 +35357,16 @@ var wce = (e, t) => {
"selection"
]
};
-}, fle = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (XP(e, "cacheSize", t), XP(e, "prefix", n), XP(e, "experimentalParseClassName", r), ZP(e.theme, a.theme), ZP(e.classGroups, a.classGroups), ZP(e.conflictingClassGroups, a.conflictingClassGroups), ZP(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), XP(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), XP(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), QP(e.theme, i.theme), QP(e.classGroups, i.classGroups), QP(e.conflictingClassGroups, i.conflictingClassGroups), QP(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), $P(e, i, "postfixLookupClassGroups"), $P(e, i, "orderSensitiveModifiers"), e), XP = (e, t, n) => {
+}, ple = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (YP(e, "cacheSize", t), YP(e, "prefix", n), YP(e, "experimentalParseClassName", r), XP(e.theme, a.theme), XP(e.classGroups, a.classGroups), XP(e.conflictingClassGroups, a.conflictingClassGroups), XP(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), YP(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), YP(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), ZP(e.theme, i.theme), ZP(e.classGroups, i.classGroups), ZP(e.conflictingClassGroups, i.conflictingClassGroups), ZP(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), QP(e, i, "postfixLookupClassGroups"), QP(e, i, "orderSensitiveModifiers"), e), YP = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, XP = (e, t) => {
+ if (t) for (let n in t) YP(e, n, t[n]);
}, ZP = (e, t) => {
- if (t) for (let n in t) XP(e, n, t[n]);
-}, QP = (e, t) => {
- if (t) for (let n in t) $P(e, t, n);
-}, $P = (e, t, n) => {
+ if (t) for (let n in t) QP(e, t, n);
+}, QP = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, ple = (e, ...t) => typeof e == "function" ? bP(YP, e, ...t) : bP(() => fle(YP(), e), ...t), mle = [
+}, mle = (e, ...t) => typeof e == "function" ? yP(JP, e, ...t) : yP(() => ple(JP(), e), ...t), hle = [
"large-title",
"display-1",
"display-2",
@@ -35380,18 +35380,18 @@ var wce = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], hle = [
+], gle = [
"regular",
"medium",
"semibold",
"bold"
-], eF = ple({ extend: { classGroups: { "font-size": [{ text: mle.flatMap((e) => hle.map((t) => `${e}-${t}`)) }] } } });
-function tF(e) {
+], $P = mle({ extend: { classGroups: { "font-size": [{ text: hle.flatMap((e) => gle.map((t) => `${e}-${t}`)) }] } } });
+function eF(e) {
return e;
}
//#endregion
//#region src/react/components/pill-tab.tsx
-var gle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, nF = tF({
+var _le = typeof window < "u" ? D.useLayoutEffect : D.useEffect, tF = eF({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -35413,9 +35413,9 @@ var gle = typeof window < "u" ? D.useLayoutEffect : D.useEffect, nF = tF({
gray: "text-text-primary"
}
});
-function rF({ children: e, className: t, ref: n, container: r, ...i }) {
+function nF({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, D.useRef)(null), [o, s] = (0, D.useState)(null);
- gle(() => {
+ _le(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -35451,7 +35451,7 @@ function rF({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: eF("pointer-events-none absolute left-0 top-0", nF.radius[o.variant], nF.thumb[o.variant]),
+ className: $P("pointer-events-none absolute left-0 top-0", tF.radius[o.variant], tF.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -35462,44 +35462,44 @@ function rF({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, O.jsxs)("div", {
ref: c,
role: "group",
- className: eF("relative inline-flex items-center gap-1", t),
+ className: $P("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, Tt.createPortal)(l, r) : null;
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var iF = null, aF = null, oF = /* @__PURE__ */ new Set();
-function _le(e) {
- return oF.add(e), () => {
- oF.delete(e);
+var rF = null, iF = null, aF = /* @__PURE__ */ new Set();
+function vle(e) {
+ return aF.add(e), () => {
+ aF.delete(e);
};
}
-function vle() {
- for (let e of [...oF]) e();
+function yle() {
+ for (let e of [...aF]) e();
}
-var yle = { render(e) {
- aF = e, (0, Tt.flushSync)(vle);
+var ble = { render(e) {
+ iF = e, (0, Tt.flushSync)(yle);
} };
-function ble(e) {
- return iF = e, aF = null, yle;
+function xle(e) {
+ return rF = e, iF = null, ble;
}
-function xle() {
- let e = (0, D.useSyncExternalStore)(_le, () => aF);
- return iF && e ? /* @__PURE__ */ (0, O.jsx)(Sle, {
- host: iF,
+function Sle() {
+ let e = (0, D.useSyncExternalStore)(vle, () => iF);
+ return rF && e ? /* @__PURE__ */ (0, O.jsx)(Cle, {
+ host: rF,
props: e
}) : null;
}
-function Sle({ host: e, props: t }) {
- let n = aP(t);
+function Cle({ host: e, props: t }) {
+ let n = iP(t);
return n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(Cle, {
+ /* @__PURE__ */ (0, O.jsx)(wle, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, O.jsx)(wle, {
+ n.crumb ? /* @__PURE__ */ (0, O.jsx)(Tle, {
host: e,
label: n.crumb
}) : null,
@@ -35508,13 +35508,13 @@ function Sle({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, O.jsx)(Tle, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, O.jsx)(Ele, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Cle({ host: e, pressed: t, menu: n }) {
+function wle({ host: e, pressed: t, menu: n }) {
let r = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -35524,7 +35524,7 @@ function Cle({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, O.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, O.jsx)(rF, {
+ children: /* @__PURE__ */ (0, O.jsx)(nF, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -35538,13 +35538,13 @@ function Cle({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, O.jsx)(cP, { name: i }), /* @__PURE__ */ (0, O.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function wle({ host: e, label: t }) {
+function Tle({ host: e, label: t }) {
return /* @__PURE__ */ (0, O.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -35554,20 +35554,20 @@ function wle({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
+ }), /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, O.jsx)("span", { children: t })
})] })
});
}
-function Tle({ host: e, lede: t }) {
+function Ele({ host: e, lede: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: cP }
- }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Ele, { text: t.text }), t.total ? /* @__PURE__ */ (0, O.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: sP }
+ }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Dle, { text: t.text }), t.total ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -35577,7 +35577,7 @@ function Tle({ host: e, lede: t }) {
}) : null] })
});
}
-function Ele({ text: e }) {
+function Dle({ text: e }) {
let t = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
us(t.current, e);
@@ -35588,20 +35588,20 @@ function Ele({ text: e }) {
}
//#endregion
//#region src/core/jav-title.ts
-var Dle = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Ole = (e, t = e?.name) => {
+var Ole = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, kle = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Dle, "") : n;
-}, kle = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Ale = (e) => {
+ return e?.is_jav ? n.replace(Ole, "") : n;
+}, Ale = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), jle = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(kle) || t[0] || "";
+ return t.find(Ale) || t[0] || "";
};
-function sF(e, t = e?.name) {
- let n = Ole(e, t), r = String(e?.code || "").trim().toUpperCase();
+function oF(e, t = e?.name) {
+ let n = kle(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 = Ale(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 = jle(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) => [
"中字",
"无码",
"无码破解"
@@ -35612,27 +35612,27 @@ function sF(e, t = e?.name) {
badges: f
};
}
-var cF = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = sF(e, t);
+var sF = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = oF(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function lF(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = sF(e, t);
+function cF(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = oF(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">${B(r)}</span>` : ""}`;
}
//#endregion
//#region src/react/activity/tasks.ts
-var uF = "/api/tasks", dF = ["tasks"], jle = (e, t) => V(`${uF}?${new URLSearchParams({
+var lF = "/api/tasks", uF = ["tasks"], Mle = (e, t) => V(`${lF}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Mle(...e) {
+function Nle(...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) => {
@@ -35640,26 +35640,26 @@ function Mle(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Nle = 2e3, Ple = 1e4, fF = (e) => e?.running?.length ? Nle : Ple, pF = (e) => V(uF, e);
-async function Fle(e) {
+var Ple = 2e3, Fle = 1e4, dF = (e) => e?.running?.length ? Ple : Fle, fF = (e) => V(lF, e);
+async function Ile(e) {
await U.fetchQuery({
- queryKey: dF,
- queryFn: () => pF(e)
+ queryKey: uF,
+ queryFn: () => fF(e)
});
}
-var Ile = {
+var Lle = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Lle = {
+}, Rle = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Rle = (e) => Lle[e] || e, mF = {
+}, zle = (e) => Rle[e] || e, pF = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -35736,7 +35736,7 @@ var Ile = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, zle = [
+}, Ble = [
"gone_count",
"unclear_count",
"source_failed",
@@ -35758,14 +35758,14 @@ var Ile = {
"paused_count",
"miss",
"incomplete"
-], Ble = ["face_match_unavailable"], hF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Ble.some((t) => e.result_summary?.[t] === !0) || zle.some((t) => Number(e.result_summary?.[t]) > 0);
-function Vle(e) {
+], Vle = ["face_match_unavailable"], mF = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Vle.some((t) => e.result_summary?.[t] === !0) || Ble.some((t) => Number(e.result_summary?.[t]) > 0);
+function Hle(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 gF = /* @__PURE__ */ new Set(["library-processing"]);
-function Hle(e, t = !0) {
- if (!hF(e) && e.status !== "failed" || gF.has(e.task_key) && !t) return null;
+var hF = /* @__PURE__ */ new Set(["library-processing"]);
+function Ule(e, t = !0) {
+ if (!mF(e) && e.status !== "failed" || hF.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -35783,12 +35783,12 @@ function Hle(e, t = !0) {
label: n[1]
} : null;
}
-function Ule(e) {
+function Wle(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) gF.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) hF.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 Wle(e) {
+function Gle(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -35797,7 +35797,7 @@ function Wle(e) {
}
return t;
}
-function Gle(e, t) {
+function Kle(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -35819,12 +35819,12 @@ function Gle(e, t) {
}
return n;
}
-var Kle = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !hF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), _F = (e) => e.status === "pending" || e.status === "running";
-function qle(e) {
+var qle = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !mF(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), gF = (e) => e.status === "pending" || e.status === "running";
+function Jle(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, xF(e.error) || AF(o) || (_F(e) && i > 0 ? `${yF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, bF(e.error) || kF(o) || (gF(e) && i > 0 ? `${vF(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function vF(e) {
+function _F(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -35833,19 +35833,19 @@ function vF(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function yF(e, t) {
+function vF(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function bF(e) {
+function yF(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 xF(e) {
- let t = bF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function bF(e) {
+ let t = yF(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? Ut(n[1]) : t;
}
-var SF = {
+var xF = {
没有新写法: "未发现新别名",
已装上: "已保存资料图片",
已装着认得准的小图: "已保留身份核对通过的小尺寸图片",
@@ -35859,11 +35859,11 @@ var SF = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, CF = {
+}, SF = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, wF = {
+}, CF = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -35874,8 +35874,8 @@ var SF = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, TF = (e) => SF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${CF[t.toLowerCase()]} 资料页` : `已保存来自 ${CF[t.toLowerCase()]} 的资料`);
-function EF(e) {
+}, wF = (e) => xF[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${SF[t.toLowerCase()]} 资料页` : `已保存来自 ${SF[t.toLowerCase()]} 的资料`);
+function TF(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -35885,7 +35885,7 @@ function EF(e) {
minute: "2-digit"
});
}
-var DF = /* @__PURE__ */ new Set([
+var EF = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -35894,14 +35894,14 @@ var DF = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function OF(e) {
- let t = kF(e);
+function DF(e) {
+ let t = OF(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function kF(e) {
- return Object.entries(e || {}).filter(([e, t]) => !DF.has(e) && (e in mF || 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" ? xF(String(t)) : e === "outcome" || e === "result" ? TF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${mF[e]} ${_n(Number(t))}` : e === "operation" ? `操作:${wF[String(t)] || "批量操作"}` : `${mF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function OF(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !EF.has(e) && (e in pF || 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" ? bF(String(t)) : e === "outcome" || e === "result" ? wF(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${pF[e]} ${_n(Number(t))}` : e === "operation" ? `操作:${CF[String(t)] || "批量操作"}` : `${pF[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var AF = (e) => OF(e).join(" · "), jF = tF({
+var kF = (e) => DF(e).join(" · "), AF = eF({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -35922,21 +35922,21 @@ var AF = (e) => OF(e).join(" · "), jF = tF({
small: "size-4 shrink-0"
}
});
-function MF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function jF({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
ref: i,
type: r,
- className: eF(jF.base, jF.size[t], n),
+ className: $P(AF.base, AF.size[t], n),
...a,
children: /* @__PURE__ */ (0, O.jsx)(e, {
- className: jF.icon[t],
+ className: AF.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/glass-drift.tsx
-function NF() {
+function MF() {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -35951,7 +35951,7 @@ function NF() {
}
//#endregion
//#region src/react/components/use-stuck.ts
-function PF(e) {
+function NF(e) {
(0, D.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35969,7 +35969,7 @@ function PF(e) {
}
//#endregion
//#region src/react/components/use-horizontal-scroller.ts
-function FF(e, t = !0) {
+function PF(e, t = !0) {
let [n, r] = (0, D.useState)(null), i = (0, D.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -35984,17 +35984,17 @@ function FF(e, t = !0) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-var IF = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var FF = ({ className: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: ns("正在处理") }
});
-function LF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(MF, {
+function IF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(jF, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? IF : t,
+ icon: n && r === "spinner" ? FF : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -36004,9 +36004,9 @@ function LF({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function RF({ title: e, children: t }) {
+function LF({ title: e, children: t }) {
let n = (0, D.useRef)(null);
- return PF(n), /* @__PURE__ */ (0, O.jsxs)("div", {
+ return NF(n), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -36019,20 +36019,20 @@ function RF({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, O.jsx)(NF, {})
+ /* @__PURE__ */ (0, O.jsx)(MF, {})
]
});
}
-function zF({ 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, D.useRef)(null), f = FF(), p = FF(u);
- return PF(d), /* @__PURE__ */ (0, O.jsxs)("div", {
+function RF({ 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, D.useRef)(null), f = PF(), p = PF(u);
+ return NF(d), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: eF("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: $P("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, O.jsx)("div", {
@@ -36040,37 +36040,37 @@ function zF({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: eF("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: $P("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, O.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: eF("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: $P("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, O.jsx)(NF, {})
+ /* @__PURE__ */ (0, O.jsx)(MF, {})
]
});
}
-var BF = "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 VF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var zF = "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 BF({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: eF(BF, r),
+ className: $P(zF, r),
onClick: n,
children: e
});
}
-var HF = "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 UF({ children: e, onPress: t, busy: n = !1 }) {
+var VF = "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 HF({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: HF,
+ className: VF,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -36081,13 +36081,13 @@ function UF({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-var WF = (e, t) => [
+var UF = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function GF(e, t, n) {
+function WF(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;
@@ -36111,17 +36111,17 @@ function GF(e, t, n) {
h: e.offsetHeight
};
}
-function KF(e, t, n, r, { axis: i = "x" } = {}) {
+function GF(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, D.useRef)(null), o = (0, D.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 ? GF(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? WF(u, l, i) : null;
if (!d || !d.w || !d.h) {
ic(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && WF(f, d)) && nc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && UF(f, d)) && nc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -36142,8 +36142,8 @@ function KF(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 ? GF(o, r, i) : null, l = a.current;
- (!s || !l || !WF(s, l)) && c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? WF(o, r, i) : null, l = a.current;
+ (!s || !l || !UF(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -36175,7 +36175,7 @@ function KF(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var qF = tF({
+var KF = eF({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -36234,40 +36234,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, O.jsxs)("button", {
ref: c,
type: s,
- className: eF(qF.base, qF.size[t], qF.variant[e], n && qF.iconOnlySize[t], o),
+ className: $P(KF.base, KF.size[t], KF.variant[e], n && KF.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: qF.icon[t],
+ className: KF.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: qF.label[t],
+ className: KF.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: qF.icon[t],
+ className: KF.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function JF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function qF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, O.jsxs)("a", {
ref: s,
- className: eF(qF.base, qF.size[t], qF.variant[e], n && qF.iconOnlySize[t], o),
+ className: $P(KF.base, KF.size[t], KF.variant[e], n && KF.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: qF.icon[t],
+ className: KF.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: qF.label[t],
+ className: KF.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, O.jsx)(i, {
- className: qF.icon[t],
+ className: KF.icon[t],
"aria-hidden": !0
}) : null
]
@@ -36275,12 +36275,12 @@ function JF({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var YF = Symbol("default");
-function XF({ values: e, children: t }) {
+var JF = Symbol("default");
+function YF({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ D.createElement(n.Provider, { value: r }, t);
return t;
}
-function ZF(e) {
+function XF(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, D.useMemo)(() => {
let e, l, u;
@@ -36314,11 +36314,11 @@ function ZF(e) {
c
]);
}
-function QF(e, t) {
+function ZF(e, t) {
let n = (0, D.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || YF;
+ let e = t || JF;
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}.`);
@@ -36327,8 +36327,8 @@ function QF(e, t) {
}
return n;
}
-function $F(e, t, n) {
- let { ref: r, ...i } = QF(n, e.slot) || {}, a = Nx((0, D.useMemo)(() => wx(t, r), [t, r])), o = q(i, e);
+function QF(e, t, n) {
+ let { ref: r, ...i } = ZF(n, e.slot) || {}, a = Mx((0, D.useMemo)(() => Cx(t, r), [t, r])), o = q(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,
@@ -36346,42 +36346,42 @@ function $F(e, t, n) {
...e.style
}), [o, a];
}
-function eI(e = !0) {
+function $F(e = !0) {
let [t, n] = (0, D.useState)(e), r = (0, D.useRef)(!1), i = (0, D.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return gb(() => {
+ return hb(() => {
r.current || n(!1);
}, []), [i, t];
}
-function tI(e) {
+function eI(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function nI(e, t, n) {
- let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => wx(n, a), [n, a]);
- gb(() => {}, [e, r]);
+function tI(e, t, n) {
+ let { render: r, ...i } = t, a = (0, D.useRef)(null), o = (0, D.useMemo)(() => Cx(n, a), [n, a]);
+ hb(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ D.createElement(e, s);
}
-var rI = {}, iI = new Proxy({}, { get(e, t) {
+var nI = {}, rI = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = rI[t];
- return n || (n = /*#__PURE__*/ (0, D.forwardRef)(nI.bind(null, t)), rI[t] = n), n;
-} }), aI = /*#__PURE__*/ (0, D.createContext)(null), oI = /*#__PURE__*/ (0, D.createContext)(null), sI = /*#__PURE__*/ (0, D.createContext)(null), cI = {
+ let n = nI[t];
+ return n || (n = /*#__PURE__*/ (0, D.forwardRef)(tI.bind(null, t)), nI[t] = n), n;
+} }), iI = /*#__PURE__*/ (0, D.createContext)(null), aI = /*#__PURE__*/ (0, D.createContext)(null), oI = /*#__PURE__*/ (0, D.createContext)(null), sI = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return lI(e, null, t);
+ return cI(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return lI(e, t, n);
+ return cI(e, t, n);
}
};
-function lI(e, t, n) {
- return qy({
+function cI(e, t, n) {
+ return Ky({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -36391,11 +36391,11 @@ function lI(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, uI(e, t, n));
+ }), r, lI(e, t, n));
}
});
}
-function uI(e, t, n) {
+function lI(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);
@@ -36414,25 +36414,25 @@ function uI(e, t, n) {
}
return s;
}
-var dI = /*#__PURE__*/ (0, D.createContext)(cI);
-function fI(e) {
+var uI = /*#__PURE__*/ (0, D.createContext)(sI);
+function dI(e) {
return (0, D.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var pI = /*#__PURE__*/ (0, D.createContext)({}), mI = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, pI);
- let { elementType: n = "label", ...r } = e, i = iI[n];
+var fI = /*#__PURE__*/ (0, D.createContext)({}), pI = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, fI);
+ let { elementType: n = "label", ...r } = e, i = rI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), hI = /*#__PURE__*/ (0, D.createContext)(null), gI = /*#__PURE__*/ (0, D.createContext)({}), _I = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, gI);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = lie(e, t);
- i = yI(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = OT(e), { hoverProps: l, isHovered: u } = MT({
+}), mI = /*#__PURE__*/ (0, D.createContext)(null), hI = /*#__PURE__*/ (0, D.createContext)({}), gI = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, hI);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = uie(e, t);
+ i = vI(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = DT(e), { hoverProps: l, isHovered: u } = jT({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -36442,24 +36442,24 @@ var pI = /*#__PURE__*/ (0, D.createContext)({}), mI = /*#__PURE__*/ Rx(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = ZF({
+ }, f = XF({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Sx(i.id), m = Sx(), h = i["aria-labelledby"];
+ }), p = xx(i.id), m = xx(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, D.useRef)(r);
(0, D.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && _C(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && gC(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = ES(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ D.createElement(iI.button, {
+ let _ = TS(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ D.createElement(rI.button, {
...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -36473,62 +36473,62 @@ var pI = /*#__PURE__*/ (0, D.createContext)({}), mI = /*#__PURE__*/ Rx(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ D.createElement(hI.Provider, { value: { id: m } }, f.children));
-}), vI = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function yI(e, t) {
+ }, /*#__PURE__*/ D.createElement(mI.Provider, { value: { id: m } }, f.children));
+}), _I = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function vI(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !vI.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !_I.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 bI = /*#__PURE__*/ (0, D.createContext)({}), xI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, bI);
- let { children: n, level: r = 3, className: i, ...a } = e, o = iI[`h${r}`];
+var yI = /*#__PURE__*/ (0, D.createContext)({}), bI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, yI);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = rI[`h${r}`];
return /*#__PURE__*/ D.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), SI = /*#__PURE__*/ (0, D.createContext)({}), CI = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, SI);
- let { elementType: n = "span", ...r } = e, i = iI[n];
+}), xI = /*#__PURE__*/ (0, D.createContext)({}), SI = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, xI);
+ let { elementType: n = "span", ...r } = e, i = rI[n];
return /*#__PURE__*/ D.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), wI = /*#__PURE__*/ (0, D.createContext)(null), TI = /*#__PURE__*/ (0, D.createContext)(null), EI = /*#__PURE__*/ (0, D.createContext)(null), DI = /*#__PURE__*/ (0, D.createContext)(null), OI = /*#__PURE__*/ (0, D.createContext)(null), kI = /*#__PURE__*/ (0, D.createContext)(null);
-function AI(e, t) {
- let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(OI), a = Nx((0, D.useMemo)(() => wx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...tI(e),
+}), CI = /*#__PURE__*/ (0, D.createContext)(null), wI = /*#__PURE__*/ (0, D.createContext)(null), TI = /*#__PURE__*/ (0, D.createContext)(null), EI = /*#__PURE__*/ (0, D.createContext)(null), DI = /*#__PURE__*/ (0, D.createContext)(null), OI = /*#__PURE__*/ (0, D.createContext)(null);
+function kI(e, t) {
+ let { validationBehavior: n } = ZF(wI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useContext)(DI), a = Mx((0, D.useMemo)(() => Cx(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...eI(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? gie(o, i, a) : JC(o, tw(e), a), a];
+ return [i ? _ie(o, i, a) : qC(o, ew(e), a), a];
}
-var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var AI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = $F(r, t, EI);
- let [i, a] = AI(e, n);
- return /*#__PURE__*/ D.createElement(kI.Provider, { value: {
+ [e, t] = QF(r, t, TI);
+ let [i, a] = kI(e, n);
+ return /*#__PURE__*/ D.createElement(OI.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ D.createElement(MI, {
+ } }, /*#__PURE__*/ D.createElement(jI, {
...e,
ref: t
}));
-}), MI = /*#__PURE__*/ (0, D.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, D.useContext)(kI), { isFocused: p, isFocusVisible: m, focusProps: h } = OT(), g = a || o, { hoverProps: _, isHovered: v } = MT({
+}), jI = /*#__PURE__*/ (0, D.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, D.useContext)(OI), { isFocused: p, isFocusVisible: m, focusProps: h } = DT(), g = a || o, { hoverProps: _, isHovered: v } = jT({
...e,
isDisabled: g
- }), y = ZF({
+ }), y = XF({
...e,
defaultClassName: u,
values: {
@@ -36543,8 +36543,8 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = ES(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ }), b = TS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(rI.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -36558,20 +36558,20 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ D.createElement(uw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...q(r, h),
ref: l
})), y.children);
-}), NI = /*#__PURE__*/ (0, D.createContext)({}), PI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, NI);
+}), MI = /*#__PURE__*/ (0, D.createContext)({}), NI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, MI);
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 } = MT({
+ let { hoverProps: l, isHovered: u } = jT({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = OT({ within: !0 }), m = ZF({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = DT({ within: !0 }), m = XF({
...e,
values: {
isHovered: u,
@@ -36582,7 +36582,7 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(rI.div, {
...q(c, p, l),
...m,
ref: t,
@@ -36595,18 +36595,18 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), FI = /*#__PURE__*/ (0, D.createContext)({}), II = (e) => {
+}), PI = /*#__PURE__*/ (0, D.createContext)({}), FI = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, LI = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, FI);
- let { hoverProps: n, isHovered: r } = MT({
+}, II = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, PI);
+ let { hoverProps: n, isHovered: r } = jT({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = OT({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = DT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ZF({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = XF({
...e,
values: {
isHovered: r,
@@ -36617,8 +36617,8 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ D.createElement(iI.input, {
- ...q(II(e), o, n),
+ return /*#__PURE__*/ D.createElement(rI.input, {
+ ...q(FI(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -36627,24 +36627,24 @@ var jI = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), RI = 0, zI = 100, BI = 1;
-function VI(e) {
- let { isDisabled: t = !1, minValue: n = RI, maxValue: r = zI, numberFormatter: i, step: a = BI, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
+}), LI = 0, RI = 100, zI = 1;
+function BI(e) {
+ let { isDisabled: t = !1, minValue: n = LI, maxValue: r = RI, numberFormatter: i, step: a = zI, orientation: o = "horizontal" } = e, s = (0, D.useMemo)(() => {
let e = (r - n) / 10;
- return e = iw(e, 0, e + a, a), Math.max(e, a);
+ return e = rw(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, D.useCallback)((e) => e?.map((t, i) => iw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, D.useCallback)((e) => e?.map((t, i) => rw(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, D.useMemo)(() => c(UI(e.value)), [e.value, c]), u = (0, D.useMemo)(() => c(UI(e.defaultValue) ?? [n]), [
+ ]), l = (0, D.useMemo)(() => c(HI(e.value)), [e.value, c]), u = (0, D.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] = ew(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
+ ]), d = UI(e.value, e.defaultValue, e.onChange), f = UI(e.value, e.defaultValue, e.onChangeEnd), [p, m] = $C(l, u, d), [h] = (0, D.useState)(p), [g, _] = (0, D.useState)(Array(p.length).fill(!1)), v = (0, D.useRef)(Array(p.length).fill(!0)), [y, b] = (0, D.useState)(void 0), x = (0, D.useRef)(p), S = (0, D.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -36667,15 +36667,15 @@ function VI(e) {
function j(e, n) {
if (t || !k(e)) return;
let r = E(e), i = O(e);
- n = iw(n, r, i, a);
- let o = HI(x.current, e, n);
+ n = rw(n, r, i, a);
+ let o = VI(x.current, e, n);
C(o);
}
function M(e, n) {
if (t || !k(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 N = (0, D.useRef)(null);
function P(e = p) {
@@ -36696,15 +36696,15 @@ function VI(e) {
return Math.round((e - n) / a) * a + n;
}
function te(e) {
- return nw(F(e * (r - n) + n), n, r);
+ return tw(F(e * (r - n) + n), n, r);
}
function I(e, t = 1) {
let i = Math.max(t, a);
- j(e, iw(p[e] + i, n, r, a));
+ j(e, rw(p[e] + i, n, r, a));
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- j(e, iw(p[e] - i, n, r, a));
+ j(e, rw(p[e] - i, n, r, a));
}
return {
values: p,
@@ -36733,32 +36733,32 @@ function VI(e) {
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 Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.createContext)(null), KI = /*#__PURE__*/ (0, D.createContext)(null), Yle = /*#__PURE__*/ (0, D.createContext)(null), Xle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, Jle);
- let n = (0, D.useRef)(null), r = xie(e.formatOptions), i = VI({
+var Yle = /*#__PURE__*/ (0, D.createContext)(null), WI = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.createContext)(null), Xle = /*#__PURE__*/ (0, D.createContext)(null), Zle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, Yle);
+ let n = (0, D.useRef)(null), r = Sie(e.formatOptions), i = BI({
...e,
numberFormatter: r
- }), [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Sie({
+ }), [a, o] = $F(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Cie({
...e,
label: o
- }, i, n), d = ZF({
+ }, i, n), d = XF({
...e,
values: {
orientation: i.orientation,
@@ -36766,32 +36766,32 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = ES(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ D.createElement(XF, { values: [
- [GI, i],
- [KI, {
+ }), f = TS(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ D.createElement(YF, { values: [
+ [WI, i],
+ [GI, {
...c,
ref: n
}],
- [Yle, u],
- [pI, {
+ [Xle, u],
+ [fI, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ D.createElement(iI.div, {
+ ] }, /*#__PURE__*/ D.createElement(rI.div, {
...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Zle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, KI);
- let n = (0, D.useContext)(GI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MT({
+}), Qle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, GI);
+ let n = (0, D.useContext)(WI), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = jT({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = ZF({
+ }), l = XF({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -36801,7 +36801,7 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.cre
state: n
}
});
- return /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(rI.div, {
...q(o, s),
...l,
ref: t,
@@ -36809,14 +36809,14 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Qle = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, D.useContext)(GI), { ref: i } = QF(KI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = eI(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Cie({
+}), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, D.useContext)(WI), { ref: i } = ZF(GI), { index: a = 0 } = e, o = (0, D.useRef)(null), s = n || o, [c, l] = $F(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = wie({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = OT(), { hoverProps: v, isHovered: y } = MT(e), b = ZF({
+ }, r), { focusProps: g, isFocusVisible: _ } = DT(), { hoverProps: v, isHovered: y } = jT(e), b = XF({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -36827,8 +36827,8 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = ES(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ D.createElement(iI.div, {
+ }), x = TS(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ D.createElement(rI.div, {
...q(x, u, v),
...b,
ref: t,
@@ -36841,15 +36841,15 @@ var Jle = /*#__PURE__*/ (0, D.createContext)(null), GI = /*#__PURE__*/ (0, D.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ D.createElement(uw, null, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(lw, null, /*#__PURE__*/ D.createElement("input", {
ref: s,
...q(d, g)
- })), /*#__PURE__*/ D.createElement(XF, { values: [[pI, {
+ })), /*#__PURE__*/ D.createElement(YF, { values: [[fI, {
...f,
ref: c
}]] }, b.children));
-}), qI = {};
-qI = {
+}), KI = {};
+KI = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -36857,8 +36857,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: "Изберете предмет",
@@ -36866,8 +36866,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",
@@ -36875,8 +36875,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",
@@ -36884,8 +36884,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",
@@ -36893,8 +36893,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: "Επιλέξτε ένα αντικείμενο",
@@ -36902,8 +36902,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",
@@ -36911,8 +36911,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",
@@ -36920,8 +36920,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",
@@ -36929,8 +36929,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",
@@ -36938,8 +36938,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",
@@ -36947,8 +36947,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: "בחר פריט",
@@ -36956,8 +36956,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",
@@ -36965,8 +36965,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",
@@ -36974,8 +36974,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",
@@ -36983,8 +36983,8 @@ sL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var cL = {};
-cL = {
+var sL = {};
+sL = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -36992,8 +36992,8 @@ cL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var lL = {};
-lL = {
+var cL = {};
+cL = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -37001,8 +37001,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ą",
@@ -37010,8 +37010,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",
@@ -37019,8 +37019,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",
@@ -37028,8 +37028,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",
@@ -37037,8 +37037,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",
@@ -37046,8 +37046,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",
@@ -37055,8 +37055,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",
@@ -37064,8 +37064,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",
@@ -37073,8 +37073,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: "Выберите элемент",
@@ -37082,8 +37082,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",
@@ -37091,8 +37091,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",
@@ -37100,8 +37100,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",
@@ -37109,8 +37109,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",
@@ -37118,8 +37118,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",
@@ -37127,8 +37127,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: "Виберіть елемент",
@@ -37136,8 +37136,8 @@ wL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var TL = {};
-TL = {
+var wL = {};
+wL = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -37145,8 +37145,8 @@ TL = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var EL = {};
-EL = {
+var TL = {};
+TL = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -37154,52 +37154,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, D.createContext)({}), kL = /*#__PURE__*/ (0, D.createContext)(null), $le = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { render: n } = (0, D.useContext)(kL);
+var DL = /*#__PURE__*/ (0, D.createContext)({}), OL = /*#__PURE__*/ (0, D.createContext)(null), eue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { render: n } = (0, D.useContext)(OL);
return /*#__PURE__*/ D.createElement(D.Fragment, null, n(e, t));
});
-function AL(e, t) {
+function kL(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, D.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ D.createElement($le, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ D.createElement(eue, { target: e });
}, [
t?.target,
r,
@@ -37207,7 +37207,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;
@@ -37229,14 +37229,14 @@ function jL(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var ML = /*#__PURE__*/ (0, D.createContext)({}), eue = /*#__PURE__*/ (0, D.createContext)(null);
-function NL(e) {
+var jL = /*#__PURE__*/ (0, D.createContext)({}), tue = /*#__PURE__*/ (0, D.createContext)(null);
+function ML(e) {
let t = (0, D.useRef)({});
- return /*#__PURE__*/ D.createElement(eue.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ D.createElement(tue.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var PL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), FL = /*#__PURE__*/ (0, D.createContext)({}), tue = /*#__PURE__*/ Kx(class extends zy {
+var NL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), PL = /*#__PURE__*/ (0, D.createContext)({}), nue = /*#__PURE__*/ Gx(class extends Ry {
static {
this.type = "separator";
}
@@ -37249,14 +37249,14 @@ var PL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), FL = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = $F(e, t, FL);
+ [e, t] = QF(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 = iI[c], { separatorProps: u } = Aae({
+ let l = rI[c], { separatorProps: u } = jae({
...s,
elementType: n,
orientation: r
- }), d = ES(e, { global: !0 });
+ }), d = TS(e, { global: !0 });
return /*#__PURE__*/ D.createElement(l, {
render: e.render,
...q(d, u),
@@ -37268,13 +37268,13 @@ var PL = /*#__PURE__*/ (0, D.createContext)({ isSelected: !1 }), FL = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function IL(e) {
+function FL(e) {
let t = D.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) => {
@@ -37318,20 +37318,20 @@ 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 rue(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, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = ew((0, D.useMemo)(() => BL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => BL(e.defaultSelectedKeys, new RL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
+function RL(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, D.useRef)(!1), [, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = (0, D.useRef)(null), [, u] = (0, D.useState)(null), [d, f] = $C((0, D.useMemo)(() => zL(e.selectedKeys), [e.selectedKeys]), (0, D.useMemo)(() => zL(e.defaultSelectedKeys, new LL()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, D.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, D.useRef)(i);
return (0, D.useEffect)(() => {
@@ -37358,18 +37358,18 @@ function zL(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !nue(e, d)) && f(e);
+ (r || !rue(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;
}
@@ -37425,7 +37425,7 @@ var VL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && gT(this.collection, n, e) < 0) && (e = n);
+ (!e || n && hT(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37433,7 +37433,7 @@ var VL = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && gT(this.collection, n, e) > 0) && (e = n);
+ (!e || n && hT(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -37452,10 +37452,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);
}
@@ -37463,7 +37463,7 @@ var VL = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? gT(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? hT(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);
@@ -37489,19 +37489,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;
@@ -37513,7 +37513,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(pT(fT(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(fT(dT(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -37524,7 +37524,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();
@@ -37565,9 +37565,9 @@ var VL = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, rue = 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;
@@ -37649,10 +37649,10 @@ var VL = class e {
...a,
key: l,
index: s,
- wrapper: iue(e.wrapper, a.wrapper)
+ wrapper: aue(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);
@@ -37674,7 +37674,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()) {
@@ -37693,7 +37693,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;
@@ -37701,18 +37701,18 @@ function HL(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function iue(e, t) {
+function aue(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, D.useMemo)(() => new rue(), []), { children: i, items: a, collection: o } = e;
+function UL(e, t, n) {
+ let r = (0, D.useMemo)(() => new iue(), []), { children: i, items: a, collection: o } = e;
return (0, D.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -37727,27 +37727,27 @@ 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, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = WL(e, (0, D.useCallback)((e) => t ? new LL(t(e)) : new LL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.useMemo)(() => new VL(a, r, { layoutDelegate: n }), [
+function WL(e) {
+ let { filter: t, layoutDelegate: n } = e, r = RL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = UL(e, (0, D.useCallback)((e) => t ? new IL(t(e)) : new IL(e), [t]), (0, D.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, D.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 aue(e, t) {
+function oue(e, t) {
let n = (0, D.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return KL(n, r), {
+ return GL(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function KL(e, t) {
+function GL(e, t) {
let n = (0, D.useRef)(null);
(0, D.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -37775,15 +37775,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, D.useRef)(null), s = uS((e) => {
+function KL(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, D.useRef)(null), s = lS((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- gb(() => {
+ hb(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: xC(t?.current),
+ root: bC(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -37799,42 +37799,42 @@ function qL(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var JL = /*#__PURE__*/ (0, D.createContext)(null), YL = /*#__PURE__*/ (0, D.createContext)(null), oue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, JL);
- let n = (0, D.useContext)(YL);
- return n ? /*#__PURE__*/ D.createElement(XL, {
+var qL = /*#__PURE__*/ (0, D.createContext)(null), JL = /*#__PURE__*/ (0, D.createContext)(null), sue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, qL);
+ let n = (0, D.useContext)(JL);
+ return n ? /*#__PURE__*/ D.createElement(YL, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ D.createElement(Ux, { content: /*#__PURE__*/ D.createElement(Xx, e) }, (n) => /*#__PURE__*/ D.createElement(sue, {
+ }) : /*#__PURE__*/ D.createElement(Hx, { content: /*#__PURE__*/ D.createElement(Yx, e) }, (n) => /*#__PURE__*/ D.createElement(cue, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function sue({ props: e, listBoxRef: t, collection: n }) {
+function cue({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, D.useContext)(dI), i = GL({
+ let { layoutDelegate: r } = (0, D.useContext)(uI), i = WL({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ D.createElement(XL, {
+ return /*#__PURE__*/ D.createElement(YL, {
state: i,
props: e,
listBoxRef: t
});
}
-function XL({ state: e, props: t, listBoxRef: n }) {
- [t, n] = $F(t, n, aI);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = aue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vS(), { disabledBehavior: p, disabledKeys: m } = l, h = xT({
+function YL({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = QF(t, n, iI);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = oue(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = _S(), { disabledBehavior: p, disabledKeys: m } = l, h = bT({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(dI), b = (0, D.useMemo)(() => t.keyboardDelegate || new Cw({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, D.useContext)(uI), b = (0, D.useMemo)(() => t.keyboardDelegate || new Sw({
collection: c,
collator: h,
ref: n,
@@ -37855,7 +37855,7 @@ function XL({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Xie({
+ ]), { listBoxProps: x } = Zie({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -37887,7 +37887,7 @@ function XL({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = OT(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = DT(), M = s.collection.size === 0, N = {
isDropTarget: T,
isEmpty: M,
isFocused: A,
@@ -37895,7 +37895,7 @@ function XL({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, P = ZF({
+ }, P = XF({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -37905,8 +37905,8 @@ function XL({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let F = ES(t, { global: !0 });
- return /*#__PURE__*/ D.createElement(XS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ let F = TS(t, { global: !0 });
+ return /*#__PURE__*/ D.createElement(YS, null, /*#__PURE__*/ D.createElement(rI.div, {
...q(F, P, x, k, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -37917,60 +37917,60 @@ function XL({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [JL, t],
- [YL, s],
- [OL, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [qL, t],
+ [JL, s],
+ [DL, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [FL, { elementType: "div" }],
- [kL, { render: uue }],
- [sI, {
+ [PL, { elementType: "div" }],
+ [OL, { render: due }],
+ [oI, {
name: "ListBoxSection",
- render: cue
+ render: lue
}]
- ] }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(y, {
+ ] }, /*#__PURE__*/ D.createElement(ML, null, /*#__PURE__*/ D.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: jL(l, r, C),
- renderDropIndicator: AL(r, C)
+ persistedKeys: AL(l, r, C),
+ renderDropIndicator: kL(r, C)
}))), ee, E));
}
-function cue(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, D.useContext)(YL), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(OL), { CollectionBranch: s } = (0, D.useContext)(dI), [c, l] = eI(), { headingProps: u, groupProps: d } = Zie({
+function lue(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, D.useContext)(JL), { dragAndDropHooks: a, dropState: o } = (0, D.useContext)(DL), { CollectionBranch: s } = (0, D.useContext)(uI), [c, l] = $F(), { headingProps: u, groupProps: d } = Qie({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = ZF({
+ }), f = XF({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = ES(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ D.createElement(iI.section, {
+ }), p = TS(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ D.createElement(rI.section, {
...q(p, f, d),
ref: t
- }, /*#__PURE__*/ D.createElement(ML.Provider, { value: {
+ }, /*#__PURE__*/ D.createElement(jL.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ D.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: AL(a, o)
+ renderDropIndicator: kL(a, o)
})));
}
-var lue = /*#__PURE__*/ Kx(Hy, function(e, t, n) {
- let r = Nx(t), i = (0, D.useContext)(YL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(OL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Qie({
+var uue = /*#__PURE__*/ Gx(Vy, function(e, t, n) {
+ let r = Mx(t), i = (0, D.useContext)(JL), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(DL), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = $ie({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = MT({
+ }, i, r), { hoverProps: p, isHovered: m } = jT({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Mx(e), { focusProps: g } = Ox(e), _ = null;
+ }), { keyboardProps: h } = jx(e), { focusProps: g } = Dx(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -37981,7 +37981,7 @@ var lue = /*#__PURE__*/ Kx(Hy, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = ZF({
+ let y = o && o.isDragging(n.key), b = XF({
...e,
id: void 0,
children: e.children,
@@ -37999,7 +37999,7 @@ var lue = /*#__PURE__*/ Kx(Hy, function(e, t, n) {
(0, D.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? iI.a : iI.div, S = ES(e, { global: !0 });
+ let x = e.href ? rI.a : rI.div, S = TS(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ D.createElement(x, {
...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -38013,29 +38013,29 @@ var lue = /*#__PURE__*/ Kx(Hy, 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__*/ D.createElement(XF, { values: [[SI, { slots: {
- [YF]: u,
+ }, /*#__PURE__*/ D.createElement(YF, { values: [[xI, { slots: {
+ [JF]: u,
label: u,
description: d
- } }], [PL, { isSelected: f.isSelected }]] }, b.children));
+ } }], [NL, { isSelected: f.isSelected }]] }, b.children));
});
-function uue(e, t) {
- t = Nx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ D.createElement(fue, {
+function due(e, t) {
+ t = Mx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(DL), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ D.createElement(pue, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function due(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ZF({
+function fue(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = XF({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(rI.div, {
...n,
...a,
role: "option",
@@ -38043,10 +38043,10 @@ function due(e, t) {
"data-drop-target": r || void 0
}));
}
-var fue = /*#__PURE__*/ (0, D.forwardRef)(due);
-Kx(Vy, function(e, t, n) {
- let r = (0, D.useContext)(YL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- qL((0, D.useMemo)(() => ({
+var pue = /*#__PURE__*/ (0, D.forwardRef)(fue);
+Gx(By, function(e, t, n) {
+ let r = (0, D.useContext)(JL), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ KL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38056,7 +38056,7 @@ Kx(Vy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = ZF({
+ let l = XF({
...s,
id: void 0,
children: n.rendered,
@@ -38069,7 +38069,7 @@ Kx(Vy, function(e, t, n) {
width: 0,
height: 0
},
- inert: IL(!0)
+ inert: FL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38078,8 +38078,8 @@ Kx(Vy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
- ...q(ES(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(rI.div, {
+ ...q(TS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -38087,11 +38087,11 @@ Kx(Vy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var pue = /*#__PURE__*/ (0, D.createContext)({ placement: "bottom" });
+var mue = /*#__PURE__*/ (0, D.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function ZL(e) {
- let [t, n] = ew(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
+function XL(e) {
+ let [t, n] = $C(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, D.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -38110,15 +38110,15 @@ function ZL(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function QL(e, t = !0, n) {
+function ZL(e, t = !0, n) {
let [r, i] = (0, D.useState)(!0), a = r && t;
- return gb(() => {
- if (!t && e.current) return vx(eb(e.current, "opacity", "0"), eb(e.current, "clip", "rect(0 0 0 0)"), eb(e.current, "clip-path", "inset(50%)"), eb(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), gb(() => {
+ return hb(() => {
+ if (!t && e.current) return _x($y(e.current, "opacity", "0"), $y(e.current, "clip", "rect(0 0 0 0)"), $y(e.current, "clip-path", "inset(50%)"), $y(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), hb(() => {
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, D.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), $L(e, a, n, (0, D.useCallback)(() => i(!1), [])), a;
}
-function $L(e, t, n) {
+function QL(e, t, n) {
let [r, i] = (0, D.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -38128,13 +38128,13 @@ function $L(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return eR(e, a, n, (0, D.useCallback)(() => {
+ return $L(e, a, n, (0, D.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function eR(e, t, n, r) {
- let i = (0, D.useRef)(null), a = uS(n);
- gb(() => {
+function $L(e, t, n, r) {
+ let i = (0, D.useRef)(null), a = lS(n);
+ hb(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -38160,9 +38160,9 @@ function eR(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var tR = /*#__PURE__*/ (0, D.createContext)(null), nR = /*#__PURE__*/ (0, D.createContext)(null), rR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, tR);
- let n = (0, D.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 = zx(), { direction: c } = vS();
+var eR = /*#__PURE__*/ (0, D.createContext)(null), tR = /*#__PURE__*/ (0, D.createContext)(null), nR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, eR);
+ let n = (0, D.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 = Rx(), { direction: c } = _S();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -38173,7 +38173,7 @@ var tR = /*#__PURE__*/ (0, D.createContext)(null), nR = /*#__PURE__*/ (0, D.crea
defaultChildren: null
})), /*#__PURE__*/ D.createElement(D.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ D.createElement(mue, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ D.createElement(hue, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -38182,13 +38182,13 @@ var tR = /*#__PURE__*/ (0, D.createContext)(null), nR = /*#__PURE__*/ (0, D.crea
dir: c
});
});
-function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(nR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = wae({
+function hue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useContext)(tR), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, D.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tae({
...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 = ZF({
+ }, e), g = i.popoverRef, _ = ZL(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = XF({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -38198,10 +38198,10 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, D.useState)(i.trigger === "PreviewTrigger");
- gb(() => {
+ hb(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, D.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || ox() !== "pointer") && g.current && !ab(g.current) && _x(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || ax() !== "pointer") && g.current && !ib(g.current) && gx(g.current);
}, [
x,
g,
@@ -38209,12 +38209,12 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, D.useMemo)(() => {
let e = y.children;
- for (let t of [tR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
+ for (let t of [eR, ...r ?? []]) e = /*#__PURE__*/ D.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, D.useState)(null), E = (0, D.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- gb(E, [E]), AE({
+ hb(E, [E]), kE({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -38224,9 +38224,9 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- gb(() => yD(() => u(!0)), []);
- let k = /*#__PURE__*/ D.createElement(iI.div, {
- ...q(ES(i, { global: !0 }), d),
+ hb(() => vD(() => u(!0)), []);
+ let k = /*#__PURE__*/ D.createElement(rI.div, {
+ ...q(TS(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -38241,17 +38241,17 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ D.createElement(fD, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(pue.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ D.createElement(dD, { onDismiss: e.close }), /*#__PURE__*/ D.createElement(mue.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ D.createElement(fD, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ D.createElement(ET, {
+ } }, C), /*#__PURE__*/ D.createElement(dD, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ D.createElement(TT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, k) : /*#__PURE__*/ D.createElement(ET, {
+ }, k) : /*#__PURE__*/ D.createElement(TT, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -38266,15 +38266,15 @@ function mue({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ D.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(nR.Provider, { value: o }, k)));
+ }, /*#__PURE__*/ D.createElement(tR.Provider, { value: o }, k)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var hue = /*#__PURE__*/ (0, D.createContext)({});
+var gue = /*#__PURE__*/ (0, D.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function iR(e) {
- let t = ZL(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
+function rR(e) {
+ let t = XL(e), [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -38300,7 +38300,7 @@ function iR(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var gue = class {
+var _ue = 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) => {
@@ -38344,8 +38344,8 @@ var gue = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function aR(e) {
- let { onExpandedChange: t } = e, [n, r] = ew(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = zL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = WL(e, (0, D.useCallback)((e) => new gue(e, { expandedKeys: n }), [n]), null);
+function iR(e) {
+ let { onExpandedChange: t } = e, [n, r] = $C(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = RL(e), a = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = UL(e, (0, D.useCallback)((e) => new _ue(e, { expandedKeys: n }), [n]), null);
return (0, D.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -38353,32 +38353,32 @@ function aR(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(_ue(n, e));
+ r(vue(n, e));
},
setExpandedKeys: r,
- selectionManager: new VL(o, i)
+ selectionManager: new BL(o, i)
};
}
-function _ue(e, t) {
+function vue(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, D.createContext)(null), sR = /*#__PURE__*/ (0, D.createContext)(null), cR = /*#__PURE__*/ (0, D.createContext)(null), lR = /*#__PURE__*/ (0, D.createContext)(null);
-function vue(e) {
- let t = iR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = sT({
+var aR = /*#__PURE__*/ (0, D.createContext)(null), oR = /*#__PURE__*/ (0, D.createContext)(null), sR = /*#__PURE__*/ (0, D.createContext)(null), cR = /*#__PURE__*/ (0, D.createContext)(null);
+function yue(e) {
+ let t = rR(e), n = (0, D.useRef)(null), { menuTriggerProps: r, menuProps: i } = oT({
...e,
type: "menu"
}, t, n), a = (0, D.useRef)(null);
- return zx() ? null : /*#__PURE__*/ D.createElement(XF, { values: [
- [oR, {
+ return Rx() ? null : /*#__PURE__*/ D.createElement(YF, { values: [
+ [aR, {
...i,
ref: a
}],
- [hR, t],
- [cR, t],
- [tR, {
+ [mR, t],
+ [sR, t],
+ [eR, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -38386,14 +38386,14 @@ function vue(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ D.createElement(Fie, {
+ ] }, /*#__PURE__*/ D.createElement(Iie, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var yue = /*#__PURE__*/ (0, D.createContext)(null);
-(class extends zy {
+var bue = /*#__PURE__*/ (0, D.createContext)(null);
+(class extends Ry {
static {
this.type = "submenutrigger";
}
@@ -38406,24 +38406,24 @@ var yue = /*#__PURE__*/ (0, D.createContext)(null);
return null;
}
});
-var bue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = $F(e, t, oR), /*#__PURE__*/ D.createElement(Ux, { content: /*#__PURE__*/ D.createElement(Xx, e) }, (n) => /*#__PURE__*/ D.createElement(xue, {
+var xue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return [e, t] = QF(e, t, aR), /*#__PURE__*/ D.createElement(Hx, { content: /*#__PURE__*/ D.createElement(Yx, e) }, (n) => /*#__PURE__*/ D.createElement(Sue, {
props: e,
collection: n,
menuRef: t
}));
});
-function xue({ props: e, collection: t, menuRef: n }) {
- [e, n] = $F(e, n, aI);
- let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = aR({
+function Sue({ props: e, collection: t, menuRef: n }) {
+ [e, n] = QF(e, n, iI);
+ let { filter: r, ...i } = e, a = (0, D.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = iR({
...e,
collection: a,
children: void 0
- }), s = (0, D.useContext)(cR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(dI), { menuProps: u } = $ie({
+ }), s = (0, D.useContext)(sR), { isVirtualized: c, CollectionRoot: l } = (0, D.useContext)(uI), { menuProps: u } = eae({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = ZF({
+ }, o, n), d = XF({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -38433,36 +38433,36 @@ function xue({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(XS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ let p = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(YS, null, /*#__PURE__*/ D.createElement(rI.div, {
...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [sR, o],
- [FL, { elementType: "div" }],
- [sI, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [oR, o],
+ [PL, { elementType: "div" }],
+ [oI, {
name: "MenuSection",
- render: uR
+ render: lR
}],
- [yue, {
+ [bue, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [dR, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [iI, null],
[aI, null],
- [oI, null],
- [lR, o.selectionManager],
- [cR, s ?? iR({})]
- ] }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(l, {
+ [cR, o.selectionManager],
+ [sR, s ?? rR({})]
+ ] }, /*#__PURE__*/ D.createElement(ML, null, /*#__PURE__*/ D.createElement(l, {
collection: o.collection,
- persistedKeys: fI(o.selectionManager.focusedKey),
+ persistedKeys: dI(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Sue = class extends VL {
+var Cue = class extends BL {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -38482,11 +38482,11 @@ var Sue = class extends VL {
return this.parent.childFocusStrategy;
}
};
-function uR(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, D.useContext)(sR), { CollectionBranch: a } = (0, D.useContext)(dI), [o, s] = eI(), { headingProps: c, groupProps: l } = tae({
+function lR(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, D.useContext)(oR), { CollectionBranch: a } = (0, D.useContext)(uI), [o, s] = $F(), { headingProps: c, groupProps: l } = nae({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = ZF({
+ }), u = XF({
...e,
id: void 0,
children: void 0,
@@ -38494,31 +38494,31 @@ function uR(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, D.useContext)(lR), f = zL(e), p = e.selectionMode == null ? d : new Sue(d, f), m = QF(fR)?.shouldCloseOnSelect, h = ES(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ D.createElement(iI.section, {
+ }), d = (0, D.useContext)(cR), f = RL(e), p = e.selectionMode == null ? d : new Cue(d, f), m = ZF(dR)?.shouldCloseOnSelect, h = TS(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ D.createElement(rI.section, {
...q(h, u, l),
ref: t
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [ML, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [jL, {
...c,
ref: o
}],
- [lR, p],
- [fR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [cR, p],
+ [dR, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ D.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var dR = /*#__PURE__*/ qx(Bne, uR), fR = /*#__PURE__*/ (0, D.createContext)(null), pR = /*#__PURE__*/ Kx(Hy, function(e, t, n) {
- [e, t] = $F(e, t, fR);
- let r = QF(fR)?.id, i = (0, D.useContext)(sR), a = Nx(t), o = (0, D.useContext)(lR), { isVirtualized: s } = (0, D.useContext)(dI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = eae({
+var uR = /*#__PURE__*/ Kx(Vne, lR), dR = /*#__PURE__*/ (0, D.createContext)(null), fR = /*#__PURE__*/ Gx(Vy, function(e, t, n) {
+ [e, t] = QF(e, t, dR);
+ let r = ZF(dR)?.id, i = (0, D.useContext)(oR), a = Mx(t), o = (0, D.useContext)(cR), { isVirtualized: s } = (0, D.useContext)(uI), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = tae({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = MT({ isDisabled: f.isDisabled }), h = ZF({
+ }, i, a), { hoverProps: p, isHovered: m } = jT({ isDisabled: f.isDisabled }), h = XF({
...e,
id: void 0,
children: n.rendered,
@@ -38532,7 +38532,7 @@ var dR = /*#__PURE__*/ qx(Bne, uR), fR = /*#__PURE__*/ (0, D.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? iI.a : iI.div, _ = ES(e, { global: !0 });
+ }), g = e.href ? rI.a : rI.div, _ = TS(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(g, {
...q(_, h, c, p),
ref: a,
@@ -38545,19 +38545,19 @@ var dR = /*#__PURE__*/ qx(Bne, uR), fR = /*#__PURE__*/ (0, D.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__*/ D.createElement(XF, { values: [
- [SI, { slots: {
- [YF]: l,
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [xI, { slots: {
+ [JF]: l,
label: l,
description: u
} }],
- [hue, d],
- [PL, { isSelected: f.isSelected }]
+ [gue, d],
+ [NL, { isSelected: f.isSelected }]
] }, h.children));
});
-Kx(Vy, function(e, t, n) {
- let r = (0, D.useContext)(sR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
- qL((0, D.useMemo)(() => ({
+Gx(By, function(e, t, n) {
+ let r = (0, D.useContext)(oR), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, D.useRef)(null);
+ KL((0, D.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -38567,7 +38567,7 @@ Kx(Vy, function(e, t, n) {
o,
r?.collection
]), c);
- let l = ZF({
+ let l = XF({
...s,
id: void 0,
children: n.rendered,
@@ -38580,7 +38580,7 @@ Kx(Vy, function(e, t, n) {
width: 0,
height: 0
},
- inert: IL(!0)
+ inert: FL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -38589,8 +38589,8 @@ Kx(Vy, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(iI.div, {
- ...q(ES(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(rI.div, {
+ ...q(TS(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -38598,82 +38598,82 @@ Kx(Vy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var mR = /*#__PURE__*/ (0, D.createContext)(null), hR = /*#__PURE__*/ (0, D.createContext)(null), gR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+var pR = /*#__PURE__*/ (0, D.createContext)(null), mR = /*#__PURE__*/ (0, D.createContext)(null), hR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = $F(e, t, mR);
- let { dialogProps: r, titleProps: i, contentProps: a } = Lie({
+ [e, t] = QF(e, t, pR);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Rie({
...e,
"aria-labelledby": n
- }, t), o = (0, D.useContext)(hR);
+ }, t), o = (0, D.useContext)(mR);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = ZF({
+ let s = XF({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI.section, {
+ }), c = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(rI.section, {
...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [bI, { slots: {
- [YF]: {},
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [yI, { slots: {
+ [JF]: {},
title: {
...i,
level: 2
}
} }],
- [SI, { slots: {
- [YF]: {},
+ [xI, { slots: {
+ [JF]: {},
description: a
} }],
- [gI, { slots: {
- [YF]: {},
+ [hI, { slots: {
+ [JF]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), _R = typeof document < "u" && window.visualViewport;
-function Cue() {
- let e = Wb(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
+}), gR = typeof document < "u" && window.visualViewport;
+function wue() {
+ let e = Ub(), t = (0, D.useRef)(null), [n, r] = (0, D.useState)(() => e ? {
width: 0,
height: 0
- } : vR());
+ } : _R());
return (0, D.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 || sS(K(n)) && (t.current = yD((t) => {
+ gR && gR.scale > 1 || oS(K(n)) && (t.current = vD((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(vR()), Ob() && Ab() && window.addEventListener("blur", i, !0), _R ? _R.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), Ob() && Ab() && window.removeEventListener("blur", i, !0), _R ? _R.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(_R()), Db() && kb() && window.addEventListener("blur", i, !0), gR ? gR.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), Db() && kb() && 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 wue = /*#__PURE__*/ (0, D.createContext)(null), yR = /*#__PURE__*/ (0, D.createContext)(null), Tue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- if ((0, D.useContext)(yR)) return /*#__PURE__*/ D.createElement(xR, {
+var Tue = /*#__PURE__*/ (0, D.createContext)(null), vR = /*#__PURE__*/ (0, D.createContext)(null), Eue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ if ((0, D.useContext)(vR)) return /*#__PURE__*/ D.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__*/ D.createElement(bR, {
+ return /*#__PURE__*/ D.createElement(yR, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -38683,15 +38683,15 @@ var wue = /*#__PURE__*/ (0, D.createContext)(null), yR = /*#__PURE__*/ (0, D.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ D.createElement(xR, {
+ }, /*#__PURE__*/ D.createElement(bR, {
...f,
modalRef: t
}, s));
});
-function Eue(e, t) {
- [e, t] = $F(e, t, wue);
- let n = (0, D.useContext)(hR), r = ZL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nx(t), o = (0, D.useRef)(null), s = $L(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = $L(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Wb();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ D.createElement(Due, {
+function Due(e, t) {
+ [e, t] = QF(e, t, Tue);
+ let n = (0, D.useContext)(mR), r = XL(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Mx(t), o = (0, D.useRef)(null), s = QL(a, i.isOpen, e.onExit), c = (0, D.useRef)(null), l = QL(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Ub();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ D.createElement(Oue, {
...e,
state: i,
isExiting: u,
@@ -38700,12 +38700,12 @@ function Eue(e, t) {
onExitRef: c
});
}
-var bR = /*#__PURE__*/ (0, D.forwardRef)(Eue);
-function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = QL(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = fae({
+var yR = /*#__PURE__*/ (0, D.forwardRef)(Due);
+function Oue({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, D.useState)(!1), s = ZL(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = pae({
...n,
isEntering: c
- }, i, r), d = (0, D.useContext)(mR), f = t ? Oue(d, { isEntering: c }) : d, p = ZF({
+ }, i, r), d = (0, D.useContext)(pR), f = t ? kue(d, { isEntering: c }) : d, p = XF({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -38713,9 +38713,9 @@ function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Cue(), h, g;
+ }), m = wue(), h, g;
if (typeof document < "u") {
- let e = bC(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = yC(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 _ = {
@@ -38725,18 +38725,18 @@ function Due({ 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 gb(() => yD(() => o(!0)), []), /*#__PURE__*/ D.createElement(ET, {
+ return hb(() => vD(() => o(!0)), []), /*#__PURE__*/ D.createElement(TT, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ D.createElement(iI.div, {
- ...q(ES(n, { global: !0 }), u),
+ }, /*#__PURE__*/ D.createElement(rI.div, {
+ ...q(TS(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [yR, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [vR, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -38744,11 +38744,11 @@ function Due({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [hR, i],
- [mR, f]
+ [mR, i],
+ [pR, f]
] }, p.children)));
}
-function Oue(e, t) {
+function kue(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -38765,8 +38765,8 @@ function Oue(e, t) {
...t
};
}
-function xR(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(yR), s = (0, D.useContext)(hR), c = Nx((0, D.useMemo)(() => wx(e.modalRef, n), [e.modalRef, n])), l = QL(c, o, e.onEnter), u = ZF({
+function bR(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, D.useContext)(vR), s = (0, D.useContext)(mR), c = Mx((0, D.useMemo)(() => Cx(e.modalRef, n), [e.modalRef, n])), l = ZL(c, o, e.onEnter), u = XF({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -38775,21 +38775,21 @@ function xR(e) {
state: s
}
});
- return gb(() => {
+ return hb(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ D.createElement(iI.div, {
- ...q(ES(e, { global: !0 }), t),
+ }), /*#__PURE__*/ D.createElement(rI.div, {
+ ...q(TS(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ D.createElement(fD, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ D.createElement(dD, { onDismiss: s.close }), u.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var kue = Math.round(Math.random() * 1e10), Aue = 0;
-function jue(e) {
- let t = (0, D.useMemo)(() => e.name || `radio-group-${kue}-${++Aue}`, [e.name]), [n, r] = ew(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = VC({
+var Aue = Math.round(Math.random() * 1e10), jue = 0;
+function Mue(e) {
+ let t = (0, D.useMemo)(() => e.name || `radio-group-${Aue}-${++jue}`, [e.name]), [n, r] = $C(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, D.useState)(n), [a, o] = (0, D.useState)(null), s = BC({
...e,
value: n
}), c = (t) => {
@@ -38812,16 +38812,16 @@ function jue(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.createContext)(null), SR = /*#__PURE__*/ (0, D.createContext)(null), CR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, Mue);
- let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = jue({
+var Nue = /*#__PURE__*/ (0, D.createContext)(null), Pue = /*#__PURE__*/ (0, D.createContext)(null), xR = /*#__PURE__*/ (0, D.createContext)(null), SR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, Nue);
+ let { validationBehavior: n } = ZF(wI) || {}, r = e.validationBehavior ?? n ?? "native", i = Mue({
...e,
validationBehavior: r
- }), [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Eae({
+ }), [a, o] = $F(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Dae({
...e,
label: o,
validationBehavior: r
- }, i), f = ZF({
+ }, i), f = XF({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -38832,8 +38832,8 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI.div, {
+ }), p = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(rI.div, {
...q(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -38842,39 +38842,39 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [SR, i],
- [pI, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [xR, i],
+ [fI, {
...c,
ref: a,
elementType: "span"
}],
- [SI, { slots: {
+ [xI, { slots: {
description: l,
errorMessage: u
} }],
- [wI, d]
- ] }, /*#__PURE__*/ D.createElement(NL, null, f.children)));
-}), wR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [CI, d]
+ ] }, /*#__PURE__*/ D.createElement(ML, null, f.children)));
+}), CR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = $F(r, t, Nue);
- let i = D.useContext(SR), a = Nx((0, D.useMemo)(() => wx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Tae({
- ...tI(e),
+ [e, t] = QF(r, t, Pue);
+ let i = D.useContext(xR), a = Mx((0, D.useMemo)(() => Cx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Eae({
+ ...eI(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ D.createElement(TR.Provider, { value: {
+ return /*#__PURE__*/ D.createElement(wR.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ D.createElement(Pue, {
+ } }, /*#__PURE__*/ D.createElement(Fue, {
...e,
ref: t
}));
-}), TR = /*#__PURE__*/ (0, D.createContext)(null), Pue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(TR), l = D.useContext(SR), { isFocused: u, isFocusVisible: d, focusProps: f } = OT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MT({
+}), wR = /*#__PURE__*/ (0, D.createContext)(null), Fue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, D.useContext)(wR), l = D.useContext(xR), { isFocused: u, isFocusVisible: d, focusProps: f } = DT(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = jT({
...e,
isDisabled: p
- }), g = ZF({
+ }), g = XF({
...e,
defaultClassName: s,
values: {
@@ -38888,8 +38888,8 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = ES(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ }), _ = TS(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ D.createElement(rI.label, {
...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -38901,19 +38901,19 @@ var Mue = /*#__PURE__*/ (0, D.createContext)(null), Nue = /*#__PURE__*/ (0, D.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(uw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...q(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Fue(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = ZL(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Iue(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = XL(e), [i, a] = (0, D.useState)(null), o = (0, D.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = ew((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = $C((0, D.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -38925,12 +38925,12 @@ function Fue(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, D.useMemo)(() => Iue(l), [l]),
+ selectedKeys: (0, D.useMemo)(() => Lue(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -38940,7 +38940,7 @@ function Fue(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = VC({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, D.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = BC({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, D.useState)(!1), [_] = (0, D.useState)(l);
@@ -38967,16 +38967,16 @@ function Fue(e) {
setFocused: g
};
}
-function Iue(e) {
+function Lue(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 Lue(e) {
+function Rue(e) {
return e && e.__esModule ? e.default : e;
}
-var ER = /*#__PURE__*/ (0, D.createContext)(null), DR = /*#__PURE__*/ (0, D.createContext)(null), Rue = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, ER);
+var TR = /*#__PURE__*/ (0, D.createContext)(null), ER = /*#__PURE__*/ (0, D.createContext)(null), zue = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, TR);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, D.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -38991,24 +38991,24 @@ var ER = /*#__PURE__*/ (0, D.createContext)(null), DR = /*#__PURE__*/ (0, D.crea
i,
a
]);
- return /*#__PURE__*/ D.createElement(Ux, { content: o }, (n) => /*#__PURE__*/ D.createElement(Bue, {
+ return /*#__PURE__*/ D.createElement(Hx, { content: o }, (n) => /*#__PURE__*/ D.createElement(Vue, {
props: e,
collection: n,
selectRef: t
}));
-}), zue = [
- pI,
- gI,
- SI
+}), Bue = [
+ fI,
+ hI,
+ xI
];
-function Bue({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = QF(TI) || {}, i = e.validationBehavior ?? r ?? "native", a = Fue({
+function Vue({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = ZF(wI) || {}, i = e.validationBehavior ?? r ?? "native", a = Iue({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = OT({ within: !0 }), c = (0, D.useRef)(null), [l, u] = eI(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Dae({
- ...tI(e),
+ }), { isFocusVisible: o, focusProps: s } = DT({ within: !0 }), c = (0, D.useRef)(null), [l, u] = $F(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Oae({
+ ...eI(e),
label: u,
validationBehavior: i
}, a, c), y = (0, D.useMemo)(() => ({
@@ -39025,48 +39025,48 @@ function Bue({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = ZF({
+ ]), b = XF({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = ES(e, { global: !0 });
+ }), x = TS(e, { global: !0 });
delete x.id;
let S = (0, D.useRef)(null);
- return /*#__PURE__*/ D.createElement(XF, { values: [
- [ER, e],
- [DR, a],
- [OR, p],
- [pI, {
+ return /*#__PURE__*/ D.createElement(YF, { values: [
+ [TR, e],
+ [ER, a],
+ [DR, p],
+ [fI, {
...d,
ref: l,
elementType: "span"
}],
- [gI, {
+ [hI, {
...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: zue
+ clearContexts: Bue
}],
- [JL, {
+ [qL, {
...m,
ref: S
}],
- [YL, a],
- [SI, { slots: {
+ [JL, a],
+ [xI, { slots: {
description: h,
errorMessage: g
} }],
- [wI, v]
- ] }, /*#__PURE__*/ D.createElement(iI.div, {
+ [CI, v]
+ ] }, /*#__PURE__*/ D.createElement(rI.div, {
...q(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -39076,14 +39076,14 @@ function Bue({ 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__*/ D.createElement(kae, {
+ }, b.children, /*#__PURE__*/ D.createElement(Aae, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, OR);
- let n = (0, D.useContext)(DR), { placeholder: r } = QF(ER), i = n.selectedItems.map((e) => {
+for (var DR = /*#__PURE__*/ (0, D.createContext)(null), Hue = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, DR);
+ let n = (0, D.useContext)(ER), { placeholder: r } = ZF(TR), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -39095,7 +39095,7 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Rie(), o = (0, D.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, D.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = zie(), o = (0, D.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, D.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -39110,7 +39110,7 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
a,
o,
i
- ]), u = wS(Lue(DL), "react-aria-components"), d = ZF({
+ ]), u = CS(Rue(EL), "react-aria-components"), d = XF({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -39121,33 +39121,33 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI.span, {
+ }), f = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(rI.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ D.createElement(SI.Provider, { value: void 0 }, d.children));
-}), Hue = /*#__PURE__*/ (0, D.createContext)(null), kR = /*#__PURE__*/ (0, D.createContext)(null), Uue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ D.createElement(xI.Provider, { value: void 0 }, d.children));
+}), Uue = /*#__PURE__*/ (0, D.createContext)(null), OR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = $F(r, t, Hue);
- let i = Nx((0, D.useMemo)(() => wx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tw(e), o = jae({
- ...tI(e),
+ [e, t] = QF(r, t, Uue);
+ let i = Mx((0, D.useMemo)(() => Cx(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ew(e), o = Mae({
+ ...eI(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ D.createElement(XF, { values: [[kR, a], [AR, {
+ return /*#__PURE__*/ D.createElement(YF, { values: [[OR, a], [kR, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ D.createElement(Wue, {
+ }]] }, /*#__PURE__*/ D.createElement(Gue, {
...e,
ref: t
}));
-}), AR = /*#__PURE__*/ (0, D.createContext)(null), Wue = /*#__PURE__*/ (0, D.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, D.useContext)(AR), { isFocused: f, isFocusVisible: p, focusProps: m } = OT(), h = a || o, g = (0, D.useContext)(kR), { hoverProps: _, isHovered: v } = MT({
+}), kR = /*#__PURE__*/ (0, D.createContext)(null), Gue = /*#__PURE__*/ (0, D.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, D.useContext)(kR), { isFocused: f, isFocusVisible: p, focusProps: m } = DT(), h = a || o, g = (0, D.useContext)(OR), { hoverProps: _, isHovered: v } = jT({
...e,
isDisabled: h
- }), y = ZF({
+ }), y = XF({
...e,
defaultClassName: u,
values: {
@@ -39162,8 +39162,8 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
isRequired: d || !1,
state: g
}
- }), b = ES(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(iI.label, {
+ }), b = TS(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ D.createElement(rI.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -39176,11 +39176,11 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ D.createElement(uw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
+ }, /*#__PURE__*/ D.createElement(lw, { elementType: "span" }, /*#__PURE__*/ D.createElement("input", {
...q(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;
}
@@ -39190,7 +39190,7 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(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);
@@ -39269,11 +39269,11 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(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;
}
@@ -39288,7 +39288,7 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(f
boundaryContext: null
};
}
-}, Gue = class {
+}, Kue = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -39358,8 +39358,8 @@ for (var OR = /*#__PURE__*/ (0, D.createContext)(null), Vue = /*#__PURE__*/ Rx(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) {
@@ -39443,13 +39443,13 @@ function IR(e, t) {
textValue: ""
}));
}
-var Kue = class extends Gue {
+var que = class extends Kue {
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,
@@ -39464,7 +39464,7 @@ var Kue = class extends Gue {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: FR,
+ key: PR,
value: null,
textValue: "",
level: 0,
@@ -39491,7 +39491,7 @@ var Kue = class extends Gue {
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,
@@ -39517,10 +39517,10 @@ var Kue = class extends Gue {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return pT(this.body.childNodes)?.key ?? null;
+ return fT(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return hT(this.body.childNodes)?.key ?? null;
+ return mT(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -39552,15 +39552,15 @@ var Kue = class extends Gue {
};
//#endregion
//#region node_modules/react-stately/dist/private/table/TableUtils.mjs
-function que(e) {
+function Jue(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function Jue(e) {
+function Yue(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");
@@ -39568,19 +39568,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 Yue(e, t, n, r, i) {
+function Xue(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;
- que(o) ? (l = LR(o, e), s = !0) : (u = Jue(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));
+ Jue(o) ? (l = IR(o, e), s = !0) : (u = Yue(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,
@@ -39614,14 +39614,14 @@ function Yue(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = Xue(l);
+ let u = Zue(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 Xue(e) {
+function Zue(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -39630,7 +39630,7 @@ function Xue(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Zue = class {
+var Que = 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);
}
@@ -39659,19 +39659,19 @@ var Zue = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Yue(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Xue(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 Que(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, D.useState)(null), s = (0, D.useMemo)(() => new Zue({
+function $ue(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, D.useState)(null), s = (0, D.useMemo)(() => new Que({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, D.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, D.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, D.useState)(t.collection.columns);
@@ -39723,19 +39723,19 @@ function Que(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function $ue(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || zL(e), i = (0, D.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function ede(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || RL(e), i = (0, D.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 = fT(n, t);
- e = r === "last" ? hT(i)?.key ?? null : pT(i)?.key ?? null;
+ let i = dT(n, t);
+ e = r === "last" ? mT(i)?.key ?? null : fT(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, D.useMemo)(() => new VL(t, r), [t, r]), s = (0, D.useRef)(null);
+ let o = (0, D.useMemo)(() => new BL(t, r), [t, r]), s = (0, D.useRef)(null);
return (0, D.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;
@@ -39755,7 +39755,7 @@ function $ue(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...fT(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...dT(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);
}
@@ -39774,11 +39774,11 @@ function $ue(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var ede = {
+var tde = {
ascending: "descending",
descending: "ascending"
};
-function tde(e) {
+function nde(e) {
let [t, n] = (0, D.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, D.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -39789,11 +39789,11 @@ function tde(e) {
i,
r,
a
- ]), c = WL(e, (0, D.useCallback)((e) => new Kue(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $ue({
+ ]), c = UL(e, (0, D.useCallback)((e) => new que(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = ede({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = ew(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = $C(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -39805,7 +39805,7 @@ function tde(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? ede[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? tde[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -39818,7 +39818,7 @@ function tde(e) {
treeColumn: o
};
}
-function nde(e, t) {
+function rde(e, t) {
let n = (0, D.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -39828,10 +39828,10 @@ function nde(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-function rde(e) {
+function ide(e) {
return e && e.__esModule ? e.default : e;
}
-var ide = class extends Uy {
+var ade = class extends Hy {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -39846,7 +39846,7 @@ var ide = class extends Uy {
}
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 = [];
@@ -39872,7 +39872,7 @@ var ide = class extends Uy {
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;
@@ -39953,28 +39953,28 @@ var ide = class extends Uy {
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, D.createContext)(null), ade = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = Nx(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
- gb(() => {
+}, zR = /*#__PURE__*/ (0, D.createContext)(null), ode = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = Mx(t), r = (0, D.useRef)(null), i = (0, D.useRef)(null), [a, o] = (0, D.useState)(0);
+ hb(() => {
let e = r.current;
- for (; e && e !== n.current && !bC(e);) e = e.parentElement;
+ for (; e && e !== n.current && !yC(e);) e = e.parentElement;
i.current = e;
- }, [n]), AE({
+ }, [n]), kE({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), gb(() => {
+ }), hb(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, D.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Que,
+ useTableColumnResizeState: $ue,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -39985,17 +39985,17 @@ var ide = class extends Uy {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(rI.div, {
render: e.render,
- ...ES(e, { global: !0 }),
+ ...TS(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ D.createElement(BR.Provider, { value: s }, e.children));
-}), ode = /*#__PURE__*/ (0, D.createContext)(null), VR = /*#__PURE__*/ (0, D.createContext)(null), HR = /*#__PURE__*/ (0, D.createContext)(null), sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, ode);
- let n = zL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
+ }, /*#__PURE__*/ D.createElement(zR.Provider, { value: s }, e.children));
+}), sde = /*#__PURE__*/ (0, D.createContext)(null), BR = /*#__PURE__*/ (0, D.createContext)(null), VR = /*#__PURE__*/ (0, D.createContext)(null), cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, sde);
+ let n = RL(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, D.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -40005,26 +40005,26 @@ var ide = class extends Uy {
i,
a,
o
- ]), c = /*#__PURE__*/ D.createElement(ude.Provider, { value: s }, /*#__PURE__*/ D.createElement(Xx, e));
- return /*#__PURE__*/ D.createElement(Ux, {
+ ]), c = /*#__PURE__*/ D.createElement(dde.Provider, { value: s }, /*#__PURE__*/ D.createElement(Yx, e));
+ return /*#__PURE__*/ D.createElement(Hx, {
content: c,
- createCollection: () => new ide()
- }, (r) => /*#__PURE__*/ D.createElement(lde, {
+ createCollection: () => new ade()
+ }, (r) => /*#__PURE__*/ D.createElement(ude, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}), lde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.table, {
+ }) : /*#__PURE__*/ D.createElement(rI.table, {
...e,
ref: t
});
-}), UR = {
+}), HR = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -40034,26 +40034,26 @@ var ide = class extends Uy {
rtl: "ArrowRight"
}
};
-function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = $F(e, t, aI);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(BR);
- t = Nx((0, D.useMemo)(() => wx(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = ew(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function ude({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = QF(e, t, iI);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, D.useContext)(zR);
+ t = Mx((0, D.useMemo)(() => Cx(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = $C(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, D.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = tde({
+ let d = nde({
...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, D.useContext)(dI), { dragAndDropHooks: _ } = e, { gridProps: v } = Iae({
+ }), f = rde(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, D.useContext)(uI), { dragAndDropHooks: _ } = e, { gridProps: v } = Lae({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, D.useRef)(b), (0, D.useRef)(x), (0, D.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = vS(), [A] = (0, D.useState)(() => new NR());
+ let S, C, w, T = !1, E = null, O = (0, D.useRef)(null), { direction: k } = _S(), [A] = (0, D.useState)(() => new MR());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -40068,7 +40068,7 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new Cw({
+ let e = new Sw({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -40088,12 +40088,12 @@ function lde({ 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[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === UR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === HR.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === HR.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = OT(), P = ZF({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = DT(), P = XF({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -40109,19 +40109,19 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let I = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(XF, { values: [
- [VR, f],
- [HR, te],
- [OL, {
+ let I = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(YF, { values: [
+ [BR, f],
+ [VR, te],
+ [DL, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [kL, { render: bde }],
- [aI, null],
- [oI, null]
- ] }, /*#__PURE__*/ D.createElement(XS, null, /*#__PURE__*/ D.createElement(cde, {
+ [OL, { render: xde }],
+ [iI, null],
+ [aI, null]
+ ] }, /*#__PURE__*/ D.createElement(YS, null, /*#__PURE__*/ D.createElement(lde, {
...q(I, P, v, j, w?.collectionProps),
style: F,
ref: t,
@@ -40131,55 +40131,55 @@ function lde({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(g, {
+ }, /*#__PURE__*/ D.createElement(ML, null, /*#__PURE__*/ D.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: jL(y, _, C)
+ persistedKeys: AL(y, _, C)
})))), E);
}
-var ude = /*#__PURE__*/ (0, D.createContext)(null), WR = class extends zy {
+var dde = /*#__PURE__*/ (0, D.createContext)(null), UR = class extends Ry {
static {
this.type = "tableheader";
}
-}, dde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}, fde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.thead, {
+ }) : /*#__PURE__*/ D.createElement(rI.thead, {
...e,
ref: t
});
-}), GR = /*#__PURE__*/ qx(WR, (e, t) => {
- let n = (0, D.useContext)(VR).collection, r = qy({
+}), WR = /*#__PURE__*/ Kx(UR, (e, t) => {
+ let n = (0, D.useContext)(BR).collection, r = Ky({
items: n.headerRows,
children: (0, D.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ D.createElement(pde, { item: e });
+ case "headerrow": return /*#__PURE__*/ D.createElement(mde, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = FO(), { hoverProps: a, isHovered: o } = MT({
+ }), { rowGroupProps: i } = PO(), { hoverProps: a, isHovered: o } = jT({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = ZF({
+ }), s = XF({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ D.createElement(dde, {
- ...q(ES(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ D.createElement(fde, {
+ ...q(TS(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ D.createElement(Xx, {
+}, (e) => /*#__PURE__*/ D.createElement(Yx, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), fde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
+}, e.children)), pde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
return n ? /*#__PURE__*/ D.createElement("div", {
...e,
ref: t
@@ -40188,41 +40188,41 @@ var ude = /*#__PURE__*/ (0, D.createContext)(null), WR = class extends zy {
ref: t
});
});
-function pde({ item: e }) {
- let t = (0, D.useRef)(null), n = (0, D.useContext)(VR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(dI), { rowProps: a } = Hae({
+function mde({ item: e }) {
+ let t = (0, D.useRef)(null), n = (0, D.useContext)(BR), { isVirtualized: r, CollectionBranch: i } = (0, D.useContext)(uI), { rowProps: a } = Uae({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Yae(n);
- return /*#__PURE__*/ D.createElement(fde, {
+ }, n, t), { checkboxProps: o } = Xae(n);
+ return /*#__PURE__*/ D.createElement(pde, {
...a,
ref: t
- }, /*#__PURE__*/ D.createElement(XF, { values: [[EI, { slots: { selection: o } }], [DI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [[TI, { slots: { selection: o } }], [EI, { slots: { selection: o } }]] }, /*#__PURE__*/ D.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var mde = class extends zy {
+var hde = class extends Ry {
static {
this.type = "column";
}
-}, hde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}, gde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.th, {
+ }) : /*#__PURE__*/ D.createElement(rI.th, {
...e,
ref: t
});
-}), KR = /*#__PURE__*/ Kx(mde, (e, t, n) => {
- let r = Nx(t), i = (0, D.useContext)(VR), { isVirtualized: a } = (0, D.useContext)(dI), { columnHeaderProps: o, isPressed: s } = zae({
+}), GR = /*#__PURE__*/ Gx(hde, (e, t, n) => {
+ let r = Mx(t), i = (0, D.useContext)(BR), { isVirtualized: a } = (0, D.useContext)(uI), { columnHeaderProps: o, isPressed: s } = Bae({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OT(), d = (0, D.useContext)(HR), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = DT(), d = (0, D.useContext)(VR), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = MT({ isDisabled: !e.allowsSorting }), h = ZF({
+ let { hoverProps: p, isHovered: m } = jT({ isDisabled: !e.allowsSorting }), h = XF({
...e,
id: void 0,
children: n.rendered,
@@ -40248,8 +40248,8 @@ var mde = class extends zy {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = ES(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ D.createElement(hde, {
+ let _ = TS(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ D.createElement(gde, {
...q(_, o, u, p),
...h,
style: g,
@@ -40261,29 +40261,29 @@ var mde = class extends zy {
"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__*/ D.createElement(XF, { values: [[qR, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [[KR, {
column: n,
triggerRef: r
- }], [dI, cI]] }, h.children));
-}), qR = /*#__PURE__*/ (0, D.createContext)(null), gde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let n = (0, D.useContext)(HR);
+ }], [uI, sI]] }, h.children));
+}), KR = /*#__PURE__*/ (0, D.createContext)(null), _de = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let n = (0, D.useContext)(VR);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = wS(rde(DL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(BR), { column: s, triggerRef: c } = (0, D.useContext)(qR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Vae({
+ let r = CS(ide(EL), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, D.useContext)(zR), { column: s, triggerRef: c } = (0, D.useContext)(KR), l = (0, D.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Hae({
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 } = OT(), { hoverProps: _, isHovered: v } = MT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = vS(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = DT(), { hoverProps: _, isHovered: v } = jT(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = _S(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = Nx(t), [w, T] = (0, D.useState)("");
+ let C = Mx(t), [w, T] = (0, D.useState)("");
(0, D.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = ZF({
+ let E = XF({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -40293,8 +40293,8 @@ var mde = class extends zy {
isHovered: v,
resizableDirection: S
}
- }), O = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI.div, {
+ }), O = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(rI.div, {
ref: C,
role: "presentation",
...q(O, E, u, _),
@@ -40317,24 +40317,24 @@ var mde = class extends zy {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), JR = class extends By {
+}), qR = class extends zy {
static {
this.type = "tablebody";
}
-}, _de = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}, vde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.tbody, {
+ }) : /*#__PURE__*/ D.createElement(rI.tbody, {
...e,
ref: t
});
-}), YR = /*#__PURE__*/ qx(JR, (e, t, n) => {
- let r = (0, D.useContext)(VR), { isVirtualized: i } = (0, D.useContext)(dI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(dI), { dragAndDropHooks: s, dropState: c } = (0, D.useContext)(OL), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), JR = /*#__PURE__*/ Kx(qR, (e, t, n) => {
+ let r = (0, D.useContext)(BR), { isVirtualized: i } = (0, D.useContext)(uI), a = r.collection, { CollectionBranch: o } = (0, D.useContext)(uI), { dragAndDropHooks: s, dropState: c } = (0, D.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 = ZF({
+ }, p = XF({
...e,
id: void 0,
children: void 0,
@@ -40343,33 +40343,33 @@ var mde = class extends zy {
}), 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__*/ D.createElement(ZR, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ D.createElement(XR, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ D.createElement($R, {
+ }, /*#__PURE__*/ D.createElement(QR, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = FO(), _ = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(_de, {
+ let { rowGroupProps: g } = PO(), _ = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(vde, {
...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ D.createElement(Tde, null), /*#__PURE__*/ D.createElement(o, {
+ }, l && /*#__PURE__*/ D.createElement(Ede, null), /*#__PURE__*/ D.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: AL(s, c)
+ renderDropIndicator: kL(s, c)
}), m);
});
-(class extends By {
+(class extends zy {
static {
this.type = "tablefooter";
}
});
-var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vde = class extends zy {
+var YR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), yde = class extends Ry {
static {
this.type = "item";
}
@@ -40381,31 +40381,31 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
}
return null;
}
-}, ZR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}, XR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.tr, {
+ }) : /*#__PURE__*/ D.createElement(rI.tr, {
...e,
ref: t
});
-}), QR = /*#__PURE__*/ qx(vde, (e, t, n) => {
- let r = Nx(t), i = (0, D.useContext)(VR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(OL), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(dI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gae({
+}), ZR = /*#__PURE__*/ Kx(yde, (e, t, n) => {
+ let r = Mx(t), i = (0, D.useContext)(BR), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, D.useContext)(DL), { isVirtualized: c, CollectionBranch: l } = (0, D.useContext)(uI), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Kae({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = OT(), { isFocusVisible: _, focusProps: v } = OT({ within: !0 }), { hoverProps: y, isHovered: b } = MT({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = DT(), { isFocusVisible: _, focusProps: v } = DT({ within: !0 }), { hoverProps: y, isHovered: b } = jT({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Jae({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Yae({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = lw();
+ let C, w = (0, D.useRef)(null), { visuallyHiddenProps: T } = cw();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -40415,7 +40415,7 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
(0, D.useEffect)(() => {
o && E.current;
}, []);
- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = ZF({
+ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = XF({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -40436,11 +40436,11 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
isExpanded: M,
level: n.level + 1
}
- }), P = ES(e, { global: !0 });
- return delete P.id, delete P.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(ZR, {
+ }), P = TS(e, { global: !0 });
+ return delete P.id, delete P.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, C && !C.isHidden && /*#__PURE__*/ D.createElement(XR, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement($R, {
+ }, /*#__PURE__*/ D.createElement(QR, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -40449,7 +40449,7 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ D.createElement(ZR, {
+ }))), /*#__PURE__*/ D.createElement(XR, {
...q(P, N, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -40465,17 +40465,17 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [EI, { slots: {
- [YF]: {},
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [TI, { slots: {
+ [JF]: {},
selection: x
} }],
- [DI, { slots: {
- [YF]: {},
+ [EI, { slots: {
+ [JF]: {},
selection: x
} }],
- [gI, { slots: {
- [YF]: {},
+ [hI, { slots: {
+ [JF]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -40483,8 +40483,8 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
style: { pointerEvents: "none" }
}
} }],
- [PL, { isSelected: p.isSelected }],
- [XR, { isFocusVisibleWithinRow: _ }]
+ [NL, { isSelected: p.isSelected }],
+ [YR, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ D.createElement(l, {
collection: i.collection,
parent: n
@@ -40492,34 +40492,34 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
}, (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__*/ D.createElement(Xx, {
+ return /*#__PURE__*/ D.createElement(Yx, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), yde = class extends zy {
+}), bde = class extends Ry {
static {
this.type = "cell";
}
-}, $R = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}, QR = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.td, {
+ }) : /*#__PURE__*/ D.createElement(rI.td, {
...e,
ref: t
});
-}), ez = /*#__PURE__*/ Kx(yde, (e, t, n) => {
- let r = Nx(t), i = (0, D.useContext)(VR), { dragState: a } = (0, D.useContext)(OL), { isVirtualized: o } = (0, D.useContext)(dI);
+}), $R = /*#__PURE__*/ Gx(bde, (e, t, n) => {
+ let r = Mx(t), i = (0, D.useContext)(BR), { dragState: a } = (0, D.useContext)(DL), { isVirtualized: o } = (0, D.useContext)(uI);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Lae({
+ let { gridCellProps: s, isPressed: c } = Rae({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OT(), { hoverProps: f, isHovered: p } = MT({}), { isFocusVisibleWithinRow: m } = (0, D.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 = ZF({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = DT(), { hoverProps: f, isHovered: p } = jT({}), { isFocusVisibleWithinRow: m } = (0, D.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 = XF({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -40538,8 +40538,8 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = ES(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ D.createElement($R, {
+ }), S = TS(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ D.createElement(QR, {
...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -40553,14 +40553,14 @@ var XR = /*#__PURE__*/ (0, D.createContext)({ isFocusVisibleWithinRow: !1 }), vd
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, x.children));
+ }, /*#__PURE__*/ D.createElement(uI.Provider, { value: sI }, x.children));
});
-function bde(e, t) {
- t = Nx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function xde(e, t) {
+ t = Mx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(DL), i = (0, D.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__*/ D.createElement(wde, {
+ return /*#__PURE__*/ D.createElement(Tde, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -40569,40 +40569,40 @@ function bde(e, t) {
ref: t
});
}
-var xde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+var Sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.tr, {
+ }) : /*#__PURE__*/ D.createElement(rI.tr, {
...e,
ref: t
});
-}), Sde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, D.useContext)(dI);
- return n ? /*#__PURE__*/ D.createElement(iI.div, {
+}), Cde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, D.useContext)(uI);
+ return n ? /*#__PURE__*/ D.createElement(rI.div, {
...e,
ref: t
- }) : /*#__PURE__*/ D.createElement(iI.td, {
+ }) : /*#__PURE__*/ D.createElement(rI.td, {
...e,
ref: t
});
});
-function Cde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(VR), { visuallyHiddenProps: c } = lw(), l = ZF({
+function wde(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, D.useContext)(BR), { visuallyHiddenProps: c } = cw(), l = XF({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(xde, {
- ...ES(e, { global: !0 }),
+ return /*#__PURE__*/ D.createElement(Sde, {
+ ...TS(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ D.createElement(Sde, {
+ }, /*#__PURE__*/ D.createElement(Cde, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -40613,14 +40613,14 @@ function Cde(e, t) {
ref: i
}), l.children));
}
-var wde = /*#__PURE__*/ (0, D.forwardRef)(Cde);
-function Tde() {
- let e = (0, D.useContext)(VR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(OL), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = lw();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(ZR, {
+var Tde = /*#__PURE__*/ (0, D.forwardRef)(wde);
+function Ede() {
+ let e = (0, D.useContext)(BR), { dragAndDropHooks: t, dropState: n } = (0, D.useContext)(DL), r = (0, D.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = cw();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ D.createElement(XR, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ D.createElement($R, {
+ }, /*#__PURE__*/ D.createElement(QR, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -40631,9 +40631,9 @@ function Tde() {
ref: r
})));
}
-Kx(Vy, function(e, t, n) {
- let r = (0, D.useContext)(VR), { isVirtualized: i } = (0, D.useContext)(dI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
- qL((0, D.useMemo)(() => ({
+Gx(By, function(e, t, n) {
+ let r = (0, D.useContext)(BR), { isVirtualized: i } = (0, D.useContext)(uI), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, D.useRef)(null);
+ KL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -40643,7 +40643,7 @@ Kx(Vy, function(e, t, n) {
s,
r?.collection
]), u);
- let d = ZF({
+ let d = XF({
...c,
id: void 0,
children: n.rendered,
@@ -40651,10 +40651,10 @@ Kx(Vy, 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__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(ZR, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(XR, {
style: { height: 0 },
- inert: IL(!0)
- }, /*#__PURE__*/ D.createElement($R, { style: {
+ inert: FL(!0)
+ }, /*#__PURE__*/ D.createElement(QR, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ D.createElement("div", {
@@ -40665,14 +40665,14 @@ Kx(Vy, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ D.createElement(ZR, {
- ...q(ES(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ D.createElement(XR, {
+ ...q(TS(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ D.createElement($R, {
+ }, /*#__PURE__*/ D.createElement(QR, {
role: "rowheader",
...p,
style: m
@@ -40680,8 +40680,8 @@ Kx(Vy, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Ede(e) {
- let [t, n] = ew(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = GL({
+function Dde(e) {
+ let [t, n] = $C(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, D.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = WL({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -40704,24 +40704,24 @@ function Ede(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Dde(e) {
- let t = Ede({
+function Ode(e) {
+ let t = Dde({
...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
+ 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, D.useRef)(i);
return (0, D.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);
@@ -40731,24 +40731,24 @@ function tz(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var nz = /*#__PURE__*/ (0, D.createContext)(null), rz = /*#__PURE__*/ (0, D.createContext)(null), Ode = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, nz);
+var tz = /*#__PURE__*/ (0, D.createContext)(null), nz = /*#__PURE__*/ (0, D.createContext)(null), kde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, tz);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, D.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ D.createElement(Ux, { content: n }, (n) => /*#__PURE__*/ D.createElement(kde, {
+ }) : n, [n, r]), /*#__PURE__*/ D.createElement(Hx, { content: n }, (n) => /*#__PURE__*/ D.createElement(Ade, {
props: e,
collection: n,
tabsRef: t
}));
});
-function kde({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Dde({
+function Ade({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Ode({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = OT({ within: !0 }), c = (0, D.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = DT({ within: !0 }), c = (0, D.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -40756,12 +40756,12 @@ function kde({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = ZF({
+ ]), l = XF({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(iI.div, {
+ }), u = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(rI.div, {
...q(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -40769,20 +40769,20 @@ function kde({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [[nz, e], [rz, i]] }, l.children));
+ }, /*#__PURE__*/ D.createElement(YF, { values: [[tz, e], [nz, i]] }, l.children));
}
-var iz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return (0, D.useContext)(rz) ? /*#__PURE__*/ D.createElement(Ade, {
+var rz = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return (0, D.useContext)(nz) ? /*#__PURE__*/ D.createElement(jde, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ D.createElement(Xx, e);
+ }) : /*#__PURE__*/ D.createElement(Yx, e);
});
-function Ade({ props: e, forwardedRef: t }) {
- let n = (0, D.useContext)(rz), { CollectionRoot: r } = (0, D.useContext)(dI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = QF(nz), o = Nx(t), { tabListProps: s } = Qae({
+function jde({ props: e, forwardedRef: t }) {
+ let n = (0, D.useContext)(nz), { CollectionRoot: r } = (0, D.useContext)(uI), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = ZF(tz), o = Mx(t), { tabListProps: s } = $ae({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = ZF({
+ }, n, o), c = XF({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -40790,30 +40790,30 @@ function Ade({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = ES(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ D.createElement(iI.div, {
+ }), l = TS(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ D.createElement(rI.div, {
...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(r, {
+ }, /*#__PURE__*/ D.createElement(ML, null, /*#__PURE__*/ D.createElement(r, {
collection: n.collection,
- persistedKeys: fI(n.selectionManager.focusedKey)
+ persistedKeys: dI(n.selectionManager.focusedKey)
})));
}
-var jde = /*#__PURE__*/ Kx(class extends zy {
+var Mde = /*#__PURE__*/ Gx(class extends Ry {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(rz), i = Nx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Xae({
+ let r = (0, D.useContext)(nz), i = Mx(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Zae({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = OT(), { hoverProps: f, isHovered: p } = MT({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = DT(), { hoverProps: f, isHovered: p } = jT({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = ZF({
+ }), m = XF({
...e,
id: void 0,
children: n.rendered,
@@ -40826,7 +40826,7 @@ var jde = /*#__PURE__*/ Kx(class extends zy {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? iI.a : iI.div, g = ES(e, { global: !0 });
+ }), h = n.props.href ? rI.a : rI.div, g = TS(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ D.createElement(h, {
...q(g, m, a, l, f),
ref: i,
@@ -40836,55 +40836,55 @@ var jde = /*#__PURE__*/ Kx(class extends zy {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ D.createElement(PL.Provider, { value: { isSelected: o } }, m.children));
-}), Mde = /*#__PURE__*/ Rx(function(e, t) {
- let n = (0, D.useContext)(rz), r = Nx(t), i = n.selectedKey === e.id, [a, o] = (0, D.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ D.createElement(NL.Provider, { value: { isSelected: o } }, m.children));
+}), Nde = /*#__PURE__*/ Lx(function(e, t) {
+ let n = (0, D.useContext)(nz), r = Mx(t), i = n.selectedKey === e.id, [a, o] = (0, D.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__*/ D.createElement(Nde, {
+ let s = QL(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ D.createElement(Pde, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Nde(e) {
- let t = (0, D.useContext)(rz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = $ae(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OT(), d = t.selectedKey === e.id, f = QL(r) && !i, p = ZF({
+function Pde(e) {
+ let t = (0, D.useContext)(nz), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = eoe(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = DT(), d = t.selectedKey === e.id, f = ZL(r) && !i, p = XF({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: IL(!d),
+ isInert: FL(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = ES(o, { global: !0 });
+ }), m = TS(o, { global: !0 });
delete m.id;
let h = d ? q(m, s, c, p) : q(m, p);
- return /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(rI.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__*/ D.createElement(XF, { values: [[nz, null], [rz, null]] }, /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, p.children)));
+ }, /*#__PURE__*/ D.createElement(YF, { values: [[tz, null], [nz, null]] }, /*#__PURE__*/ D.createElement(uI.Provider, { value: sI }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
+var iz = /*#__PURE__*/ (0, D.createContext)({}), Fde = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Fde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- [e, t] = $F(e, t, az);
- let { hoverProps: n, isHovered: r } = MT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = OT({
+}, Ide = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ [e, t] = QF(e, t, iz);
+ let { hoverProps: n, isHovered: r } = jT(e), { isFocused: i, isFocusVisible: a, focusProps: o } = DT({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ZF({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = XF({
...e,
values: {
isHovered: r,
@@ -40895,8 +40895,8 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ D.createElement(iI.textarea, {
- ...q(Pde(e), o, n),
+ return /*#__PURE__*/ D.createElement(rI.textarea, {
+ ...q(Fde(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -40905,18 +40905,18 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Ide = /*#__PURE__*/ (0, D.createContext)(null), Lde = /*#__PURE__*/ Rx(function(e, t) {
- [e, t] = $F(e, t, Ide);
- let { validationBehavior: n } = QF(TI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
- [e, i] = $F(e, i, oI);
- let [a, o] = eI(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = bie({
- ...tI(e),
+}), Lde = /*#__PURE__*/ (0, D.createContext)(null), Rde = /*#__PURE__*/ Lx(function(e, t) {
+ [e, t] = QF(e, t, Lde);
+ let { validationBehavior: n } = ZF(wI) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, D.useRef)(null);
+ [e, i] = QF(e, i, aI);
+ let [a, o] = $F(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, D.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = xie({
+ ...eI(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, D.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = ZF({
+ }, [i]), h = XF({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -40925,8 +40925,8 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = ES(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ D.createElement(iI.div, {
+ }), g = TS(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ D.createElement(rI.div, {
...g,
...h,
ref: t,
@@ -40935,31 +40935,31 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [pI, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [fI, {
...l,
ref: a
}],
- [FI, {
+ [PI, {
...u,
ref: m
}],
- [az, {
+ [iz, {
...u,
ref: m
}],
- [NI, {
+ [MI, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [SI, { slots: {
+ [xI, { slots: {
description: d,
errorMessage: f
} }],
- [wI, p]
+ [CI, p]
] }, h.children));
-}), Rde = class e extends Uy {
+}), zde = class e extends Hy {
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;
@@ -41031,16 +41031,16 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, zde = /*#__PURE__*/ (0, D.createContext)(null), oz = /*#__PURE__*/ (0, D.createContext)(null), Bde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
- return [e, t] = $F(e, t, zde), /*#__PURE__*/ D.createElement(Ux, {
- content: /*#__PURE__*/ D.createElement(Xx, e),
- createCollection: () => new Rde()
- }, (n) => /*#__PURE__*/ D.createElement(Vde, {
+}, Bde = /*#__PURE__*/ (0, D.createContext)(null), az = /*#__PURE__*/ (0, D.createContext)(null), Vde = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
+ return [e, t] = QF(e, t, Bde), /*#__PURE__*/ D.createElement(Hx, {
+ content: /*#__PURE__*/ D.createElement(Yx, e),
+ createCollection: () => new zde()
+ }, (n) => /*#__PURE__*/ D.createElement(Hde, {
props: e,
collection: n,
treeRef: t
}));
-}), sz = {
+}), oz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41050,17 +41050,17 @@ var az = /*#__PURE__*/ (0, D.createContext)({}), Pde = (e) => {
rtl: "ArrowRight"
}
};
-function Vde({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = vS(), a = xT({
+function Hde({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = _S(), a = bT({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, D.useRef)(o), l = (0, D.useRef)(s);
(0, D.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, D.useContext)(dI), [y, b] = ew(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
- (!Jde(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let O = aR({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, D.useContext)(uI), [y, b] = $C(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, D.useState)(t), [C, w] = (0, D.useState)(y), [T, E] = (0, D.useState)(() => t.withExpandedKeys(C, y));
+ (!Yde(C, y) || t !== x) && (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let O = iR({
...e,
selectionMode: u,
expandedKeys: y,
@@ -41068,7 +41068,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: k } = eoe({
+ }), { gridProps: k } = toe({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -41082,7 +41082,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
P = r.renderDragPreview ? /*#__PURE__*/ D.createElement(e, { ref: ee }, r.renderDragPreview) : null;
}
- let [F] = (0, D.useState)(() => new NR());
+ let [F] = (0, D.useState)(() => new MR());
if (s && r) {
j = r.useDroppableCollectionState({
collection: O.collection,
@@ -41090,7 +41090,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(O.collection, n, { direction: i });
F.setup(e, O, i);
- let t = new Cw({
+ let t = new Sw({
collection: O.collection,
collator: a,
ref: n,
@@ -41112,12 +41112,12 @@ function Vde({ props: e, collection: t, treeRef: n }) {
let t = j?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = O.collection.getItem(t.key);
- (e.key === sz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === sz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
+ (e.key === oz.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === oz.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
}
}
}, j, n), N = j.isDropTarget({ type: "root" });
}
- let te = !(!o || A?.isDisabled), { focusProps: I, isFocused: ne, isFocusVisible: re } = OT(), ie = {
+ let te = !(!o || A?.isDisabled), { focusProps: I, isFocused: ne, isFocusVisible: re } = DT(), ie = {
isEmpty: O.collection.size === 0,
isFocused: ne,
isFocusVisible: re,
@@ -41125,7 +41125,7 @@ function Vde({ props: e, collection: t, treeRef: n }) {
selectionMode: O.selectionManager.selectionMode,
allowsDragging: !!te,
state: O
- }, ae = ZF({
+ }, ae = XF({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -41142,8 +41142,8 @@ function Vde({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = ES(e, { global: !0 });
- return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(XS, null, /*#__PURE__*/ D.createElement(iI.div, {
+ let se = TS(e, { global: !0 });
+ return /*#__PURE__*/ D.createElement(D.Fragment, null, /*#__PURE__*/ D.createElement(YS, null, /*#__PURE__*/ D.createElement(rI.div, {
...q(se, ae, k, I, M?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -41153,54 +41153,54 @@ function Vde({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": re || void 0,
"data-selection-mode": O.selectionManager.selectionMode === "none" ? void 0 : O.selectionManager.selectionMode,
"data-allows-dragging": !!te || void 0
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [oz, O],
- [OL, {
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [az, O],
+ [DL, {
dragAndDropHooks: r,
dragState: A,
dropState: j
}],
- [kL, { render: Wde }]
- ] }, s && /*#__PURE__*/ D.createElement(qde, null), /*#__PURE__*/ D.createElement(NL, null, /*#__PURE__*/ D.createElement(h, {
+ [OL, { render: Gde }]
+ ] }, s && /*#__PURE__*/ D.createElement(Jde, null), /*#__PURE__*/ D.createElement(ML, null, /*#__PURE__*/ D.createElement(h, {
collection: O.collection,
- persistedKeys: jL(O.selectionManager, r, j),
+ persistedKeys: AL(O.selectionManager, r, j),
scrollRef: n,
- renderDropIndicator: AL(r, j)
+ renderDropIndicator: kL(r, j)
}))), oe)), P);
}
-var Hde = /*#__PURE__*/ Kx(class extends zy {
+var Ude = /*#__PURE__*/ Gx(class extends Ry {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, D.useContext)(cz), n = ZF({
+ let t = (0, D.useContext)(sz), n = XF({
children: e.children,
values: t
});
- return /*#__PURE__*/ D.createElement(dI.Provider, { value: cI }, n.children);
-}), cz = /*#__PURE__*/ (0, D.createContext)(null), Ude = /*#__PURE__*/ qx(class extends zy {
+ return /*#__PURE__*/ D.createElement(uI.Provider, { value: sI }, n.children);
+}), sz = /*#__PURE__*/ (0, D.createContext)(null), Wde = /*#__PURE__*/ Kx(class extends Ry {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, D.useContext)(oz);
- t = Nx(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(OL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = yk({
+ let r = (0, D.useContext)(az);
+ t = Mx(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, D.useContext)(DL), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = vk({
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: _ } = MT({
+ }, 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: _ } = jT({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = OT(), { isFocusVisible: b, focusProps: x } = OT({ within: !0 }), { checkboxProps: S } = Yie({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = DT(), { isFocusVisible: b, focusProps: x } = DT({ within: !0 }), { checkboxProps: S } = Xie({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = lw();
+ let w = null, T = (0, D.useRef)(null), E = (0, D.useRef)(null), O = (0, D.useRef)(null), { visuallyHiddenProps: k } = cw();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -41239,7 +41239,7 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
j,
N,
M
- ]), ee = ZF({
+ ]), ee = XF({
...e,
id: void 0,
children: n.rendered,
@@ -41256,7 +41256,7 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
(0, D.useEffect)(() => {
a && F.current;
}, []);
- let te = qy({
+ let te = Ky({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -41266,7 +41266,7 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), I = Sx(), ne = ES(e, { global: !0 });
+ }), I = xx(), ne = TS(e, { global: !0 });
return delete ne.id, delete ne.onClick, /*#__PURE__*/ D.createElement(D.Fragment, null, w && !w.isHidden && /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -41289,7 +41289,7 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
"aria-labelledby": `${I} ${c.id}`,
tabIndex: -1,
ref: O
- }))), /*#__PURE__*/ D.createElement(iI.div, {
+ }))), /*#__PURE__*/ D.createElement(rI.div, {
...q(ne, c, y, g, x, C?.dragProps),
...ee,
ref: t,
@@ -41309,17 +41309,17 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
}, /*#__PURE__*/ D.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ D.createElement(XF, { values: [
- [EI, { slots: {
- [YF]: {},
+ }, /*#__PURE__*/ D.createElement(YF, { values: [
+ [TI, { slots: {
+ [JF]: {},
selection: S
} }],
- [DI, { slots: {
- [YF]: {},
+ [EI, { slots: {
+ [JF]: {},
selection: S
} }],
- [gI, { slots: {
- [YF]: {},
+ [hI, { slots: {
+ [JF]: {},
chevron: {
...u,
ref: T
@@ -41330,13 +41330,13 @@ var Hde = /*#__PURE__*/ Kx(class extends zy {
style: { pointerEvents: "none" }
}
} }],
- [cz, { ...P }],
- [PL, { isSelected: f.isSelected }]
+ [sz, { ...P }],
+ [NL, { isSelected: f.isSelected }]
] }, te))));
});
-Kx(Vy, function(e, t, n) {
- let { isVirtualized: r } = (0, D.useContext)(dI), i = (0, D.useContext)(oz), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
- qL((0, D.useMemo)(() => ({
+Gx(By, function(e, t, n) {
+ let { isVirtualized: r } = (0, D.useContext)(uI), i = (0, D.useContext)(az), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, D.useRef)(null);
+ KL((0, D.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -41345,11 +41345,11 @@ Kx(Vy, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = Nx(t);
- let { rowProps: u, gridCellProps: d } = yk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = Mx(t);
+ let { rowProps: u, gridCellProps: d } = vk({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = ZF({
+ }, m = XF({
...c,
id: void 0,
children: n.rendered,
@@ -41362,7 +41362,7 @@ Kx(Vy, function(e, t, n) {
width: 0,
height: 0
},
- inert: IL(!0)
+ inert: FL(!0)
}, /*#__PURE__*/ D.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -41371,9 +41371,9 @@ Kx(Vy, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ D.createElement(iI.div, {
+ })), a && m.children && /*#__PURE__*/ D.createElement(rI.div, {
ref: t,
- ...q(ES(e), p),
+ ...q(TS(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ D.createElement("div", {
@@ -41381,12 +41381,12 @@ Kx(Vy, function(e, t, n) {
style: h
}, m.children)));
});
-function Wde(e, t) {
- t = Nx(t);
- let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(OL), i = (0, D.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Gde(e, t) {
+ t = Mx(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, D.useContext)(DL), i = (0, D.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__*/ D.createElement(Kde, {
+ return /*#__PURE__*/ D.createElement(qde, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -41395,8 +41395,8 @@ function Wde(e, t) {
level: c
});
}
-function Gde(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lw(), c = ZF({
+function Kde(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = cw(), c = XF({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -41405,7 +41405,7 @@ function Gde(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ D.createElement(iI.div, {
+ return /*#__PURE__*/ D.createElement(rI.div, {
...c,
role: "row",
"aria-level": a,
@@ -41418,9 +41418,9 @@ function Gde(e, t) {
ref: i
}), c.children));
}
-var Kde = /*#__PURE__*/ (0, D.forwardRef)(Gde);
-function qde() {
- let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(OL), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = lw();
+var qde = /*#__PURE__*/ (0, D.forwardRef)(Kde);
+function Jde() {
+ let { dragAndDropHooks: e, dropState: t } = (0, D.useContext)(DL), n = (0, D.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = cw();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ D.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -41432,14 +41432,14 @@ function qde() {
ref: n
})));
}
-function Jde(e, t) {
+function Yde(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 Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+var Xde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41447,7 +41447,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Xde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Zde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41455,7 +41455,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41463,7 +41463,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41471,7 +41471,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41479,7 +41479,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Zde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41487,7 +41487,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Qde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), $de = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41495,7 +41495,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), $de = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41503,7 +41503,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41511,7 +41511,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41519,7 +41519,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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" })), rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41527,7 +41527,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), rfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41535,7 +41535,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), ife = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41543,7 +41543,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41551,7 +41551,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41559,7 +41559,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41567,7 +41567,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41575,7 +41575,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41583,7 +41583,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), lfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), ufe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41591,7 +41591,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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" })), dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41599,7 +41599,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41607,7 +41607,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41615,7 +41615,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41623,7 +41623,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41631,7 +41631,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41639,7 +41639,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), hfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41647,7 +41647,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), gfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), _fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41655,7 +41655,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), _fe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41663,7 +41663,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), mz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), pz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41671,7 +41671,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41679,7 +41679,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), vfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41687,7 +41687,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41695,7 +41695,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41703,7 +41703,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), yfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41711,7 +41711,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), bfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41719,7 +41719,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), xfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41727,7 +41727,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Sfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41735,7 +41735,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Cfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41743,7 +41743,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41751,7 +41751,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), wfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41759,7 +41759,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Tfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41767,7 +41767,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41775,7 +41775,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), bz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), yz = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41783,7 +41783,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41791,7 +41791,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41799,7 +41799,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Efe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41807,7 +41807,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41815,7 +41815,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Dfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41823,7 +41823,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Ofe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41831,7 +41831,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), kfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41839,7 +41839,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Afe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41847,7 +41847,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), jfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41855,7 +41855,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Mfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41863,7 +41863,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41871,7 +41871,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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 }) => D.createElement("svg", {
+}, D.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 }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41879,7 +41879,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Nfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41887,7 +41887,7 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
fill: e,
...r,
className: "remixicon " + (n || "")
-}, D.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" })), Pfe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
+}, D.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" })), Ffe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -41898,11 +41898,11 @@ var Yde = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => D
}, D.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, O.jsxs)(mI, {
+function Tz({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsxs)(pI, {
"data-label": "true",
...a,
- className: eF("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: $P("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, O.jsx)("span", {
@@ -41910,7 +41910,7 @@ function Ez({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, O.jsx)(xfe, {
+ n && /* @__PURE__ */ (0, O.jsx)(Sfe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -41919,33 +41919,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, O.jsx)(CI, {
+function Ez({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, O.jsx)(SI, {
slot: e ? "errorMessage" : "description",
...n,
- className: eF("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: $P("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, D.createContext)({});
-function kz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(Oz.Provider, {
+var Dz = (0, D.createContext)({});
+function Oz({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, O.jsx)(Dz.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, O.jsx)(Lde, {
+ children: /* @__PURE__ */ (0, O.jsx)(Rde, {
...a,
"data-input-size": e,
- className: eF("group flex h-max w-full flex-col items-start gap-1", r),
+ className: $P("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-kz.displayName = "TextField";
-var Az = tF({
+Oz.displayName = "TextField";
+var kz = eF({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -41974,44 +41974,44 @@ var Az = tF({
].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, D.useContext)(Oz), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, O.jsx)(PI, {
+function Az({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, D.useContext)(Dz), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, O.jsx)(NI, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => eF(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),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => $P(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, O.jsxs)("div", {
- className: Az.content,
+ className: kz.content,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: Az.leftSection,
+ className: kz.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, O.jsx)(t, {
- className: Az.icon,
+ className: kz.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, O.jsx)(LI, {
+ }) : null, /* @__PURE__ */ (0, O.jsx)(II, {
ref: o,
...c,
- className: eF(Az.input, l.inputClassName, a)
+ className: $P(kz.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: Az.icon,
+ 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, O.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, O.jsx)(Oz, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- e && /* @__PURE__ */ (0, O.jsx)(Ez, {
+ e && /* @__PURE__ */ (0, O.jsx)(Tz, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, O.jsx)(jz, {
+ /* @__PURE__ */ (0, O.jsx)(Az, {
ref: c,
groupRef: l,
placeholder: r,
@@ -42020,25 +42020,25 @@ function Mz({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, O.jsx)(Dz, {
+ t && /* @__PURE__ */ (0, O.jsx)(Ez, {
isInvalid: d,
children: t
})
] })
});
}
-Mz.displayName = "Input";
+jz.displayName = "Input";
//#endregion
//#region src/react/components/modal-frame.tsx
-var Ffe = {
+var Ife = {
"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 } = lx();
- return /* @__PURE__ */ (0, O.jsx)(bR, {
+function Mz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = cx();
+ return /* @__PURE__ */ (0, O.jsx)(yR, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -42046,11 +42046,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, O.jsx)(Tue, {
+ children: /* @__PURE__ */ (0, O.jsx)(Eue, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${Ffe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, O.jsx)(gR, {
+ className: `flex max-h-full w-full ${Ife[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, O.jsx)(hR, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -42058,7 +42058,7 @@ function Nz({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function Pz({ children: e }) {
+function Nz({ children: e }) {
return /* @__PURE__ */ (0, O.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",
@@ -42067,12 +42067,12 @@ 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 }) {
+function Pz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-note-layout": "",
- className: eF("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: $P("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
- className: eF("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: $P("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -42089,38 +42089,38 @@ function Fz({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, O.jsx)("div", {
role: "status",
- className: eF("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: $P("@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, O.jsx)("div", {
role: "status",
- className: eF("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: $P("@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, O.jsx)("div", {
role: "note",
- className: eF("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: $P("@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, O.jsx)("div", {
role: "alert",
- className: eF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: $P("@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, O.jsx)("div", {
role: "note",
- className: eF("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: $P("@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 Ife = {
+var Lfe = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function Lfe({ target: e, children: t }) {
+function Rfe({ target: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
@@ -42128,11 +42128,11 @@ function Lfe({ target: e, children: t }) {
children: t
});
}
-function Iz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function Fz({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, O.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 ${Ife[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 ${Lfe[i]}`,
children: [
/* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
@@ -42159,9 +42159,9 @@ 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 } = Gt(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
@@ -42177,11 +42177,11 @@ function Rz(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, O.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 }) {
+function Rz({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
id: t,
@@ -42197,7 +42197,7 @@ function zz({ label: e, id: t, onPress: n }) {
}
//#endregion
//#region src/react/settings/busy-props.ts
-function Bz(e) {
+function zz(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -42205,54 +42205,54 @@ function Bz(e) {
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
-var Vz = ["library-shortcuts"], Hz = "/api/library-shortcuts";
-function Uz(e = !0) {
+var Bz = ["library-shortcuts"], Vz = "/api/library-shortcuts";
+function Hz(e = !0) {
return St({
- queryKey: Vz,
- queryFn: ({ signal: e }) => V(Hz, e),
+ queryKey: Bz,
+ queryFn: ({ signal: e }) => V(Vz, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function Wz() {
+function Uz() {
return Ct({
- mutationKey: Vz,
- mutationFn: (e) => H(Hz, e),
+ mutationKey: Bz,
+ mutationFn: (e) => H(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"] }));
+ U.setQueryData(Bz, e), t.action === "favorite" && t.scope === "online" && (U.invalidateQueries({ queryKey: ["follow", "tags"] }), U.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 Rfe(e) {
+function zfe(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : en(e.kind, e.name, e.entity_id);
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
-var Kz = Rz("star"), zfe = Rz("bookmark-plus"), qz = Rz("chevron-right"), Jz = {
+var Gz = Lz("star"), Bfe = 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 }) {
+function Xz({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
...n,
@@ -42262,19 +42262,19 @@ function Zz({ label: e, children: t, ...n }) {
children: t
});
}
-function Qz({ item: e }) {
- return /* @__PURE__ */ (0, O.jsx)(Bfe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function Zz({ item: e }) {
+ return /* @__PURE__ */ (0, O.jsx)(Vfe, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function Bfe({ item: e }) {
- let t = Uz(!1), n = (0, D.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);
+function Vfe({ item: e }) {
+ let t = Hz(!1), n = (0, D.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, O.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(Zz, {
+ /* @__PURE__ */ (0, O.jsx)(Xz, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${e.name}`,
- ...Bz(r.isPending),
+ ...zz(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -42285,9 +42285,9 @@ function Bfe({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: ns("") }
- }) : /* @__PURE__ */ (0, O.jsx)(Kz, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(Gz, {})
}),
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(r.error)
}) : null,
@@ -42301,37 +42301,37 @@ function Bfe({ item: e }) {
]
});
}
-function $z({ currentHref: e, kind: t }) {
+function Qz({ currentHref: e, kind: t }) {
let [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, O.jsx)(LF, {
+ children: /* @__PURE__ */ (0, O.jsx)(IF, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: Kz,
+ icon: Gz,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, O.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Mz, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Vfe, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(Hfe, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function Vfe({ currentHref: e, kind: t, close: n }) {
- let r = Uz(), i = Wz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Hfe({ currentHref: e, kind: t, close: n }) {
+ let r = Hz(), i = Uz(), [a, o] = (0, D.useState)(""), [s, c] = (0, D.useState)(t || "all"), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), p = (0, D.useId)(), [m, h] = (0, D.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, D.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = KF(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(s), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = GF(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, D.useLayoutEffect)(() => {
b.current && (x.current = $a(b.current) || null);
}, []), (0, D.useLayoutEffect)(() => {
@@ -42344,7 +42344,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, D.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;
@@ -42367,7 +42367,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, O.jsx)(zz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Rz, {
label: "关闭我的收藏",
onPress: n
})]
@@ -42397,8 +42397,8 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
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;
+ 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, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -42430,17 +42430,17 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, O.jsx)(Kz, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(Gz, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, O.jsx)(qz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(Kz, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, O.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, O.jsx)(zfe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(Bfe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, O.jsx)(qz, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, O.jsx)(Kz, { "aria-hidden": !0 })
]
})]
})]
@@ -42459,7 +42459,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ r.isError ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -42468,16 +42468,16 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
}),
children: An(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ i.isError ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ E.filters.length ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
size: "compact",
- icon: Rz("list-filter"),
+ icon: Lz("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, O.jsx)(JF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/",
onClick: n,
@@ -42496,7 +42496,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...Bz(i.isPending),
+ ...zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -42511,7 +42511,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
label: "筛选名称",
value: a,
onChange: o,
@@ -42520,7 +42520,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...Bz(i.isPending),
+ ...zz(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -42531,16 +42531,16 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: Rz("search"),
+ leadingIcon: Lz("search"),
value: l,
onChange: u
}),
- k.length ? null : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ k.length ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
size: "compact",
- icon: Kz,
+ icon: Gz,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
@@ -42550,7 +42550,7 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, O.jsx)(JF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/",
onClick: n,
@@ -42564,25 +42564,25 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, O.jsxs)("a", {
- href: Rfe(e),
+ href: zfe(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, O.jsx)(Hfe, { item: e }, e.image_url), /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(Ufe, { item: e }, e.image_url), /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "truncate",
children: e.name
}), /* @__PURE__ */ (0, O.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, O.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${e.name}`,
- ...Bz(i.isPending),
+ ...zz(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -42600,8 +42600,8 @@ function Vfe({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Hfe({ item: e }) {
- let t = Yz[e.kind] || Kz;
+function Ufe({ item: e }) {
+ let t = Jz[e.kind] || Gz;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -42620,20 +42620,20 @@ function Hfe({ item: e }) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var Ufe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, eB = /^[\\/]{2}/;
-function Wfe(e, t) {
+var Wfe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, $z = /^[\\/]{2}/;
+function Gfe(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 Gfe(e = {}) {
+function Kfe(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
@@ -42644,14 +42644,14 @@ function Gfe(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : sB(t);
+ return typeof t == "string" ? t : oB(t);
}
- return qfe(t, n, null, e);
+ return Jfe(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 {
@@ -42659,10 +42659,10 @@ function iB(e, t) {
} catch {}
}
}
-function Kfe() {
+function qfe() {
return Math.random().toString(36).substring(2, 10);
}
-function aB(e, t) {
+function iB(e, t) {
return {
usr: e.state,
key: e.key,
@@ -42674,21 +42674,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 || Kfe(),
+ key: t && t.key || r || qfe(),
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("#");
@@ -42698,7 +42698,7 @@ function cB(e) {
}
return t;
}
-function qfe(e, t, n, r = {}) {
+function Jfe(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,
@@ -42718,9 +42718,9 @@ function qfe(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) {
@@ -42735,9 +42735,9 @@ function qfe(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,
@@ -42745,7 +42745,7 @@ function qfe(e, t, n, r = {}) {
});
}
function m(e) {
- return Jfe(i, e);
+ return Yfe(i, e);
}
let h = {
get action() {
@@ -42756,8 +42756,8 @@ function qfe(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) {
@@ -42780,29 +42780,29 @@ function qfe(e, t, n, r = {}) {
};
return h;
}
-function Jfe(e, t, n = !1) {
+function Yfe(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 Yfe(e, t, n = "/") {
- return Xfe(e, t, n, !1);
+function Xfe(e, t, n = "/") {
+ return Zfe(e, t, n, !1);
}
-function Xfe(e, t, n, r, i) {
- let a = hB((typeof t == "string" ? cB(t) : t).pathname || "/", n);
+function Zfe(e, t, n, r, i) {
+ let a = mB((typeof t == "string" ? sB(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? Zfe(e), s = null, c = upe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = lpe(o[e], c, r);
+ let o = i ?? Qfe(e), s = null, c = dpe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = upe(o[e], c, r);
return s;
}
-function Zfe(e) {
- let t = lB(e);
- return Qfe(t), t;
+function Qfe(e) {
+ let t = cB(e);
+ return $fe(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,
@@ -42812,14 +42812,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: spe(l, e.index),
+ score: cpe(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,
@@ -42830,68 +42830,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 Qfe(e) {
- e.sort((e, t) => e.score === t.score ? cpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function $fe(e) {
+ e.sort((e, t) => e.score === t.score ? lpe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var $fe = /^:[\w-]+$/, epe = /^:[\w-]+/, tpe = 3.5, npe = 3, rpe = 2, ipe = 1, ape = 10, ope = -2, dB = (e) => e === "*";
-function spe(e, t) {
+var epe = /^:[\w-]+$/, tpe = /^:[\w-]+/, npe = 3.5, rpe = 3, ipe = 2, ape = 1, ope = 10, spe = -2, uB = (e) => e === "*";
+function cpe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(dB) && (r += ope), t && (r += rpe), n.filter((e) => !dB(e)).reduce((e, t) => e + ($fe.test(t) ? npe : epe.test(t) ? tpe : t === "" ? ipe : ape), r);
+ return n.some(uB) && (r += spe), t && (r += ipe), n.filter((e) => !uB(e)).reduce((e, t) => e + (epe.test(t) ? rpe : tpe.test(t) ? npe : t === "" ? ape : ope), r);
}
-function cpe(e, t) {
+function lpe(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 lpe(e, t, n = !1) {
+function upe(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: hpe(yB([a, d.pathnameBase])),
+ pathname: vB([a, d.pathname]),
+ pathnameBase: gpe(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;
@@ -42901,8 +42901,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,
@@ -42915,46 +42915,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 upe(e) {
+function dpe(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 dpe(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 fpe(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: gpe(r),
- hash: _pe(i)
+ search: _pe(r),
+ hash: vpe(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 fpe(e) {
+function ppe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function ppe(e) {
- let t = fpe(e);
+function mpe(e) {
+ let t = ppe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function mpe(e, t, n, r = !1) {
+function hpe(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 {
@@ -42966,16 +42966,16 @@ function mpe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = dpe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = fpe(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 hpe = (e) => bB(e).replace(/^\/*/, "/"), gpe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, _pe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, vpe = class {
+var gpe = (e) => yB(e).replace(/^\/*/, "/"), _pe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, vpe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ype = class {
status;
statusText;
data;
@@ -42985,26 +42985,26 @@ var hpe = (e) => bB(e).replace(/^\/*/, "/"), gpe = (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 ype(e) {
+function bpe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function bpe(e) {
- return yB(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function xpe(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 xpe(e, t) {
+var bB = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function Spe(e, t) {
let n = e;
- if (typeof n != "string" || !Ufe.test(n)) return {
+ if (typeof n != "string" || !Wfe.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(Wfe(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(Gfe(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,
@@ -43014,45 +43014,45 @@ function xpe(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 Spe(e, t) {
+function Cpe(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 || !Spe(e, i) || !wB(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !Cpe(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 Cpe = ["GET", ...EB];
-new Set(Cpe);
-var wpe = [
+new Set(TB);
+var wpe = ["GET", ...TB];
+new Set(wpe);
+var Tpe = [
"about:",
"blob:",
"chrome:",
@@ -43064,85 +43064,85 @@ var wpe = [
"filesystem:",
"javascript:"
];
-function Tpe(e) {
+function Epe(e) {
try {
- return wpe.includes(new URL(e).protocol);
+ return Tpe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
-var DB = D.createContext(null);
-DB.displayName = "DataRouter";
-var Epe = D.createContext(null);
-Epe.displayName = "DataRouterState";
-var OB = D.createContext(null);
-OB.displayName = "DataRouterData";
+var EB = D.createContext(null);
+EB.displayName = "DataRouter";
var Dpe = D.createContext(null);
-Dpe.displayName = "DataRouterNavigation";
-var Ope = D.createContext(!1), kpe = D.createContext({ isTransitioning: !1 });
-kpe.displayName = "ViewTransition";
-var Ape = D.createContext(null);
-Ape.displayName = "Fetchers";
+Dpe.displayName = "DataRouterState";
+var DB = D.createContext(null);
+DB.displayName = "DataRouterData";
+var Ope = D.createContext(null);
+Ope.displayName = "DataRouterNavigation";
+var kpe = D.createContext(!1), Ape = D.createContext({ isTransitioning: !1 });
+Ape.displayName = "ViewTransition";
var jpe = D.createContext(null);
-jpe.displayName = "Await";
+jpe.displayName = "Fetchers";
+var Mpe = D.createContext(null);
+Mpe.displayName = "Await";
+var OB = D.createContext(null);
+OB.displayName = "Navigation";
var kB = D.createContext(null);
-kB.displayName = "Navigation";
-var AB = D.createContext(null);
-AB.displayName = "Location";
-var jB = D.createContext({
+kB.displayName = "Location";
+var AB = D.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-jB.displayName = "Route";
-var MB = D.createContext(!1);
-MB.displayName = "IsDataRoute";
-var NB = D.createContext(void 0);
-NB.displayName = "RouteId";
-var PB = D.createContext(null);
-PB.displayName = "RouteError";
+AB.displayName = "Route";
+var jB = D.createContext(!1);
+jB.displayName = "IsDataRoute";
+var MB = D.createContext(void 0);
+MB.displayName = "RouteId";
+var NB = D.createContext(null);
+NB.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var FB = "REACT_ROUTER_ERROR", Mpe = "REDIRECT", Npe = "ROUTE_ERROR_RESPONSE";
-function Ppe(e) {
- if (e.startsWith(`${FB}:${Mpe}:{`)) try {
+var PB = "REACT_ROUTER_ERROR", Npe = "REDIRECT", Ppe = "ROUTE_ERROR_RESPONSE";
+function Fpe(e) {
+ if (e.startsWith(`${PB}:${Npe}:{`)) 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 Fpe(e) {
- if (e.startsWith(`${FB}:${Npe}:{`)) try {
+function Ipe(e) {
+ if (e.startsWith(`${PB}:${Ppe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new vpe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new ype(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function IB() {
- return D.useContext(AB) != null;
+function FB() {
+ return D.useContext(kB) != null;
}
-function LB() {
- return rB(IB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(AB).location;
-}
-var RB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function Ipe() {
- return D.useContext(MB) ? Jpe() : Lpe();
+function IB() {
+ return nB(FB(), "useLocation() may be used only in the context of a <Router> component."), D.useContext(kB).location;
}
+var LB = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function Lpe() {
- rB(IB(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = D.useContext(DB), { basename: t, navigator: n } = D.useContext(kB), { matches: r } = D.useContext(jB), { pathname: i } = LB(), a = JSON.stringify(ppe(r)), o = D.useRef(!1);
+ return D.useContext(jB) ? Ype() : Rpe();
+}
+function Rpe() {
+ nB(FB(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = D.useContext(EB), { basename: t, navigator: n } = D.useContext(OB), { matches: r } = D.useContext(AB), { pathname: i } = IB(), a = JSON.stringify(mpe(r)), o = D.useRef(!1);
return D.useLayoutEffect(() => {
o.current = !0;
}), D.useCallback((r, s = {}) => {
- if (iB(o.current, RB), !o.current) return;
+ if (rB(o.current, LB), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = mpe(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 = hpe(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,
@@ -43152,19 +43152,19 @@ function Lpe() {
]);
}
D.createContext(null);
-function Rpe(e, t) {
- return zB(e, t);
+function zpe(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 } = D.useContext(kB), { matches: i } = D.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 } = D.useContext(OB), { matches: i } = D.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 !== "/") {
@@ -43172,13 +43172,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) : Yfe(e, { pathname: d });
- let p = Wpe(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) : Xfe(e, { pathname: d });
+ let p = Gpe(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__ */ D.createElement(AB.Provider, { value: {
+ return t && p ? /* @__PURE__ */ D.createElement(kB.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -43191,14 +43191,14 @@ function zB(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function zpe() {
- let e = qpe(), t = ype(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function Bpe() {
+ let e = Jpe(), t = bpe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ D.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ D.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var Bpe = /* @__PURE__ */ D.createElement(zpe, null), Vpe = class extends D.Component {
+var Vpe = /* @__PURE__ */ D.createElement(Bpe, null), Hpe = class extends D.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -43206,7 +43206,7 @@ var Bpe = /* @__PURE__ */ D.createElement(zpe, null), Vpe = class extends D.Comp
error: e.error
};
}
- static contextType = Ope;
+ static contextType = kpe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -43227,30 +43227,30 @@ var Bpe = /* @__PURE__ */ D.createElement(zpe, null), Vpe = class extends D.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = Fpe(e.digest);
+ let t = Ipe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(jB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(MB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(NB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(PB.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ D.createElement(AB.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(jB.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ D.createElement(MB.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ D.createElement(NB.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ D.createElement(Hpe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ D.createElement(Upe, { error: e }, t) : t;
}
-}, BB = /* @__PURE__ */ new WeakMap();
-function Hpe({ children: e, error: t }) {
- let { basename: n, navigator: r } = D.useContext(kB);
+}, zB = /* @__PURE__ */ new WeakMap();
+function Upe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = D.useContext(OB);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = Ppe(t.digest);
+ let e = Fpe(t.digest);
if (e) {
- let i = BB.get(t);
+ let i = zB.get(t);
if (i) throw i;
- let a = xpe(e.location, n), o = a.absoluteURL || a.to;
- if (TB(e.location, o, CB(r), "allow-explicit"), Tpe(o)) throw Error("Invalid redirect location");
- if (xB && !BB.get(t)) {
+ let a = Spe(e.location, n), o = a.absoluteURL || a.to;
+ if (wB(e.location, o, SB(r), "allow-explicit"), Epe(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__ */ D.createElement("meta", {
@@ -43261,11 +43261,11 @@ function Hpe({ children: e, error: t }) {
}
return e;
}
-function Upe({ routeContext: e, match: t, children: n }) {
- let r = D.useContext(DB);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(jB.Provider, { value: e }, /* @__PURE__ */ D.createElement(MB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(NB.Provider, { value: t.route.id }, n)));
+function Wpe({ routeContext: e, match: t, children: n }) {
+ let r = D.useContext(EB);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(AB.Provider, { value: e }, /* @__PURE__ */ D.createElement(jB.Provider, { value: e.isDataRoute }, /* @__PURE__ */ D.createElement(MB.Provider, { value: t.route.id }, n)));
}
-function Wpe(e, t = [], n) {
+function Gpe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -43276,7 +43276,7 @@ function Wpe(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) {
@@ -43296,16 +43296,16 @@ function Wpe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: bpe(r.matches),
+ pattern: xpe(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 || Bpe, o && (s < 0 && c === 0 ? (Ype("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 || Vpe, o && (s < 0 && c === 0 ? (Xpe("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__ */ D.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ D.createElement(Upe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ D.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ D.createElement(Wpe, {
match: n,
routeContext: {
outlet: e,
@@ -43315,7 +43315,7 @@ function Wpe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ D.createElement(Vpe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ D.createElement(Hpe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -43330,44 +43330,44 @@ function Wpe(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 Gpe(e) {
- let t = D.useContext(DB);
- return rB(t, VB(e)), t;
-}
function Kpe(e) {
- let t = D.useContext(OB);
- return rB(t, VB(e)), t;
+ let t = D.useContext(EB);
+ return nB(t, BB(e)), t;
}
-function HB(e) {
- let t = D.useContext(NB);
- return rB(t, `${e} can only be used on routes that contain a unique "id"`), t;
+function qpe(e) {
+ let t = D.useContext(DB);
+ return nB(t, BB(e)), t;
}
-function qpe() {
- let e = D.useContext(PB), t = Kpe("useRouteError"), n = HB("useRouteError");
- return e === void 0 ? t.errors?.[n] : e;
+function VB(e) {
+ let t = D.useContext(MB);
+ return nB(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
function Jpe() {
- let { router: e } = Gpe("useNavigate"), t = HB("useNavigate"), n = D.useRef(!1);
+ let e = D.useContext(NB), t = qpe("useRouteError"), n = VB("useRouteError");
+ return e === void 0 ? t.errors?.[n] : e;
+}
+function Ype() {
+ let { router: e } = Kpe("useNavigate"), t = VB("useNavigate"), n = D.useRef(!1);
return D.useLayoutEffect(() => {
n.current = !0;
}), D.useCallback(async (r, i = {}) => {
- iB(n.current, RB), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ 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 Ype(e, t, n) {
- !t && !UB[e] && (UB[e] = !0, iB(!1, n));
+var HB = {};
+function Xpe(e, t, n) {
+ !t && !HB[e] && (HB[e] = !0, rB(!1, n));
}
-D.memo(Xpe);
-function Xpe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = D.useContext(DB);
- return rB(a, "You must render this element inside a <DataRouterContext.Provider> element"), zB(e, void 0, {
+D.memo(Zpe);
+function Zpe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = D.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,
@@ -43375,11 +43375,11 @@ function Xpe({ 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 Zpe({ 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.");
+function Qpe({ 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 = D.useMemo(() => ({
basename: s,
navigator: i,
@@ -43392,9 +43392,9 @@ function Zpe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = cB(n));
+ typeof n == "string" && (n = sB(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = D.useMemo(() => {
- let e = hB(l, s);
+ let e = mB(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -43416,27 +43416,27 @@ function Zpe({ 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__ */ D.createElement(kB.Provider, { value: c }, /* @__PURE__ */ D.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__ */ D.createElement(OB.Provider, { value: c }, /* @__PURE__ */ D.createElement(kB.Provider, {
children: t,
value: h
}));
}
-function GB({ children: e, location: t }) {
- return Rpe(KB(e), t);
+function WB({ children: e, location: t }) {
+ return zpe(GB(e), t);
}
D.Component;
-function KB(e, t = []) {
+function GB(e, t = []) {
let n = [];
return D.Children.forEach(e, (e, r) => {
if (!D.isValidElement(e)) return;
let i = [...t, r];
if (e.type === D.Fragment) {
- n.push.apply(n, KB(e.props.children, i));
+ 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,
@@ -43455,17 +43455,17 @@ 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 Qpe(e) {
+function $pe(e) {
return /* @__PURE__ */ (0, O.jsx)("a", { ...e });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function $pe(e) {
+function eme(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43479,7 +43479,7 @@ function $pe(e) {
})
});
}
-function eme(e) {
+function tme(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -43493,7 +43493,7 @@ function eme(e) {
})
});
}
-function qB(e) {
+function KB(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -43507,54 +43507,54 @@ function qB(e) {
}
//#endregion
//#region src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function tme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function nme({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = D.Children.toArray(e).filter(D.isValidElement);
return /* @__PURE__ */ (0, O.jsx)("nav", {
ref: r,
"aria-label": t,
- className: eF("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: $P("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, O.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, O.jsx)(eme, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, O.jsx)(tme, {
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 }) {
+function qB({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t && /* @__PURE__ */ (0, O.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, O.jsx)("li", {
"aria-current": "page",
- className: eF("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: $P("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = eF("-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);
+ let s = $P("-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, O.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Qpe, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)($pe, {
href: n,
className: s,
children: o
}) : /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: r,
- className: eF("cursor-pointer", s),
+ className: $P("cursor-pointer", s),
children: o
})
});
}
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
-function YB() {
- return vS().direction;
+function JB() {
+ return _S().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",
@@ -43562,11 +43562,11 @@ 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]", rme = "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(" "), rme = "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 ime({ 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, D.useContext)(dI), u = l === cI && !s.dragAndDropHooks ? eV : l;
+function ame({ 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, D.useContext)(uI), u = l === sI && !s.dragAndDropHooks ? $B : l;
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -43583,23 +43583,23 @@ function ime({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, O.jsx)(dI.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(uI.Provider, {
value: u,
- children: /* @__PURE__ */ (0, O.jsx)(Bde, {
+ children: /* @__PURE__ */ (0, O.jsx)(Vde, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => eF("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) => $P("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, O.jsxs)(Ude, {
+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, O.jsxs)(Wde, {
...u,
ref: l,
textValue: t,
@@ -43607,11 +43607,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) => eF("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, O.jsx)(Hde, { 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 : mfe);
+ className: (e) => $P("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, O.jsx)(Ude, { 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 : hfe);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(ome, {
+ /* @__PURE__ */ (0, O.jsx)(sme, {
state: l,
id: u,
level: c,
@@ -43621,20 +43621,20 @@ function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, O.jsx)(_I, {
+ children: [t ? /* @__PURE__ */ (0, O.jsx)(gI, {
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, O.jsx)(dz, {
+ children: /* @__PURE__ */ (0, O.jsx)(uz, {
"aria-hidden": !0,
- className: eF("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: $P("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: eF("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: $P("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, O.jsx)(f, {
"aria-hidden": !0,
- className: eF("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: $P("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -43649,24 +43649,24 @@ function $B({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var eV = {
- ...cI,
- CollectionRoot: ame
+var $B = {
+ ...sI,
+ CollectionRoot: ome
};
-function ame({ collection: e, ...t }) {
- let n = (0, D.useContext)(oz);
+function ome({ collection: e, ...t }) {
+ let n = (0, D.useContext)(az);
return n ? /* @__PURE__ */ (0, O.jsx)(Mv, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, O.jsx)(sme, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, O.jsx)(cme, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, O.jsx)(cI.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, O.jsx)(sI.CollectionRoot, {
collection: e,
...t
});
}
-function ome({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function sme({ 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;
@@ -43699,7 +43699,7 @@ function ome({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: eF("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: $P("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, O.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -43725,9 +43725,9 @@ function ome({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function sme({ state: e, children: t }) {
- let n = kv(), r = Ay(), [i, a] = (0, D.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(Ry.div, {
+function cme({ state: e, children: t }) {
+ let n = kv(), r = ky(), [i, a] = (0, D.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, O.jsx)(Ly.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -43766,7 +43766,7 @@ function sme({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, O.jsx)(oz.Provider, {
+ children: /* @__PURE__ */ (0, O.jsx)(az.Provider, {
value: n ? e : i,
children: t
})
@@ -43774,7 +43774,7 @@ function sme({ 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",
@@ -43788,11 +43788,11 @@ 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;
+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, O.jsx)("span", {
"aria-hidden": !0,
- className: eF("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? eF("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : eF("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: $P("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? $P("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : $P("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, O.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -43816,24 +43816,24 @@ 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, O.jsx)(jI, {
+function nV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = eV[n];
+ return /* @__PURE__ */ (0, O.jsx)(AI, {
ref: r,
...i,
- className: (t) => eF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(nV, {
+ className: (t) => $P("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(tV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, O.jsx)("span", {
- className: eF(a.label, "text-text-primary"),
+ className: $P(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function iV() {
+function rV() {
let e = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
$a(e.current);
@@ -43841,13 +43841,13 @@ function iV() {
}
//#endregion
//#region src/history/settings-route.ts
-var aV = {
+var iV = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, oV = {
+}, aV = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -43855,37 +43855,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"
-], cme = [
+], lme = [
"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 || "";
@@ -43902,7 +43902,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 = cme.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = lme.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 {
@@ -43926,8 +43926,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,
@@ -43935,35 +43935,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 lme(e) {
- let t = _V(e);
- t && (vV = t, yV = t.pathname + t.search + (t.hash || ""));
+function ume(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/"],
@@ -43987,16 +43987,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"
@@ -44127,13 +44127,13 @@ 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;
+ if (!r.length) return Object.hasOwn(wV, `/${n}`) ? wV[`/${n}`] : null;
let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Mt({
performers: "performer",
studios: "studio",
@@ -44142,126 +44142,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 ume(e) {
- DV(e);
+DV.catch(() => {});
+var OV = null, kV = /* @__PURE__ */ new Map(), AV = /* @__PURE__ */ new Map(), jV = 0, MV = /* @__PURE__ */ new Set();
+function dme(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 dme(e) {
- return NV.add(e), () => {
- NV.delete(e);
+var FV = () => [...kV.values()];
+function fme(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) : fme(r);
- return AV.set(r, {
+ if (AV.get(r) !== i || (AV.delete(r), !n.isCurrent())) return !1;
+ let s = n.place ? n.place(r) : pme(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 fme(e) {
+function pme(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 pme() {
- let [e, ...t] = /* @__PURE__ */ new Set([...AV.keys(), ...jV.keys()]);
- e && BV(e, ...t);
+function mme() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...kV.keys(), ...AV.keys()]);
+ e && zV(e, ...t);
}
-function mme(e, t) {
- let n = AV.get(e);
- n?.revision === t && (AV.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- LV(!1);
+function hme(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 = Gfe({ v5Compat: !0 }), HV = 0, UV = 0, WV = {
- action: VV.action,
- location: VV.location,
- seq: HV,
- openEpoch: UV,
+var BV = Kfe({ 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 {
@@ -44271,52 +44271,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 hme() {
- return $V?.isConnected || ($V = document.createElement("div"), $V.className = "peach-react", $V.dataset.reactOverlays = "", document.body.append($V)), $V;
+var QV = null;
+function gme() {
+ return QV?.isConnected || (QV = document.createElement("div"), QV.className = "peach-react", QV.dataset.reactOverlays = "", document.body.append(QV)), QV;
}
-function eH({ children: e }) {
+function $V({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)(j, {
client: U,
children: /* @__PURE__ */ (0, O.jsx)(Ote, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, O.jsx)(CT, {
- getContainer: hme,
+ children: /* @__PURE__ */ (0, O.jsx)(ST, {
+ getContainer: gme,
children: e
})
})
@@ -44324,26 +44324,26 @@ function eH({ children: e }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function gme(e) {
+function _me(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 _me = (e) => {
+var vme = (e) => {
switch (e) {
- case "success": return bme;
- case "info": return Sme;
- case "warning": return xme;
- case "error": return Cme;
+ case "success": return xme;
+ case "info": return Cme;
+ case "warning": return Sme;
+ case "error": return wme;
default: return null;
}
-}, vme = Array(12).fill(0), yme = ({ visible: e, className: t }) => /*#__PURE__*/ D.createElement("div", {
+}, yme = Array(12).fill(0), bme = ({ visible: e, className: t }) => /*#__PURE__*/ D.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ D.createElement("div", { className: "sonner-spinner" }, vme.map((e, t) => /*#__PURE__*/ D.createElement("div", {
+}, /*#__PURE__*/ D.createElement("div", { className: "sonner-spinner" }, yme.map((e, t) => /*#__PURE__*/ D.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), bme = /*#__PURE__*/ D.createElement("svg", {
+})))), xme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44354,7 +44354,7 @@ var _me = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), xme = /*#__PURE__*/ D.createElement("svg", {
+})), Sme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44365,7 +44365,7 @@ var _me = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), Sme = /*#__PURE__*/ D.createElement("svg", {
+})), Cme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44376,7 +44376,7 @@ var _me = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), Cme = /*#__PURE__*/ D.createElement("svg", {
+})), wme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44387,7 +44387,7 @@ var _me = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), wme = /*#__PURE__*/ D.createElement("svg", {
+})), Tme = /*#__PURE__*/ D.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44408,7 +44408,7 @@ var _me = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), Tme = () => {
+})), Eme = () => {
let [e, t] = D.useState(document.hidden);
return D.useEffect(() => {
let e = () => {
@@ -44416,7 +44416,7 @@ var _me = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, Eme = 1, Dme = 100, tH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Eme++, nH = new class {
+}, Dme = 1, Ome = 100, eH = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Dme++, tH = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44426,10 +44426,10 @@ var _me = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - Dme;
+ let e = this.toasts.length - Ome;
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({
@@ -44504,7 +44504,7 @@ var _me = (e) => {
type: "default",
message: e
});
- else if (kme(e) && !e.ok) {
+ else if (Ame(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" && !D.isValidElement(r) ? r : { message: r };
this.create({
@@ -44548,7 +44548,7 @@ var _me = (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),
@@ -44557,34 +44557,34 @@ var _me = (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();
}
-}(), Ome = (e, t) => nH.message(e, t), kme = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rH = Object.assign(Ome, {
- 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
+}(), kme = (e, t) => tH.message(e, t), Ame = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", nH = Object.assign(kme, {
+ 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()
});
-gme("[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) {
+_me("[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 Ame = 3, jme = "24px", Mme = "16px", aH = 4e3, Nme = 356, Pme = 14, Fme = 45, Ime = 200;
-function oH(...e) {
+var jme = 3, Mme = "24px", Nme = "16px", iH = 4e3, Pme = 356, Fme = 14, Ime = 45, Lme = 200;
+function aH(...e) {
return e.filter(Boolean).join(" ");
}
-function Lme(e) {
+function Rme(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var Rme = (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, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, P] = D.useState(!1), [ee, F] = D.useState(!1), [te, I] = D.useState(!1), [ne, re] = D.useState(!1), [ie, ae] = D.useState(0), [oe, se] = D.useState(0), ce = D.useRef(n.duration || y || aH), le = D.useRef(null), ue = D.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = D.useMemo(() => n.duration || y || aH, [n.duration, y]), xe = D.useRef(0), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(null), [Te, Ee] = b.split("-"), De = D.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Tme(), ke = D.useMemo(() => e.swipeDirections ?? Lme(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var zme = (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, O] = D.useState(null), [k, A] = D.useState(null), [j, M] = D.useState(!1), [N, P] = D.useState(!1), [ee, F] = D.useState(!1), [te, I] = D.useState(!1), [ne, re] = D.useState(!1), [ie, ae] = D.useState(0), [oe, se] = D.useState(0), ce = D.useRef(n.duration || y || iH), le = D.useRef(null), ue = D.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = D.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = D.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = D.useMemo(() => n.duration || y || iH, [n.duration, y]), xe = D.useRef(0), Se = D.useRef(0), Ce = D.useRef(0), we = D.useRef(null), [Te, Ee] = b.split("-"), De = D.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = Eme(), ke = D.useMemo(() => e.swipeDirections ?? Rme(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = D.useMemo(() => ve * x + De, [ve, De]), D.useEffect(() => {
ce.current = be;
}, [be]), D.useEffect(() => {
@@ -44625,7 +44625,7 @@ var Rme = (e) => {
let Me = D.useCallback(() => {
P(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, Ime);
+ }, Lme);
}, [
n,
d,
@@ -44656,18 +44656,18 @@ var Rme = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ D.createElement("div", {
- className: oH(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: aH(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ D.createElement(yme, {
- className: oH(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ D.createElement(bme, {
+ className: aH(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || _me(pe);
+ let Pe = n.icon || w?.[pe] || vme(pe);
return /*#__PURE__*/ D.createElement("li", {
tabIndex: 0,
ref: ue,
- className: oH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: aH(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -44710,7 +44710,7 @@ var Rme = (e) => {
if (te || !he) return;
we.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" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Fme || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), A(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), I(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Ime || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), A(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), I(!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"), re(!1), F(!1), O(null);
@@ -44749,46 +44749,46 @@ var Rme = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: oH(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? wme) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ D.createElement("div", {
+ className: aH(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? Tme) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ D.createElement("div", {
"data-icon": "",
- className: oH(C?.icon, n?.classNames?.icon)
+ className: aH(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ D.createElement("div", {
"data-content": "",
- className: oH(C?.content, n?.classNames?.content)
+ className: aH(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ D.createElement("div", {
"data-title": "",
- className: oH(C?.title, n?.classNames?.title)
+ className: aH(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ D.createElement("div", {
"data-description": "",
- className: oH(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && iH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
+ className: aH(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ D.isValidElement(n.cancel) ? n.cancel : n.cancel && rH(n.cancel) ? /*#__PURE__*/ D.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- iH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ rH(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: oH(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && iH(n.action) ? /*#__PURE__*/ D.createElement("button", {
+ className: aH(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ D.isValidElement(n.action) ? n.action : n.action && rH(n.action) ? /*#__PURE__*/ D.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 && Me());
+ 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 zme(e, t) {
+function Bme(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Mme : jme;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Nme : Mme;
function o(e) {
[
"top",
@@ -44809,11 +44809,11 @@ function zme(e, t) {
}) : o(a);
}), n;
}
-var cH = /*#__PURE__*/ D.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 = Ame, toastOptions: g, dir: _ = sH(), gap: v = Pme, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, P] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = D.useRef(null), F = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = D.useRef(null), I = D.useRef(!1), ne = D.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__*/ D.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 = jme, toastOptions: g, dir: _ = oH(), gap: v = Fme, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = D.useState([]), w = D.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = D.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, O] = D.useState([]), [k, A] = D.useState(!1), [j, M] = D.useState(!1), [N, P] = D.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = D.useRef(null), F = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = D.useRef(null), I = D.useRef(!1), ne = D.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || tH.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return D.useEffect(() => nH.subscribe((e) => {
+ return D.useEffect(() => tH.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -44882,7 +44882,7 @@ var cH = /*#__PURE__*/ D.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ D.createElement("ol", {
key: t,
- dir: _ === "auto" ? sH() : _,
+ dir: _ === "auto" ? oH() : _,
tabIndex: -1,
ref: ee,
className: c,
@@ -44892,10 +44892,10 @@ var cH = /*#__PURE__*/ D.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${Nme}px`,
+ "--width": `${Pme}px`,
"--gap": `${v}px`,
...m,
- ...zme(l, u)
+ ...Bme(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, te.current &&= (te.current.focus({ preventScroll: !0 }), null));
@@ -44913,7 +44913,7 @@ var cH = /*#__PURE__*/ D.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
},
onPointerUp: () => M(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ D.createElement(Rme, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ D.createElement(zme, {
key: n.id,
icons: y,
index: i,
@@ -44943,19 +44943,19 @@ var cH = /*#__PURE__*/ D.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), lH = "/api/library-processing", uH = ["library-processing"], Bme = (e, t, n) => {
+}), cH = "/api/library-processing", lH = ["library-processing"], Vme = (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);
-}, dH = (e) => !!e && [
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), n && r.set("inventory", n), V(`${cH}?${r}`, t);
+}, uH = (e) => !!e && [
"running",
"pausing",
"paused"
].includes(e.status);
-function fH(e) {
- if (!dH(e)) return "";
+function dH(e) {
+ if (!uH(e)) return "";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
if (e.stalled) return "等待当前文件响应,剩余时间待更新";
@@ -44965,18 +44965,18 @@ function fH(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 pH = (e) => V(lH, e);
-async function mH(e) {
+var fH = (e) => V(cH, e);
+async function pH(e) {
await U.fetchQuery({
- queryKey: uH,
- queryFn: () => pH(e)
+ queryKey: lH,
+ queryFn: () => fH(e)
});
}
-var Vme = 2e3, Hme = 1e4, hH = "连接中断,正在重新读取处理进度";
-function gH(e, t) {
- return dH(e) ? Vme : t ? Hme : !1;
+var Hme = 2e3, Ume = 1e4, mH = "连接中断,正在重新读取处理进度";
+function hH(e, t) {
+ return uH(e) ? Hme : t ? Ume : !1;
}
-var Ume = {
+var Wme = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -44984,25 +44984,25 @@ var Ume = {
fetching_cover: "采集缺失封面",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, _H = {
+}, gH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Wme(e) {
- let t = Object.entries(e).filter(([e, t]) => _H[e] && t > 0).map(([e, t]) => `${_H[e]} ${t.toLocaleString()} 部`);
+function Gme(e) {
+ let t = Object.entries(e).filter(([e, t]) => gH[e] && t > 0).map(([e, t]) => `${gH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Gme(e) {
+function Kme(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = Ume[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${vF(e.waited_seconds)}` : "";
+ let t = Wme[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${_F(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Kme(e) {
- let t = e.total ? `${yF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Gme(e) + (t ? ` · ${t}` : "");
-}
function qme(e) {
+ let t = e.total ? `${vF(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return Kme(e) + (t ? ` · ${t}` : "");
+}
+function Jme(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45016,23 +45016,23 @@ function qme(e) {
log: e.issues_log || ""
} : null;
}
-var vH = "peach.library-processing.announced", Jme = 120;
-function yH(e) {
+var _H = "peach.library-processing.announced", Yme = 120;
+function vH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < Jme;
+ return !!e.job_id && t >= 0 && t < Yme;
}
-function Yme(e, t, n) {
- if (e.status === "complete" && (n || yH(e))) {
+function Xme(e, t, n) {
+ if (e.status === "complete" && (n || vH(e))) {
try {
- if (e.job_id && localStorage.getItem(vH) === e.job_id) return;
- e.job_id && localStorage.setItem(vH, e.job_id);
+ if (e.job_id && localStorage.getItem(_H) === e.job_id) return;
+ e.job_id && localStorage.setItem(_H, 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 bH = tF({
+var yH = eF({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -45056,15 +45056,15 @@ var bH = tF({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function xH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = eF(bH.base, bH.size[t], bH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+function bH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = $P(yH.base, yH.size[t], yH.variant[e], a), l = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
n ? /* @__PURE__ */ (0, O.jsx)(n, {
- className: bH.icon[t],
+ className: yH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, O.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, O.jsx)(r, {
- className: bH.icon[t],
+ className: yH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45091,7 +45091,7 @@ function xH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var Xme = {
+var Zme = {
selection: {
type: Df,
duration: .16,
@@ -45103,7 +45103,7 @@ var Xme = {
bounce: 0
}
};
-function SH(e) {
+function xH(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!t) return;
@@ -45124,7 +45124,7 @@ function SH(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 = zne(n, { transform: [r, E] }, Xme[e]);
+ l = Bne(n, { transform: [r, E] }, Zme[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45161,25 +45161,25 @@ function SH(e) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function CH(e) {
- let t = SH("hover");
- return /* @__PURE__ */ (0, O.jsx)(gR, {
+function SH(e) {
+ let t = xH("hover");
+ return /* @__PURE__ */ (0, O.jsx)(hR, {
...e,
ref: t
});
}
//#endregion
//#region src/react/library-processing/processing-effort.tsx
-var wH = [
+var CH = [
"low",
"standard",
"high"
-], TH = [
+], wH = [
"低占用",
"标准",
"全速"
-], EH = Rz("snail"), DH = Rz("zap");
-function OH({ className: e }) {
+], TH = Lz("snail"), EH = Lz("zap");
+function DH({ className: e }) {
return /* @__PURE__ */ (0, O.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45210,12 +45210,12 @@ function OH({ className: e }) {
]
});
}
-var Zme = [
+var Qme = [
+ TH,
EH,
- DH,
- OH
+ DH
];
-function Qme({ animate: e }) {
+function $me({ animate: e }) {
let [t, n] = (0, D.useState)(document.hidden);
return (0, D.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45247,8 +45247,8 @@ function Qme({ animate: e }) {
} }, t))]
});
}
-function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, wH.indexOf(e)), [a, o] = (0, D.useState)(i);
+function OH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, CH.indexOf(e)), [a, o] = (0, D.useState)(i);
return (0, D.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45259,7 +45259,7 @@ function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), TH[a]]
+ }), wH[a]]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45267,19 +45267,19 @@ function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(EH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, O.jsx)(TH, {}), "最慢"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(DH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, O.jsx)(EH, {}), "标准"]
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, O.jsx)(OH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, O.jsx)(DH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, O.jsxs)(Xle, {
+ /* @__PURE__ */ (0, O.jsxs)(Zle, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45288,10 +45288,10 @@ function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(wH[e]);
+ e !== i && n(CH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, O.jsx)(mI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(pI, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45311,11 +45311,11 @@ function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, O.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, O.jsx)(Qme, { animate: r }) : null,
- /* @__PURE__ */ (0, O.jsx)(Zle, {
+ a === 2 ? /* @__PURE__ */ (0, O.jsx)($me, { animate: r }) : null,
+ /* @__PURE__ */ (0, O.jsx)(Qle, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, O.jsx)(Qle, {
- "aria-label": TH[a],
+ children: /* @__PURE__ */ (0, O.jsx)($le, {
+ "aria-label": wH[a],
className: "processing-effort-thumb"
})
})
@@ -45329,8 +45329,8 @@ function kH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function $me({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, wH.indexOf(e));
+function ehe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(!1), s = Math.max(0, CH.indexOf(e));
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45338,28 +45338,28 @@ function $me({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${TH[s]}`,
+ "aria-label": `处理速度:${wH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: Zme[s],
- trailingIcon: lz,
+ leadingIcon: Qme[s],
+ trailingIcon: cz,
onClick: () => {
t || o(!a);
},
- children: TH[s]
+ children: wH[s]
})
- }), /* @__PURE__ */ (0, O.jsx)(rR, {
+ }), /* @__PURE__ */ (0, O.jsx)(nR, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: XB,
- children: /* @__PURE__ */ (0, O.jsx)(CH, {
+ className: YB,
+ children: /* @__PURE__ */ (0, O.jsx)(SH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, O.jsx)(kH, {
+ children: /* @__PURE__ */ (0, O.jsx)(OH, {
value: e,
busy: t,
onChange: n,
@@ -45370,7 +45370,7 @@ function $me({ value: e, busy: t, onChange: n, animate: r = !0 }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function AH(e = "") {
+function kH(e = "") {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(""), [i, a] = (0, D.useState)(e);
(0, D.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45396,10 +45396,10 @@ function AH(e = "") {
}
//#endregion
//#region src/react/library-processing/processing-controls.tsx
-function ehe({ state: e, disabled: t = !1 }) {
- let n = AH(), r = dH(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 the({ state: e, disabled: t = !1 }) {
+ let n = kH(), r = uH(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
+ t || n.busy || n.run(e.action, (t) => H(cH, e, "POST", t), (e) => {
+ U.setQueryData(lH, e), U.invalidateQueries({ queryKey: lH });
});
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45407,7 +45407,7 @@ function ehe({ state: e, disabled: t = !1 }) {
"data-processing-controls": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)($me, {
+ children: [/* @__PURE__ */ (0, O.jsx)(ehe, {
value: e.speed_mode || "standard",
busy: t || !!n.busy,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45420,11 +45420,11 @@ function ehe({ state: e, disabled: t = !1 }) {
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",
@@ -45441,11 +45441,11 @@ function ehe({ state: e, disabled: t = !1 }) {
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function jH({ toast: e, mode: t, monitor: n }) {
+function AH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = St({
- queryKey: uH,
- queryFn: ({ signal: e }) => pH(e),
- refetchInterval: (e) => gH(e.state.data, r)
+ queryKey: lH,
+ queryFn: ({ signal: e }) => fH(e),
+ refetchInterval: (e) => hH(e.state.data, r)
}), [a, o] = (0, D.useState)(null), s = (0, D.useRef)(void 0), c = i.data;
return (0, D.useEffect)(() => {
if (!c) return;
@@ -45455,8 +45455,8 @@ function jH({ toast: e, mode: t, monitor: n }) {
"running",
"pausing",
"paused"
- ].includes(n) && !dH(c);
- r && o(c), (r || t === "notice") && Yme(c, e, r);
+ ].includes(n) && !uH(c);
+ r && o(c), (r || t === "notice") && Xme(c, e, r);
}, [
c,
t,
@@ -45469,38 +45469,38 @@ function jH({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/components/card.tsx
-var the = "min-w-0", nhe = {
+var nhe = "min-w-0", rhe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, rhe = {
+}, ihe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, ihe = {
+}, ahe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, ahe = {
+}, ohe = {
none: "",
default: "p-5"
-}, ohe = "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", she = "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 MH(e = {}) {
+}, she = "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", che = "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 jH(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 [
- the,
- nhe[t],
- rhe[s],
- ahe[n],
- a ? ihe[a] : "",
- r ? ohe : "",
- i ? she : "",
+ nhe,
+ rhe[t],
+ ihe[s],
+ ohe[n],
+ a ? ahe[a] : "",
+ r ? she : "",
+ i ? che : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function NH({ label: e }) {
+function MH({ label: e }) {
return /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -45520,21 +45520,21 @@ function NH({ label: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var PH = 100, che = .4;
-function FH({ 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 * PH;
+var NH = 100, lhe = .4;
+function PH({ 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 * NH;
return /* @__PURE__ */ (0, O.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${PH} 1`,
+ viewBox: `0 0 ${NH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, O.jsx)("rect", {
- width: PH,
+ width: NH,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -45545,7 +45545,7 @@ function FH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, O.jsx)("rect", {
x: o(e),
- width: che,
+ width: lhe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -45554,27 +45554,27 @@ function FH({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function IH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function FH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : MH({
+ className: r ? "flex flex-col gap-1.5" : jH({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(FH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(PH, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, O.jsx)(NH, { label: e })
+ })] }) : /* @__PURE__ */ (0, O.jsx)(MH, { label: e })
});
}
//#endregion
//#region src/react/library-processing/processing-line.tsx
-function LH(e) {
+function IH(e) {
let [t, n] = (0, D.useState)({
snapshot: e,
seconds: 0
@@ -45590,17 +45590,17 @@ function LH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return Kme(a ? {
+ return qme(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function lhe({ state: e }) {
- return LH(e);
-}
function uhe({ state: e }) {
- let t = LH(e);
- return /* @__PURE__ */ (0, O.jsx)(IH, {
+ return IH(e);
+}
+function dhe({ state: e }) {
+ let t = IH(e);
+ return /* @__PURE__ */ (0, O.jsx)(FH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -45609,7 +45609,7 @@ function uhe({ state: e }) {
}
//#endregion
//#region src/react/components/collapse-region.tsx
-function RH({ open: e, children: t, ...n }) {
+function LH({ open: e, children: t, ...n }) {
let r = (0, D.useRef)(null), i = (0, D.useRef)(!1);
return (0, D.useLayoutEffect)(() => {
let t = r.current;
@@ -45620,7 +45620,7 @@ function RH({ open: e, children: t, ...n }) {
children: t
});
}
-function zH(e) {
+function RH(e) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -45636,21 +45636,21 @@ function zH(e) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function BH({ className: e, children: t }) {
+function zH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: eF("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: $P("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function VH({ className: e, children: t }) {
+function BH({ className: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
- className: eF("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: $P("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function dhe({ label: e, description: t, children: n }) {
+function fhe({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, O.jsxs)("div", {
- className: eF("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: $P("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, O.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, O.jsx)("p", {
@@ -45665,7 +45665,7 @@ function dhe({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function fhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
+function phe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@ -45673,12 +45673,12 @@ function fhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(VH, { children: o })
+ children: /* @__PURE__ */ (0, O.jsx)(BH, { children: o })
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, O.jsx)(VH, { children: o }), /* @__PURE__ */ (0, O.jsx)(BH, { children: a })] });
+ }) : /* @__PURE__ */ (0, O.jsx)(BH, { children: o }), /* @__PURE__ */ (0, O.jsx)(zH, { children: a })] });
return i ? /* @__PURE__ */ (0, O.jsx)("form", {
id: n,
"aria-label": e,
@@ -45693,13 +45693,13 @@ function fhe({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
children: s
});
}
-function phe({ children: e }) {
+function mhe({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function HH({ divided: e = !1, children: t }) {
+function VH({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden",
children: t
@@ -45708,7 +45708,7 @@ function HH({ divided: e = !1, children: t }) {
children: t
});
}
-function mhe({ label: e, html: t }) {
+function hhe({ label: e, html: t }) {
let [n] = (0, D.useState)(t);
return /* @__PURE__ */ (0, O.jsx)("div", {
className: "contents",
@@ -45718,7 +45718,7 @@ function mhe({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function hhe({ status: e, children: t }) {
+function ghe({ status: e, children: t }) {
return /* @__PURE__ */ (0, O.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, O.jsx)("div", {
@@ -45727,34 +45727,34 @@ function hhe({ status: e, children: t }) {
}) : null, t]
});
}
-function UH({ role: e, children: t }) {
+function HH({ role: e, children: t }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function WH({ children: e }) {
+function UH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function GH({ children: e }) {
+function WH({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function ghe({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, O.jsx)(xH, {
+function _he({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, O.jsx)(bH, {
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, O.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -45762,13 +45762,13 @@ function ghe({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function _he({ children: e }) {
+function vhe({ children: e }) {
return /* @__PURE__ */ (0, O.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function vhe({ term: e, children: t }) {
+function yhe({ term: e, children: t }) {
return /* @__PURE__ */ (0, O.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, O.jsx)("dt", {
@@ -45780,7 +45780,7 @@ function vhe({ term: e, children: t }) {
})]
});
}
-function KH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function GH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, D.useId)(), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(!1), [d, f] = (0, D.useState)(n ?? t);
return (0, D.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (to(c.current, l.current, n), f(n));
@@ -45796,12 +45796,12 @@ function KH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
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, O.jsx)(dz, {
+ i ? null : /* @__PURE__ */ (0, O.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, O.jsx)(dz, {
+ i ? /* @__PURE__ */ (0, O.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
@@ -45811,13 +45811,13 @@ function KH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, O.jsx)("div", {
- className: eF("flex flex-col gap-2 pt-3", o),
+ className: $P("flex flex-col gap-2 pt-3", o),
children: r
})
})]
});
}
-function yhe({ name: e }) {
+function bhe({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -45827,35 +45827,35 @@ function yhe({ name: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-function qH({ mark: e }) {
+function KH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, O.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(yhe, { name: e });
+ }) : /* @__PURE__ */ (0, O.jsx)(bhe, { name: e });
}
//#endregion
//#region src/react/components/source-label.tsx
-var JH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, bhe = Object.fromEntries(Object.entries(No).map(([e, t]) => [e, function({ className: e }) {
+var qH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, xhe = Object.fromEntries(Object.entries(No).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(qH, { mark: t })
+ children: /* @__PURE__ */ (0, O.jsx)(KH, { mark: t })
});
}]));
-function xhe({ className: e }) {
+function She({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, O.jsx)(qH, { mark: "database" })
+ children: /* @__PURE__ */ (0, O.jsx)(KH, { mark: "database" })
});
}
-var YH = (e) => bhe[JH(e)] ?? xhe;
-function She({ site: e, label: t }) {
+var JH = (e) => xhe[qH(e)] ?? She;
+function Che({ site: e, label: t }) {
let [n, r] = (0, D.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(qH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, O.jsx)(KH, { mark: "globe" }) : /* @__PURE__ */ (0, O.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -45863,11 +45863,11 @@ function She({ site: e, label: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
});
}
-function XH({ source: e, label: t }) {
- let n = JH(e);
+function YH({ source: e, label: t }) {
+ let n = qH(e);
return /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: No[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [/* @__PURE__ */ (0, O.jsx)(KH, { mark: No[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, O.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
@@ -45875,13 +45875,13 @@ function XH({ source: e, label: t }) {
}
//#endregion
//#region src/react/library-processing/processing-traffic.tsx
-var ZH = (e) => _n(e).replace(/\s/g, ""), QH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : ZH(e), Che = (e, t) => {
- if (e === t) return ZH(t);
+var XH = (e) => _n(e).replace(/\s/g, ""), ZH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : XH(e), whe = (e, t) => {
+ if (e === t) return XH(t);
let [n, r] = _n(e).split(" "), [i, a] = _n(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${ZH(e)}-${ZH(t)}`;
-}, $H = (e, t, n) => e === void 0 ? Che(t, n) : `${e > 0 ? "约 " : ""}${ZH(e)}`;
-function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = iV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
+ return r === a ? `${n}-${i}${a}` : `${XH(e)}-${XH(t)}`;
+}, QH = (e, t, n) => e === void 0 ? whe(t, n) : `${e > 0 ? "约 " : ""}${XH(e)}`;
+function $H({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
+ let i = rV(), [a, o] = (0, D.useState)(!1), s = (0, D.useId)(), c = n ?? a;
if (!e) return null;
let l = (e) => e.toLocaleString("zh-CN");
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -45918,25 +45918,25 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(gz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(hz, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: $H(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: QH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- $H(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ QH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, O.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", ZH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, O.jsxs)("span", { children: [e.partial ? "约 " : "", XH(e.used_bytes)] }),
" · 代理 ",
- ZH(e.metered_used_bytes)
+ XH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, O.jsxs)("section", {
@@ -45945,25 +45945,25 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(Pfe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Ffe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, O.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", ZH(e.disk.estimated_bytes)]
+ children: ["约 ", XH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", QH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, O.jsxs)("p", { children: ["抽帧临时文件约 ", ZH(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, O.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : ZH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : XH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, O.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", ZH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", XH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, O.jsx)("p", {
@@ -45979,7 +45979,7 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
className: "self-start",
"aria-expanded": c,
"aria-controls": s,
- trailingIcon: c ? Qde : lz,
+ trailingIcon: c ? $de : cz,
onClick: () => {
o(!c), r?.(!c);
},
@@ -45998,12 +45998,12 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, O.jsx)(XH, {
+ children: [e.root ? /* @__PURE__ */ (0, O.jsx)(YH, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, O.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, O.jsx)(KH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46025,7 +46025,7 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"待补资料 ",
l(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- QH(e.workload.metadata_average_bytes || 0),
+ ZH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46035,8 +46035,8 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
"已用",
e.unobserved.length ? "约" : "",
" ",
- ZH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", $H(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ XH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, O.jsxs)("span", { children: ["预计 ", QH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46048,15 +46048,15 @@ function eU({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r })
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var tU = "peach.library-processing.collapsed";
-function nU(e) {
+var eU = "peach.library-processing.collapsed";
+function tU(e) {
try {
- return !e || sessionStorage.getItem(tU) !== e;
+ return !e || sessionStorage.getItem(eU) !== e;
} catch {
return !0;
}
}
-function whe({ value: e, max: t }) {
+function The({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, O.jsxs)("svg", {
role: "progressbar",
@@ -46086,14 +46086,14 @@ function whe({ value: e, max: t }) {
})]
});
}
-function rU({ state: e, problem: t = "", measure: n = !1 }) {
- let [r, i] = (0, D.useState)(() => nU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = dH(e);
+function nU({ state: e, problem: t = "", measure: n = !1 }) {
+ let [r, i] = (0, D.useState)(() => tU(e?.job_id)), a = (0, D.useId)(), [o, s] = (0, D.useState)(!1), c = (0, D.useRef)(null), l = e?.status === "failed", u = uH(e);
(0, D.useEffect)(() => {
- i(nU(e?.job_id)), s(!1);
+ i(tU(e?.job_id)), s(!1);
}, [e?.job_id]);
let d = () => {
try {
- r && e?.job_id ? sessionStorage.setItem(tU, e.job_id) : sessionStorage.removeItem(tU);
+ r && e?.job_id ? sessionStorage.setItem(eU, e.job_id) : sessionStorage.removeItem(eU);
} catch {}
r && s(!1), i(!r);
};
@@ -46115,20 +46115,20 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
"data-processing-tone": l ? "error" : f ? "warning" : "neutral",
"aria-label": "扫描任务",
role: l ? "alert" : "status",
- className: eF("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: $P("flex min-w-0 flex-col border bg-background-primary-default p-4", l ? "border-current/35 text-text-error-primary" : f ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- u && e?.total ? /* @__PURE__ */ (0, O.jsx)(whe, {
+ u && e?.total ? /* @__PURE__ */ (0, O.jsx)(The, {
value: e.checked || 0,
max: e.total
- }) : l || f ? /* @__PURE__ */ (0, O.jsx)(dfe, {
+ }) : l || f ? /* @__PURE__ */ (0, O.jsx)(ffe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(Sfe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Cfe, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46140,14 +46140,14 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
}), u ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: fH(e)
+ children: dH(e)
}) : null]
}),
/* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: zH,
+ leadingIcon: RH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": r ? "收起任务详情" : "展开任务详情",
@@ -46156,20 +46156,20 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
onClick: d
})
]
- }), /* @__PURE__ */ (0, O.jsx)(eU, {
+ }), /* @__PURE__ */ (0, O.jsx)($H, {
traffic: e?.traffic,
detailsOpen: o,
onDetailsChange: s
})]
}),
- /* @__PURE__ */ (0, O.jsx)(RH, {
+ /* @__PURE__ */ (0, O.jsx)(LH, {
id: a,
open: r,
"data-processing-body": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "pt-3",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
- className: eF("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
+ className: $P("flex min-w-0 flex-col gap-2 border-t pt-3", l ? "border-border-error-default/20" : f ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, O.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46177,16 +46177,16 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: eF("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: $P("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, O.jsx)(ife, {
+ e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(afe, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, O.jsx)(afe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(ofe, {
"aria-hidden": !0,
- className: eF("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: $P("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, O.jsx)(uw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, O.jsx)(lw, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, O.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46199,7 +46199,7 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
}) : null,
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (l ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, O.jsx)(lhe, { state: e }))
+ children: t || (l ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, O.jsx)(uhe, { state: e }))
}),
u && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, O.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46215,13 +46215,13 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
- children: [/* @__PURE__ */ (0, O.jsx)(xH, {
+ children: [/* @__PURE__ */ (0, O.jsx)(bH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: t || l ? "打开扫描与采集" : "任务详情"
- }), u ? /* @__PURE__ */ (0, O.jsx)(ehe, {
+ }), u ? /* @__PURE__ */ (0, O.jsx)(the, {
state: e,
disabled: !!t
}) : null]
@@ -46229,32 +46229,32 @@ function rU({ state: e, problem: t = "", measure: n = !1 }) {
]
});
}
-function The(e) {
- let { job: t } = jH(e);
- return /* @__PURE__ */ (0, O.jsx)(rU, {
+function Ehe(e) {
+ let { job: t } = AH(e);
+ return /* @__PURE__ */ (0, O.jsx)(nU, {
state: t.data,
- problem: t.isError ? t.data ? hH : An(t.error) : ""
+ problem: t.isError ? t.data ? mH : An(t.error) : ""
});
}
//#endregion
//#region src/react/library-processing/library-processing-dock.tsx
-var iU = "peach-library-processing";
-function Ehe({ toast: e }) {
- let { job: t, settled: n } = jH({
+var rU = "peach-library-processing";
+function Dhe({ toast: e }) {
+ let { job: t, settled: n } = AH({
toast: e,
mode: "notice"
- }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? hH : An(t.error) : "";
+ }), r = (0, D.useRef)(""), i = (0, D.useRef)(!1), a = t.data, o = t.isError ? a ? mH : An(t.error) : "";
return (0, D.useEffect)(() => {
- let e = dH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || yH(a));
- !e && (!o && !s || r.current === t) ? (i.current && rH.dismiss(iU), i.current = !1) : (rH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
+ let e = uH(a), t = a?.job_id || "unavailable", s = a?.status === "failed" && (n?.job_id === a.job_id || vH(a));
+ !e && (!o && !s || r.current === t) ? (i.current && nH.dismiss(rU), i.current = !1) : (nH.custom(() => /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(rU, {
+ children: /* @__PURE__ */ (0, O.jsx)(nU, {
state: a,
problem: o,
measure: !0
})
}), {
- id: iU,
+ id: rU,
toasterId: "processing",
duration: Infinity,
dismissible: !e,
@@ -46269,20 +46269,20 @@ function Ehe({ toast: e }) {
o,
n
]), (0, D.useEffect)(() => () => {
- i.current && rH.dismiss(iU), i.current = !1;
+ i.current && nH.dismiss(rU), i.current = !1;
}, []), null;
}
//#endregion
//#region src/react/network-banner.tsx
-var Dhe = ["network-status"], Ohe = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function khe(e) {
+var Ohe = ["network-status"], khe = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Ahe(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Ahe() {
+function jhe() {
let e = St({
- queryKey: Dhe,
+ queryKey: Ohe,
queryFn: ({ signal: e }) => V("/api/network-status", e),
- refetchInterval: (e) => khe(e.state.data),
+ refetchInterval: (e) => Ahe(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsxs)("aside", {
@@ -46293,7 +46293,7 @@ function Ahe() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, O.jsx)("p", { children: Ohe })] }), /* @__PURE__ */ (0, O.jsx)("a", {
+ }), /* @__PURE__ */ (0, O.jsx)("p", { children: khe })] }), /* @__PURE__ */ (0, O.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
@@ -46301,21 +46301,21 @@ function Ahe() {
}
//#endregion
//#region src/react/router/pages/settings.tsx
-function jhe() {
- let e = (0, D.useContext)(lU), { pathname: t } = LB();
+function Mhe() {
+ let e = (0, D.useContext)(cU), { pathname: t } = IB();
return (0, D.useEffect)(() => {
- e?.openSettings?.(uV(t));
+ e?.openSettings?.(lV(t));
}, [e, t]), (0, D.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 aU = () => Hl, Mhe = () => Ul;
-function Nhe() {
- let e = (0, D.useContext)(lU), t = (0, D.useSyncExternalStore)($l, Mhe), n = (0, D.useSyncExternalStore)($l, aU);
+var iU = () => Hl, Nhe = () => Ul;
+function Phe() {
+ let e = (0, D.useContext)(cU), t = (0, D.useSyncExternalStore)($l, Nhe), n = (0, D.useSyncExternalStore)($l, iU);
return (0, D.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -46330,11 +46330,11 @@ function Nhe() {
e
]), null;
}
-function oU(e, t = !1) {
- let n = (0, D.useSyncExternalStore)($l, aU), r = (0, D.useRef)(void 0);
+function aU(e, t = !1) {
+ let n = (0, D.useSyncExternalStore)($l, iU), r = (0, D.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = YV.navigation;
- r.current = Hl === 0 || ZV() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = JV.navigation;
+ r.current = Hl === 0 || XV() ? "boot" : e && !t ? null : "history";
}
let i = (0, D.useRef)(e);
(0, D.useEffect)(() => {
@@ -46350,22 +46350,22 @@ function oU(e, t = !1) {
}));
}, [n]);
}
-function Phe() {
- let e = (0, D.useContext)(lU), t = (0, D.useRef)(e);
+function Fhe() {
+ let e = (0, D.useContext)(cU), t = (0, D.useRef)(e);
return (0, D.useLayoutEffect)(() => {
t.current = e;
- }, [e]), oU((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 || lme(YV.navigation.location.state), e.openOverlay(a));
+ }, [e]), aU((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 || ume(JV.navigation.location.state), e.openOverlay(a));
}, !0), (0, D.useEffect)(() => () => {
queueMicrotask(() => {
- gV(YV.navigation.location.pathname) || t.current?.closeStage();
+ hV(JV.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function Fhe({ path: e }) {
- cU();
- 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, D.useRef)({
+function Ihe({ path: e }) {
+ sU();
+ 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, D.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -46376,162 +46376,162 @@ function Fhe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, O.jsx)(Phe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, O.jsx)(Fhe, {}, `${e} ${o.current.seq}`);
}
-function Ihe() {
- let e = (0, D.useContext)(lU);
- return oU(() => {
+function Lhe() {
+ let e = (0, D.useContext)(cU);
+ return aU(() => {
e?.follow?.ground();
}), null;
}
-function Lhe() {
- return /* @__PURE__ */ (0, O.jsx)(Ihe, {}, cU());
+function Rhe() {
+ return /* @__PURE__ */ (0, O.jsx)(Lhe, {}, sU());
}
//#endregion
//#region src/react/router/router.tsx
-var sU = (0, D.createContext)(0), cU = () => (0, D.useContext)(sU), lU = (0, D.createContext)(null);
-function Rhe({ children: e }) {
- let [t, n] = (0, D.useState)(() => YV.navigation);
- return (0, D.useLayoutEffect)(() => (n(YV.navigation), YV.listen((e) => {
+var oU = (0, D.createContext)(0), sU = () => (0, D.useContext)(oU), cU = (0, D.createContext)(null);
+function zhe({ children: e }) {
+ let [t, n] = (0, D.useState)(() => JV.navigation);
+ return (0, D.useLayoutEffect)(() => (n(JV.navigation), JV.listen((e) => {
(0, Tt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, O.jsx)(sU.Provider, {
+ })), []), /* @__PURE__ */ (0, O.jsx)(oU.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, O.jsx)(Zpe, {
+ children: /* @__PURE__ */ (0, O.jsx)(Qpe, {
location: t.location,
navigationType: t.action,
- navigator: YV,
+ navigator: JV,
children: e
})
});
}
-function zhe({ target: e }) {
- let t = Ipe();
+function Bhe({ target: e }) {
+ let t = Lpe();
return (0, D.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Bhe(e, t, n) {
+function Vhe(e, t, n) {
let r = new URL(e, window.location.href);
M6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function Vhe() {
- let e = (0, D.useContext)(lU), [t, n] = (0, D.useState)(IV), r = (0, D.useRef)(null);
- (0, D.useLayoutEffect)(() => (n(IV()), dme((e, t) => {
+function Hhe() {
+ let e = (0, D.useContext)(cU), [t, n] = (0, D.useState)(FV), r = (0, D.useRef)(null);
+ (0, D.useLayoutEffect)(() => (n(FV()), fme((e, t) => {
t ? (0, Tt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, D.useMemo)(() => (t) => {
- e && r.current && Bhe(t, e, r.current);
+ e && r.current && Vhe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(zhe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, O.jsx)(Hhe, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(Bhe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, O.jsx)(Uhe, {
entry: t,
- children: /* @__PURE__ */ (0, O.jsx)(Uhe, {
+ children: /* @__PURE__ */ (0, O.jsx)(Whe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var Hhe = class extends D.Component {
+var Uhe = class extends D.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- mme(this.props.entry.container, this.props.entry.revision);
+ hme(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, Uhe = (0, D.memo)(function({ entry: e, actions: t, go: n }) {
- return K6(e.path) ? (0, Tt.createPortal)(CAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Whe = (0, D.memo)(function({ entry: e, actions: t, go: n }) {
+ return K6(e.path) ? (0, Tt.createPortal)(EAe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function Whe({ children: e }) {
- let t = LB();
- cU();
- let n = QV(), r = lV(t.pathname) && !ZV() ? fV(t.state) : null;
+function Ghe({ children: e }) {
+ let t = IB();
+ sU();
+ let n = ZV(), r = cV(t.pathname) && !XV() ? dV(t.state) : null;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsxs)(GB, {
+ /* @__PURE__ */ (0, O.jsxs)(WB, {
location: n ?? t,
children: [
- Object.entries(j6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(j6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(yAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(SAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(N6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(I6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(I6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(R6).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- G6.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ G6.map((e) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: z6["/"].element
}, e)),
- Object.entries(bAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ Object.entries(CAe).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: t.element
}, e)),
- pV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ fV.map((e) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(Lhe, {}) : z6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, O.jsx)(Rhe, {}) : z6["/"].element
}, e)),
- cV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ sV.map((e) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, O.jsx)(WB, {
+ /* @__PURE__ */ (0, O.jsx)(UB, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, O.jsxs)(GB, {
+ /* @__PURE__ */ (0, O.jsxs)(WB, {
location: r ?? t,
- children: [pV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ children: [fV.map((e) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
- element: /* @__PURE__ */ (0, O.jsx)(Fhe, { path: e })
- }, e)), /* @__PURE__ */ (0, O.jsx)(WB, {
+ element: /* @__PURE__ */ (0, O.jsx)(Ihe, { path: e })
+ }, e)), /* @__PURE__ */ (0, O.jsx)(UB, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(GB, { children: [cV.map((e) => /* @__PURE__ */ (0, O.jsx)(WB, {
+ /* @__PURE__ */ (0, O.jsxs)(WB, { children: [sV.map((e) => /* @__PURE__ */ (0, O.jsx)(UB, {
path: e,
- element: /* @__PURE__ */ (0, O.jsx)(jhe, {})
- }, e)), /* @__PURE__ */ (0, O.jsx)(WB, {
+ element: /* @__PURE__ */ (0, O.jsx)(Mhe, {})
+ }, e)), /* @__PURE__ */ (0, O.jsx)(UB, {
path: "*",
element: null
})] })
] });
}
-function Ghe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, O.jsxs)(eH, { children: [n, /* @__PURE__ */ (0, O.jsx)(lU.Provider, {
+function Khe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, O.jsxs)($V, { children: [n, /* @__PURE__ */ (0, O.jsx)(cU.Provider, {
value: t,
- children: /* @__PURE__ */ (0, O.jsxs)(Rhe, { children: [
- /* @__PURE__ */ (0, O.jsx)(Vhe, {}),
- /* @__PURE__ */ (0, O.jsx)(Nhe, {}),
- r && t ? /* @__PURE__ */ (0, O.jsx)(Ehe, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, O.jsx)(Ahe, {}) : null,
- /* @__PURE__ */ (0, O.jsx)(Whe, { children: e })
+ children: /* @__PURE__ */ (0, O.jsxs)(zhe, { children: [
+ /* @__PURE__ */ (0, O.jsx)(Hhe, {}),
+ /* @__PURE__ */ (0, O.jsx)(Phe, {}),
+ r && t ? /* @__PURE__ */ (0, O.jsx)(Dhe, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, O.jsx)(jhe, {}) : null,
+ /* @__PURE__ */ (0, O.jsx)(Ghe, { children: e })
] })
})] });
}
-var Khe = { onCaughtError: (e) => {
+var qhe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} };
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function qhe(e, t, n) {
+function Jhe(e, t, n) {
(0, D.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -46545,7 +46545,7 @@ function qhe(e, t, n) {
n
]);
}
-function Jhe(e, t) {
+function Yhe(e, t) {
let n = (0, D.useRef)(!1);
return (0, D.useEffect)(() => {
if (!e) return;
@@ -46559,33 +46559,33 @@ function Jhe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var uU = (0, D.createContext)("md");
-function dU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var lU = (0, D.createContext)("md");
+function uU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, D.useRef)(null), u = (0, D.useRef)(null), [d, f] = (0, D.useState)(!1);
- qhe(d, () => f(!1), [l, u]);
- let p = Jhe(d, l);
- return /* @__PURE__ */ (0, O.jsx)(Rue, {
+ Jhe(d, () => f(!1), [l, u]);
+ let p = Yhe(d, l);
+ return /* @__PURE__ */ (0, O.jsx)(zue, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: eF("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(_I, {
+ className: $P("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)(gI, {
ref: l,
- className: eF("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, O.jsx)(Vue, {
- className: eF("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: $P("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, O.jsx)(Hue, {
+ className: $P("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, O.jsx)($pe, { className: eF("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, O.jsx)(rR, {
+ }), /* @__PURE__ */ (0, O.jsx)(eme, { className: $P("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, O.jsx)(nR, {
ref: u,
isNonModal: !0,
offset: 4,
- className: eF(nme, XB, "p-2", n),
- children: /* @__PURE__ */ (0, O.jsx)(oue, {
+ className: $P(rme, YB, "p-2", n),
+ children: /* @__PURE__ */ (0, O.jsx)(sue, {
items: a,
- className: eF(rme, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, O.jsx)(uU.Provider, {
+ className: $P(ime, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, O.jsx)(lU.Provider, {
value: r,
children: i
})
@@ -46593,24 +46593,24 @@ function dU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function fU({ className: e, children: t, ...n }) {
- let r = (0, D.useContext)(uU);
- return /* @__PURE__ */ (0, O.jsx)(lue, {
+function dU({ className: e, children: t, ...n }) {
+ let r = (0, D.useContext)(lU);
+ return /* @__PURE__ */ (0, O.jsx)(uue, {
...n,
- className: (t) => eF(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) => $P(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 pU = {
+var fU = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function mU(e, t = "", n = "") {
+function pU(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -46622,15 +46622,15 @@ function mU(e, t = "", n = "") {
queryFn: ({ signal: e }) => V(`/api/folders?${r}`, e)
};
}
-function hU(e, t) {
+function mU(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 Yhe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, D.useContext)(lU), a = AH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
+function Xhe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, D.useContext)(cU), a = kH(), [o, s] = (0, D.useState)(t?.purpose || "category"), [c, l] = (0, D.useState)(t?.name || ""), [u, d] = (0, D.useState)(t?.recursive ?? !0), [f, p] = (0, D.useState)(t?.future ?? !1), [m, h] = (0, D.useState)(null), [g, _] = (0, D.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -46659,7 +46659,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, O.jsx)(Nz, {
+ return g ? null : /* @__PURE__ */ (0, O.jsx)(Mz, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -46673,7 +46673,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, O.jsx)(xI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(bI, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -46681,7 +46681,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, O.jsx)(zz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Rz, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -46693,20 +46693,20 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(Ez, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(dU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Tz, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, O.jsx)(uU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(pU).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ children: Object.entries(fU).map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(dU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(Mz, {
+ o === "category" ? null : /* @__PURE__ */ (0, O.jsx)(jz, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -46717,7 +46717,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, O.jsx)(rV, {
+ /* @__PURE__ */ (0, O.jsx)(nV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -46725,7 +46725,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, O.jsx)(rV, {
+ /* @__PURE__ */ (0, O.jsx)(nV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -46762,9 +46762,9 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ m.conflicts.length ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "warning",
- extra: /* @__PURE__ */ (0, O.jsx)(KH, {
+ extra: /* @__PURE__ */ (0, O.jsx)(GH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -46782,7 +46782,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ a.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: a.error
}) : null
@@ -46797,7 +46797,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...Bz(a.busy === "remove"),
+ ...zz(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, O.jsx)(J, {
@@ -46809,13 +46809,13 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
- ...Bz(a.busy === "save"),
+ ...zz(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...Bz(a.busy === "preview"),
+ ...zz(a.busy === "preview"),
onClick: () => {
x();
},
@@ -46829,7 +46829,7 @@ function Yhe({ folder: e, rule: t, revision: n, close: r }) {
}
//#endregion
//#region src/react/catalog-folders/use-folder-sticky-offset.ts
-function Xhe(e, t) {
+function Zhe(e, t) {
(0, D.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -46853,35 +46853,35 @@ function Xhe(e, t) {
}
//#endregion
//#region src/react/catalog-folders/catalog-folders-page.tsx
-function gU() {
- return IB() ? /* @__PURE__ */ (0, O.jsx)(Zhe, {}) : null;
+function hU() {
+ return FB() ? /* @__PURE__ */ (0, O.jsx)(Qhe, {}) : null;
}
-function Zhe() {
- let e = LB(), t = (0, D.useContext)(lU);
+function Qhe() {
+ let e = IB(), t = (0, D.useContext)(cU);
if (!Zt(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, O.jsx)(MF, {
+ return /* @__PURE__ */ (0, O.jsx)(jF, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: mz,
- onClick: () => t?.navigate(hU(e, r ? {
+ icon: pz,
+ onClick: () => t?.navigate(mU(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Qhe({ children: e, enabled: t }) {
- return IB() ? /* @__PURE__ */ (0, O.jsx)($he, {
+function $he({ children: e, enabled: t }) {
+ return FB() ? /* @__PURE__ */ (0, O.jsx)(ege, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e });
}
-function $he({ children: e, enabled: t }) {
- let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = LB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+function ege({ children: e, enabled: t }) {
+ let [n, r] = (0, D.useState)(null), [i, a] = (0, D.useState)(null), o = IB(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
@@ -46900,7 +46900,7 @@ function $he({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, O.jsx)(_U, {
+ n && i ? /* @__PURE__ */ (0, O.jsx)(gU, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -46908,14 +46908,14 @@ function $he({ children: e, enabled: t }) {
]
});
}
-function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = LB(), i = (0, D.useContext)(lU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function gU({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = IB(), i = (0, D.useContext)(cU), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Xhe(o, e);
+ Zhe(o, e);
let c = a.get("folder") || "", l = St({
- ...mU(s, c),
+ ...pU(s, c),
enabled: o
}), [u, d] = (0, D.useState)(!1), [f, p] = (0, D.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, D.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -46929,11 +46929,11 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(hU(r, {
+ d(!1), i.navigate(mU(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, O.jsx)(tge, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, O.jsx)(nge, {
scope: s,
selected: c,
current: _,
@@ -46950,21 +46950,21 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, O.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, O.jsx)(MF, {
+ children: /* @__PURE__ */ (0, O.jsx)(jF, {
"aria-label": "打开文件夹目录",
- icon: Dfe,
+ icon: Ofe,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, O.jsxs)(tme, {
+ /* @__PURE__ */ (0, O.jsxs)(nme, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, O.jsx)(JB, {
+ children: [/* @__PURE__ */ (0, O.jsx)(qB, {
current: !c,
onClick: () => g(""),
- icon: mz,
+ icon: pz,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(JB, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, O.jsx)(qB, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
@@ -46974,15 +46974,15 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, O.jsx)(MF, {
+ _?.selected ? /* @__PURE__ */ (0, O.jsx)(jF, {
"aria-label": "设置目录用途",
- icon: vfe,
+ icon: yfe,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ l.error && !u ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -46994,7 +46994,7 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: An(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(Fz, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, O.jsxs)(Pz, {
tone: "warning",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -47006,14 +47006,14 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, O.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, O.jsx)(rV, {
+ children: [/* @__PURE__ */ (0, O.jsx)(nV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(hU(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(mU(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${pU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${fU[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -47023,13 +47023,13 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, O.jsx)(ege, {
+ _?.children.length ? /* @__PURE__ */ (0, O.jsx)(tge, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, O.jsxs)(Nz, {
+ /* @__PURE__ */ (0, O.jsxs)(Mz, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -47039,7 +47039,7 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, O.jsx)(zz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Rz, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -47048,7 +47048,7 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, O.jsx)(Yhe, {
+ f && _?.selected ? /* @__PURE__ */ (0, O.jsx)(Xhe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -47056,7 +47056,7 @@ function _U({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function ege({ nodes: e, go: t }) {
+function tge({ nodes: e, go: t }) {
let [n, r] = (0, D.useState)(!1), i = (0, D.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -47067,7 +47067,7 @@ function ege({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: mz,
+ leadingIcon: pz,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, O.jsx)("span", {
className: "truncate",
@@ -47084,28 +47084,28 @@ function ege({ nodes: e, go: t }) {
}) : null]
});
}
-function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = St(mU(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = St({
- ...mU(e, "", u),
+function nge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = St(pU(e)), [o, s] = (0, D.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, D.useState)(""), u = (0, D.useDeferredValue)(c), d = St({
+ ...pU(e, "", u),
enabled: !!u.trim()
- }), f = iV();
+ }), f = rV();
(0, D.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 = bt({ queries: p.map((t) => mU(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = bt({ queries: p.map((t) => pU(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, O.jsx)($B, {
+ return /* @__PURE__ */ (0, O.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, O.jsx)($B, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, O.jsx)(QB, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -47121,15 +47121,15 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: Cz,
+ leadingIcon: Sz,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ v ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -47164,20 +47164,20 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }) : d.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: mz,
+ leadingIcon: pz,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }, e.id)) : /* @__PURE__ */ (0, O.jsx)(Fz, {
size: "compact",
- icon: Cz,
+ icon: Sz,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
@@ -47186,7 +47186,7 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, O.jsx)(ime, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, O.jsx)(ame, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -47194,11 +47194,11 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, O.jsx)(Iz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Fz, {
size: "compact",
- icon: mz,
+ icon: pz,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, O.jsx)(JF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -47212,54 +47212,54 @@ function tge({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function nge(e) {
- let t = FF(SH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(iz, {
+function rge(e) {
+ let t = PF(xH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(rz, {
...e,
ref: t
});
}
-function vU(e) {
- let t = FF(SH("selection"));
- return /* @__PURE__ */ (0, O.jsx)(CR, {
+function _U(e) {
+ let t = PF(xH("selection"));
+ return /* @__PURE__ */ (0, O.jsx)(SR, {
...e,
ref: t
});
}
-var yU = "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", bU = "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", rge = "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", xU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", SU = "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 vU = "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", yU = "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", ige = "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", bU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", xU = "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 CU() {
- let e = hM();
- return /* @__PURE__ */ (0, O.jsxs)(CR, {
+function SU() {
+ let e = mM();
+ return /* @__PURE__ */ (0, O.jsxs)(SR, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: pM,
+ onChange: fM,
"data-entity-layout": "",
- className: xU,
- children: [/* @__PURE__ */ (0, O.jsx)(wR, {
+ className: bU,
+ children: [/* @__PURE__ */ (0, O.jsx)(CR, {
value: "cards",
"aria-label": "卡片",
- className: SU,
+ className: xU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, O.jsx)(vz, {
+ children: /* @__PURE__ */ (0, O.jsx)(_z, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(wR, {
+ }), /* @__PURE__ */ (0, O.jsx)(CR, {
value: "list",
"aria-label": "列表",
- className: SU,
+ className: xU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, O.jsx)(Tfe, {
+ children: /* @__PURE__ */ (0, O.jsx)(Efe, {
"aria-hidden": "true",
className: "size-4"
})
@@ -47269,8 +47269,8 @@ function CU() {
}
//#endregion
//#region src/react/components/icon-swap.tsx
-function wU({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = lx();
+function CU({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = cx();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -47286,115 +47286,115 @@ function wU({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function TU({ className: e }) {
- return /* @__PURE__ */ (0, O.jsx)(wU, {
- a: Zde,
- b: Xde,
+function wU({ className: e }) {
+ return /* @__PURE__ */ (0, O.jsx)(CU, {
+ a: Qde,
+ b: Zde,
className: e
});
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var EU = (e) => typeof e == "string" ? e : "", DU = (e) => e.aliases;
-function OU(e, t = "") {
+var TU = (e) => typeof e == "string" ? e : "", EU = (e) => e.aliases;
+function DU(e, t = "") {
let n = hi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function kU(e, t = "") {
+function OU(e, t = "") {
let n = B(Or(t || e)), r = hi(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 AU = (e) => EU(e.title).trim() || "未命名内容", jU = (e, t) => Dr(e, DU(t));
-function MU(e) {
+var kU = (e) => TU(e.title).trim() || "未命名内容", AU = (e, t) => Dr(e, EU(t));
+function jU(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 = EU(n.entity_name);
+ let n = t[0], r = TU(n.entity_name);
return jt("creator", r, n.entity_id), r;
}
-function NU(e, t) {
+function MU(e, t) {
let { src: n, fallback: r } = kr(e), i = Or(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 PU(e, t, n) {
- let r = DU(n), i = e.credit, a = i?.poster;
+function NU(e, t, n) {
+ let r = EU(n), i = e.credit, a = i?.poster;
if (!a) {
let n = Dr(t, r);
return {
- author: n || EU(e.author) || EU(e.source_label) || "创作者未取得",
- avatar: NU(t, n),
+ author: n || TU(e.author) || TU(e.source_label) || "创作者未取得",
+ avatar: MU(t, n),
credited: "",
- entityName: MU(t)
+ entityName: jU(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 && Dr(c, r) || a;
return {
author: l,
- avatar: NU(c, l),
+ avatar: MU(c, l),
credited: i.credited || "",
- entityName: MU(c)
+ entityName: jU(c)
};
}
-function FU(e, t = e.primary) {
+function PU(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 = EU(e.primary.version);
+ let i = TU(e.primary.version);
i && n.push(r("version", B(i)));
- let a = EU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = TU(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function IU(e, t = e.primary) {
+function FU(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]) => OU(e, t) || `<span>${B(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => DU(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>`;
}
-function LU(e, t) {
- let n = EU(e.media_error);
+function IU(e, t) {
+ let n = TU(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var ige = 864e5, age = (e, t) => {
+var age = 864e5, oge = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > ige;
+ return Number.isFinite(n) && n - t > age;
};
-function RU(e, t) {
- let n = EU(e.published_at);
+function LU(e, t) {
+ let n = TU(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Wn(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: age(n, t) ? " · 晚于现在" : ""
+ suffix: oge(n, t) ? " · 晚于现在" : ""
};
}
-function zU(e, t = Date.now()) {
- let n = RU(e, t);
+function RU(e, t = Date.now()) {
+ let n = LU(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function oge(e, t = Date.now()) {
- let n = RU(e, t);
+function sge(e, t = Date.now()) {
+ let n = LU(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 BU = /* @__PURE__ */ new Set(), VU = [], HU = null;
-function UU() {
- if (HU = null, !VU.length) return;
- let e = VU.splice(0, 200);
+var zU = /* @__PURE__ */ new Set(), BU = [], VU = null;
+function HU() {
+ if (VU = null, !BU.length) return;
+ let e = BU.splice(0, 200);
z("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), VU.length && (HU = setTimeout(UU, 800));
+ }).catch(() => {}), BU.length && (VU = setTimeout(HU, 800));
}
-function sge(e, t, n, r) {
+function cge(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- BU.has(i) || (BU.add(i), VU.push(t === null ? {
+ zU.has(i) || (zU.add(i), BU.push(t === null ? {
item: e,
width: n,
height: r
@@ -47403,26 +47403,26 @@ function sge(e, t, n, r) {
width: n,
height: r,
media: t
- }), HU ||= setTimeout(UU, 800));
+ }), VU ||= setTimeout(HU, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var cge = (e) => e === "videos", WU = () => /* @__PURE__ */ (0, O.jsx)("span", {
+var lge = (e) => e === "videos", UU = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), lge = Rz("shuffle"), uge = Rz("arrow-up"), dge = Rz("arrow-down");
-function fge(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = cge(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), uge = Lz("shuffle"), dge = Lz("arrow-up"), fge = Lz("arrow-down");
+function pge(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = lge(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, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = KF(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = KF(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = KF(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = (0, D.useRef)(null), v = (0, D.useRef)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = GF(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = GF(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, D.useRef)(null), w = (0, D.useRef)(null), T = u?.mediaCounts ? u : null, E = GF(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, D.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(GU, {
+ }, [c]), /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(WU, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, O.jsx)(zF, {
+ }), /* @__PURE__ */ (0, O.jsx)(RF, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -47451,19 +47451,19 @@ function fge(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(gge, {
+ n ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(_ge, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, O.jsx)(WU, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(mge, {
+ }), d ? /* @__PURE__ */ (0, O.jsx)(UU, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(hge, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, O.jsx)(WU, {})] }) : null,
+ }), /* @__PURE__ */ (0, O.jsx)(UU, {})] }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -47484,11 +47484,11 @@ function fge(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, O.jsx)(WU, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, O.jsx)(UU, {}) : null]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(VF, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, O.jsxs)(BF, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47497,17 +47497,17 @@ function fge(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, O.jsx)(hge, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, O.jsx)(gge, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, O.jsx)(_ge, { ...e })
+ bottom: /* @__PURE__ */ (0, O.jsx)(vge, { ...e })
})] });
}
-var pge = [[
+var mge = [[
"videos",
"视频",
"play",
@@ -47518,7 +47518,7 @@ var pge = [[
"pics",
"image"
]];
-function mge({ head: e, row: t, glide: n, onMedia: r }) {
+function hge({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
role: "group",
@@ -47526,7 +47526,7 @@ function mge({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: pge.map(([t, i, a, o]) => {
+ children: mge.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -47544,7 +47544,7 @@ function mge({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function hge({ head: e, actions: t }) {
+function gge({ head: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -47554,10 +47554,10 @@ function hge({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: OU(n) }
+ dangerouslySetInnerHTML: { __html: DU(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(WU, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(VF, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, O.jsx)(UU, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, O.jsxs)(BF, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -47570,7 +47570,7 @@ function hge({ head: e, actions: t }) {
}, e.k))
] });
}
-function gge({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function _ge({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -47618,7 +47618,7 @@ function gge({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function GU({ items: e, hidden: t, actions: n }) {
+function WU({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -47638,7 +47638,7 @@ function GU({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function _ge(e) {
+function vge(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, O.jsxs)("button", {
@@ -47650,27 +47650,27 @@ function _ge(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(vge, {
+ /* @__PURE__ */ (0, O.jsx)(yge, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, O.jsx)($z, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, O.jsx)(yge, {
+ /* @__PURE__ */ (0, O.jsx)(Qz, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, O.jsx)(bge, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(XU, {
+ t === "photos" && a ? /* @__PURE__ */ (0, O.jsx)(JU, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)(YU, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, O.jsx)(xge, {
head: e.online,
actions: o
}) : null
] });
}
-function vge({ text: e, busy: t }) {
+function yge({ text: e, busy: t }) {
return /* @__PURE__ */ (0, O.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, O.jsx)("span", {
@@ -47680,22 +47680,22 @@ function vge({ text: e, busy: t }) {
}) : e
});
}
-function KU({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, O.jsx)(CR, {
+function GU({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, O.jsx)(SR, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: xU,
+ className: bU,
children: r.map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, O.jsx)(wR, {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, O.jsx)(CR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: SU,
+ className: xU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -47705,38 +47705,38 @@ function KU({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function qU({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, O.jsx)(LF, {
+function KU({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, O.jsx)(IF, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: lge,
+ icon: uge,
onPress: e
});
}
-function yge({ head: e, actions: t }) {
- let n = hM();
+function bge({ head: e, actions: t }) {
+ let n = mM();
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(qU, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(KU, {
+ /* @__PURE__ */ (0, O.jsx)(KU, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, O.jsx)(GU, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, O.jsx)(CU, {}),
- /* @__PURE__ */ (0, O.jsx)(gU, {}),
- /* @__PURE__ */ (0, O.jsx)(JU, {
+ /* @__PURE__ */ (0, O.jsx)(SU, {}),
+ /* @__PURE__ */ (0, O.jsx)(hU, {}),
+ /* @__PURE__ */ (0, O.jsx)(qU, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function JU({ sorts: e, onSort: t }) {
+function qU({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, O.jsx)(O.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -47744,20 +47744,20 @@ function JU({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, O.jsx)(wU, {
- a: uge,
- b: dge,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, O.jsx)(CU, {
+ a: dge,
+ b: fge,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function YU({ head: e, actions: t }) {
+function xge({ head: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(qU, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(KU, {
+ /* @__PURE__ */ (0, O.jsx)(KU, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(GU, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -47777,27 +47777,27 @@ function YU({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, O.jsx)(JU, {
+ /* @__PURE__ */ (0, O.jsx)(qU, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function XU({ head: e, actions: t, helpers: n }) {
+function JU({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, D.useState)(!1), a = (0, D.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, D.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, O.jsx)(qU, {
+ e.shuffle ? /* @__PURE__ */ (0, O.jsx)(KU, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, O.jsx)(KU, {
+ /* @__PURE__ */ (0, O.jsx)(GU, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -47812,32 +47812,58 @@ function XU({ head: e, actions: t, helpers: n }) {
});
}
//#endregion
+//#region src/react/catalog-filter/catalog-filter.ts
+var YU = "peach.catalog.tiers.v1";
+function XU() {
+ try {
+ let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
+ return {
+ performers: e?.performers !== !1,
+ studios: e?.studios !== !1
+ };
+ } catch {
+ return {
+ performers: !0,
+ studios: !0
+ };
+ }
+}
+function ZU(e) {
+ try {
+ let t = JSON.stringify({
+ performers: e.performers,
+ studios: e.studios
+ });
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(YU, t);
+ } catch {}
+}
+//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var ZU = "";
-function QU(e) {
- let t = !e.tiers, n = oW(e.comboHost);
+var QU = "";
+function $U(e) {
+ let t = !e.tiers, n = sW(e.comboHost);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(GU, {
+ n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(WU, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, O.jsx)(tW, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)($U, { ...e })
+ /* @__PURE__ */ (0, O.jsx)(nW, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, O.jsx)(eW, { ...e })
]
});
}
-function $U(e) {
- let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = KF(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function eW(e) {
+ let { actions: t, helpers: n } = e, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(!1), u = GF(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, D.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = sW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = cW(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, D.useLayoutEffect)(() => {
let e = a.current?.closest("[data-catalog-frame]");
if (!e) return;
@@ -47854,7 +47880,7 @@ function $U(e) {
e.sorts
]), (0, D.useLayoutEffect)(() => {
ms(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, O.jsx)(zF, {
+ }, [f]), /* @__PURE__ */ (0, O.jsx)(RF, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -47898,17 +47924,17 @@ function $U(e) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(eW, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "tag" }) : null, f.map((e) => /* @__PURE__ */ (0, O.jsx)(tW, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(iW, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, O.jsx)(aW, { ...e })
});
}
-function eW({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, O.jsxs)(VF, {
+function tW({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, O.jsxs)(BF, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -47919,25 +47945,35 @@ function eW({ tag: e, onPress: t }) {
})]
});
}
-function tW(e) {
+function nW(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), c = sW(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = sW(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useCallback)((e) => () => t.moreTops(e), [t]), l = cW(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = cW(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, D.useMemo)(() => i ? XU() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, D.useEffect)(() => {
- n.wireDrag(a.current), n.wireDrag(o.current);
+ i || ZU({
+ performers: f,
+ studios: p
+ });
+ }, [
+ i,
+ f,
+ p
+ ]), (0, D.useEffect)(() => {
+ n.wireDrag(o.current), n.wireDrag(s.current);
}, [
n,
- u,
- d
+ f,
+ p
]), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-catalog-tiers": "",
- hidden: !u && !d,
- children: [u ? /* @__PURE__ */ (0, O.jsx)("div", {
- ref: a,
+ hidden: !f && !p,
+ "aria-busy": i || void 0,
+ children: [f ? /* @__PURE__ */ (0, O.jsx)("div", {
+ ref: o,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "performer" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -47951,21 +47987,21 @@ function tW(e) {
children: e.name
})]
}, e.name))
- }) : null, d ? /* @__PURE__ */ (0, O.jsx)("div", {
- ref: o,
+ }) : null, p ? /* @__PURE__ */ (0, O.jsx)("div", {
+ ref: s,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, O.jsx)(rW, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, O.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, O.jsx)(iW, { kind: "studio" }) : u.map((e) => /* @__PURE__ */ (0, O.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, O.jsx)(nW, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(rW, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function nW({ studio: e }) {
+function rW({ studio: e }) {
let [t, n] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-tier-mark": "",
@@ -47983,7 +48019,7 @@ function nW({ studio: e }) {
}) : e.fallback
});
}
-function rW({ kind: e }) {
+function iW({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -47999,37 +48035,37 @@ function rW({ kind: e }) {
children: [/* @__PURE__ */ (0, O.jsx)("span", {}), /* @__PURE__ */ (0, O.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function iW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = hM(), [o, s] = (0, D.useState)(!1);
+function aW({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = mM(), [o, s] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, O.jsx)(aW, { count: e }), /* @__PURE__ */ (0, O.jsx)($z, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, O.jsx)(oW, { count: e }), /* @__PURE__ */ (0, O.jsx)(Qz, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(qU, {
+ /* @__PURE__ */ (0, O.jsx)(KU, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(KU, {
+ n && a === "cards" ? /* @__PURE__ */ (0, O.jsx)(GU, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, O.jsx)(CU, {}),
- /* @__PURE__ */ (0, O.jsx)(gU, {}),
- /* @__PURE__ */ (0, O.jsx)(JU, {
+ /* @__PURE__ */ (0, O.jsx)(SU, {}),
+ /* @__PURE__ */ (0, O.jsx)(hU, {}),
+ /* @__PURE__ */ (0, O.jsx)(qU, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function aW({ count: e }) {
+function oW({ count: e }) {
let t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, D.useLayoutEffect)(() => {
if (e === !1) return;
@@ -48038,7 +48074,7 @@ function aW({ count: e }) {
return;
}
let i = t.current;
- i && (ZU && i.dataset.popCount === void 0 && (i.dataset.popCount = ZU), ZU = r, ds(i, r));
+ i && (QU && i.dataset.popCount === void 0 && (i.dataset.popCount = QU), QU = r, ds(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, O.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, O.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -48054,7 +48090,7 @@ function aW({ count: e }) {
})
}, "skeleton");
}
-function oW(e) {
+function sW(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!e) return;
@@ -48064,7 +48100,7 @@ function oW(e) {
};
}, [e]), t;
}
-function sW(e, t, n, r, i) {
+function cW(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -48108,8 +48144,8 @@ function sW(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-var cW = "100% 0px";
-function lW(e, t) {
+var lW = "100% 0px";
+function uW(e, t) {
let [n, r] = (0, D.useState)(e ? "skeleton" : "none"), [i] = (0, D.useState)(() => e ? t() : ""), a = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
a.current && Ts(a.current);
@@ -48135,7 +48171,7 @@ function lW(e, t) {
fading: n === "fade"
};
}
-function uW({ message: e, onRetry: t }) {
+function dW({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -48149,7 +48185,7 @@ function uW({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function dW({ artwork: e, identity: t = e.html, relayout: n }) {
+function fW({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, D.useState)({
identity: t,
artwork: e
@@ -48169,64 +48205,64 @@ function dW({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/library-catalog.ts
-var fW = "peach.library-colors.v1", pW = null, mW = /* @__PURE__ */ new Set();
-function hW() {
+var pW = "peach.library-colors.v1", mW = null, hW = /* @__PURE__ */ new Set();
+function gW() {
try {
- let e = JSON.parse(localStorage.getItem(fW) || "{}");
+ let e = JSON.parse(localStorage.getItem(pW) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function gW(e) {
- pW = e;
+function _W(e) {
+ mW = e;
try {
- localStorage.setItem(fW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(pW, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- mW.forEach((t) => t(e));
+ hW.forEach((t) => t(e));
}
-function _W() {
- return pW;
+function vW() {
+ return mW;
}
-function vW(e) {
- return mW.add(e), () => {
- mW.delete(e);
+function yW(e) {
+ return hW.add(e), () => {
+ hW.delete(e);
};
}
//#endregion
//#region src/react/components/library-tint.ts
-var yW = /* @__PURE__ */ new Map(), bW = !1, xW = /* @__PURE__ */ new Set();
-function SW(e) {
+var bW = /* @__PURE__ */ new Map(), xW = !1, SW = /* @__PURE__ */ new Set();
+function CW(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function CW(e) {
- yW = e;
+function wW(e) {
+ bW = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...yW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${SW(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...bW.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${CW(e.color)}}`).join("\n");
}
-function wW(e) {
- CW(e), xW.forEach((e) => e());
+function TW(e) {
+ wW(e), SW.forEach((e) => e());
}
-var TW = (e) => new Map(e.map((e) => [e.id, {
+var EW = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: No[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), EW = !1;
-function DW() {
- if (EW) return;
- EW = !0, vW((e) => wW(TW(e)));
- let e = _W();
+}])), DW = !1;
+function OW() {
+ if (DW) return;
+ DW = !0, yW((e) => TW(EW(e)));
+ let e = vW();
if (e) {
- CW(TW(e));
+ wW(EW(e));
return;
}
- let t = Object.entries(hW()).filter(([, e]) => e);
- t.length && CW(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(gW()).filter(([, e]) => e);
+ t.length && wW(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -48234,35 +48270,35 @@ function DW() {
color: t
}])));
}
-function OW() {
- bW || _W() || (bW = !0, V("/api/libraries").then((e) => gW(e.libraries || [])).catch(() => {
- bW = !1;
+function kW() {
+ xW || vW() || (xW = !0, V("/api/libraries").then((e) => _W(e.libraries || [])).catch(() => {
+ xW = !1;
}));
}
-function kW(e, t) {
- let n = yW.get(e) ?? {
+function AW(e, t) {
+ let n = bW.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- wW(new Map([...yW, [e, {
+ TW(new Map([...bW, [e, {
...n,
color: t
}]]));
}
-function AW(e) {
- return xW.add(e), () => {
- xW.delete(e);
+function jW(e) {
+ return SW.add(e), () => {
+ SW.delete(e);
};
}
-function jW({ names: e = !1 } = {}) {
- return DW(), e && OW(), (0, D.useSyncExternalStore)(AW, () => yW, () => yW);
+function MW({ names: e = !1 } = {}) {
+ return OW(), e && kW(), (0, D.useSyncExternalStore)(jW, () => bW, () => bW);
}
//#endregion
//#region src/react/components/row-click.ts
-var MW = [
+var NW = [
"a",
"button",
"input",
@@ -48275,46 +48311,46 @@ var MW = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function NW(e, t) {
+function PW(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(MW);
+ let r = n.closest(NW);
return !r || !t.contains(r) || r === t;
}
-function PW(e) {
+function FW(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
-var FW = 9 / 16, IW = "未命名视频";
-function LW({ name: e }) {
+var IW = 9 / 16, LW = "未命名视频";
+function RW({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
}
-var RW = {
+var zW = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, zW = {
+}, BW = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function BW({ item: e }) {
+function VW({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && zW[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && BW[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function VW({ item: e, actions: t }) {
+function HW({ item: e, actions: t }) {
let [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48333,10 +48369,10 @@ function VW({ item: e, actions: t }) {
children: i
}) : null] });
}
-function HW(e, t, n) {
- return t === "short" ? FW : wA(n);
+function UW(e, t, n) {
+ return t === "short" ? IW : CA(n);
}
-function UW(e) {
+function WW(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Xa(e), s = i[0] || "", c = Fa(e);
return {
avatar: r ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -48368,7 +48404,7 @@ function UW(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: s,
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: s })]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -48378,16 +48414,16 @@ function UW(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: n,
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "user-round" }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
})
};
}
-function WW() {
+function GW() {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -48406,7 +48442,7 @@ function WW() {
})]
});
}
-function GW({ item: e, actions: t, on: n, onChange: r }) {
+function KW({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-later": "",
@@ -48421,11 +48457,11 @@ function GW({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function KW({ reason: e }) {
+function qW({ reason: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
ref: t,
@@ -48439,15 +48475,15 @@ function KW({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, O.jsx)(rR, {
+ }), /* @__PURE__ */ (0, O.jsx)(nR, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
placement: "top",
offset: 8,
containerPadding: 12,
- className: XB,
- children: /* @__PURE__ */ (0, O.jsx)(gR, {
+ className: YB,
+ children: /* @__PURE__ */ (0, O.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",
@@ -48455,17 +48491,17 @@ function KW({ reason: e }) {
})
})] });
}
-function qW(e, t) {
+function JW(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = jW(), 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, D.useRef)(e);
+function YW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ let u = (0, D.useRef)(null), [d, f] = (0, D.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = MW(), 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, D.useRef)(e);
_.current = e;
let v = (0, D.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && ll(u.current), u.current = e, e && (!t.medium || t.medium === "video") && dl(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 = HW(e, t, n), w = S ? n.size : "small", T = C === FW && !!e.is_jav, E = T ? qa(e, !1) : Ga(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ga(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || IW, M = o.titleHtml(e, A).trim() || B(IW), N = y?.total_size ?? e.size, P = 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: F, who: te } = UW(e), I = (e.follow_tags || e.tags || []).slice(0, 3), ne = (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 = UW(e, t, n), w = S ? n.size : "small", T = C === IW && !!e.is_jav, E = T ? qa(e, !1) : Ga(e, w, !1, n.javImage), k = T || w === "small" ? E.html : Ga(e, "small", !1, n.javImage).html, A = y?.title || e.name || "", j = o.displayName(e, A).trim() || LW, M = o.titleHtml(e, A).trim() || B(LW), N = y?.total_size ?? e.size, P = 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: F, who: te } = WW(e), I = (e.follow_tags || e.tags || []).slice(0, 3), ne = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -48492,10 +48528,10 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, re = /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === FW ? "" : void 0,
+ "data-pic-portrait": C === IW ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ E.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
artwork: E,
identity: k,
relayout: (e) => tl(e, w)
@@ -48509,11 +48545,11 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-group": "",
@@ -48528,7 +48564,7 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-duration": "",
children: hn(P)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(VW, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)(HW, {
item: e,
actions: s
}) : null,
@@ -48544,22 +48580,22 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, O.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, O.jsx)(WW, {}),
+ /* @__PURE__ */ (0, O.jsx)(GW, {}),
p || g.length ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "heart" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, O.jsx)(GW, {
+ i ? null : /* @__PURE__ */ (0, O.jsx)(KW, {
item: e,
actions: s,
on: p,
@@ -48574,27 +48610,27 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), qW(u.current, -a);
+ e.stopPropagation(), JW(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), qW(u.current, a);
+ e.stopPropagation(), JW(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "expand" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "expand" })
})
]
})
@@ -48613,7 +48649,7 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: ne,
- onMouseDown: PW,
+ onMouseDown: FW,
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48653,15 +48689,15 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-release": "",
dateTime: e.release_date,
title: e.release_date,
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "calendar" }), e.release_date]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "calendar" }), e.release_date]
}) : null,
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "hard-drive" }), Number(N) > 0 ? _n(Number(N)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "hard-drive" }), Number(N) > 0 ? _n(Number(N)) : "大小未知"]
})
]
}),
- t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(KW, { reason: e.why }) : null : I.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
+ t === "next" ? e.why ? /* @__PURE__ */ (0, O.jsx)(qW, { reason: e.why }) : null : I.length || e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-media-tags": "",
children: I.map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -48671,15 +48707,15 @@ function JW({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(BW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(VW, { item: e })
]
})]
})
]
});
}
-function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : RW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function XW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, D.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : zW[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, O.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -48691,14 +48727,14 @@ function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: PW,
+ onMouseDown: FW,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: u }), /* @__PURE__ */ (0, O.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-art": "thumb",
@@ -48710,13 +48746,13 @@ function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
}),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: "check" })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: "check" })
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, O.jsx)(LW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(RW, { name: "trash" }), /* @__PURE__ */ (0, O.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, O.jsx)(VW, {
+ n ? null : /* @__PURE__ */ (0, O.jsx)(HW, {
item: e,
actions: i
})
@@ -48727,7 +48763,7 @@ function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(LW, { name: u })
+ children: /* @__PURE__ */ (0, O.jsx)(RW, { name: u })
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-text": "",
children: [
@@ -48755,29 +48791,29 @@ function YW({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpe
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, O.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, O.jsx)(BW, { item: e })
+ /* @__PURE__ */ (0, O.jsx)(VW, { item: e })
]
})]
})]
});
}
-function XW(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)(YW, { ...e }) : /* @__PURE__ */ (0, O.jsx)(JW, { ...e });
+function ZW(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, O.jsx)(XW, { ...e }) : /* @__PURE__ */ (0, O.jsx)(YW, { ...e });
}
-var ZW = (0, D.memo)(XW), QW = 1100, $W = 340, eG = 5e3;
-function tG(e, t, n) {
+var QW = (0, D.memo)(ZW), $W = 1100, eG = 340, tG = 5e3;
+function nG(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, eG);
+ }, s = () => o(!1), c = setTimeout(s, tG);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function nG({ load: e, canFlip: t, referrerPolicy: n }) {
+function rG({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, D.useState)([]), [a, o] = (0, D.useState)(0), [s, c] = (0, D.useState)(null), l = (0, D.useRef)({
live: !1,
generation: 0,
@@ -48819,11 +48855,11 @@ function nG({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => tG(t, e, n)));
+ let s = await Promise.all(a.map((t) => nG(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, QW);
+ p(), e.cycle = setInterval(p, $W);
}));
};
return (0, D.useEffect)(() => d, [d]), {
@@ -48832,7 +48868,7 @@ function nG({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f($W, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(eG, () => {
e.armed = null, m();
});
},
@@ -48843,8 +48879,8 @@ function nG({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var rG = Rz("play");
-function iG({ src: e }) {
+var iG = Lz("play");
+function aG({ src: e }) {
let [t, n] = (0, D.useState)(!1);
return t ? null : /* @__PURE__ */ (0, O.jsx)("img", {
"data-mix-poster": "",
@@ -48857,8 +48893,8 @@ function iG({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var aG = "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 oG({ faces: e, fallback: t, onOpenEntity: n }) {
+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 sG({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, O.jsx)("button", {
@@ -48866,18 +48902,18 @@ function oG({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${aG} cursor-pointer outline-none`,
+ className: `${oG} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: La(e.name, e, va(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${aG} mt-0.5`,
+ className: `${oG} mt-0.5`,
children: t
});
}
-function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = nG({
+function cG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = rG({
load: i,
canFlip: a
}), x = (0, D.useRef)(b.onPointerLeave);
@@ -48904,11 +48940,11 @@ function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
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, O.jsx)(dW, {
+ f?.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, O.jsx)(iG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, O.jsx)(aG, { src: r }, r) : /* @__PURE__ */ (0, O.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -48938,7 +48974,7 @@ function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, O.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, O.jsx)(rG, {
+ children: [/* @__PURE__ */ (0, O.jsx)(iG, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -48951,8 +48987,8 @@ function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, O.jsx)(rG, {})
- }) : /* @__PURE__ */ (0, O.jsx)(oG, {
+ children: /* @__PURE__ */ (0, O.jsx)(iG, {})
+ }) : /* @__PURE__ */ (0, O.jsx)(sG, {
faces: o,
fallback: xn(e),
onOpenEntity: s
@@ -48976,7 +49012,7 @@ function sG({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/video-wall/folia/blockReflows.ts
-var cG = [
+var lG = [
[
[
{
@@ -52537,7 +52573,7 @@ var cG = [
}
]
]
-], lG = [
+], uG = [
[
{
x: 0,
@@ -52834,89 +52870,89 @@ var cG = [
rows: 2
}
]
-], uG = (e) => e.map((e) => ({
+], dG = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), dG = (e) => e.map((e) => ({
+})), fG = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), fG = [
+})), pG = [
(e) => e,
- uG,
dG,
- (e) => uG(dG(e))
-], pG = lG.flatMap((e) => fG.map((t) => t(e))), mG = cG.flatMap((e) => fG.map((t) => e.map(t)));
-pG.length;
-var hG = (e, t) => {
+ fG,
+ (e) => dG(fG(e))
+], mG = uG.flatMap((e) => pG.map((t) => t(e))), hG = lG.flatMap((e) => pG.map((t) => e.map(t)));
+mG.length;
+var gG = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, gG = (e, t) => {
- let n = lG.length;
- return ((e + t * 2) % n + n) % n * fG.length + hG(e, t) % fG.length;
-}, _G = (e, t) => pG[gG(e, t)], vG = (e, t, n) => n < 0 || n >= 12 ? null : mG[gG(e, t)][n], yG = 103.36, bG = 6.08, xG = 12 * yG, SG = 8 * yG, CG = 12, wG = (e, t) => (e % t + t) % t, TG = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function EG(e, t) {
- let n = Math.max(1, Math.ceil(e / CG)), r = t ? 3 : Math.min(3, n);
+}, _G = (e, t) => {
+ let n = uG.length;
+ return ((e + t * 2) % n + n) % n * pG.length + gG(e, t) % pG.length;
+}, vG = (e, t) => mG[_G(e, t)], yG = (e, t, n) => n < 0 || n >= 12 ? null : hG[_G(e, t)][n], bG = 103.36, xG = 6.08, SG = 12 * bG, CG = 8 * bG, wG = 12, TG = (e, t) => (e % t + t) % t, EG = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function DG(e, t) {
+ let n = Math.max(1, Math.ceil(e / wG)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * xG,
- height: Math.ceil(n / r) * SG
+ width: r * SG,
+ height: Math.ceil(n / r) * CG
};
}
-function DG(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = _G(e, t)[n];
+function OG(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = vG(e, t)[n];
return {
- x: e * xG + r * yG,
- y: t * SG + i * yG,
- width: a * yG - bG,
- height: o * yG - bG
+ x: e * SG + r * bG,
+ y: t * CG + i * bG,
+ width: a * bG - xG,
+ height: o * bG - xG
};
}
-function OG(e) {
+function kG(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function kG(e, t, n) {
+function AG(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= CG) return null;
- let o = EG(e, t), s = o.height / SG;
+ ].every(Number.isInteger) || a < 0 || a >= wG) return null;
+ let o = DG(e, t), s = o.height / CG;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : wG(r, o.columns), l = ((t ? i : wG(i, s)) * o.columns + c) * CG + a;
+ let c = t ? r : TG(r, o.columns), l = ((t ? i : TG(i, s)) * o.columns + c) * wG + a;
return t && l >= e ? null : {
- ...DG(r, i, a),
+ ...OG(r, i, a),
index: l % e,
key: n
};
}
-function AG(e, t) {
+function jG(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / CG);
- return kG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % CG}`);
+ let n = Math.floor(t / wG);
+ return AG(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % wG}`);
}
-function jG(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = vG(r, i, a);
+function MG(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = yG(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * xG + e.x * yG,
- y: i * SG + e.y * yG,
- width: e.cols * yG - bG,
- height: e.rows * yG - bG
+ x: r * SG + e.x * bG,
+ y: i * CG + e.y * bG,
+ width: e.cols * bG - xG,
+ height: e.rows * bG - xG
}]));
}
-function MG(e) {
+function NG(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / CG), i = DG(e % 3, Math.floor(e / 3), r % CG);
+ let e = Math.floor(r / wG), i = OG(e % 3, Math.floor(e / 3), r % wG);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * xG - bG : t,
+ width: e >= 36 ? 3 * SG - xG : t,
height: n
};
}
-function NG(e, t, n, r) {
+function PG(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -52925,22 +52961,22 @@ function NG(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function PG(e, t, n, r) {
+function FG(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = EG(e, t), s = o.height / SG, c = [];
- for (let n = Math.floor(a.y / SG); n <= Math.floor((a.y + a.height) / SG); n += 1) for (let r = Math.floor(a.x / xG); r <= Math.floor((a.x + a.width) / xG); r += 1) {
+ }, o = DG(e, t), s = o.height / CG, c = [];
+ for (let n = Math.floor(a.y / CG); n <= Math.floor((a.y + a.height) / CG); n += 1) for (let r = Math.floor(a.x / SG); r <= Math.floor((a.x + a.width) / SG); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : wG(r, o.columns), l = t ? n : wG(n, s);
- for (let s = 0; s < CG; s += 1) {
- let u = (l * o.columns + i) * CG + s;
+ let i = t ? r : TG(r, o.columns), l = t ? n : TG(n, s);
+ for (let s = 0; s < wG; s += 1) {
+ let u = (l * o.columns + i) * wG + s;
if (t && u >= e) continue;
- let d = DG(r, n, s);
- TG(d, a) && c.push({
+ let d = OG(r, n, s);
+ EG(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -52949,7 +52985,7 @@ function PG(e, t, n, r) {
}
return c;
}
-var FG = class {
+var IG = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -52961,7 +52997,7 @@ var FG = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : kG(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : AG(t, !1, e);
return r ? {
...r,
index: n
@@ -52991,7 +53027,7 @@ var FG = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * xG,
+ x: (e + 2) * SG,
y: 0
};
}
@@ -53004,10 +53040,10 @@ var FG = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / xG)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / SG)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, IG = [
+}, LG = [
"q",
"performer",
"series",
@@ -53022,17 +53058,17 @@ var FG = class {
"dur_max",
"region"
];
-function LG(e = {}) {
- return IG.some((t) => !!e[t]);
+function RG(e = {}) {
+ return LG.some((t) => !!e[t]);
}
//#endregion
//#region src/react/video-wall/use-wall-camera.ts
-var RG = {
+var zG = {
x: 16,
y: 16,
scale: 1
};
-function zG(e, t, n = RG, r = !1) {
+function BG(e, t, n = zG, r = !1) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)({
width: 0,
height: 0
@@ -53052,7 +53088,7 @@ function zG(e, t, n = RG, r = !1) {
let f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(!1), h = (0, D.useRef)(null), g = (0, D.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, D.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = NG(e, o.current, MG(r), c && !f && !n);
+ let { count: r, finite: c, focused: f } = d.current, p = PG(e, o.current, NG(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@ -53123,7 +53159,7 @@ function zG(e, t, n = RG, 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 = Lne(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = Rne(0, 1, {
duration: .42,
ease: [
.22,
@@ -53152,7 +53188,7 @@ function zG(e, t, n = RG, r = !1) {
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...RG }, !0);
+ g(), _({ ...zG }, !0);
},
pan: (e, t) => {
g(), _({
@@ -53214,17 +53250,17 @@ function zG(e, t, n = RG, r = !1) {
}
//#endregion
//#region src/react/video-wall/wall-motion.ts
-var BG = {
+var VG = {
type: "spring",
stiffness: 300,
damping: 34
-}, VG = {
+}, HG = {
delay: .14,
duration: .24
};
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
-function HG(e, t, n) {
+function UG(e, t, n) {
let [r, i] = (0, D.useState)({
paused: !0,
time: 0,
@@ -53266,15 +53302,15 @@ function HG(e, t, n) {
}
//#endregion
//#region src/react/video-wall/wall-controls.tsx
-function UG({ 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 = Ay(), x = HG(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function WG({ 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 = ky(), x = UG(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(Ut(e));
}
};
- return /* @__PURE__ */ (0, O.jsxs)(Ry.div, {
+ return /* @__PURE__ */ (0, O.jsxs)(Ly.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -53284,7 +53320,7 @@ function UG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : VG,
+ transition: b ? { duration: 0 } : HG,
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -53292,7 +53328,7 @@ function UG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
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(),
@@ -53342,7 +53378,7 @@ function UG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
- ...Bz(d),
+ ...zz(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -53389,7 +53425,7 @@ function UG({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, group
}
//#endregion
//#region src/react/components/mix-queue.tsx
-function WG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function GG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, D.useRef)(null), l = (0, D.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -53425,7 +53461,7 @@ function WG({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function GG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function KG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, O.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -53448,7 +53484,7 @@ function GG({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var KG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
+var qG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -53458,28 +53494,28 @@ var KG = ({ label: e, count: t }) => /* @__PURE__ */ (0, O.jsxs)("h3", {
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
-function qG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function JG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, O.jsx)(WG, {
+ children: /* @__PURE__ */ (0, O.jsx)(GG, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)(GG, {
+ children: e.map((e) => /* @__PURE__ */ (0, O.jsxs)(KG, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? oN(e.part_label) : "",
+ e.part_label ? aN(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, O.jsx)(dW, { artwork: Ga(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, O.jsx)(fW, { artwork: Ga(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, O.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, O.jsx)("span", { children: [
e.edition_label,
- e.part_label ? oN(e.part_label) : "",
+ e.part_label ? aN(e.part_label) : "",
hn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -53488,7 +53524,7 @@ function qG({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
}
//#endregion
//#region src/react/video-wall/wall-route.ts
-function JG(e = `${location.pathname}${location.search}`, t = {}) {
+function YG(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -53503,18 +53539,18 @@ function JG(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function YG(e = `${location.pathname}${location.search}`) {
+function XG(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of IG) t.delete(e);
+ for (let e of LG) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function XG() {
- let e = new URLSearchParams(YV.navigation.location.search).get("returnTo") || "/";
- YV.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function ZG() {
+ 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 ZG = /* @__PURE__ */ new Map(), QG = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var QG = /* @__PURE__ */ new Map(), $G = (0, D.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Ga(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -53527,7 +53563,7 @@ var ZG = /* @__PURE__ */ new Map(), QG = (0, D.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, O.jsx)(dW, {
+ children: /* @__PURE__ */ (0, O.jsx)(fW, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && Vc(e, r);
@@ -53535,31 +53571,31 @@ var ZG = /* @__PURE__ */ new Map(), QG = (0, D.memo)(function({ item: e, image:
})
});
});
-function $G({ 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 }) {
+function eK({ 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, D.useState)(() => {
- let e = ZG.get(f);
+ let e = QG.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, D.useState)(() => m?.exploration || new FG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), P = w?.edition_group ? {
+ }), [h] = (0, D.useState)(() => m?.exploration || new IG()), g = (0, D.useRef)(!1), [_, v] = (0, D.useState)(null), y = (0, D.useRef)(null), b = (0, D.useRef)(null), x = (0, D.useRef)(null), S = (0, D.useRef)(null), C = (0, D.useRef)(null), [w, T] = (0, D.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, k] = (0, D.useState)(m?.selectedKey || ""), [A, j] = (0, D.useState)(m?.sourceId || null), [M, N] = (0, D.useState)(!1), P = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = St({
- queryKey: BM(P || {
+ queryKey: zM(P || {
kind: "parts",
seedId: 0
}),
enabled: !!P,
- queryFn: ({ signal: e }) => YM(P, {
+ queryFn: ({ signal: e }) => JM(P, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === QM(F, A || w?.id || null)) || w, I = zG(e.length, t && !!e.length, m?.camera || {
+ }), F = P ? ee.data : void 0, te = F?.items.find((e) => e.id === ZM(F, A || w?.id || null)) || w, I = BG(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Ay(), [re, ie] = (0, D.useState)(!!m);
+ }, !!w), ne = ky(), [re, ie] = (0, D.useState)(!!m);
(0, D.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -53576,7 +53612,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, D.useLayoutEffect)(() => {
document.body.append(Se), I.viewport.current?.focus({ preventScroll: !0 });
}, [Se]), (0, D.useEffect)(() => () => Se.remove(), [Se]);
- let [Ce, we] = (0, D.useState)(() => gV(YV.navigation.location.pathname)), [Te, Ee] = (0, D.useState)(m?.image || d), De = (0, D.useRef)(null), Oe = (0, D.useRef)(p), ke = (0, D.useRef)(!!e.length);
+ let [Ce, we] = (0, D.useState)(() => hV(JV.navigation.location.pathname)), [Te, Ee] = (0, D.useState)(m?.image || d), De = (0, D.useRef)(null), Oe = (0, D.useRef)(p), ke = (0, D.useRef)(!!e.length);
ke.current = !!e.length;
let Ae = (0, D.useRef)({
selectedId: w?.id || null,
@@ -53593,17 +53629,17 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let je = () => {
- ke.current && (ZG.delete(f), ZG.set(f, {
+ ke.current && (QG.delete(f), QG.set(f, {
...Ae.current,
camera: I.snapshot(),
exploration: h
- }), ZG.size > 8 && ZG.delete(ZG.keys().next().value));
+ }), QG.size > 8 && QG.delete(QG.keys().next().value));
};
(0, D.useLayoutEffect)(je);
- let Me = PG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
+ let Me = FG(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, I.view.camera, I.view.size), Ne = i ? Me.map((e) => ({
...e,
index: -1
- })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? kG(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? jG(e.length, t, Pe) : /* @__PURE__ */ new Map();
+ })) : t ? Me : h.assign(Me, e.length, n), Pe = w && (t ? AG(e.length, !0, E) : h.tile(E, e.length)), Fe = Pe ? MG(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, se(null), de(!1);
@@ -53620,8 +53656,8 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, D.useEffect)(() => YV.listen((e) => {
- let t = gV(e.location.pathname);
+ ]), (0, D.useEffect)(() => JV.listen((e) => {
+ let t = hV(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), we(t);
}), []), (0, D.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), je();
@@ -53642,7 +53678,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Ie(!1), De.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(jG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), k(r.key), j(null), N(!1), xe(!1), I.reveal(MG(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, ze = () => {
te && y.current && (je(), Ie(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, Be = async (e = te) => {
@@ -53664,7 +53700,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = $M(F || null, oe || 0);
+ let e = QM(F || null, oe || 0);
e && (j(e.id), Be(e));
};
(0, D.useEffect)(() => {
@@ -53686,7 +53722,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = I.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (I.view.size.width / 2 - r.x) / r.scale,
y: (I.view.size.height / 2 - r.y) / r.scale
- }, o = t ? AG(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? jG(e.length, i) : h.nearest(e.length, i, a);
o && (Re(n, o), le(n.id));
}, Ge = async () => {
if (!(r || g.current)) {
@@ -53778,7 +53814,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(QG, {
+ children: /* @__PURE__ */ (0, O.jsx)($G, {
item: w,
image: Te,
big: !0
@@ -53786,7 +53822,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, O.jsx)(QG, {
+ children: /* @__PURE__ */ (0, O.jsx)($G, {
item: w,
image: Te,
big: !0
@@ -53815,7 +53851,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, O.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, O.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- F ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? oN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ F ? /* @__PURE__ */ (0, O.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? aN(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53832,7 +53868,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || P && ee.error && !F ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: fe || Ut(ee.error)
}), ee.error && !F ? /* @__PURE__ */ (0, O.jsx)(J, {
@@ -53842,7 +53878,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(UG, {
+ /* @__PURE__ */ (0, O.jsx)(WG, {
item: Xe,
playing: oe,
frame: b,
@@ -53864,7 +53900,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ve,
error: pe
}),
- M ? /* @__PURE__ */ (0, O.jsx)(qG, {
+ M ? /* @__PURE__ */ (0, O.jsx)(JG, {
items: He,
activeId: Xe.id,
kind: F?.kind || "wall",
@@ -53880,7 +53916,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: Ce,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Le() : be ? xe(!1) : XG());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : w ? Le() : be ? xe(!1) : ZG());
},
children: [
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -53888,7 +53924,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: XG,
+ onClick: ZG,
children: /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -53906,7 +53942,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, O.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => YV.push(YG()),
+ onClick: () => JV.push(XG()),
children: "清除筛选"
})]
}) : null,
@@ -53918,7 +53954,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
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"), je(), YV.push(`/wall?${t}`), xe(!1);
+ n ? t.set("q", n) : t.delete("q"), je(), JV.push(`/wall?${t}`), xe(!1);
},
children: [/* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -53932,18 +53968,18 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, O.jsxs)(vU, {
+ /* @__PURE__ */ (0, O.jsxs)(_U, {
"aria-label": "播放墙图片",
value: Te,
onChange: Ee,
- className: yU,
- children: [/* @__PURE__ */ (0, O.jsx)(wR, {
+ className: vU,
+ children: [/* @__PURE__ */ (0, O.jsx)(CR, {
value: "cover",
- className: bU,
+ className: yU,
children: "封面"
- }), /* @__PURE__ */ (0, O.jsx)(wR, {
+ }), /* @__PURE__ */ (0, O.jsx)(CR, {
value: "thumbnail",
- className: bU,
+ className: yU,
children: "缩略图"
})]
}),
@@ -54015,7 +54051,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + I.view.camera.x / I.view.camera.scale) + Math.max(0, t.y + I.view.camera.y / I.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, O.jsx)(Ry.article, {
+ return /* @__PURE__ */ (0, O.jsx)(Ly.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -54036,7 +54072,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
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 } : {
- layout: BG,
+ layout: VG,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -54069,7 +54105,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Re(n, t, !1));
},
children: r ? Ze : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(QG, {
+ /* @__PURE__ */ (0, O.jsx)($G, {
item: n,
image: Te,
ratio: i.width / i.height
@@ -54095,7 +54131,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(Ry.span, {
+ /* @__PURE__ */ (0, O.jsx)(Ly.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -54107,7 +54143,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, O.jsx)(J, {
@@ -54134,7 +54170,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, O.jsx)(qU, {
+ children: /* @__PURE__ */ (0, O.jsx)(KU, {
busy: r,
onPress: () => void qe()
})
@@ -54144,20 +54180,20 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, O.jsxs)(J, {
size: "small",
variant: "secondary",
- ...Bz(r),
+ ...zz(r),
onClick: () => void Ge(),
children: [r ? /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: ns() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
variant: "ghost",
- ...Bz(r),
+ ...zz(r),
onClick: () => void Ge(),
children: "立即重试"
})]
@@ -54181,7 +54217,7 @@ function $G({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
//#endregion
//#region src/catalog-onboarding.ts
-var eK = [
+var tK = [
"loc",
"creator",
"performer",
@@ -54199,19 +54235,19 @@ var eK = [
"jav",
"thumb"
];
-function tK(e = typeof location > "u" ? "/" : location.href) {
+function nK(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...eK,
+ ...tK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function nK(e, t) {
+async function rK(e, t) {
let n = new URLSearchParams();
- for (let t of eK) e[t] && n.set(t, e[t]);
+ for (let t of tK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -54222,9 +54258,9 @@ async function nK(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function rK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function iK({ 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 os("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? B(tK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return os("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: `<a class="geist-button primary" href="${t ? B(nK()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -54243,17 +54279,17 @@ function rK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/react/video-wall/wall-empty.ts
-function iK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || rK() : t ? os("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : os("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${YG()}">清除筛选</a>` });
+function aK({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || iK() : t ? os("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : os("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${XG()}">清除筛选</a>` });
}
//#endregion
//#region src/react/library-processing/processing-actions.tsx
-function aK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function oK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, D.useState)(t), [s, c] = (0, D.useState)(), [l, u] = (0, D.useState)("");
return (0, D.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await Bme(e, t.signal, a);
+ let o = await Vme(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(() => {
@@ -54271,7 +54307,7 @@ function aK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
children: [
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, O.jsx)(kH, {
+ children: /* @__PURE__ */ (0, O.jsx)(OH, {
value: a,
busy: i,
onChange: (e) => {
@@ -54279,7 +54315,7 @@ function aK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, O.jsx)(eU, {
+ s ? /* @__PURE__ */ (0, O.jsx)($H, {
traffic: s,
initial: !0
}) : null,
@@ -54291,7 +54327,7 @@ function aK({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
+function sK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(r);
(0, D.useEffect)(() => () => o.current?.close(), []);
let [u, d] = (0, D.useState)(!1), f = {
@@ -54349,7 +54385,7 @@ function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
});
};
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(aK, {
+ s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(oK, {
command: s.command,
dialog: s.dialog,
speed: r,
@@ -54358,11 +54394,11 @@ function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
l.current = e;
}
}), s.host) : null,
- s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(xH, {
+ s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(bH, {
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();
@@ -54374,30 +54410,30 @@ function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, O.jsx)(J, {
- ...Bz(e),
+ ...zz(e),
onClick: () => m(f.command),
children: f.label
}), /* @__PURE__ */ (0, O.jsx)(J, {
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, O.jsx)(rR, {
+ /* @__PURE__ */ (0, O.jsx)(nR, {
triggerRef: a,
isOpen: u,
onOpenChange: d,
placement: "bottom end",
offset: 4,
- className: XB,
- children: /* @__PURE__ */ (0, O.jsx)(CH, {
+ className: YB,
+ children: /* @__PURE__ */ (0, O.jsx)(SH, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: p.map(({ label: e, description: t, command: r }) => {
@@ -54406,7 +54442,7 @@ function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
type: "button",
disabled: i,
title: i ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: eF(ZB, QB, "text-body-2-medium"),
+ className: $P(XB, ZB, "text-body-2-medium"),
onClick: () => m(r),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -54423,48 +54459,48 @@ function oK({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "stand
}
//#endregion
//#region src/react/library-processing/library-completion.tsx
-function sK(e, t) {
+function cK(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) && !Ga(e, "small", !1, t).html).map((e) => e.id))];
}
-function cK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, O.jsx)(lK, {
+function lK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, O.jsx)(uK, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function lK({ assetIds: e, onComplete: t, className: n }) {
+function uK({ assetIds: e, onComplete: t, className: n }) {
let r = St({
- queryKey: uH,
- queryFn: ({ signal: e }) => pH(e),
- refetchInterval: (e) => gH(e.state.data, !0)
+ queryKey: lH,
+ queryFn: ({ signal: e }) => fH(e),
+ refetchInterval: (e) => hH(e.state.data, !0)
}), [i, a] = (0, D.useState)(null), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(null), l = Ct({
- mutationFn: (t) => H(lH, {
+ mutationFn: (t) => H(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), U.setQueryData(lH, e), U.invalidateQueries({ queryKey: lH });
}
}), u = r.data;
if ((0, D.useEffect)(() => {
- u && i && u.job_id === i && !dH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !uH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
- ]), dH(u)) return null;
- let d = l.isPending || dH(u), f = l.error ? An(l.error) : r.error ? hH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
+ ]), uH(u)) return null;
+ let d = l.isPending || uH(u), f = l.error ? An(l.error) : r.error ? mH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
return /* @__PURE__ */ (0, O.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: eF("@container", n),
- children: /* @__PURE__ */ (0, O.jsxs)(Fz, {
+ className: $P("@container", n),
+ children: /* @__PURE__ */ (0, O.jsxs)(Pz, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, O.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, O.jsx)(oK, {
+ children: /* @__PURE__ */ (0, O.jsx)(sK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -54475,10 +54511,10 @@ function lK({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, O.jsx)(xH, {
+ /* @__PURE__ */ (0, O.jsx)(bH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -54487,32 +54523,32 @@ function lK({ assetIds: e, onComplete: t, className: n }) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/FlexRender.js
-function uK(e) {
- return dK(e) || typeof e == "function" || fK(e);
-}
function dK(e) {
+ return fK(e) || typeof e == "function" || pK(e);
+}
+function fK(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function fK(e) {
+function pK(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function pK(e, t) {
- return e == null ? null : uK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
+function mK(e, t) {
+ return e == null ? null : dK(e) ? /* @__PURE__ */ D.createElement(e, t) : e;
}
-function mK(e) {
+function hK(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? pK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : pK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? mK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : mK(n.cell, t.getContext());
}
- return "header" in e && e.header ? pK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? pK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? mK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? mK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
//#endregion
//#region node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function hK({ update: e, notify: t, unwatched: n }) {
+function gK({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -54630,7 +54666,7 @@ function hK({ update: e, notify: t, unwatched: n }) {
}
//#endregion
//#region node_modules/@tanstack/store/dist/atom.js
-function gK(e, t, n) {
+function _K(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -54638,38 +54674,38 @@ function gK(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var _K = [], vK = 0, { link: yK, unlink: bK, propagate: xK, checkDirty: SK, shallowPropagate: CK } = /* @__PURE__ */ hK({
+var vK = [], yK = 0, { link: bK, unlink: xK, propagate: SK, checkDirty: CK, shallowPropagate: wK } = /* @__PURE__ */ gK({
update(e) {
return e._update();
},
notify(e) {
- _K[TK++] = e, e.flags &= -3;
+ vK[EK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, kK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, AK(e));
}
-}), wK = 0, TK = 0, EK, DK = 0;
-function OK(e) {
+}), TK = 0, EK = 0, DK, OK = 0;
+function kK(e) {
try {
- ++DK, e();
+ ++OK, e();
} finally {
- --DK || AK();
+ --OK || jK();
}
}
-function kK(e) {
+function AK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = bK(n, e);
+ for (; n !== void 0;) n = xK(n, e);
}
-function AK() {
- if (!(DK > 0)) {
- for (; wK < TK;) {
- let e = _K[wK];
- _K[wK++] = void 0, e.notify();
+function jK() {
+ if (!(OK > 0)) {
+ for (; TK < EK;) {
+ let e = vK[TK];
+ vK[TK++] = void 0, e.notify();
}
- wK = 0, TK = 0;
+ TK = 0, EK = 0;
}
}
-function jK(e, t) {
+function MK(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -54678,53 +54714,53 @@ function jK(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return EK !== void 0 && yK(i, EK, vK), i._snapshot;
+ return DK !== void 0 && bK(i, DK, yK), i._snapshot;
},
subscribe(e) {
- let t = gK(e), n = { current: !1 }, r = MK(() => {
- i.get(), n.current ? (EK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = _K(e), n = { current: !1 }, r = NK(() => {
+ i.get(), n.current ? (DK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = EK, o = t?.compare ?? Object.is;
- if (n) EK = i, ++vK, i.depsTail = void 0;
+ let a = DK, o = t?.compare ?? Object.is;
+ if (n) DK = i, ++yK, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- EK = a, n && (i.flags &= -5), kK(i);
+ DK = a, n && (i.flags &= -5), AK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && SK(i.deps, i)) {
+ if (e & 16 || e & 32 && CK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && CK(e);
+ e !== void 0 && wK(e);
}
} else e & 32 && (i.flags = e & -33);
- return EK !== void 0 && yK(i, EK, vK), i._snapshot;
+ return DK !== void 0 && bK(i, DK, yK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (xK(e), CK(e), AK());
+ e !== void 0 && (SK(e), wK(e), jK());
}
}, i;
}
-function MK(e) {
+function NK(e) {
let t = () => {
- let t = EK;
- EK = n, ++vK, n.depsTail = void 0, n.flags = 6;
+ let t = DK;
+ DK = n, ++yK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- EK = t, n.flags &= -5, kK(n);
+ DK = t, n.flags &= -5, AK(n);
}
}, n = {
deps: void 0,
@@ -54734,17 +54770,17 @@ function MK(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && SK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && CK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, kK(this);
+ this.flags = 0, this.depsTail = void 0, AK(this);
}
};
return t(), n;
}
//#endregion
//#region node_modules/@tanstack/store/dist/shallow.js
-function NK(e, t) {
+function PK(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -54758,18 +54794,18 @@ function NK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = PK(e);
- if (n.length !== PK(t).length) return !1;
+ let n = FK(e);
+ if (n.length !== FK(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function PK(e) {
+function FK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var FK = /* @__PURE__ */ o(((e) => {
- var t = v(), n = Bx();
+var IK = /* @__PURE__ */ o(((e) => {
+ var t = v(), n = zx();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -54813,28 +54849,28 @@ var FK = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), IK = /* @__PURE__ */ o(((e, t) => {
- t.exports = FK();
-})), LK = IK();
-function RK(e, t) {
+})), LK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = IK();
+})), RK = LK();
+function zK(e, t) {
return e === t;
}
-function zK(e, t = (e) => e, n) {
- let r = n?.compare ?? RK, i = (0, D.useCallback)((t) => {
+function BK(e, t = (e) => e, n) {
+ let r = n?.compare ?? zK, i = (0, D.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, D.useCallback)(() => e.get(), [e]);
- return (0, LK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, RK.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/Subscribe.js
-function BK(e) {
- let t = zK(e.source, e.selector, { compare: NK });
+function VK(e) {
+ let t = BK(e.source, e.selector, { compare: PK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function VK(e) {
+function HK(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
@@ -54842,7 +54878,7 @@ function VK(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function HK(e) {
+function UK(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -54872,7 +54908,7 @@ function HK(e) {
}
};
}
-function UK(e, t = Object.is) {
+function WK(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -54886,29 +54922,29 @@ function UK(e, t = Object.is) {
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/reactivity.js
-function WK() {
- return HK({
- createAtom: jK,
- batch: OK
+function GK() {
+ return UK({
+ createAtom: MK,
+ batch: kK
});
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/utils.js
-function GK(e, t) {
+function KK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function KK(e) {
- if (Array.isArray(e)) return e.map(KK);
+function qK(e) {
+ if (Array.isArray(e)) return e.map(qK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? JK() : {}, r = Object.keys(e);
+ let n = t === null ? YK() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: KK(e[i]),
+ value: qK(e[i]),
writable: !0
});
}
@@ -54916,7 +54952,7 @@ function KK(e) {
}
return e;
}
-function qK(e, t) {
+function JK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -54924,53 +54960,53 @@ function qK(e, t) {
}
return e;
}
-function JK() {
+function YK() {
return Object.create(null);
}
-function YK(e, t) {
+function XK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function XK(e, t) {
+function ZK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => GK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => KK(n, e));
};
}
-function ZK(e) {
+function QK(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function QK(e) {
+function $K(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var $K = 3;
-function eq(e, t) {
- return tq(e, t, $K);
+var eq = 3;
+function tq(e, t) {
+ return nq(e, t, eq);
}
-function tq(e, t, n) {
+function nq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !ZK(e) || !ZK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = QK(e), i = QK(t);
+ if (n <= 0 || !QK(e) || !QK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = $K(e), i = $K(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !tq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !nq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function nq(e, t, n, r = eq) {
+function rq(e, t, n, r = tq) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = GK(n, e);
+ let t = KK(n, e);
return r(e, t) ? e : t;
});
}
-function rq(e) {
+function iq(e) {
return e instanceof Function;
}
-function iq(e, t) {
+function aq(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -54980,7 +55016,7 @@ function iq(e, t) {
};
return r(e), n;
}
-var aq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var oq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -54994,23 +55030,23 @@ var aq = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCom
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function oq(e) {
+function sq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function sq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function cq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return aq({
+ return oq({
...a,
...o
});
}
-function cq(e, t = "_") {
+function lq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -55018,10 +55054,10 @@ function cq(e, t = "_") {
parentName: n
};
}
-function lq(e, t, n) {
+function uq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = cq(r);
- t[n] = a ? sq({
+ let { fnKey: n, fnName: o } = lq(r);
+ t[n] = a ? cq({
memoDeps: a,
fn: i,
fnName: o,
@@ -55030,15 +55066,15 @@ function lq(e, t, n) {
}) : i;
}
}
-function uq(e, t, n, r) {
+function dq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = cq(i);
+ let { fnKey: r, fnName: s } = lq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = sq({
+ this[i] = cq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -55054,18 +55090,18 @@ function uq(e, t, n, r) {
};
}
}
-function dq(e, t, n, ...r) {
+function fq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function fq(e) {
+function pq(e) {
return e.row.getValue(e.column.id);
}
-function pq(e) {
+function mq(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function mq(e) {
+function hq(e) {
return {
table: e.table,
column: e.column,
@@ -55077,19 +55113,19 @@ function mq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var hq = { assignCellPrototype: (e, t) => {
- uq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => fq(e) },
- cell_renderValue: { fn: (e) => pq(e) },
+var gq = { assignCellPrototype: (e, t) => {
+ dq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => pq(e) },
+ cell_renderValue: { fn: (e) => mq(e) },
cell_getContext: {
- fn: (e) => mq(e),
+ fn: (e) => hq(e),
memoDeps: (e) => [e]
}
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function gq(e) {
+function _q(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -55097,7 +55133,7 @@ function gq(e) {
}
return e._columnPrototype;
}
-function _q(e, t, n, r) {
+function vq(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -55117,7 +55153,7 @@ function _q(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = gq(e), u = Object.create(l);
+ let l = _q(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);
@@ -55125,47 +55161,47 @@ function _q(e, t, n, r) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function vq(e) {
+function yq(e) {
return e.getIsVisible?.() ?? !0;
}
-function yq(e) {
+function bq(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function bq(e, t) {
+function xq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function xq(e, t, n, r) {
+function Sq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function Sq(e, t) {
+function Cq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function Cq(e) {
+function wq(e) {
e.autoResetExpanded?.();
}
-function wq(e) {
+function Tq(e) {
e.autoResetPageIndex?.();
}
-function Tq(e) {
+function Eq(e) {
e.autoResetSorting?.();
}
-function Eq(e) {
+function Dq(e) {
e.autoResetCellSelection?.();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function Dq(e) {
+function Oq(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function Oq(e) {
+function kq(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return bq(e.table, t);
+ return xq(e.table, t);
}
return [e];
}
-function kq(e) {
+function Aq(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -55176,54 +55212,54 @@ function kq(e) {
...e.options.defaultColumn
};
}
-function Aq(e, t, n, r = 0) {
+function jq(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 = _q(e, o, r, n), c = o;
- s.columns = c.columns ? Aq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = vq(e, o, r, n), c = o;
+ s.columns = c.columns ? jq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function jq(e) {
- return Aq(e, e.options.columns);
-}
function Mq(e) {
- return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+ return jq(e, e.options.columns);
}
function Nq(e) {
- let t = JK(), n = e.getAllFlatColumns();
+ return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+}
+function Pq(e) {
+ let t = YK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Pq(e) {
- return bq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
-}
function Fq(e) {
- let t = JK(), n = e.getAllLeafColumns();
+ return xq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+}
+function Iq(e) {
+ let t = YK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function Iq(e, t) {
+function Lq(e, t) {
return e.getAllFlatColumnsById()[t];
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var Lq = {
+var Rq = {
assignColumnPrototype: (e, t) => {
- uq("coreColumnsFeature", e, t, {
+ dq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => Dq(e),
+ fn: (e) => Oq(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => Oq(e),
+ fn: (e) => kq(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -55234,25 +55270,25 @@ var Lq = {
});
},
constructTableAPIs: (e) => {
- lq("coreColumnsFeature", e, {
+ uq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => kq(e),
+ fn: () => Aq(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => jq(e),
+ fn: () => Mq(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => Mq(e),
+ fn: () => Nq(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => Nq(e),
+ fn: () => Pq(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => Pq(e),
+ fn: () => Fq(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -55261,16 +55297,16 @@ var Lq = {
]
},
table_getAllLeafColumnsById: {
- fn: () => Fq(e),
+ fn: () => Iq(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => Iq(e, t) }
+ table_getColumn: { fn: (t) => Lq(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function Rq(e) {
+function Sge(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -55279,7 +55315,7 @@ function Rq(e) {
return e._headerPrototype;
}
function zq(e, t, n) {
- let r = Rq(e), i = Object.create(r);
+ let r = Sge(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);
@@ -55291,18 +55327,18 @@ function Bq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- vq(i) && i.columns.length && (n = Math.max(n, Bq(i.columns, t + 1)));
+ yq(i) && i.columns.length && (n = Math.max(n, Bq(i.columns, t + 1)));
}
return n;
}
-function bge(e, t) {
+function Cge(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function xge(e, t, n, r) {
+function wge(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 Sge(e, t) {
+function Tge(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -55310,7 +55346,7 @@ function Sge(e, t) {
function Vq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: bge(r, t),
+ id: Cge(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -55319,9 +55355,9 @@ function Vq(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 = zq(n, u, {
- id: xge(r, t, u.id, a.id),
+ id: wge(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(Sge(s, u)) : void 0,
+ placeholderId: d ? String(Tge(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -55335,13 +55371,13 @@ function Vq(e, t, n, r, i, a) {
function Hq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!vq(n.column)) continue;
+ if (!yq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
Hq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- vq(t.column) && (r += t.colSpan);
+ yq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -55351,7 +55387,7 @@ function Hq(e) {
} else n.rowSpan = 1;
}
}
-function Cge(e, t, n, r) {
+function Ege(e, t, n, r) {
let i = Bq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = zq(n, t[e], {
depth: i,
@@ -55365,24 +55401,24 @@ function Uq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Uq(e.subHeaders[n], t);
t.push(e);
}
-function wge(e) {
+function Dge(e) {
let t = [];
return Uq(e, t), t;
}
-function Tge(e) {
+function Oge(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function Ege(e) {
- return Cge(e.getAllColumns(), xq(e, yq(e), (e) => e.id), e);
+function kge(e) {
+ return Ege(e.getAllColumns(), Sq(e, bq(e), (e) => e.id), e);
}
-function Dge(e) {
+function Age(e) {
return [...e.getHeaderGroups()].reverse();
}
-function Oge(e) {
+function jge(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -55390,7 +55426,7 @@ function Oge(e) {
}
return n;
}
-function kge(e) {
+function Mge(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -55400,23 +55436,23 @@ function kge(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var Age = {
+var Nge = {
assignHeaderPrototype: (e, t) => {
- uq("coreHeadersFeature", e, t, {
+ dq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => wge(e),
+ fn: (e) => Dge(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Tge(e),
+ fn: (e) => Oge(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- lq("coreHeadersFeature", e, {
+ uq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => Ege(e),
+ fn: () => kge(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -55427,15 +55463,15 @@ var Age = {
]
},
table_getFooterGroups: {
- fn: () => Dge(e),
+ fn: () => Age(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => Oge(e),
+ fn: () => jge(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => kge(e),
+ fn: () => Mge(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
@@ -55443,7 +55479,7 @@ var Age = {
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function jge(e) {
+function Pge(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -55451,102 +55487,102 @@ function jge(e) {
}
return e._rowPrototype;
}
-var Mge = (e, t, n, r, i, a, o) => {
- let s = jge(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = JK(), c._valuesCache = JK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var Fge = (e, t, n, r, i, a, o) => {
+ let s = Pge(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = YK(), c._valuesCache = YK(), 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);
return c;
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function Nge() {
- return (e) => sq({
+function Ige() {
+ return (e) => cq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => Pge(e, e.options.data),
- onAfterUpdate: oq(() => {
- Cq(e), wq(e), Tq(e), Eq(e);
+ fn: () => Lge(e, e.options.data),
+ onAfterUpdate: sq(() => {
+ wq(e), Tq(e), Eq(e), Dq(e);
})
});
}
function Wq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = Mge(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = Fge(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 = Wq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function Pge(e, t) {
+function Lge(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: JK()
+ rowsById: YK()
};
return n.rows = Wq(e, n, t), n;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function Fge(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Nge()(e)), e._rowModels.coreRowModel();
+function Rge(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Ige()(e)), e._rowModels.coreRowModel();
}
-function Ige(e) {
+function zge(e) {
return e.getCoreRowModel();
}
-function Lge(e) {
+function Bge(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function Rge(e) {
+function Vge(e) {
return e.getFilteredRowModel();
}
-function zge(e) {
+function Hge(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function Bge(e) {
+function Uge(e) {
return e.getGroupedRowModel();
}
-function Vge(e) {
+function Wge(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function Hge(e) {
+function Gge(e) {
return e.getSortedRowModel();
}
-function Uge(e) {
+function Kge(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function Wge(e) {
+function qge(e) {
return e.getExpandedRowModel();
}
-function Gge(e) {
+function Jge(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 Kge(e) {
+function Yge(e) {
return e.getPaginatedRowModel();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var qge = { constructTableAPIs: (e) => {
- lq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => Fge(e) },
- table_getPreFilteredRowModel: { fn: () => Ige(e) },
- table_getFilteredRowModel: { fn: () => Lge(e) },
- table_getPreGroupedRowModel: { fn: () => Rge(e) },
- table_getGroupedRowModel: { fn: () => zge(e) },
- table_getPreSortedRowModel: { fn: () => Bge(e) },
- table_getSortedRowModel: { fn: () => Vge(e) },
- table_getPreExpandedRowModel: { fn: () => Hge(e) },
- table_getExpandedRowModel: { fn: () => Uge(e) },
- table_getPrePaginatedRowModel: { fn: () => Wge(e) },
- table_getPaginatedRowModel: { fn: () => Gge(e) },
- table_getRowModel: { fn: () => Kge(e) }
+var Xge = { constructTableAPIs: (e) => {
+ uq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => Rge(e) },
+ table_getPreFilteredRowModel: { fn: () => zge(e) },
+ table_getFilteredRowModel: { fn: () => Bge(e) },
+ table_getPreGroupedRowModel: { fn: () => Vge(e) },
+ table_getGroupedRowModel: { fn: () => Hge(e) },
+ table_getPreSortedRowModel: { fn: () => Uge(e) },
+ table_getSortedRowModel: { fn: () => Wge(e) },
+ table_getPreExpandedRowModel: { fn: () => Gge(e) },
+ table_getExpandedRowModel: { fn: () => Kge(e) },
+ table_getPrePaginatedRowModel: { fn: () => qge(e) },
+ table_getPaginatedRowModel: { fn: () => Jge(e) },
+ table_getRowModel: { fn: () => Yge(e) }
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function Jge(e) {
+function Zge(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -55554,8 +55590,8 @@ function Jge(e) {
}
return e._cellPrototype;
}
-function Yge(e, t, n) {
- let r = Jge(n), i = Object.create(r);
+function Qge(e, t, n) {
+ let r = Zge(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);
@@ -55563,40 +55599,40 @@ function Yge(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function Xge(e) {
+function $ge(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function Zge(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Sq(e, t).rows : t.rows;
+function e_e(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? Cq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function Qge(e, t) {
- if (YK(e._valuesCache, t)) return e._valuesCache[t];
+function t_e(e, t) {
+ if (XK(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 $ge(e, t) {
- if (YK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function n_e(e, t) {
+ if (XK(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 e_e(e, t) {
+function r_e(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function t_e(e) {
- return iq(e.subRows, (e) => e.subRows);
+function i_e(e) {
+ return aq(e.subRows, (e) => e.subRows);
}
-function n_e(e) {
+function a_e(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 r_e(e) {
+function o_e(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function i_e(e) {
+function s_e(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -55605,71 +55641,71 @@ function i_e(e) {
}
return t.reverse();
}
-function a_e(e) {
+function c_e(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 = Yge(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = Qge(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function o_e(e) {
- let t = JK(), n = e.getAllCells();
+function l_e(e) {
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function s_e(e, t, n, r) {
+function u_e(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function c_e(e, t, n) {
+function d_e(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 l_e = {
+var f_e = {
assignRowPrototype: (e, t) => {
- uq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => Xge(e) },
+ dq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => $ge(e) },
row_getAllCellsByColumnId: {
- fn: (e) => o_e(e),
+ fn: (e) => l_e(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => a_e(e),
+ fn: (e) => c_e(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => t_e(e),
+ fn: (e) => i_e(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => r_e(e) },
- row_getParentRows: { fn: (e) => i_e(e) },
- row_getUniqueValues: { fn: (e, t) => $ge(e, t) },
- row_getValue: { fn: (e, t) => Qge(e, t) },
- row_renderValue: { fn: (e, t) => e_e(e, t) }
+ row_getParentRow: { fn: (e) => o_e(e) },
+ row_getParentRows: { fn: (e) => s_e(e) },
+ row_getUniqueValues: { fn: (e, t) => n_e(e, t) },
+ row_getValue: { fn: (e, t) => t_e(e, t) },
+ row_renderValue: { fn: (e, t) => r_e(e, t) }
});
},
constructTableAPIs: (e) => {
- lq("coreRowsFeature", e, {
+ uq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => Zge(e),
+ fn: () => e_e(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => s_e(t, e, n, r) },
- table_getRow: { fn: (t, n) => c_e(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => u_e(t, e, n, r) },
+ table_getRow: { fn: (t, n) => d_e(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => n_e(e),
+ fn: () => a_e(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -55693,8 +55729,8 @@ function Kq(e, t, n = (e, t) => e === t) {
Gq(e, t, n), e._reactivity.commit?.();
});
}
-function u_e(e) {
- let t = KK(e.initialState);
+function p_e(e) {
+ let t = qK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -55705,7 +55741,7 @@ function u_e(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function d_e(e, t) {
+function m_e(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -55738,20 +55774,20 @@ function d_e(e, t) {
});
}
function qq(e, t, n) {
- let r = d_e(e, GK(t, e.options));
+ let r = m_e(e, KK(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Kq(e, r.state ?? null);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var f_e = {
- coreCellsFeature: hq,
- coreColumnsFeature: Lq,
- coreHeadersFeature: Age,
- coreRowModelsFeature: qge,
- coreRowsFeature: l_e,
+var h_e = {
+ coreCellsFeature: gq,
+ coreColumnsFeature: Rq,
+ coreHeadersFeature: Nge,
+ coreRowModelsFeature: Xge,
+ coreRowsFeature: f_e,
coreTablesFeature: { constructTableAPIs: (e) => {
- lq("coreTablesFeature", e, {
- table_reset: { fn: () => u_e(e) },
+ uq("coreTablesFeature", e, {
+ table_reset: { fn: () => p_e(e) },
table_setOptions: { fn: (t) => qq(e, t) }
});
} }
@@ -55779,17 +55815,17 @@ function Yq(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function p_e(e, t = {}) {
+function g_e(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), KK(t);
+ }), qK(t);
}
-function m_e(e) {
+function __e(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: {
- ...f_e,
+ ...h_e,
..._
},
_headerGroupInstanceInitFns: [],
@@ -55827,7 +55863,7 @@ function m_e(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = p_e(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = g_e(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -55835,14 +55871,14 @@ function m_e(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && YK(i, n)) {
+ if (i && XK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Gq(v), v.store = VK(t.createReadonlyAtom(() => {
+ Gq(v), v.store = HK(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -55850,7 +55886,7 @@ function m_e(e) {
}
return e;
}, {
- compare: NK,
+ compare: PK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -55861,12 +55897,12 @@ function m_e(e) {
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function h_e() {
- return JK();
+function v_e() {
+ return YK();
}
function Xq(e, t) {
Qq(e) && eJ(e.table, (n) => {
- let r = Object.assign(JK(), n), i = t ?? !dq(e, "getIsVisible", Zq), a = e.getLeafColumns();
+ let r = Object.assign(YK(), n), i = t ?? !fq(e, "getIsVisible", Zq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
Qq(t) && (r[t.id] = i);
@@ -55878,47 +55914,47 @@ function Zq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => dq(e, "getIsVisible", Zq)) : (YK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => fq(e, "getIsVisible", Zq)) : (XK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
function Qq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function g_e(e) {
+function y_e(e) {
return (t) => {
Xq(e, t.target.checked);
};
}
-function __e(e) {
+function b_e(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- dq(r.column, "getIsVisible", Zq) && n.push(r);
+ fq(r.column, "getIsVisible", Zq) && n.push(r);
}
- return xq(e.table, n, (e) => e.column.id, () => dq(e, "getVisibleCellsByColumnId", $q));
+ return Sq(e.table, n, (e) => e.column.id, () => fq(e, "getVisibleCellsByColumnId", $q));
}
function $q(e) {
- let t = JK(), n = e.getAllCells();
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- dq(r.column, "getIsVisible", Zq) && (t[r.column.id] = r);
+ fq(r.column, "getIsVisible", Zq) && (t[r.column.id] = r);
}
return t;
}
-function v_e(e) {
- return e.getAllFlatColumns().filter((e) => dq(e, "getIsVisible", Zq));
+function x_e(e) {
+ return e.getAllFlatColumns().filter((e) => fq(e, "getIsVisible", Zq));
}
-function y_e(e) {
- return e.getAllLeafColumns().filter((e) => dq(e, "getIsVisible", Zq));
+function S_e(e) {
+ return e.getAllLeafColumns().filter((e) => fq(e, "getIsVisible", Zq));
}
function eJ(e, t) {
- nq(e, "columnVisibility", t);
+ rq(e, "columnVisibility", t);
}
-function b_e(e, t) {
- eJ(e, t ? JK() : Object.assign(JK(), KK(e.initialState.columnVisibility ?? {})));
+function C_e(e, t) {
+ eJ(e, t ? YK() : Object.assign(YK(), qK(e.initialState.columnVisibility ?? {})));
}
function tJ(e, t) {
t ??= !nJ(e);
- let n = JK(), r = e.getAllLeafColumns();
+ let n = YK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
n[i.id] = t || !Qq(i);
@@ -55926,12 +55962,12 @@ function tJ(e, t) {
eJ(e, n);
}
function nJ(e) {
- return !e.getAllLeafColumns().some((e) => !dq(e, "getIsVisible", Zq));
+ return !e.getAllLeafColumns().some((e) => !fq(e, "getIsVisible", Zq));
}
-function x_e(e) {
- return e.getAllLeafColumns().some((e) => dq(e, "getIsVisible", Zq));
+function w_e(e) {
+ return e.getAllLeafColumns().some((e) => fq(e, "getIsVisible", Zq));
}
-function S_e(e) {
+function T_e(e) {
return (t) => {
tJ(e, t.target.checked);
};
@@ -55940,12 +55976,12 @@ function S_e(e) {
//#region node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var rJ = {
getInitialState: (e) => ({
- columnVisibility: h_e(),
+ columnVisibility: v_e(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: XK("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: ZK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- uq("columnVisibilityFeature", e, t, {
+ dq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
fn: (e) => Zq(e),
memoDeps: (e) => [
@@ -55955,14 +55991,14 @@ var rJ = {
]
},
column_getCanHide: { fn: (e) => Qq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => g_e(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => y_e(e) },
column_toggleVisibility: { fn: (e, t) => Xq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- uq("columnVisibilityFeature", e, t, {
+ dq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => __e(e),
+ fn: (e) => b_e(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -55976,9 +56012,9 @@ var rJ = {
});
},
constructTableAPIs: (e) => {
- lq("columnVisibilityFeature", e, {
+ uq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => v_e(e),
+ fn: () => x_e(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -55988,7 +56024,7 @@ var rJ = {
]
},
table_getVisibleLeafColumns: {
- fn: () => y_e(e),
+ fn: () => S_e(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -55998,11 +56034,11 @@ var rJ = {
]
},
table_setColumnVisibility: { fn: (t) => eJ(e, t) },
- table_resetColumnVisibility: { fn: (t) => b_e(e, t) },
+ table_resetColumnVisibility: { fn: (t) => C_e(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => tJ(e, t) },
table_getIsAllColumnsVisible: { fn: () => nJ(e) },
- table_getIsSomeColumnsVisible: { fn: () => x_e(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => S_e(e) }
+ table_getIsSomeColumnsVisible: { fn: () => w_e(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => T_e(e) }
});
}
}, iJ = 0, aJ = 10;
@@ -56012,21 +56048,21 @@ function oJ() {
pageSize: aJ
};
}
-function C_e(e) {
+function E_e(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? iJ) === iJ) return;
lJ(e, !0);
}
}
function sJ(e, t) {
- nq(e, "pagination", t);
+ rq(e, "pagination", t);
}
-function w_e(e, t) {
- sJ(e, t ? oJ() : KK(e.initialState.pagination ?? oJ()));
+function D_e(e, t) {
+ sJ(e, t ? oJ() : qK(e.initialState.pagination ?? oJ()));
}
function cJ(e, t) {
sJ(e, (n) => {
- let r = GK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = KK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -56036,12 +56072,12 @@ function cJ(e, t) {
function lJ(e, t) {
cJ(e, t ? iJ : e.initialState.pagination?.pageIndex ?? iJ);
}
-function T_e(e, t) {
+function O_e(e, t) {
uJ(e, t ? aJ : e.initialState.pagination?.pageSize ?? aJ);
}
function uJ(e, t) {
sJ(e, (e) => {
- let n = Math.max(1, GK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+ let n = Math.max(1, KK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -56049,31 +56085,31 @@ function uJ(e, t) {
};
});
}
-function E_e(e) {
+function k_e(e) {
let t = dJ(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function D_e(e) {
+function A_e(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function O_e(e) {
+function j_e(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? iJ, n = dJ(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function k_e(e) {
+function M_e(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? iJ, n = dJ(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function A_e(e) {
+function N_e(e) {
return cJ(e, (e) => e - 1);
}
-function j_e(e) {
+function P_e(e) {
return cJ(e, (e) => e + 1);
}
-function M_e(e) {
+function F_e(e) {
return cJ(e, 0);
}
-function N_e(e) {
+function I_e(e) {
let t = dJ(e);
if (!(!Number.isFinite(t) || t <= 0)) return cJ(e, t - 1);
}
@@ -56096,44 +56132,44 @@ var pJ = {
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: XK("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: ZK("pagination", e) }),
constructTableAPIs: (e) => {
- lq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => C_e(e) },
+ uq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => E_e(e) },
table_setPagination: { fn: (t) => sJ(e, t) },
- table_resetPagination: { fn: (t) => w_e(e, t) },
+ table_resetPagination: { fn: (t) => D_e(e, t) },
table_setPageIndex: { fn: (t) => cJ(e, t) },
table_resetPageIndex: { fn: (t) => lJ(e, t) },
table_setPageSize: { fn: (t) => uJ(e, t) },
table_getPageCount: { fn: () => dJ(e) },
- table_resetPageSize: { fn: (t) => T_e(e, t) },
- table_getPageOptions: { fn: () => E_e(e) },
- table_getCanPreviousPage: { fn: () => D_e(e) },
- table_getCanNextPage: { fn: () => O_e(e) },
- table_getCanLastPage: { fn: () => k_e(e) },
- table_previousPage: { fn: () => A_e(e) },
- table_nextPage: { fn: () => j_e(e) },
- table_firstPage: { fn: () => M_e(e) },
- table_lastPage: { fn: () => N_e(e) },
+ table_resetPageSize: { fn: (t) => O_e(e, t) },
+ table_getPageOptions: { fn: () => k_e(e) },
+ table_getCanPreviousPage: { fn: () => A_e(e) },
+ table_getCanNextPage: { fn: () => j_e(e) },
+ table_getCanLastPage: { fn: () => M_e(e) },
+ table_previousPage: { fn: () => N_e(e) },
+ table_nextPage: { fn: () => P_e(e) },
+ table_firstPage: { fn: () => F_e(e) },
+ table_lastPage: { fn: () => I_e(e) },
table_getRowCount: { fn: () => fJ(e) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function P_e() {
- return JK();
+function L_e() {
+ return YK();
}
function mJ(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function F_e(e, t) {
- e._lastSelectedRowId = null, mJ(e, t ? JK() : Object.assign(JK(), KK(e.initialState.rowSelection ?? {})));
+function R_e(e, t) {
+ e._lastSelectedRowId = null, mJ(e, t ? YK() : Object.assign(YK(), qK(e.initialState.rowSelection ?? {})));
}
function hJ(e, t, n) {
e._lastSelectedRowId = null, mJ(e, (r) => {
- if (t = t === void 0 ? !dq(e, "getIsAllRowsSelected", vJ) : t, n?.deselectAll && !t) return JK();
- let i = Object.assign(JK(), r), a = e.getPreGroupedRowModel().flatRows;
+ if (t = t === void 0 ? !fq(e, "getIsAllRowsSelected", vJ) : t, n?.deselectAll && !t) return YK();
+ let i = Object.assign(YK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
@@ -56147,39 +56183,39 @@ function hJ(e, t, n) {
}
function gJ(e, t, n) {
e._lastSelectedRowId = null, mJ(e, (r) => {
- let i = t === void 0 ? !dq(e, "getIsAllPageRowsSelected", yJ) : t;
- if (n?.deselectAll && !i) return JK();
- let a = Object.assign(JK(), r);
+ let i = t === void 0 ? !fq(e, "getIsAllPageRowsSelected", yJ) : t;
+ if (n?.deselectAll && !i) return YK();
+ let a = Object.assign(YK(), r);
return e.getRowModel().rows.forEach((t) => {
DJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function I_e(e) {
+function z_e(e) {
return e.getCoreRowModel();
}
-function L_e(e) {
+function B_e(e) {
let t = e.getCoreRowModel();
- return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
+ return fq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: JK()
+ rowsById: YK()
};
}
-function R_e(e) {
+function V_e(e) {
let t = e.getFilteredRowModel();
- return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
+ return fq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: JK()
+ rowsById: YK()
};
}
-function z_e(e) {
+function H_e(e) {
let t = e.getSortedRowModel();
- return dq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
+ return fq(e, "getIsSomeRowsSelected", bJ) ? jJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: JK()
+ rowsById: YK()
};
}
function _J(e) {
@@ -56203,17 +56239,17 @@ function yJ(e) {
return i;
}
function bJ(e) {
- return dq(e, "getSelectedRowIds", _J).length > 0;
+ return fq(e, "getSelectedRowIds", _J).length > 0;
}
-function B_e(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => wJ(e)).some((e) => SJ(e) || dq(e, "getIsSomeSelected", CJ));
+function U_e(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => wJ(e)).some((e) => SJ(e) || fq(e, "getIsSomeSelected", CJ));
}
-function V_e(e) {
+function W_e(e) {
return (t) => {
hJ(e, t.target.checked);
};
}
-function H_e(e) {
+function G_e(e) {
return (t) => {
gJ(e, t.target.checked);
};
@@ -56222,7 +56258,7 @@ function xJ(e, t, n) {
let r = SJ(e);
mJ(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(JK(), i);
+ let a = Object.assign(YK(), i);
return DJ(a, e.id, t, (n?.selectChildren ?? !0) && EJ(e), e.table), !t && n?.deselectParents && kJ(a, e), a;
});
}
@@ -56232,7 +56268,7 @@ function SJ(e) {
function CJ(e) {
return NJ(e) === "some";
}
-function U_e(e) {
+function K_e(e) {
return NJ(e) === "all";
}
function wJ(e) {
@@ -56247,22 +56283,22 @@ function EJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function W_e(e, t) {
+function q_e(e, t) {
let n = wJ(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 && EJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !G_e(e, s, o, t)) && xJ(e, o, t), a._lastSelectedRowId = e.id;
+ (!(a.options.enableRowRangeSelection !== !1 && s !== null && EJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !J_e(e, s, o, t)) && xJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function G_e(e, t, n, r) {
+function J_e(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];
if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !EJ(s) || !EJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
return mJ(a, (e) => {
- let t = Object.assign(JK(), e);
+ let t = Object.assign(YK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
wJ(s) && EJ(s) && (DJ(t, s.id, n, i, a), !n && r?.deselectParents && kJ(t, s));
@@ -56311,14 +56347,14 @@ function AJ(e, t, n, r) {
let e = AJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- qK(t, o), t.subRows = e, i.push(t);
+ JK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
function jJ(e, t) {
- let n = [], r = JK(), i = t.atoms.rowSelection?.get() ?? {};
+ let n = [], r = YK(), i = t.atoms.rowSelection?.get() ?? {};
return {
rows: AJ(e.rows, i, n, r),
flatRows: n,
@@ -56326,7 +56362,7 @@ function jJ(e, t) {
};
}
function MJ(e, t) {
- return !!(YK(t, e.id) && t[e.id]);
+ return !!(XK(t, e.id) && t[e.id]);
}
function NJ(e) {
if (!e.subRows.length) return !1;
@@ -56351,11 +56387,11 @@ var PJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: P_e(),
+ rowSelection: L_e(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: XK("rowSelection", e),
+ onRowSelectionChange: ZK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -56366,7 +56402,7 @@ var PJ = {
}
}),
assignRowPrototype: (e, t) => {
- uq("rowSelectionFeature", e, t, {
+ dq("rowSelectionFeature", e, t, {
row_toggleSelected: { fn: (e, t, n) => xJ(e, t, n) },
row_getIsSelected: { fn: (e) => SJ(e) },
row_getIsSomeSelected: {
@@ -56378,7 +56414,7 @@ var PJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => U_e(e),
+ fn: (e) => K_e(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -56388,26 +56424,26 @@ var PJ = {
row_getCanSelect: { fn: (e) => wJ(e) },
row_getCanSelectSubRows: { fn: (e) => TJ(e) },
row_getCanMultiSelect: { fn: (e) => EJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => W_e(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => q_e(e, t) }
});
},
constructTableAPIs: (e) => {
- lq("rowSelectionFeature", e, {
+ uq("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => mJ(e, t) },
- table_resetRowSelection: { fn: (t) => F_e(e, t) },
+ table_resetRowSelection: { fn: (t) => R_e(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => hJ(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => gJ(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => I_e(e) },
+ table_getPreSelectedRowModel: { fn: () => z_e(e) },
table_getSelectedRowModel: {
- fn: () => L_e(e),
+ fn: () => B_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => R_e(e),
+ fn: () => V_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => z_e(e),
+ fn: () => H_e(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -56437,42 +56473,42 @@ var PJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => B_e(e),
+ fn: () => U_e(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => V_e(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => H_e(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => W_e(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => G_e(e) }
});
}
-}, K_e = /([0-9]+)/gm;
+}, Y_e = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function q_e(e) {
+function X_e(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 FJ = /* @__PURE__ */ q_e({ sort: (e, t) => J_e(e, t) });
-function J_e(e, t) {
+var FJ = /* @__PURE__ */ X_e({ sort: (e, t) => Z_e(e, t) });
+function Z_e(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 Y_e() {
+function Q_e() {
return [];
}
function IJ(e, t) {
- nq(e, "sorting", t);
+ rq(e, "sorting", t);
}
function LJ(e, t) {
- IJ(e, t ? [] : KK(e.initialState.sorting ?? []));
+ IJ(e, t ? [] : qK(e.initialState.sorting ?? []));
}
-function X_e(e) {
+function $_e(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && LJ(e);
}
function RJ(e) {
@@ -56483,7 +56519,7 @@ function RJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(K_e).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(Y_e).length > 1)) {
r = "alphanumeric";
break;
}
@@ -56504,7 +56540,7 @@ function zJ(e) {
}
function BJ(e) {
let t = e.table._rowModelFns.sortFns;
- return rq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? RJ(e) : t?.[e.columnDef.sortFn] ?? FJ;
+ return iq(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? RJ(e) : t?.[e.columnDef.sortFn] ?? FJ;
}
function VJ(e, t, n) {
let r = UJ(e, n && GJ(e)), i = t !== void 0;
@@ -56542,13 +56578,13 @@ function KJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function Z_e(e) {
+function eve(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function Q_e(e) {
+function tve(e) {
IJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function $_e(e) {
+function nve(e) {
let t = WJ(e);
return (n) => {
t && VJ(e, void 0, GJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -56559,7 +56595,7 @@ function $_e(e) {
var qJ = {
getInitialState(e) {
return {
- sorting: Y_e(),
+ sorting: Q_e(),
...e
};
},
@@ -56572,12 +56608,12 @@ var qJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: XK("sorting", e),
+ onSortingChange: ZK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- uq("rowSortingFeature", e, t, {
+ dq("rowSortingFeature", e, t, {
column_getAutoSortFn: { fn: (e) => RJ(e) },
column_getAutoSortDir: { fn: (e) => zJ(e) },
column_getSortFn: { fn: (e) => BJ(e) },
@@ -56587,43 +56623,43 @@ var qJ = {
column_getCanSort: { fn: (e) => WJ(e) },
column_getCanMultiSort: { fn: (e) => GJ(e) },
column_getIsSorted: { fn: (e) => KJ(e) },
- column_getSortIndex: { fn: (e) => Z_e(e) },
- column_clearSorting: { fn: (e) => Q_e(e) },
- column_getToggleSortingHandler: { fn: (e) => $_e(e) }
+ column_getSortIndex: { fn: (e) => eve(e) },
+ column_clearSorting: { fn: (e) => tve(e) },
+ column_getToggleSortingHandler: { fn: (e) => nve(e) }
});
},
constructTableAPIs(e) {
- lq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => X_e(e) },
+ uq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => $_e(e) },
table_setSorting: { fn: (t) => IJ(e, t) },
table_resetSorting: { fn: (t) => LJ(e, t) }
});
}
-}, eve = typeof window > "u" ? D.useEffect : D.useLayoutEffect;
+}, rve = typeof window > "u" ? D.useEffect : D.useLayoutEffect;
function JJ(e, t) {
let [{ table: n, rootSource: r }] = (0, D.useState)(() => {
- let t = m_e({
+ let t = __e({
...e,
features: {
- coreReactivityFeature: WK(),
+ coreReactivityFeature: GK(),
...e.features
}
});
- return t.Subscribe = ((e) => BK({
+ return t.Subscribe = ((e) => VK({
...e,
source: e.source ?? t.store
- })), t.FlexRender = mK, {
+ })), t.FlexRender = hK, {
table: t,
- rootSource: UK(t.store, NK)
+ rootSource: WK(t.store, PK)
};
}), i = n;
qq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = zK(r, t, { compare: NK });
- return eve(() => {
- r.markCommitted(o), Kq(i, a ?? null, NK);
+ let a = i.options.state, o = r.get(), s = BK(r, t, { compare: PK });
+ return rve(() => {
+ r.markCommitted(o), Kq(i, a ?? null, PK);
}), (0, D.useMemo)(() => ({
...n,
options: e,
@@ -56638,17 +56674,17 @@ function JJ(e, t) {
//#region src/react/boardui/components/base/table/table.tsx
function YJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
- className: eF("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, O.jsx)(sde, {
+ className: $P("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, O.jsx)(cde, {
ref: r,
...i,
- className: eF("bui-table", e === "sm" && "bui-table-sm", t)
+ className: $P("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/catalog-grid/catalog-table-columns.ts
-var XJ = "peach.catalog-column-widths.v1", ZJ = "peach.catalog-column-visibility.v1", tve = {
+var XJ = "peach.catalog-column-widths.v1", ZJ = "peach.catalog-column-visibility.v1", ive = {
select: {
width: 48,
min: 48,
@@ -56714,13 +56750,13 @@ var XJ = "peach.catalog-column-widths.v1", ZJ = "peach.catalog-column-visibility
min: 144,
max: 560
}
-}, nve = {
+}, ave = {
code: !1,
o: !1,
new: !1,
played: !1,
release: !1
-}, rve = {
+}, ove = {
select: "选择",
name: "作品",
dur: "时长",
@@ -56750,11 +56786,11 @@ var XJ = "peach.catalog-column-widths.v1", ZJ = "peach.catalog-column-visibility
"release"
].map((e) => ({
id: e,
- label: rve[e],
- ...tve[e],
+ label: ove[e],
+ ...ive[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: nve[e] !== !1
+ visible: ave[e] !== !1
}));
function $J(e) {
try {
@@ -56764,7 +56800,7 @@ function $J(e) {
return {};
}
}
-function ive() {
+function sve() {
let e = $J(XJ), t = $J(ZJ);
return QJ.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);
@@ -56786,23 +56822,23 @@ function tY() {
return !1;
}
}
-function ave(e) {
+function cve(e) {
try {
e ? localStorage.setItem(eY, "1") : localStorage.removeItem(eY);
} catch {}
}
-var ove = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var lve = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
//#endregion
//#region src/catalog-content-skeleton.ts
function nY(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 sve(e) {
- let t = ive(), 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>${nY(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>` + (tY() ? ove : "") + `<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 uve(e) {
+ let t = sve(), 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>${nY(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>` + (tY() ? lve : "") + `<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 rY(e, t) {
- return fM() === "list" ? sve(e) : _s(e, {
+ return dM() === "list" ? uve(e) : _s(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -56824,9 +56860,9 @@ function iY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && NW(e, r) && n(r.dataset.key);
+ r && PW(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, O.jsx)(ade, {
+ children: r ? /* @__PURE__ */ (0, O.jsx)(ode, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -56837,7 +56873,7 @@ function iY({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
//#endregion
//#region src/react/components/select.tsx
function aY({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, O.jsx)(dU, {
+ if (e == null) return /* @__PURE__ */ (0, O.jsx)(uU, {
...r,
size: n,
renderValue: t
@@ -56847,7 +56883,7 @@ function aY({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, O.jsx)(dU, {
+ return /* @__PURE__ */ (0, O.jsx)(uU, {
...r,
size: n,
renderValue: a
@@ -56909,10 +56945,10 @@ function sY({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, O.jsx)(fU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(dU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ }), t.map((e) => /* @__PURE__ */ (0, O.jsx)(dU, {
id: e.id,
children: e.label
}, e.id))]
@@ -56920,7 +56956,7 @@ function sY({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: TU,
+ leadingIcon: wU,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -56957,7 +56993,7 @@ function cY({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
20,
50,
100
- ].map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ ].map((e) => /* @__PURE__ */ (0, O.jsx)(dU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
@@ -56988,7 +57024,7 @@ function uY(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function cve(e, t) {
+function dve(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];
@@ -57020,7 +57056,7 @@ function cve(e, t) {
}
};
}
-function lve(e, t, n, r = {}) {
+function fve(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]))
@@ -57039,7 +57075,7 @@ function dY(e, t, n) {
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = cve(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = lve(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 = dve(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = fve(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,
@@ -57059,7 +57095,7 @@ function dY(e, t, n) {
}
//#endregion
//#region src/react/catalog-grid/catalog-column-widths.ts
-function uve() {
+function pve() {
return dY("catalog", QJ, {
widths: XJ,
visibility: ZJ
@@ -57067,7 +57103,7 @@ function uve() {
}
//#endregion
//#region src/react/components/rating-stars.tsx
-var fY = Rz("star");
+var fY = Lz("star");
function pY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, O.jsx)("span", {
@@ -57108,9 +57144,9 @@ function pY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-table-controls.tsx
-function dve({ item: e, actions: t }) {
- let { rating: n } = e, r = AH(), i = (0, D.useRef)(0), a = IM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- NM(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
+function mve({ item: e, actions: t }) {
+ let { rating: n } = e, r = kH(), i = (0, D.useRef)(0), a = FM(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ MM(e.id, { rating: t }), U.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -57126,7 +57162,7 @@ function dve({ item: e, actions: t }) {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }), r.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -57171,18 +57207,18 @@ function hY({ preferences: e, label: t = "表格" }) {
onClick: () => i(!0),
children: "显示列"
}),
- /* @__PURE__ */ (0, O.jsx)(rR, {
+ /* @__PURE__ */ (0, O.jsx)(nR, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: `${XB} overscroll-contain`,
- children: /* @__PURE__ */ (0, O.jsxs)(CH, {
+ className: `${YB} overscroll-contain`,
+ children: /* @__PURE__ */ (0, O.jsxs)(SH, {
"aria-label": `${t}显示列`,
className: "flex w-48 flex-col gap-2 outline-none",
children: [
- a.map((t) => /* @__PURE__ */ (0, O.jsx)(rV, {
+ a.map((t) => /* @__PURE__ */ (0, O.jsx)(nV, {
isSelected: e.visibility[t.id] !== !1,
onChange: (n) => e.change((e) => ({
...e,
@@ -57216,7 +57252,7 @@ function hY({ preferences: e, label: t = "表格" }) {
}
function gY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, O.jsx)(gde, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, O.jsx)(_de, { "aria-label": `调整${n.label}列宽` }) : null;
}
//#endregion
//#region src/react/components/table-selection-header.tsx
@@ -57229,7 +57265,7 @@ function _Y(e, t) {
}
function vY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = _Y(e, n);
- return /* @__PURE__ */ (0, O.jsx)(rV, {
+ return /* @__PURE__ */ (0, O.jsx)(nV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -57243,12 +57279,12 @@ function vY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
}
//#endregion
//#region src/react/catalog-grid/catalog-list-page.tsx
-var fve = Yq({
+var hve = Yq({
rowSortingFeature: qJ,
rowSelectionFeature: PJ,
rowPaginationFeature: pJ,
columnVisibilityFeature: rJ
-}), pve = [
+}), gve = [
{
id: "name",
label: "名称"
@@ -57286,8 +57322,8 @@ var fve = Yq({
label: "观看时间"
}
], yY = /* @__PURE__ */ new Map();
-function mve(e) {
- let t = uve(), n = jW(), r = gM(e.filters || {}, !1), [i] = (0, D.useState)(() => {
+function _ve(e) {
+ let t = pve(), n = MW(), r = hM(e.filters || {}, !1), [i] = (0, D.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, D.useState)(() => yY.get(i) || {
@@ -57324,9 +57360,9 @@ function mve(e) {
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);
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : sK(f, e.layout.javImage), [h] = (0, D.useState)(tY);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : cK(f, e.layout.javImage), [h] = (0, D.useState)(tY);
(0, D.useEffect)(() => {
- d.data && !d.isPlaceholderData && ave(m.length > 0);
+ d.data && !d.isPlaceholderData && cve(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -57359,7 +57395,7 @@ function mve(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = JJ({
- features: fve,
+ features: hve,
columns: (0, D.useMemo)(() => {
let t = Jq();
return t.columns([
@@ -57370,7 +57406,7 @@ function mve(e) {
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(rV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(nV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -57382,7 +57418,7 @@ function mve(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(hve, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(vve, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -57439,7 +57475,7 @@ function mve(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(dve, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, O.jsx)(mve, {
item: t.original,
actions: e.actions
})
@@ -57528,7 +57564,7 @@ function mve(e) {
"data-toolbar-actions": "",
children: [/* @__PURE__ */ (0, O.jsx)(hY, { preferences: t }), /* @__PURE__ */ (0, O.jsx)(sY, {
label: "作品列表",
- options: pve,
+ options: gve,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -57538,11 +57574,11 @@ function mve(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, O.jsx)(cK, {
+ }) : null : /* @__PURE__ */ (0, O.jsx)(lK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ d.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(d.error),
onRetry: () => void d.refetch()
}) : null,
@@ -57563,42 +57599,42 @@ function mve(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, O.jsxs)(GR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(KR, {
+ children: [/* @__PURE__ */ (0, O.jsxs)(WR, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(GR, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [pK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [mK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, O.jsx)(qB, {})
+ children: /* @__PURE__ */ (0, O.jsx)(KB, {})
}) : null]
}), /* @__PURE__ */ (0, O.jsx)(gY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, O.jsx)(KR, {
+ }, e.id)), /* @__PURE__ */ (0, O.jsx)(GR, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, O.jsx)(YR, {
+ })] }), /* @__PURE__ */ (0, O.jsx)(JR, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)(QR, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, O.jsxs)(ZR, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)(ez, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: nY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)(ez, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.jsxs)(QR, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, O.jsx)($R, { children: /* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: nY(e.id) } }) }, e.id)), /* @__PURE__ */ (0, O.jsx)($R, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, O.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, O.jsx)(ez, { children: pK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)(ez, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, O.jsx)($R, { children: mK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, O.jsx)($R, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -57614,8 +57650,8 @@ function mve(e) {
]
});
}
-function hve({ item: e, props: t, disabled: n }) {
- let r = Ga(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 } = UW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = jW({ 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, O.jsx)("svg", {
+function vve({ item: e, props: t, disabled: n }) {
+ let r = Ga(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 } = WW(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = MW({ 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, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
@@ -57640,7 +57676,7 @@ function hve({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ r.html ? /* @__PURE__ */ (0, O.jsx)(fW, {
artwork: r,
relayout: (e) => tl(e, "small")
}) : /* @__PURE__ */ (0, O.jsx)("span", { children: "无预览" }),
@@ -57695,7 +57731,7 @@ function hve({ item: e, props: t, disabled: n }) {
children: [p?.name ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${p.name}`,
- children: [/* @__PURE__ */ (0, O.jsx)(qH, { mark: p.icon }), p.name]
+ children: [/* @__PURE__ */ (0, O.jsx)(KH, { mark: p.icon }), p.name]
}) : null, u]
})]
})
@@ -57705,12 +57741,12 @@ function hve({ item: e, props: t, disabled: n }) {
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
function bY(e) {
- let t = hM();
- if (e.mode === "items") return /* @__PURE__ */ (0, O.jsx)(_ve, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${gM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, O.jsx)(mve, { ...e }, n) : /* @__PURE__ */ (0, O.jsx)(vve, { ...e }, n);
+ let t = mM();
+ if (e.mode === "items") return /* @__PURE__ */ (0, O.jsx)(bve, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${hM(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return t === "list" && !e.wall ? /* @__PURE__ */ (0, O.jsx)(_ve, { ...e }, n) : /* @__PURE__ */ (0, O.jsx)(xve, { ...e }, n);
}
-function gve({ name: e }) {
+function yve({ name: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57733,8 +57769,8 @@ function xY({ children: e, selectMode: t }) {
children: e
});
}
-function _ve(e) {
- let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(ZW, {
+function bve(e) {
+ let { actions: t } = e, n = (0, D.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, O.jsx)(QW, {
item: i,
variant: r,
layout: e.layout,
@@ -57753,8 +57789,8 @@ function _ve(e) {
children: i
});
}
-function vve(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? CM(e) : SM(e), [s] = (0, D.useState)(() => e.wall ? TM(o.queryKey) : void 0), c = s || (i && e.initial ? {
+function xve(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? SM(e) : xM(e), [s] = (0, D.useState)(() => e.wall ? wM(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -57775,7 +57811,7 @@ function vve(e) {
(0, D.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => kM(l.data?.pages || [], {
+ let { tiles: d, pageStarts: f } = (0, D.useMemo)(() => OM(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -57785,7 +57821,7 @@ function vve(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 || LG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && OG(e.item) ? [e.item] : []), v = a ? [] : sK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = lW(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = yve(e, l.data, d, f, b);
+ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || RG(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && kG(e.item) ? [e.item] : []), v = a ? [] : cK(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = uW(l.isPending, e.skeletonHtml), b = (0, D.useRef)(null), x = Sve(e, l.data, d, f, b);
(0, D.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@ -57812,12 +57848,12 @@ function vve(e) {
let C = (0, D.useCallback)((e, t) => n.open(e, t), [n]), w = (0, D.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, D.useCallback)((e) => n.openShort(e), [n]), E = (0, D.useCallback)(async () => {
let e = await l.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)(xve, {
+ }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)(wve, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(ZW, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, O.jsx)(QW, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -57835,10 +57871,10 @@ function vve(e) {
"data-grid-reveal": y.fading ? "" : void 0,
children: [
!e.wall && y.layer,
- /* @__PURE__ */ (0, O.jsx)(cK, { assetIds: v }),
+ /* @__PURE__ */ (0, O.jsx)(lK, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)($G, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${gM(e.filters || {}, !!e.excludeVertical)}`,
+ if (g && e.wall) return /* @__PURE__ */ (0, O.jsx)(eK, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${hM(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
@@ -57846,7 +57882,7 @@ function vve(e) {
loading: l.isPending || !l.data && l.isFetching,
error: !l.data && !l.isPending ? Ut(l.error) : "",
retry: () => void l.refetch(),
- emptyHtml: l.data && !_.length ? iK({
+ emptyHtml: l.data && !_.length ? aK({
libraryEmpty: !!l.data.pages[0]?.libraryEmpty,
matches: m,
hasMore: !!l.hasNextPage,
@@ -57861,7 +57897,7 @@ function vve(e) {
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, O.jsx)(uW, {
+ if (!l.data) return /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(l.error),
onRetry: () => void l.refetch()
});
@@ -57878,7 +57914,7 @@ function vve(e) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: MM(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(xY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(bve, {
+ children: jM(d, x).map((t) => /* @__PURE__ */ (0, O.jsxs)(D.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(xY, { children: t.tiles.map(k) }), t.strip ? /* @__PURE__ */ (0, O.jsx)(Cve, {
cut: t.strip,
props: e,
onOpen: T
@@ -57934,7 +57970,7 @@ function SY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: cW });
+ }, { rootMargin: lW });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -57957,12 +57993,12 @@ function SY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: is(rs) }
- }), c.error ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ }), c.error ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function yve(e, t, n, r, i) {
+function Sve(e, t, n, r, i) {
let [a, o] = (0, D.useState)([]), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(0), u = (0, D.useRef)(0), d = (0, D.useRef)({
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
@@ -57974,7 +58010,7 @@ function yve(e, t, n, r, i) {
let r = new AbortController();
f.current.push(r);
let i = n - 1;
- V(`/api/items?${jM(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ V(`/api/items?${AM(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@ -57986,9 +58022,9 @@ function yve(e, t, n, r, i) {
}, [t]), (0, D.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 = AM(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 = kM(n.length - t, m, p);
if (!h.length) return;
- let g = EM(s.items, d.current, e.groupCollapse !== !1);
+ let g = TM(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, {
@@ -57998,7 +58034,7 @@ function yve(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function bve({ cut: e, props: t, onOpen: n }) {
+function Cve({ cut: e, props: t, onOpen: n }) {
let r = (0, D.useRef)(null), { wireDrag: i } = t;
return (0, D.useEffect)(() => {
r.current && i(r.current);
@@ -58014,12 +58050,12 @@ function bve({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, O.jsx)(gve, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, O.jsx)(yve, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, O.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(ZW, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, O.jsx)(QW, {
item: e,
variant: "short",
layout: t.layout,
@@ -58037,14 +58073,14 @@ function bve({ cut: e, props: t, onOpen: n }) {
function CY(e, t, n) {
return Ka(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function xve({ seed: e, layout: t, helpers: n, actions: r }) {
+function wve({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, D.useRef)(/* @__PURE__ */ new Map()), a = (0, D.useRef)(t);
a.current = t;
let o = Qa(e, n.tagLabel), s = (0, D.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => DM(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => EM(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), CY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = CY(e, t, !1);
- return /* @__PURE__ */ (0, O.jsx)(sG, {
+ return /* @__PURE__ */ (0, O.jsx)(cG, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -58059,7 +58095,7 @@ function xve({ seed: e, layout: t, helpers: n, actions: r }) {
size: "small"
}, !1).html,
relayoutArt: (e) => tl(e, c),
- ratio: HW(e, "grid", t),
+ ratio: UW(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -58077,31 +58113,31 @@ async function wY(e) {
queryFn: () => Vn(e)
});
}
-var Sve = (e) => (e?.sources ?? []).filter((e) => Bt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Cve = "/api/duplicates?limit=120", TY = ["duplicates"], EY = "/api/batch", DY = (e) => V(Cve, e), wve = /[\s\-_.()[\]【】/\\]/;
-function Tve(e) {
+var Tve = (e) => (e?.sources ?? []).filter((e) => Bt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Eve = "/api/duplicates?limit=120", TY = ["duplicates"], EY = "/api/batch", DY = (e) => V(Eve, e), Dve = /[\s\-_.()[\]【】/\\]/;
+function Ove(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 && !wve.test(n[r - 1]);) --r;
+ for (; r > 0 && !Dve.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Eve = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Dve(e) {
+var kve = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Ave(e) {
await Promise.all([U.fetchQuery({
queryKey: TY,
queryFn: () => DY(e)
}), wY(e)]);
}
-var Ove = {
+var jve = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, kve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), OY = (e, t) => kve(e, t).filter((t) => e.some((e) => e.location !== t)), Ave = (e, t) => t.filter((t) => e.some((e) => OY(e.files, [t]).length));
-function jve(e, t) {
+}, Mve = (e, t) => t.filter((t) => e.some((e) => e.location === t)), OY = (e, t) => Mve(e, t).filter((t) => e.some((e) => e.location !== t)), Nve = (e, t) => t.filter((t) => e.some((e) => OY(e.files, [t]).length));
+function Pve(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -58120,11 +58156,11 @@ function jve(e, t) {
}
return n;
}
-function Mve(e, t) {
+function Fve(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 Nve(e, t) {
+async function Ive(e, t) {
for (let n = 0; n < e.length; n += 200) await H(EY, {
ids: e.slice(n, n + 200),
operation: t,
@@ -58133,7 +58169,7 @@ async function Nve(e, t) {
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var kY = "/api/media-repair", AY = ["media-repair"], jY = ["media-repair", "libraries"], Pve = {
+var kY = "/api/media-repair", AY = ["media-repair"], jY = ["media-repair", "libraries"], Lve = {
status: "idle",
library: "",
stage: "",
@@ -58146,7 +58182,7 @@ var kY = "/api/media-repair", AY = ["media-repair"], jY = ["media-repair", "libr
skipped: 0,
message: ""
}, MY = (e) => V(kY, e), NY = async (e) => (await V("/api/libraries", e)).libraries || [];
-async function Fve(e) {
+async function Rve(e) {
await Promise.all([U.fetchQuery({
queryKey: AY,
queryFn: () => MY(e)
@@ -58156,21 +58192,21 @@ async function Fve(e) {
})]);
}
var PY = (e) => Number(e).toLocaleString();
-function Ive(e) {
+function zve(e) {
if (e.status === "running") {
let t = e.total ? `${PY(Math.min(e.checked || 0, e.total))} / ${PY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${PY(e.repaired)} 部,${PY(e.failed)} 部修不了` : `修好 ${PY(e.repaired)} 部` : "";
}
-var Lve = (e) => `${PY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Rve = "/api/quality-goals?limit=200", FY = ["quality-goals"], IY = (e) => V(Rve, e);
-async function zve(e) {
+var Bve = (e) => `${PY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Vve = "/api/quality-goals?limit=200", FY = ["quality-goals"], IY = (e) => V(Vve, e);
+async function Hve(e) {
await U.fetchQuery({
queryKey: FY,
queryFn: () => IY(e)
});
}
-var Bve = (e) => e.has_cover ? Aa(e) : `/poster?id=${e.id}&c=4`;
+var Uve = (e) => e.has_cover ? Aa(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
function LY(e, t, n, r, i, a = i || !e.has(r)) {
@@ -58179,7 +58215,7 @@ function LY(e, t, n, r, i, a = i || !e.has(r)) {
}
//#endregion
//#region src/react/review/review.ts
-var Vve = "/api/review", Hve = "/api/review/decision", Uve = "/api/review/genre", RY = ["review"], zY = {
+var Wve = "/api/review", Gve = "/api/review/decision", Kve = "/api/review/genre", RY = ["review"], zY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -58189,11 +58225,11 @@ var Vve = "/api/review", Hve = "/api/review/decision", Uve = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Wve = Object.keys(zY), Gve = "metadata_fields", BY = (e) => typeof e == "string" && Object.hasOwn(zY, e), Kve = {
+}, qve = Object.keys(zY), Jve = "metadata_fields", BY = (e) => typeof e == "string" && Object.hasOwn(zY, e), Yve = {
creator_tags: "creator",
western_identity: "creator"
};
-function qve(e, t) {
+function Xve(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;
}
@@ -58214,10 +58250,10 @@ function VY(e, t) {
}
return [...n.values()];
}
-function Jve(e, t, n) {
+function Zve(e, t, n) {
return n && VY(e, t).find((e) => e.key === n)?.rows || e;
}
-function Yve(e, t) {
+function Qve(e, t) {
let n = Ln(e.length, 20), r = Rn(t, n);
return {
page: r,
@@ -58225,32 +58261,32 @@ function Yve(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function Xve(e) {
+function $ve(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 Zve(e, t, n, r, i, a) {
+function eye(e, t, n, r, i, a) {
return LY(e, t, n, r, i, a);
}
-function Qve(e, t) {
+function tye(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function HY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var UY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function $ve(e, t) {
+function nye(e, t) {
let n = HY(e, t), r = UY(e, t);
return r ? `${n} · ${r}` : n;
}
-var eye = (e) => e.reason || e.evidence || e.note || e.decision_note || "", tye = (e) => String(e.tags || "").split("|").filter(Boolean), nye = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function rye(e) {
+var rye = (e) => e.reason || e.evidence || e.note || e.decision_note || "", iye = (e) => String(e.tags || "").split("|").filter(Boolean), aye = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function oye(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function iye(e, t, n, r) {
+function sye(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -58266,9 +58302,9 @@ function iye(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var aye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", WY = (e) => V(Vve, e);
-async function oye(e) {
- let t = await H(Hve, e);
+var cye = (e) => e === "approved" ? "已通过资料" : e === "rejected" ? "已拒绝资料" : "已跳过资料", WY = (e) => V(Wve, e);
+async function lye(e) {
+ let t = await H(Gve, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
U.setQueryData(RY, (t) => t && {
@@ -58287,20 +58323,20 @@ async function oye(e) {
}
return t;
}
-function sye(e, t) {
+function uye(e, t) {
return U.getQueryData(RY)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
}
-var cye = (e, t) => H(Uve, {
+var dye = (e, t) => H(Kve, {
genre: e,
tag: t
});
-async function lye(e) {
+async function fye(e) {
await U.fetchQuery({
queryKey: RY,
queryFn: () => WY(e)
});
}
-function uye(e, t) {
+function pye(e, t) {
let n = new Set(t);
n.size && U.setQueryData(RY, (t) => {
if (!t) return t;
@@ -58318,16 +58354,16 @@ function uye(e, t) {
};
});
}
-var dye = () => U.invalidateQueries({
+var mye = () => U.invalidateQueries({
queryKey: RY,
exact: !0
});
-function fye(e, t) {
+function hye(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Wn(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var pye = "/api/links", GY = "/api/links/check", KY = "/api/links/prune", qY = ["links"], JY = ["links", "check"], YY = ["links", "prune"], mye = {
+var gye = "/api/links", GY = "/api/links/check", KY = "/api/links/prune", qY = ["links"], JY = ["links", "check"], YY = ["links", "prune"], _ye = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -58338,23 +58374,23 @@ async function XY(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var ZY = (e) => V(pye, e), QY = (e) => H(GY, { status_only: !0 }, "POST", e), hye = ({ retry: e, checkId: t }) => XY(H(GY, e ? {
+var ZY = (e) => V(gye, e), QY = (e) => H(GY, { status_only: !0 }, "POST", e), vye = ({ retry: e, checkId: t }) => XY(H(GY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), $Y = (e) => V(KY, e), gye = ({ checkId: e, ids: t }) => XY(H(KY, {
+} : { restart: !0 })), $Y = (e) => V(KY, e), yye = ({ checkId: e, ids: t }) => XY(H(KY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), eX = (e) => Number(e || 0).toLocaleString(), _ye = (e) => `已删除 ${eX(e.removed)} 条;${e.marked ? `已隐退女优的 ${eX(e.marked)} 条留作不可点的记录;` : ""}保留 ${eX(e.recovered)} 条未确认失效的链接。`;
-function vye(e) {
+})), eX = (e) => Number(e || 0).toLocaleString(), bye = (e) => `已删除 ${eX(e.removed)} 条;${e.marked ? `已隐退女优的 ${eX(e.marked)} 条留作不可点的记录;` : ""}保留 ${eX(e.recovered)} 条未确认失效的链接。`;
+function xye(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${eX(e.checked)} / ${eX(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/configuration-endpoints.ts
-var tX = "/api/configuration", nX = "/api/pick-folder", rX = "/api/settings", iX = "/api/follow/schedule", aX = "/api/feeds/schedule", oX = "/api/thumbnail-jobs", sX = ["settings"], cX = ["follow-schedule"], lX = ["feed-schedule"], uX = ["thumbnail-jobs"], dX = "/api/media-processing", yye = ["media-processing"], bye = (e) => V(dX, e), fX = (e) => V(rX, e), xye = (e) => V(iX, e), Sye = (e) => V(aX, e), Cye = (e) => V(oX, e);
-function wye(e = U) {
+var tX = "/api/configuration", nX = "/api/pick-folder", rX = "/api/settings", iX = "/api/follow/schedule", aX = "/api/feeds/schedule", oX = "/api/thumbnail-jobs", sX = ["settings"], cX = ["follow-schedule"], lX = ["feed-schedule"], uX = ["thumbnail-jobs"], dX = "/api/media-processing", Sye = ["media-processing"], Cye = (e) => V(dX, e), fX = (e) => V(rX, e), wye = (e) => V(iX, e), Tye = (e) => V(aX, e), Eye = (e) => V(oX, e);
+function Dye(e = U) {
return e.fetchQuery({
queryKey: sX,
queryFn: ({ signal: e }) => fX(e),
@@ -58367,7 +58403,7 @@ function pX() {
onSuccess: (e) => U.setQueryData(sX, e)
});
}
-function Tye() {
+function Oye() {
return Ct({
mutationFn: (e) => H(iX, {
enabled: e > 0,
@@ -58376,7 +58412,7 @@ function Tye() {
onSuccess: (e) => U.setQueryData(cX, e)
});
}
-var Eye = {
+var kye = {
follow: {
url: `${iX}/run`,
key: cX
@@ -58386,15 +58422,15 @@ var Eye = {
key: lX
}
};
-function Dye(e) {
- let { url: t, key: n } = Eye[e];
+function Aye(e) {
+ let { url: t, key: n } = kye[e];
return Ct({
mutationFn: () => H(t, {}),
onSuccess: (e) => U.setQueryData(n, e)
});
}
-var Oye = (e) => e?.running ? 3e3 : !1;
-function kye() {
+var jye = (e) => e?.running ? 3e3 : !1;
+function Mye() {
return Ct({
mutationFn: (e) => H(oX, { mode: e }),
onSuccess: (e) => U.setQueryData(uX, e)
@@ -58402,21 +58438,21 @@ function kye() {
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Aye = "/api/organize", jye = "/api/organize/preview", Mye = "/api/organize/apply", Nye = "/api/organize/rollback", mX = ["organize"], Pye = "/api/organize/example", Fye = (e, t, n) => V(`${Pye}?${new URLSearchParams({
+var Nye = "/api/organize", Pye = "/api/organize/preview", Fye = "/api/organize/apply", Iye = "/api/organize/rollback", mX = ["organize"], Lye = "/api/organize/example", Rye = (e, t, n) => V(`${Lye}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), hX = (e) => V(Aye, e);
-async function Iye(e) {
+})}`, n), hX = (e) => V(Nye, e);
+async function zye(e) {
await U.fetchQuery({
queryKey: mX,
queryFn: () => hX(e)
});
}
-var Lye = (e) => H(jye, e), Rye = (e) => H(nX, { initial: e }), zye = (e) => e.kind === "apply" ? H(Mye, {
+var Bye = (e) => H(Pye, e), Vye = (e) => H(nX, { initial: e }), Hye = (e) => e.kind === "apply" ? H(Fye, {
...e.request,
confirm: !0
-}) : H(Nye, { confirm: !0 });
-async function Bye(e) {
+}) : H(Iye, { confirm: !0 });
+async function Uye(e) {
U.setQueryData(mX, (t) => t && {
...t,
templates: e
@@ -58425,20 +58461,20 @@ async function Bye(e) {
await H(rX, { organizeTemplates: e });
} catch {}
}
-var Vye = (e, t) => e && {
+var Wye = (e, t) => e && {
...e,
...t
-}, Hye = /目录模板|分隔符|盘符|`\.`/;
-function Uye(e) {
+}, Gye = /目录模板|分隔符|盘符|`\.`/;
+function Kye(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var gX = (e) => Number(e || 0).toLocaleString();
-function Wye(e) {
+function qye(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${gX(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${gX(e.counts.change)} 个文件会改名或移动,${gX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Gye(e) {
+function Jye(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${gX(r)} 个文件${n ? `,${gX(n)} 行未能退回` : ""}。` : `已整理 ${gX(r)} 个文件${n ? `,${gX(n)} 行未能处理` : ""}。`,
@@ -58448,36 +58484,36 @@ function Gye(e) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var Kye = "/api/orphan-records", qye = "/api/orphan-records/attach", _X = ["orphan-records"], Jye = [
+var Yye = "/api/orphan-records", Xye = "/api/orphan-records/attach", _X = ["orphan-records"], Zye = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], vX = (e) => V(Kye, e), Yye = (e, t) => H(qye, {
+], vX = (e) => V(Yye, e), Qye = (e, t) => H(Xye, {
id: e,
target: t
-}), Xye = (e) => H(EY, {
+}), $ye = (e) => H(EY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), Zye = (e) => [
+}), ebe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], Qye = (e) => [...Jye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zye(e)].filter(Boolean).join(" · "), $ye = (e) => e ? `${Math.round(e / 60)} 分钟` : "", ebe = (e) => [e.name, $ye(e.duration)].filter(Boolean).join(" · "), yX = "/api/resource-sync/scan", bX = "/api/resource-sync/apply", xX = ["resource-sync", "scan"], SX = ["resource-sync", "apply"], CX = (e) => H(yX, {
+], tbe = (e) => [...Zye.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...ebe(e)].filter(Boolean).join(" · "), nbe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", rbe = (e) => [e.name, nbe(e.duration)].filter(Boolean).join(" · "), yX = "/api/resource-sync/scan", bX = "/api/resource-sync/apply", xX = ["resource-sync", "scan"], SX = ["resource-sync", "apply"], CX = (e) => H(yX, {
background: !0,
status_only: !0
-}, "POST", e), tbe = () => H(yX, {
+}, "POST", e), ibe = () => H(yX, {
background: !0,
restart: !0
-}), wX = (e) => V(bX, e), nbe = (e) => H(bX, {
+}), wX = (e) => V(bX, e), abe = (e) => H(bX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
}), TX = (e) => (e?.sources ?? []).some((e) => zt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function rbe(e) {
+async function obe(e) {
TX(U.getQueryData(Bn)) && await Promise.all([U.fetchQuery({
queryKey: xX,
queryFn: () => CX(e)
@@ -58486,7 +58522,7 @@ async function rbe(e) {
queryFn: () => wX(e)
})]);
}
-var ibe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), EX = (e) => Number(e || 0).toLocaleString(), abe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", DX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), OX = (e) => e.vanish ? `${EX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", kX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", obe = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录和 ${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。${kX(e)}${OX(e)}`, sbe = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录(含回收站里的)、${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。来源根目录保留。${kX(e)}${OX(e)}`, cbe = (e) => e.online ? [
+var sbe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), EX = (e) => Number(e || 0).toLocaleString(), cbe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", DX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), OX = (e) => e.vanish ? `${EX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", kX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", lbe = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录和 ${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。${kX(e)}${OX(e)}`, ube = (e) => `将永久删除文件已不在盘上的 ${EX(DX(e))} 条记录(含回收站里的)、${EX(e.empty)} 个空文件夹,并清理 ${EX(e.cache?.files)} 个闲置缓存。来源根目录保留。${kX(e)}${OX(e)}`, dbe = (e) => e.online ? [
`找不到文件 · 共 ${EX(e.total)} 项`,
e.vanish ? `${EX(e.vanish)} 项带个人记录` : "",
e.empty ? `空文件夹 ${EX(e.empty)} 个` : ""
@@ -58503,33 +58539,33 @@ function AX(e) {
].filter(Boolean).join(",")
};
}
-var lbe = (e, t) => {
+var fbe = (e, t) => {
let { rest: n } = AX(e), r = `已永久删除 ${EX(e.purged)} 条失效记录和 ${EX(e.dirs_removed)} 个空文件夹,清理 ${EX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${EX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${EX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, ube = "/api/review?counts=1", jX = ["review", "counts"], dbe = "/api/ads?limit=1", MX = ["junk-summary"], NX = "/api/items?state=trash&limit=1", PX = ["trash-summary"], fbe = [
+}, pbe = "/api/review?counts=1", jX = ["review", "counts"], mbe = "/api/ads?limit=1", MX = ["junk-summary"], NX = "/api/items?state=trash&limit=1", PX = ["trash-summary"], hbe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], FX = (e) => V(ube, e), IX = (e) => V(dbe, e), LX = (e) => {
+], FX = (e) => V(pbe, e), IX = (e) => V(mbe, e), LX = (e) => {
let t = sessionStorage.getItem("peach.library");
return V(t ? `${NX}&library=${encodeURIComponent(t)}` : NX, e);
}, RX = (e) => Number(e || 0).toLocaleString();
-function pbe(e) {
+function gbe(e) {
let t = zY, 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 mbe(e) {
+function _be(e) {
if (!e) return "";
- let t = fbe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${RX(e.counts[t])}`);
+ let t = hbe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${RX(e.counts[t])}`);
return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${RX(e.dismissed_total)}`), t.join(" · ");
}
-var hbe = [
+var vbe = [
[jX, ({ signal: e }) => FX(e)],
[FY, ({ signal: e }) => IY(e)],
[PX, ({ signal: e }) => LX(e)],
@@ -58538,8 +58574,8 @@ var hbe = [
[YY, ({ signal: e }) => $Y(e)],
[_X, ({ signal: e }) => vX(e)]
];
-async function gbe(e) {
- let t = !!location.hash, n = hbe.map(([n, r]) => {
+async function ybe(e) {
+ let t = !!location.hash, n = vbe.map(([n, r]) => {
if (t) return U.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -58559,16 +58595,16 @@ async function gbe(e) {
queryKey: TY,
queryFn: () => DY(e)
}),
- wY(e).then(() => rbe(e)),
- mH(e),
- Fve(e),
- Iye(e)
+ wY(e).then(() => obe(e)),
+ pH(e),
+ Rve(e),
+ zye(e)
]);
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var zX = (e) => ["feed-new", e ?? "home"], _be = 8, vbe = 1500;
-function ybe(e, t, n) {
+var zX = (e) => ["feed-new", e ?? "home"], bbe = 8, xbe = 1500;
+function Sbe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -58579,11 +58615,11 @@ function ybe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function bbe(e, t, n) {
- let r = new URLSearchParams({ limit: String(iA().value.feedLimit) });
+async function Cbe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(rA().value.feedLimit) });
e && r.set("entity", String(e));
let i = await z(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await ybe(s, _be, vbe), {
+ return n && o.length && await Sbe(s, bbe, xbe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
@@ -58591,7 +58627,7 @@ async function bbe(e, t, n) {
}
var BX = (e, t, n = !1) => ({
queryKey: zX(e),
- queryFn: () => bbe(e, t, n),
+ queryFn: () => Cbe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
}), VX = (e, t) => z("/api/feeds/discovery", {
@@ -58601,7 +58637,7 @@ var BX = (e, t, n = !1) => ({
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function xbe(e) {
+async function wbe(e) {
U.removeQueries({ queryKey: zX(null) }), await U.fetchQuery(BX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
@@ -58626,7 +58662,7 @@ var HX = [
"entity",
e,
t
-], Sbe = (e, t, n, r) => [
+], Tbe = (e, t, n, r) => [
"entity-items",
e,
t,
@@ -58638,7 +58674,7 @@ var HX = [
t,
n,
r
-], KX = (e) => String(e || "").split(",").filter(Boolean), Cbe = (e, t) => KX(e).includes(t);
+], KX = (e) => String(e || "").split(",").filter(Boolean), Ebe = (e, t) => KX(e).includes(t);
function qX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...KX(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");
@@ -58655,7 +58691,7 @@ var YX = (e) => {
seed: e.seed
}, n = qX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Sbe(e.kind, e.name, n, e.revision),
+ queryKey: Tbe(e.kind, e.name, n, e.revision),
queryFn: ({ signal: n }) => JX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
@@ -58664,7 +58700,7 @@ var YX = (e) => {
queryFn: ({ signal: n }) => z(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function wbe(e, t, n, r, i, a) {
+function Dbe(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)}` : ""}`;
@@ -58676,7 +58712,7 @@ function wbe(e, t, n, r, i, a) {
var ZX = (e, t, n, r) => ({
queryKey: GX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await z(wbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await z(Dbe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -58690,7 +58726,7 @@ var ZX = (e, t, n, r) => ({
} : void 0,
staleTime: Infinity
}), QX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Tbe(e) {
+async function Obe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -58718,7 +58754,7 @@ var $X = [
["blogger", "网黄博主"],
["animation", "动画作者"]
], eZ = "mb-4 flex flex-wrap gap-2";
-function Ebe(e) {
+function kbe(e) {
let t = $X.some(([t]) => t === e) ? e : "all";
return `<div class="peach-react"><div aria-label="身份分类" class="${eZ}">${$X.map(([e, n]) => Wo({
variant: e === t ? "primary" : "secondary",
@@ -58729,38 +58765,38 @@ function Ebe(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Dbe = "/api/follow/authors", Obe = "/api/follow/tags", kbe = (e) => [
+var Abe = "/api/follow/authors", jbe = "/api/follow/tags", Mbe = (e) => [
"follow",
"authors",
e
-], Abe = (e, t) => [
+], Nbe = (e, t) => [
"follow",
"tags",
e,
t
];
-function jbe(e, t, n) {
+function Pbe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Dbe}?${r}`;
+ return e && r.set("q", e), `${Abe}?${r}`;
}
-function Mbe(e, t, n, r) {
+function Fbe(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), `${Obe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${jbe}?${i}`;
}
-var Nbe = (e, t, n, r) => V(jbe(e, t, n), r), Pbe = (e, t, n, r, i) => V(Mbe(e, t, n, r), i), Fbe = "/api/index", tZ = {
+var Ibe = (e, t, n, r) => V(Pbe(e, t, n), r), Lbe = (e, t, n, r, i) => V(Fbe(e, t, n, r), i), Rbe = "/api/index", tZ = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Ibe = {
+}, zbe = {
performers: "performer",
creators: "creator",
studios: "studio",
@@ -58831,7 +58867,7 @@ function uZ(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Fbe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Rbe}?${a}`;
}
function dZ(e) {
let t = e.what === "people" || e.what === "online-authors" ? iZ.people : iZ.tags, n = {
@@ -58851,17 +58887,17 @@ function dZ(e) {
};
case "online-authors": return {
...n,
- queryKey: kbe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Nbe(e.q, t, n, r)
+ queryKey: Mbe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Ibe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Abe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Pbe(e.q, e.category, t, n, r)
+ queryKey: Nbe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Lbe(e.q, e.category, t, n, r)
};
}
}
-async function Lbe(e, t) {
+async function Bbe(e, t) {
let n = dZ(cZ(sZ(e)));
U.removeQueries({
queryKey: n.queryKey,
@@ -58876,13 +58912,13 @@ async function Lbe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Rbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, fZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bbe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Vbe = {
+var Vbe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Hbe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, fZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Ube = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, Wbe = {
numeric: !0,
sensitivity: "base"
};
function pZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Vbe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Wbe))) {
let e = xn(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]);
}
@@ -58890,7 +58926,7 @@ function pZ(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var mZ = tF({
+var mZ = eF({
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",
@@ -58912,7 +58948,7 @@ var mZ = tF({
function hZ({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
ref: r,
- className: eF(mZ.base, mZ.variant[e], mZ.color[t], n),
+ className: $P(mZ.base, mZ.variant[e], mZ.color[t], n),
...i
});
}
@@ -58930,18 +58966,18 @@ function gZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Hbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Ube = Rz("rss");
+var Gbe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", Kbe = Lz("rss");
function _Z({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: MH({
+ className: jH({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Hbe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Gbe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -58953,7 +58989,7 @@ function _Z({ name: e, readout: t, big: n, children: r, following: i, onPress: a
children: /* @__PURE__ */ (0, O.jsx)(hZ, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, O.jsx)(Ube, {})
+ children: /* @__PURE__ */ (0, O.jsx)(Kbe, {})
})
}) : null,
/* @__PURE__ */ (0, O.jsx)("span", {
@@ -58977,12 +59013,12 @@ function vZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Ibe[e], o = r.personAvatar(t, n, a);
+ let n = t.entity_kind || zbe[e], o = r.personAvatar(t, n, a);
return /* @__PURE__ */ (0, O.jsx)(_Z, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${Bbe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Ube(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
@@ -58996,7 +59032,7 @@ function vZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Wbe({ items: e, layout: t, props: n }) {
+function qbe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-index-grid": "",
@@ -59060,7 +59096,7 @@ function SZ(e) {
}
return !1;
}
-function Gbe() {
+function Jbe() {
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) => {
@@ -59092,11 +59128,11 @@ function CZ(e) {
e.style.setProperty("--board-range-value", `${i}%`);
}
var wZ = /* @__PURE__ */ new WeakSet();
-function Kbe() {
+function Ybe() {
if (wZ.has(document)) return;
wZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(CZ), Jbe(e), qbe(e);
+ e.querySelectorAll("input[type=range]").forEach(CZ), Zbe(e), Xbe(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]") && CZ(t), e(t));
@@ -59105,9 +59141,9 @@ function Kbe() {
childList: !0
}), document.addEventListener("input", (e) => {
e.target instanceof HTMLInputElement && e.target.type === "range" && CZ(e.target);
- }), Gbe();
+ }), Jbe();
}
-function qbe(e) {
+function Xbe(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;
@@ -59132,7 +59168,7 @@ function qbe(e) {
});
}
var TZ = /* @__PURE__ */ new Map();
-function Jbe(e) {
+function Zbe(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;
@@ -59165,7 +59201,7 @@ function Jbe(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var EZ = "/vendor/swiper/14.3.0/", DZ = null, Ybe = () => DZ ??= Promise.all([new Promise((e, t) => {
+var EZ = "/vendor/swiper/14.3.0/", DZ = null, Qbe = () => DZ ??= Promise.all([new Promise((e, t) => {
let n = `${EZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -59184,7 +59220,7 @@ var EZ = "/vendor/swiper/14.3.0/", DZ = null, Ybe = () => DZ ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw DZ = null, e;
});
-function Xbe(e, t, n) {
+function $be(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);
@@ -59208,8 +59244,8 @@ function Xbe(e, t, n) {
var OZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : _n(t)).replace(" ", "\xA0") : "大小未知";
-}, Zbe = (e) => e.asset?.name || e.name || "未命名图片";
-function Qbe(e, t) {
+}, exe = (e) => e.asset?.name || e.name || "未命名图片";
+function txe(e, t) {
let n = e.asset;
if (n) return [Cn[n.location ?? ""] || n.location || "来源未知", OZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
@@ -59221,31 +59257,31 @@ function Qbe(e, t) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var kZ = null, AZ = null, $be = 0;
-function exe() {
+var kZ = null, AZ = null, nxe = 0;
+function rxe() {
return (!AZ || !kZ?.isConnected) && (AZ?.unmount(), kZ = document.createElement("div"), kZ.className = "peach-react", kZ.dataset.photoLightboxHost = "", document.body.append(kZ), AZ = (0, Et.createRoot)(kZ)), AZ;
}
async function jZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Ybe();
+ r = await Qbe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = exe();
- (0, Tt.flushSync)(() => i.render(/* @__PURE__ */ (0, O.jsx)(txe, {
+ let i = rxe();
+ (0, Tt.flushSync)(() => i.render(/* @__PURE__ */ (0, O.jsx)(ixe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++$be)));
+ }, ++nxe)));
}
function MZ() {
AZ && (0, Tt.flushSync)(() => AZ.render(null));
}
-function txe({ slides: e, index: t, Swiper: n, host: r }) {
+function ixe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, D.useId)(), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (0, D.useRef)(null), [_, v] = (0, D.useState)(t), [y, b] = (0, D.useState)(100), [x, S] = (0, D.useState)({}), [C, w] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, D.useState)(!1), [j, M] = (0, D.useState)({
at: t,
text: ""
@@ -59288,7 +59324,7 @@ function txe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Xbe(e, a, b);
+ i(t, 0), h.current = $be(e, a, b);
let m = gc(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();
};
@@ -59489,10 +59525,10 @@ function txe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Zbe(N)
+ children: exe(N)
}, _), /* @__PURE__ */ (0, O.jsx)("span", {
"data-photo-detail-meta": "",
- children: Qbe(N, x[_])
+ children: txe(N, x[_])
})]
}),
/* @__PURE__ */ (0, O.jsx)("button", {
@@ -59531,17 +59567,17 @@ function txe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function nxe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, O.jsx)(rxe, {
+function axe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, O.jsx)(oxe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, O.jsx)(ixe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, O.jsx)(sxe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, O.jsx)(sxe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, O.jsx)(uxe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
var NZ = iZ.people;
-function rxe({ roster: e, props: t }) {
+function oxe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, D.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
@@ -59559,8 +59595,8 @@ function rxe({ roster: e, props: t }) {
enabled: () => !0
}, a) : null] });
}
-function ixe(e) {
- let t = lW(!e.items, e.skeletonHtml);
+function sxe(e) {
+ let t = uW(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
@@ -59584,14 +59620,14 @@ function ixe(e) {
}) : null]
});
}
-var axe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var cxe = (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 || "官方样张"
-})), PZ = (e) => e.sample === !0, FZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, IZ = (e) => PZ(e) ? `/sample-thumb?${FZ(e)}` : `/photo-thumb?id=${e.id}`, oxe = (e) => PZ(e) ? {
+})), PZ = (e) => e.sample === !0, FZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, IZ = (e) => PZ(e) ? `/sample-thumb?${FZ(e)}` : `/photo-thumb?id=${e.id}`, lxe = (e) => PZ(e) ? {
src: `/sample-image?${FZ(e)}`,
thumb: IZ(e),
name: e.name,
@@ -59603,14 +59639,14 @@ var axe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function sxe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, D.useMemo)(() => [...e.codeSets.flatMap(axe), ...e.items], [e]), [s, c] = (0, D.useState)(() => /* @__PURE__ */ new Set()), l = (0, D.useCallback)((e) => c((t) => {
+function uxe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, D.useMemo)(() => [...e.codeSets.flatMap(cxe), ...e.items], [e]), [s, c] = (0, D.useState)(() => /* @__PURE__ */ new Set()), l = (0, D.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, D.useCallback)((e) => {
- jZ(e, o.map(oxe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, O.jsx)(cxe, {
+ jZ(e, o.map(lxe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, O.jsx)(dxe, {
item: e,
index: t,
lost: s.has(t),
@@ -59673,7 +59709,7 @@ function LZ({ label: e, title: t, meta: n }) {
]
});
}
-function cxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function dxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -59693,9 +59729,9 @@ function cxe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/background-job.ts
-var lxe = 2e3, uxe = (e) => e, dxe = (e, t) => t;
+var fxe = 2e3, pxe = (e) => e, mxe = (e, t) => t;
function RZ(e) {
- let { queryKey: t, jobOf: n = uxe, withJob: r = dxe, idlePollMs: i } = e, [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(e);
+ let { queryKey: t, jobOf: n = pxe, withJob: r = mxe, idlePollMs: i } = e, [a, o] = (0, D.useState)(!1), [s, c] = (0, D.useState)(null), l = (0, D.useRef)(e);
(0, D.useEffect)(() => {
l.current = e;
});
@@ -59704,7 +59740,7 @@ function RZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? lxe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? fxe : i ?? !1;
}
}), d = Ct({
mutationFn: (e) => l.current.start(e),
@@ -59730,12 +59766,12 @@ function RZ(e) {
//#endregion
//#region src/react/follow-feed/follow-check.ts
var zZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function fxe(e, t) {
+function hxe(e, t) {
return t ? zZ(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 pxe({ sources: e, report: t }) {
+function gxe({ sources: e, report: t }) {
let n = zZ(e), [r, i] = (0, D.useState)(""), { running: a, start: o } = RZ({
queryKey: or,
queryFn: ({ signal: e }) => zr(e),
@@ -59750,12 +59786,12 @@ function pxe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
disabled: !n.length,
- ...Bz(s),
+ ...zz(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }), r ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: r
}) : null]
@@ -59763,7 +59799,7 @@ function pxe({ sources: e, report: t }) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var mxe = (e) => Number(e) > 0;
+var _xe = (e) => Number(e) > 0;
function BZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, O.jsx)("a", {
...r,
@@ -59776,9 +59812,9 @@ function BZ({ name: e, actions: t, children: n, ...r }) {
}
var VZ = ({ provider: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: kU(e) }
+ dangerouslySetInnerHTML: { __html: OU(e) }
});
-function hxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function vxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, D.useState)(!1), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
return (0, D.useEffect)(() => {
c(!1);
@@ -59801,8 +59837,8 @@ function hxe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function gxe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Li(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) => sge(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 = Vi({
+function yxe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = Li(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) => cge(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 = Vi({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -59810,7 +59846,7 @@ function gxe(e) {
limit: 9
}), S = (0, D.useRef)(x.faces);
S.current = x.faces;
- let C = nG({
+ let C = rG({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -59818,7 +59854,7 @@ function gxe(e) {
w.current = C.onPointerLeave;
let T = (0, D.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = PU(u, n, i), k = AU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = LU(u, i), N = IU(t, u), P = u.status === "saved", ee = (e) => {
+ }, []), E = NU(u, n, i), k = kU(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = IU(u, i), N = FU(t, u), P = 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));
}, F = (e, t) => {
e.stopPropagation(), t();
@@ -59833,7 +59869,7 @@ function gxe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: PW,
+ onMouseDown: FW,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -59847,7 +59883,7 @@ function gxe(e) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, O.jsx)(hxe, {
+ p ? /* @__PURE__ */ (0, O.jsx)(vxe, {
src: p,
fallback: m,
width: _?.width,
@@ -59875,7 +59911,7 @@ function gxe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: kU(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: OU(u.provider, u.provider_label) }
}), N ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
@@ -59888,7 +59924,7 @@ function gxe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- mxe(u.duration) ? /* @__PURE__ */ (0, O.jsx)("span", {
+ _xe(u.duration) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-duration": "",
children: hn(u.duration)
}) : null,
@@ -59979,7 +60015,7 @@ function gxe(e) {
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: FU(t, u) + B(k) }
+ dangerouslySetInnerHTML: { __html: PU(t, u) + B(k) }
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-byline": "",
@@ -59997,8 +60033,8 @@ function gxe(e) {
}),
/* @__PURE__ */ (0, O.jsx)("time", {
dateTime: u.published_at || "",
- title: zU(u),
- children: oge(u)
+ title: RU(u),
+ children: sge(u)
}),
E.credited ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-credit": "",
@@ -60033,10 +60069,10 @@ function gxe(e) {
]
});
}
-var HZ = (0, D.memo)(gxe);
+var HZ = (0, D.memo)(yxe);
//#endregion
//#region src/react/components/use-masonry-grid.ts
-function _xe(e, t) {
+function bxe(e, t) {
let n = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => {
let t = n.current;
@@ -60072,7 +60108,7 @@ function _xe(e, t) {
}
//#endregion
//#region src/react/follow-manage/manage-route.ts
-var vxe = [
+var xxe = [
"list",
"add",
"feeds"
@@ -60080,7 +60116,7 @@ var vxe = [
function UZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: vxe.find((e) => e === n) || "list",
+ tab: xxe.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
@@ -60103,7 +60139,7 @@ function GZ(e, t) {
var KZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), yxe = Rz("settings"), qZ = Rz("chevron-down"), bxe = Rz("history"), xxe = Rz("arrow-up"), Sxe = Rz("arrow-down"), Cxe = [[
+}), Sxe = Lz("settings"), qZ = Lz("chevron-down"), Cxe = Lz("history"), wxe = Lz("arrow-up"), Txe = Lz("arrow-down"), Exe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -60112,7 +60148,7 @@ var KZ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function wxe(e, t, n) {
+function Dxe(e, t, n) {
return (0, D.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) => {
@@ -60160,7 +60196,7 @@ function wxe(e, t, n) {
n
]);
}
-function Txe(e) {
+function Oxe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = wi(t, r), o = wt(a), s = St({
queryKey: Ti,
queryFn: ({ signal: e }) => Ei(e)
@@ -60168,7 +60204,7 @@ function Txe(e) {
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = wxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, D.useMemo)(() => ({
+ }), [c, l]), d = Dxe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, D.useMemo)(() => ({
tags: xl(d.visible.flatMap(Ai).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
@@ -60194,10 +60230,10 @@ function Txe(e) {
m,
i
]);
- let h = Dxe(e, !!c);
+ let h = Axe(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, O.jsx)(JZ, {}), /* @__PURE__ */ (0, O.jsx)(uW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(JZ, {}), /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(o.error),
onRetry: () => void o.refetch()
})]
@@ -60210,7 +60246,7 @@ function Txe(e) {
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, jU(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, AU(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);
@@ -60219,7 +60255,7 @@ function Txe(e) {
ref: h.host,
"data-follow-progress": ""
}, h.generation),
- !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ !h.busy && h.report ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
title: "检查结果",
children: h.report
@@ -60239,20 +60275,20 @@ function Txe(e) {
dangerouslySetInnerHTML: { __html: ns("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, O.jsx)(Oxe, {
+ /* @__PURE__ */ (0, O.jsx)(jxe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, O.jsx)(kxe, {
+ /* @__PURE__ */ (0, O.jsx)(Mxe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, O.jsx)(Axe, {
+ /* @__PURE__ */ (0, O.jsx)(Nxe, {
facets: d,
view: t,
total: v,
@@ -60260,7 +60296,7 @@ function Txe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, O.jsx)(jxe, {
+ /* @__PURE__ */ (0, O.jsx)(Pxe, {
conditions: _,
onDrop: (e) => i.route(qi(t, e)),
onClear: () => g({
@@ -60272,8 +60308,8 @@ function Txe(e) {
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, O.jsx)(Mxe, { count: d.broken.length }) : null,
- /* @__PURE__ */ (0, O.jsx)(Nxe, {
+ d.broken.length ? /* @__PURE__ */ (0, O.jsx)(Fxe, { count: d.broken.length }) : null,
+ /* @__PURE__ */ (0, O.jsx)(Ixe, {
retryKey: o.dataUpdatedAt,
pending: f,
facets: d,
@@ -60303,7 +60339,7 @@ function Txe(e) {
await o.fetchNextPage({ throwOnError: !0 });
},
children: [/* @__PURE__ */ (0, O.jsx)(qZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, O.jsx)(Exe, {
+ }, o.data?.pages.length) : /* @__PURE__ */ (0, O.jsx)(kxe, {
busy: o.isFetchingNextPage,
error: o.isFetchNextPageError ? Ut(o.error) : "",
load: () => {
@@ -60314,7 +60350,7 @@ function Txe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : bxe,
+ leadingIcon: h.olderBusy ? void 0 : Cxe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -60340,9 +60376,9 @@ function JZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, O.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, O.jsx)(JF, {
+ children: [/* @__PURE__ */ (0, O.jsx)(qF, {
variant: "secondary",
- leadingIcon: yxe,
+ leadingIcon: Sxe,
"data-follow-manage": "",
href: YZ(),
children: "管理关注"
@@ -60350,7 +60386,7 @@ function JZ({ children: e }) {
})]
});
}
-function Exe({ busy: e, error: t, load: n }) {
+function kxe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-entity-more": "",
@@ -60358,12 +60394,12 @@ function Exe({ busy: e, error: t, load: n }) {
"aria-disabled": e || void 0,
onClick: n,
children: [/* @__PURE__ */ (0, O.jsx)(qZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ }), t ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: t,
onRetry: n
}) : null] });
}
-function Dxe(e, t) {
+function Axe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, D.useState)(0), [o, s] = (0, D.useState)(!1), [c, l] = (0, D.useState)(""), [u, d] = (0, D.useState)(""), [f, p] = (0, D.useState)(!1), m = (0, D.useRef)(!1), h = (0, D.useRef)(null), g = (0, D.useRef)({
helpers: n,
actions: r
@@ -60425,12 +60461,12 @@ function Dxe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function Oxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function jxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, D.useRef)(null);
(0, D.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => jU(e.authorSources.get(t) || [], n);
+ let o = (t) => AU(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
@@ -60438,9 +60474,9 @@ function Oxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = MU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = jU(a), c = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: NU(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: MU(a, o(n)) }
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-name": "",
children: o(n)
@@ -60462,7 +60498,7 @@ function Oxe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function kxe({ rows: e, pressed: t, props: n, onPick: r }) {
+function Mxe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -60483,13 +60519,13 @@ function kxe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = KF(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = KF(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function Nxe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, D.useRef)(null), l = (0, D.useRef)(null), u = (0, D.useRef)(null), d = (0, D.useRef)(null), f = (0, D.useRef)(null), p = (0, D.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = GF(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = GF(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, D.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, O.jsx)(zF, {
+ return /* @__PURE__ */ (0, O.jsx)(RF, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -60574,10 +60610,10 @@ function Axe({ 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: kU(t, n) }
+ dangerouslySetInnerHTML: { __html: OU(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, O.jsx)(KZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(VF, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, O.jsxs)(BF, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ji(e.groups, n)}`,
@@ -60597,18 +60633,18 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, O.jsx)($z, {
+ /* @__PURE__ */ (0, O.jsx)(Qz, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, O.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(qU, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(KU, {
+ /* @__PURE__ */ (0, O.jsx)(KU, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(GU, {
label: "图片布局",
value: i.photoLayout,
- options: Cxe,
+ options: Exe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
@@ -60638,9 +60674,9 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Ui(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, O.jsx)(wU, {
- a: xxe,
- b: Sxe,
+ children: [n, r ? /* @__PURE__ */ (0, O.jsx)(CU, {
+ a: wxe,
+ b: Txe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -60651,7 +60687,7 @@ function Axe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function jxe({ conditions: e, onDrop: t, onClear: n }) {
+function Pxe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -60676,19 +60712,19 @@ function jxe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Mxe({ count: e }) {
+function Fxe({ count: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-broken": "",
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${B(YZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var YZ = () => GZ(window.location.search);
-function Nxe({ 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 = lW(e, () => c.listSkeletonHtml(s.media));
+function Ixe({ 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 = uW(e, () => c.listSkeletonHtml(s.media));
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": u.fading ? "" : void 0,
- children: [u.layer, e ? null : /* @__PURE__ */ (0, O.jsx)(Pxe, {
+ children: [u.layer, e ? null : /* @__PURE__ */ (0, O.jsx)(Lxe, {
facets: t,
data: n,
context: r,
@@ -60699,12 +60735,12 @@ function Nxe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})]
});
}
-function Pxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function Lxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
let { view: s, actions: c } = r, l = ZZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = _xe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = bxe(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, O.jsx)(HZ, {
@@ -60721,7 +60757,7 @@ function Pxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, O.jsx)(Fxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Rxe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -60747,19 +60783,19 @@ function Pxe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
function XZ(e, t) {
return Li(e, t.media).id;
}
-function Fxe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function Rxe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, O.jsx)(JF, {
+ }) : a ? r : /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60768,7 +60804,7 @@ function Fxe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var Ixe = {
+var zxe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
@@ -60796,7 +60832,7 @@ function ZZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Ixe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(zxe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await H($n, {
item: t,
to: i
@@ -60842,9 +60878,9 @@ function ZZ(e) {
}
//#endregion
//#region src/react/entity-body/entity-online.tsx
-function Lxe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = lW(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
+function Bxe(e) {
+ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = uW(a, () => i.listSkeletonHtml(r));
+ return !n && t.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(t.error),
onRetry: () => {
t.refetch();
@@ -60855,7 +60891,7 @@ function Lxe(e) {
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, O.jsx)(Rxe, {
+ a || !n ? null : /* @__PURE__ */ (0, O.jsx)(Vxe, {
...e,
data: n
}),
@@ -60869,7 +60905,7 @@ function Lxe(e) {
]
});
}
-function Rxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function Vxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = ZZ({
view: e,
revision: 0,
@@ -60901,11 +60937,11 @@ function Rxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, O.jsx)(zxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Hxe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: fxe(n.sources || [], e.author)
+ sources: hxe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-list": "",
@@ -60914,21 +60950,21 @@ function Rxe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function zxe({ searched: e, clear: t, actions: n, sources: r }) {
+function Hxe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, O.jsx)(pxe, {
+ }) : r.length ? /* @__PURE__ */ (0, O.jsx)(gxe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, O.jsx)(JF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -60974,7 +61010,7 @@ function tQ(e, t) {
y1: a + r
});
}
-function Bxe(e, t) {
+function Uxe(e, t) {
if (!eQ(e) || !(t > 0)) return QZ(e);
let n = Math.min(e.width, e.height * t);
return $Z({
@@ -60984,7 +61020,7 @@ function Bxe(e, t) {
y1: e.height
});
}
-function Vxe(e, t, n) {
+function Wxe(e, t, n) {
if (!eQ(t) || !(n > 0)) return QZ(t);
let r = nQ(e, t), i = tQ({
width: r.x1 - r.x0,
@@ -61033,7 +61069,7 @@ function iQ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function Hxe(e, t, n, r, i = null) {
+function Gxe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -61042,7 +61078,7 @@ function Hxe(e, t, n, r, i = null) {
};
return nQ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Uxe(e, t) {
+function Kxe(e, t) {
return eQ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -61055,7 +61091,7 @@ function Uxe(e, t) {
height: 0
};
}
-function Wxe(e, t) {
+function qxe(e, t) {
if (!eQ(t)) return {
size: "cover",
position: "50% 50%"
@@ -61066,7 +61102,7 @@ function Wxe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Gxe(e, t) {
+function Jxe(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}%`,
@@ -61078,12 +61114,12 @@ function Gxe(e, t) {
function aQ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function Kxe(e, t) {
+function Yxe(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 qxe = .02, oQ = 1.08;
+var Xxe = .02, oQ = 1.08;
function sQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, D.useRef)(null), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(null);
(0, D.useEffect)(() => {
@@ -61121,14 +61157,14 @@ function sQ({ 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(rQ(n.box, o.dx, o.dy, r)) : i(Hxe(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(rQ(n.box, o.dx, o.dy, r)) : i(Gxe(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) * qxe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Xxe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -61136,7 +61172,7 @@ function sQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(rQ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(iQ(n, e.key === "-" ? 1 / oQ : oQ, r, t)));
}
- let v = n && r ? Uxe(nQ(n, r, t), r) : null, y = v ? Kxe(v, d) : !1, b = v ? {
+ let v = n && r ? Kxe(nQ(n, r, t), r) : null, y = v ? Yxe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -61217,12 +61253,12 @@ function sQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Jxe = "/api/avatar-choices", cQ = "/api/avatar-pick", Yxe = "/api/avatar-code-cover", lQ = "/api/avatar-frame", Xxe = "/avatar-choice", uQ = (e, t) => [
+var Zxe = "/api/avatar-choices", cQ = "/api/avatar-pick", Qxe = "/api/avatar-code-cover", lQ = "/api/avatar-frame", $xe = "/avatar-choice", uQ = (e, t) => [
"avatar-choices",
e,
t
-], dQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, fQ = (e, t, n, r = "") => `${Xxe}${dQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), pQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Zxe = (e, t, n) => V(Jxe + dQ(e, t), n), Qxe = (e) => H(Yxe, { code: e });
-async function $xe(e, t, n) {
+], dQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, fQ = (e, t, n, r = "") => `${$xe}${dQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), pQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", eSe = (e, t, n) => V(Zxe + dQ(e, t), n), tSe = (e) => H(Qxe, { code: e });
+async function nSe(e, t, n) {
let r = await H(lQ, {
kind: e,
id: t,
@@ -61236,11 +61272,11 @@ async function $xe(e, t, n) {
bases: r.bases
};
}
-var eSe = (e, t, n) => H(lQ, {
+var rSe = (e, t, n) => H(lQ, {
kind: e,
id: t,
url: n
-}), tSe = (e, t, n) => mQ(`${lQ}${dQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+}), iSe = (e, t, n) => mQ(`${lQ}${dQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
async function mQ(e, t) {
let n = await fetch(e, {
method: "POST",
@@ -61252,13 +61288,13 @@ async function mQ(e, t) {
}
function hQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Vxe(e.focus, t, n) : tQ(t, n);
+ return e.focus && r ? Wxe(e.focus, t, n) : tQ(t, n);
}
-var nSe = (e) => e.crop && eQ({
+var aSe = (e) => e.crop && eQ({
width: e.width,
height: e.height
});
-async function rSe(e, t, n) {
+async function oSe(e, t, n) {
if (!("file" in n)) {
await H(cQ, {
kind: e,
@@ -61276,16 +61312,16 @@ async function rSe(e, t, n) {
await mQ(`${cQ}${dQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
var gQ = 2;
-function iSe(e, t) {
+function sSe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按${`「${n.slice(0, gQ).join("」「")}」`}${n.length > gQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var aSe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function oSe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${aSe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var cSe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function lSe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${cSe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var _Q = (e) => e.cast > 1, sSe = (e) => _Q(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, cSe = {
+var _Q = (e) => e.cast > 1, uSe = (e) => _Q(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, dSe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -61295,7 +61331,7 @@ var _Q = (e) => e.cast > 1, sSe = (e) => _Q(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function lSe(e) {
+function fSe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -61306,19 +61342,19 @@ function lSe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var uSe = (e) => `${cSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (_Q(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), dSe = 8, fSe = 3 / 4;
-async function pSe(e, t, n) {
+var pSe = (e) => `${dSe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (_Q(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), mSe = 8, hSe = 3 / 4;
+async function gSe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await $xe(e, t, n.choice) };
- case "code": return { choice: await Qxe(n.code) };
- case "url": return { choice: await eSe(e, t, n.url) };
+ case "choice": return { choice: await nSe(e, t, n.choice) };
+ case "code": return { choice: await tSe(n.code) };
+ case "url": return { choice: await rSe(e, t, n.url) };
case "file": return {
- choice: await tSe(e, t, n.file),
+ choice: await iSe(e, t, n.file),
file: n.file
};
}
}
-function mSe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function _Se({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -61328,17 +61364,17 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, O.jsx)(Yde, {
+ children: /* @__PURE__ */ (0, O.jsx)(Xde, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, O.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Mz, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, O.jsx)(hSe, {
+ children: /* @__PURE__ */ (0, O.jsx)(vSe, {
kind: e,
entityId: t,
name: n,
@@ -61347,22 +61383,22 @@ function mSe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, D.useRef)(null), o = iV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = uQ(e, t), m = (0, D.useRef)(!1), h = St({
+function vSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, D.useRef)(null), o = rV(), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(null), p = uQ(e, t), m = (0, D.useRef)(!1), h = St({
queryKey: p,
- queryFn: ({ signal: n }) => Zxe(e, t, n),
+ queryFn: ({ signal: n }) => eSe(e, t, n),
retryOnMount: !0
});
(0, D.useEffect)(() => () => {
m.current && U.removeQueries({ queryKey: uQ(e, t) });
}, [e, t]);
let g = Ct({
- mutationFn: (n) => rSe(e, t, n),
+ mutationFn: (n) => oSe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = Ct({
- mutationFn: (n) => pSe(e, t, n),
+ mutationFn: (n) => gSe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -61383,17 +61419,17 @@ function hSe({ 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 ? An(g.error) : "") || (!d && _.error ? An(_.error) : "") || (h.error ? An(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : oSe(x), E = !!C && !!h.error && C === An(h.error), k = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? An(g.error) : "") || (!d && _.error ? An(_.error) : "") || (h.error ? An(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : lSe(x), E = !!C && !!h.error && C === An(h.error), k = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Pz, { children: /* @__PURE__ */ (0, O.jsx)(wz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Nz, { children: /* @__PURE__ */ (0, O.jsx)(Cz, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, O.jsx)(xI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(bI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
@@ -61404,18 +61440,18 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? sSe(d.choice) : iSe(n, x)
+ children: d ? uSe(d.choice) : sSe(n, x)
}),
- T ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ T ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ C ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: E ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Bz(h.isFetching),
+ ...zz(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -61425,14 +61461,14 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(MF, {
- icon: fz,
+ /* @__PURE__ */ (0, O.jsx)(jF, {
+ icon: dz,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, O.jsx)(_Se, {
+ }), d ? /* @__PURE__ */ (0, O.jsx)(bSe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -61452,7 +61488,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"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: dSe }, (e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: mSe }, (e, t) => /* @__PURE__ */ (0, O.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",
@@ -61465,8 +61501,8 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: uSe(n),
- ...Bz(w),
+ title: pSe(n),
+ ...zz(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -61475,7 +61511,7 @@ function hSe({ 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, O.jsx)(gSe, {
+ /* @__PURE__ */ (0, O.jsx)(ySe, {
src: fQ(e, t, n.ref, pQ(n, n.ref)),
choice: n
}),
@@ -61515,7 +61551,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, O.jsx)(jz, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -61525,7 +61561,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...Bz(v("code")),
+ ...zz(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61534,7 +61570,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...Bz(v("file")),
+ ...zz(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, O.jsx)("input", {
@@ -61554,7 +61590,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, O.jsx)(Mz, {
+ children: /* @__PURE__ */ (0, O.jsx)(jz, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -61564,7 +61600,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...Bz(v("url")),
+ ...zz(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -61578,7 +61614,7 @@ function hSe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function gSe({ src: e, choice: t }) {
+function ySe({ src: e, choice: t }) {
let n = (0, D.useRef)(null), [r, i] = (0, D.useState)(!1), [a, o] = (0, D.useState)(!1);
(0, D.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -61586,7 +61622,7 @@ function gSe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = nSe(t) ? Gxe(hQ(t, s, fSe), s) : null, l = r || a ? !0 : void 0;
+ }, c = aSe(t) ? Jxe(hQ(t, s, hSe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -61612,12 +61648,12 @@ function gSe({ src: e, choice: t }) {
})]
});
}
-function _Se({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = pQ(n, s), m = fQ(e, t, s, p), h = iV();
+function bSe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, D.useState)(o[0]), [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(null), p = pQ(n, s), m = fQ(e, t, s, p), h = rV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? Wxe(d, l) : null;
+ let _ = d && l ? qxe(d, l) : null;
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.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",
@@ -61642,7 +61678,7 @@ function _Se({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"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: lSe(e)
+ children: fSe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -61662,12 +61698,12 @@ function _Se({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
onClick: i,
- ...Bz(r),
+ ...zz(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(r),
+ ...zz(r),
onClick: () => {
r || a(null);
},
@@ -61675,7 +61711,7 @@ function _Se({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, O.jsx)(J, {
disabled: !d || !l,
- ...Bz(r),
+ ...zz(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -61703,7 +61739,7 @@ function yQ({ item: e, image: t, thumbnail: n = !1 }) {
referrerPolicy: "no-referrer"
}) : n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: "封面未取得"
})
@@ -61712,7 +61748,7 @@ function yQ({ item: e, image: t, thumbnail: n = !1 }) {
let f = vQ(e.code, t, r);
if (s === f) return n ? /* @__PURE__ */ (0, O.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, O.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -61771,7 +61807,7 @@ function bQ({ code: e, person: t, detail: n = !1 }) {
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
function xQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, D.useContext)(lU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
+ let a = (0, D.useContext)(cU), o = (0, D.useRef)(null), [s, c] = (0, D.useState)([]), l = e?.items.length ? e.html : "";
(0, D.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -61905,7 +61941,7 @@ function EQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function vSe({ following: e, busy: t, onToggle: n, tip: r }) {
+function xSe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), [s, c] = (0, D.useState)(!1), l = (0, D.useRef)(!1), u = () => {
wQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
@@ -61958,29 +61994,29 @@ function vSe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function ySe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function SSe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, D.useState)(!1), o = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, O.jsxs)(vue, {
+ }, []), /* @__PURE__ */ (0, O.jsxs)(yue, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, O.jsx)(_I, {
+ children: [/* @__PURE__ */ (0, O.jsx)(gI, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, O.jsx)(SQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, O.jsx)(rR, {
+ }), /* @__PURE__ */ (0, O.jsx)(nR, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: XB,
+ className: YB,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, O.jsxs)(bue, {
+ children: /* @__PURE__ */ (0, O.jsxs)(xue, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(dR, {
+ /* @__PURE__ */ (0, O.jsx)(uR, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -61988,15 +62024,15 @@ function ySe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(pR, {
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsxs)(fR, {
id: e,
textValue: e,
"data-namepick-name": e,
children: [/* @__PURE__ */ (0, O.jsx)(SQ, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, O.jsx)(tue, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, O.jsx)(dR, { children: /* @__PURE__ */ (0, O.jsxs)(pR, {
+ /* @__PURE__ */ (0, O.jsx)(nue, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, O.jsx)(uR, { children: /* @__PURE__ */ (0, O.jsxs)(fR, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -62008,8 +62044,8 @@ function ySe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
})]
});
}
-var bSe = (e) => e === "studio" || e === "agency", DQ = (e) => e === "performer" || e === "creator", xSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function SSe(e) {
+var CSe = (e) => e === "studio" || e === "agency", DQ = (e) => e === "performer" || e === "creator", wSe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function TSe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
function OQ(e) {
@@ -62029,7 +62065,7 @@ function kQ(e, t) {
return r && [e.label, n].map(un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
var AQ = (e) => ({ site: on(e) });
-function CSe(e, t) {
+function ESe(e, t) {
let n = OQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -62071,9 +62107,9 @@ function CSe(e, t) {
mark: AQ(e)
};
});
- return [...r, ...wSe(a)];
+ return [...r, ...DSe(a)];
}
-function wSe(e) {
+function DSe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -62082,7 +62118,7 @@ function wSe(e) {
}];
}
var jQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function TSe(e) {
+function OSe(e) {
return [
[
"legal_name",
@@ -62138,7 +62174,7 @@ function TSe(e) {
}]
}] : []);
}
-function ESe(e) {
+function kSe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -62202,7 +62238,7 @@ function MQ(e, t = 4) {
rest: e.length - n
};
}
-function DSe(e) {
+function ASe(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 ? {
@@ -62213,7 +62249,7 @@ function DSe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function OSe(e) {
+function jSe(e) {
return Ia({
id: e.id,
hasImage: e.has_image,
@@ -62224,8 +62260,8 @@ function OSe(e) {
standIn: e.avatar_stand_in
});
}
-function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = DQ(e), c = bSe(e), l = s ? ESe(n.profile) : c ? TSe(n.company_profile) : [], u = CSe(n, e), d = jQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
+function MSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = DQ(e), c = CSe(e), l = s ? kSe(n.profile) : c ? OSe(n.company_profile) : [], u = ESe(n, e), d = jQ(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, D.useRef)(null), m = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, D.useEffect)(() => {
@@ -62238,7 +62274,7 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, O.jsx)(ASe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(NSe, {
kind: e,
name: t,
helpers: o,
@@ -62246,7 +62282,7 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, O.jsx)(mSe, {
+ children: /* @__PURE__ */ (0, O.jsx)(_Se, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -62261,13 +62297,13 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, O.jsx)("h2", { children: n.canonical_name }),
- e === "tag" ? null : /* @__PURE__ */ (0, O.jsx)(ySe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, O.jsx)(SSe, {
current: n.canonical_name,
- choices: SSe(n),
+ choices: TSe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, O.jsx)(Qz, { item: {
+ n.id ? /* @__PURE__ */ (0, O.jsx)(Zz, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -62275,7 +62311,7 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
} }) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(jSe, {
+ /* @__PURE__ */ (0, O.jsx)(PSe, {
kind: e,
entity: n,
actions: a
@@ -62296,14 +62332,14 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, O.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, O.jsx)(LSe, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, O.jsx)(BSe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, O.jsx)(RSe, {
+ d.length || n.feed ? /* @__PURE__ */ (0, O.jsx)(VSe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, O.jsx)(PSe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, O.jsx)(LSe, {
follow: n.follow,
entity: n,
actions: a
@@ -62312,11 +62348,11 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, O.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, O.jsx)(FSe, {
+ children: l.map((e) => /* @__PURE__ */ (0, O.jsx)(RSe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, O.jsx)(ISe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, O.jsx)(zSe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, O.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -62335,7 +62371,7 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, O.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(xn(e.k))}</span>${OSe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${B(xn(e.k))}</span>${jSe(e)}` }
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -62350,7 +62386,7 @@ function kSe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function ASe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function NSe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, D.useState)(() => `${n.portraitImg()}<span>${B(xn(t))}</span>`);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -62359,7 +62395,7 @@ function ASe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function jSe({ kind: e, entity: t, actions: n }) {
+function PSe({ kind: e, entity: t, actions: n }) {
let r = OQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, O.jsx)("a", {
@@ -62369,7 +62405,7 @@ function jSe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = DSe(t.name_groups);
+ let e = ASe(t.name_groups);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-entity-alias": "meta",
children: [
@@ -62379,7 +62415,7 @@ function jSe({ kind: e, entity: t, actions: n }) {
title: "视频",
children: [/* @__PURE__ */ (0, O.jsx)(SQ, { name: "film" }), /* @__PURE__ */ (0, O.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, O.jsx)(NSe, {
+ t.follow?.key ? /* @__PURE__ */ (0, O.jsx)(ISe, {
follow: t.follow,
actions: n
}) : null,
@@ -62446,11 +62482,11 @@ function jSe({ kind: e, entity: t, actions: n }) {
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, O.jsx)(MSe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, O.jsx)(FSe, { aliases: s }) : null
]
});
}
-function MSe({ aliases: e }) {
+function FSe({ aliases: e }) {
let { shown: t, rest: n } = MQ(e, 3);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-meta-item": "names",
@@ -62473,7 +62509,7 @@ function MSe({ aliases: e }) {
]
});
}
-function NSe({ follow: e, actions: t }) {
+function ISe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, O.jsxs)("span", {
"data-meta-item": "",
@@ -62488,7 +62524,7 @@ function NSe({ follow: e, actions: t }) {
})]
});
}
-function PSe({ follow: e, entity: t, actions: n }) {
+function LSe({ follow: e, entity: t, actions: n }) {
let [r, i] = (0, D.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -62502,12 +62538,12 @@ function PSe({ follow: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(Fz, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, O.jsxs)(Pz, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
- ...Bz(r === e.key),
+ ...zz(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -62538,14 +62574,14 @@ function PQ({ label: e, names: t }) {
}, t))
})] });
}
-function FSe({ glyph: e, label: t, clip: n, children: r }) {
+function RSe({ glyph: e, label: t, clip: n, children: r }) {
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("dt", { children: [/* @__PURE__ */ (0, O.jsx)(SQ, { name: e }), t] }), /* @__PURE__ */ (0, O.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function ISe({ tags: e }) {
+function zSe({ tags: e }) {
let { shown: t, rest: n } = MQ(e);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, O.jsx)("span", {
"data-fact-tag": "",
@@ -62578,7 +62614,7 @@ function FQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function LSe({ link: e }) {
+function BSe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, O.jsx)("a", {
"data-link": "icon",
@@ -62626,7 +62662,7 @@ function LSe({ link: e }) {
});
}
}
-function RSe({ entity: e, actions: t, helpers: n }) {
+function VSe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, D.useState)(!!e.feed?.following), [a, o] = (0, D.useState)(!1), s = (0, D.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -62658,20 +62694,20 @@ function RSe({ entity: e, actions: t, helpers: n }) {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, O.jsx)(vSe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, O.jsx)(xSe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: xSe(r)
+ tip: wSe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/use-entity-online.ts
-var zSe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function BSe(e, t, n) {
+var HSe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function USe(e, t, n) {
let [r, i] = (0, D.useState)(() => Ri(e));
r.author !== e && i(Ri(e));
let [a, o] = (0, D.useState)({
@@ -62750,7 +62786,7 @@ function BSe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: xi,
- seed: zSe()
+ seed: HSe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -62781,7 +62817,7 @@ function BSe(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function VSe(e) {
+function WSe(e) {
let { kind: t, name: n } = e, r = St(XX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
@@ -62800,12 +62836,12 @@ function VSe(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ ]), r.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: An(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, O.jsx)(WSe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, O.jsx)(qSe, {
...e,
entity: r.data
});
@@ -62822,17 +62858,17 @@ function IQ(e) {
};
return n(r), r.n;
}
-var HSe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function USe(e, t) {
+var GSe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function KSe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function WSe(e) {
+function qSe(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 = wt(ZX(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 || QX(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
} : UX, [y, b] = (0, D.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, D.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = BSe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = USe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
@@ -63050,7 +63086,7 @@ function WSe(e) {
await U.fetchQuery(a).catch(() => null);
return;
}
- let r = HSe(), a = await U.fetchInfiniteQuery(ZX(t, n, re, r)).catch(() => null);
+ let r = GSe(), a = await U.fetchInfiniteQuery(ZX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -63085,7 +63121,7 @@ function WSe(e) {
k: e.k,
label: fl(e.k),
n: e.n,
- selected: Cbe(i.tag, e.k)
+ selected: Ebe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -63127,7 +63163,7 @@ function WSe(e) {
Pe = !M.data;
let e = KX(i.tag).length;
Ne = `视频 · ${(M.data?.work_total ?? M.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : USe(oe, QX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : KSe(oe, QX(oe).length) : Pe = ae.isPending;
let Fe = (0, D.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -63144,7 +63180,7 @@ function WSe(e) {
u
]);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(kSe, {
+ /* @__PURE__ */ (0, O.jsx)(MSe, {
kind: t,
name: n,
entity: r,
@@ -63154,7 +63190,7 @@ function WSe(e) {
actions: be,
helpers: xe
}, k),
- (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(fge, {
+ (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(pge, {
kind: t,
name: n,
view: w,
@@ -63171,9 +63207,9 @@ function WSe(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(Qhe, {
+ (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)($he, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, O.jsx)(Lxe, {
+ children: w === "online" ? /* @__PURE__ */ (0, O.jsx)(Bxe, {
view: T.view,
media: T.media,
result: T.result,
@@ -63187,16 +63223,16 @@ function WSe(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ }, T.key) : w === "videos" && M.isError ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: An(M.error),
onRetry: () => {
M.refetch();
}
- }) : je ? /* @__PURE__ */ (0, O.jsx)(GSe, {
+ }) : je ? /* @__PURE__ */ (0, O.jsx)(JSe, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, O.jsx)(nxe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(axe, {
kind: t,
name: n,
view: w,
@@ -63228,9 +63264,9 @@ function WSe(e) {
}), c.body)
] });
}
-function GSe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz("search"),
+function JSe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
@@ -63238,14 +63274,14 @@ function GSe({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz("film"),
+ }) : /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, O.jsx)(JF, {
+ }) : /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -63256,7 +63292,7 @@ function GSe({ filtered: e, onShowAll: t, onOnline: n }) {
//#endregion
//#region src/react/diagnostics/diagnostics.ts
var LQ = ["diagnostics"], RQ = (e) => V("/api/diagnostics", e);
-async function KSe(e) {
+async function YSe(e) {
await U.fetchQuery({
queryKey: LQ,
queryFn: () => RQ(e),
@@ -63265,7 +63301,7 @@ async function KSe(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function qSe({ host: e, revision: t, helpers: n, actions: r }) {
+function XSe({ host: e, revision: t, helpers: n, actions: r }) {
let i = St(BX(null, n.feedRowHtml)), a = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: zX(null) }));
@@ -63286,9 +63322,9 @@ function zQ({ value: e }) {
children: e.toLocaleString()
});
}
-var JSe = "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 ZSe = "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 BQ({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, D.useRef)(null), o = FF(a);
+ let a = (0, D.useRef)(null), o = PF(a);
return (0, D.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -63297,7 +63333,7 @@ function BQ({ 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, O.jsx)(rF, {
+ }, [t]), /* @__PURE__ */ (0, O.jsx)(nF, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -63312,7 +63348,7 @@ function BQ({ 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;
+ let n = e.symbol ? Lz(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
role: "tab",
@@ -63321,7 +63357,7 @@ function BQ({ 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: JSe,
+ className: ZSe,
onClick: () => {
i || r(e.value);
},
@@ -63336,7 +63372,7 @@ var VQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), HQ = Rz("pencil"), UQ = (e, t) => ({
+}), HQ = Lz("pencil"), UQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -63345,7 +63381,7 @@ var VQ = () => /* @__PURE__ */ (0, O.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function YSe({ tag: e, actions: t }) {
+function QSe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -63371,8 +63407,8 @@ function YSe({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Qz, { item: UQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, O.jsx)(Zz, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Zz, { item: UQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, O.jsx)(Xz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, O.jsx)(HQ, {})
@@ -63386,7 +63422,7 @@ function WQ({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, O.jsxs)("section", {
"data-alpha-group": r,
- className: MH({
+ className: jH({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -63396,7 +63432,7 @@ function WQ({ groups: e, actions: t }) {
children: [e, /* @__PURE__ */ (0, O.jsx)(zQ, { value: n.length })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, O.jsx)(YSe, {
+ children: n.map((e) => /* @__PURE__ */ (0, O.jsx)(QSe, {
tag: e,
actions: t
}, e.k))
@@ -63404,7 +63440,7 @@ function WQ({ groups: e, actions: t }) {
}, e))
});
}
-var XSe = "\xA0";
+var $Se = "\xA0";
function GQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-tag-cloud": "",
@@ -63423,7 +63459,7 @@ function GQ({ tags: e, actions: t }) {
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, O.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + XSe
+ children: e.label + $Se
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -63432,7 +63468,7 @@ function GQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, O.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Qz, { item: UQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(Zz, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, O.jsx)(Zz, { item: UQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, O.jsx)(Xz, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, O.jsx)(HQ, {})
@@ -63441,7 +63477,7 @@ function GQ({ tags: e, actions: t }) {
}, e.k))
});
}
-var ZSe = [[
+var eCe = [[
"cloud",
"标签云",
"tags"
@@ -63451,22 +63487,22 @@ var ZSe = [[
"text-aa"
]];
function KQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = FF();
- return /* @__PURE__ */ (0, O.jsx)(zF, {
+ let d = PF();
+ return /* @__PURE__ */ (0, O.jsx)(RF, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [l ? /* @__PURE__ */ (0, O.jsx)("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, O.jsx)(VF, {
+ children: [[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, O.jsx)(BF, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
}, String(e)))
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(VF, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, O.jsxs)(BF, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : fZ(n, e),
pressed: t === e,
@@ -63492,19 +63528,19 @@ function KQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, O.jsx)(CR, {
+ /* @__PURE__ */ (0, O.jsx)(SR, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${xU}`,
- children: ZSe.map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, O.jsx)(wR, {
+ className: `ml-auto ${bU}`,
+ children: eCe.map(([e, t, n]) => {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, O.jsx)(CR, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: SU,
+ className: xU,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -63516,13 +63552,13 @@ function KQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function QSe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, O.jsxs)(Ck, {
+function tCe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, O.jsxs)(Sk, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, O.jsx)(rV, {
+ /* @__PURE__ */ (0, O.jsx)(nV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -63570,7 +63606,7 @@ var ZQ = (e, t) => {
JQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, O.jsxs)(eH, { children: [/* @__PURE__ */ (0, O.jsx)(cH, {
+ }, n.render(/* @__PURE__ */ (0, O.jsxs)($V, { children: [/* @__PURE__ */ (0, O.jsx)(sH, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
@@ -63594,7 +63630,7 @@ var ZQ = (e, t) => {
success: qQ(t.success, !0),
error: qQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, O.jsx)(cH, {
+ }), /* @__PURE__ */ (0, O.jsx)(sH, {
id: "processing",
position: "bottom-right",
gap: 8,
@@ -63615,13 +63651,13 @@ var ZQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, $Se = 6e3, QQ = (e, t) => {
+}, nCe = 6e3, QQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? rH.error : rH.success, r = t.action;
+ let n = t.alert ? nH.error : nH.success, r = t.action;
n(/* @__PURE__ */ (0, O.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : $Se,
+ duration: t.timeout > 0 ? t.timeout : nCe,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -63654,7 +63690,7 @@ async function n$(e, t, n) {
action: null
}), !0);
}
-function eCe({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function rCe({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, D.useRef)({
operation: e,
selected: t,
@@ -63698,7 +63734,7 @@ function eCe({ operation: e, selected: t, close: n, done: r, scope: i = "local"
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(tCe, {
+ }, []), s ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(iCe, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -63707,7 +63743,7 @@ function eCe({ operation: e, selected: t, close: n, done: r, scope: i = "local"
}
}), s.host) : null;
}
-function tCe({ operation: e, selected: t, dialog: n, update: r }) {
+function iCe({ operation: e, selected: t, dialog: n, update: r }) {
let [i, a] = (0, D.useState)(t[0]?.k || ""), [o, s] = (0, D.useState)(t[0] ? $Q(t[0]) : 0);
return (0, D.useEffect)(() => {
r({
@@ -63721,7 +63757,7 @@ function tCe({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(Mz, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, O.jsx)(jz, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
@@ -63735,7 +63771,7 @@ function tCe({ operation: e, selected: t, dialog: n, update: r }) {
let n = t.find((t) => String($Q(t)) === String(e));
n && s($Q(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ children: t.map((e) => /* @__PURE__ */ (0, O.jsx)(dU, {
id: String($Q(e)),
children: e.k
}, $Q(e)))
@@ -63743,11 +63779,11 @@ function tCe({ operation: e, selected: t, dialog: n, update: r }) {
}
//#endregion
//#region src/react/index/tag-manager.tsx
-function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function aCe({ search: e = "", category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = St({
queryKey: ["tag-management", o],
queryFn: ({ signal: e }) => V(`/api/tag-management${s ? "?scope=online" : ""}`, e)
- }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(/* @__PURE__ */ new Set()), [p, m] = (0, D.useState)(null), h = AH(), g = c.data?.items || [], _ = g.filter((t) => t.hidden === l && [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), v = _.filter((e) => t === "all" || (e.cat || "general") === t), y = (s ? rZ : nZ).filter(([e]) => e === "all" || e === t || c.isPending || _.some((t) => (t.cat || "general") === e)), b = v.map((e) => ({
+ }), [l, u] = (0, D.useState)(!1), [d, f] = (0, D.useState)(/* @__PURE__ */ new Set()), [p, m] = (0, D.useState)(null), h = kH(), g = c.data?.items || [], _ = g.filter((t) => t.hidden === l && [t.k, ...t.aliases].some((t) => t.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase()))), v = _.filter((e) => t === "all" || (e.cat || "general") === t), y = (s ? rZ : nZ).filter(([e]) => e === "all" || e === t || c.isPending || _.some((t) => (t.cat || "general") === e)), b = v.map((e) => ({
...e,
label: e.k
})), x = n === "alphabet" ? pZ(b, (e) => e) : [], S = g.filter((e) => d.has(e.k)), C = (e) => {
@@ -63796,7 +63832,7 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}
},
actions: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(UF, {
+ c.data?.duplicate_groups.length ? /* @__PURE__ */ (0, O.jsx)(HF, {
busy: h.busy === "repair",
onPress: () => C({
operation: "repair",
@@ -63804,11 +63840,11 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}),
children: "整理重复标签"
}) : null,
- v.length ? /* @__PURE__ */ (0, O.jsx)(UF, {
+ v.length ? /* @__PURE__ */ (0, O.jsx)(HF, {
onPress: () => f(new Set(v.map((e) => e.k))),
children: "选择当前结果"
}) : null,
- d.size ? /* @__PURE__ */ (0, O.jsx)(UF, {
+ d.size ? /* @__PURE__ */ (0, O.jsx)(HF, {
onPress: () => f(/* @__PURE__ */ new Set()),
children: "清空选择"
}) : null
@@ -63818,8 +63854,8 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
"aria-busy": "true",
"data-skeleton": "",
className: "h-24 rounded-lg bg-background-tertiary-default",
- children: /* @__PURE__ */ (0, O.jsx)(uw, { children: "正在读取标签" })
- }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: /* @__PURE__ */ (0, O.jsx)(lw, { children: "正在读取标签" })
+ }) : c.isError ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -63833,15 +63869,15 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}) : /* @__PURE__ */ (0, O.jsx)(GQ, {
tags: b,
actions: T
- }) : /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }) : /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
- h.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ h.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: h.error
}) : null,
- /* @__PURE__ */ (0, O.jsxs)(Ck, {
+ /* @__PURE__ */ (0, O.jsxs)(Sk, {
label: "标签管理操作",
count: `已选 ${d.size} 个标签`,
visible: d.size > 0,
@@ -63863,7 +63899,7 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Bz(!!h.busy),
+ ...zz(!!h.busy),
onClick: () => C({
operation: l ? "restore" : "hide",
ids: w
@@ -63872,7 +63908,7 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
})
]
}),
- p ? /* @__PURE__ */ (0, O.jsx)(eCe, {
+ p ? /* @__PURE__ */ (0, O.jsx)(rCe, {
operation: p,
selected: S,
scope: o,
@@ -63884,7 +63920,7 @@ function nCe({ search: e = "", category: t = "all", view: n = "cloud", onCategor
}
//#endregion
//#region src/react/index/index-page.tsx
-var rCe = [{
+var oCe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -63892,7 +63928,7 @@ var rCe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], iCe = [{
+}], sCe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -63900,7 +63936,7 @@ var rCe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], aCe = [
+}], cCe = [
{
value: "performers",
label: "艺人",
@@ -63916,7 +63952,7 @@ var rCe = [{
label: "在线",
symbol: "rss"
}
-], oCe = {
+], lCe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -63936,20 +63972,20 @@ var rCe = [{
"layout-grid"
]]
};
-function sCe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, O.jsx)(vU, {
+function uCe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, O.jsx)(_U, {
"aria-label": `${tZ[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${yU}`,
- children: oCe[oZ(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = Rz(n);
- return /* @__PURE__ */ (0, O.jsx)(wR, {
+ className: `flex-none ${vU}`,
+ children: lCe[oZ(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = Lz(n);
+ return /* @__PURE__ */ (0, O.jsx)(CR, {
value: e,
"aria-label": t,
- className: rge,
+ className: ige,
children: /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
className: "contents",
@@ -63959,8 +63995,8 @@ function sCe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var cCe = Rz("search");
-function lCe({ label: e, value: t, onQuery: n }) {
+var dCe = Lz("search");
+function fCe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, D.useState)(t), a = (0, D.useRef)(!1), o = (0, D.useRef)(void 0);
(0, D.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -63977,15 +64013,15 @@ function lCe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, O.jsx)(kz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Oz, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, O.jsx)(jz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Az, {
type: "search",
- leadingIcon: cCe,
+ leadingIcon: dCe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@ -63996,7 +64032,7 @@ function lCe({ label: e, value: t, onQuery: n }) {
})
});
}
-function uCe(e) {
+function pCe(e) {
let [t, n] = (0, D.useState)(!1), [r, i] = (0, D.useState)(() => sZ({
kind: e.kind,
q: e.q,
@@ -64031,7 +64067,7 @@ function uCe(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? _e : void 0
- }), T = Rbe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, k = zbe(T.length, !!w.hasNextPage), A = `${f}:${m}:${p}`, j = (0, D.useRef)(null), M = w.data?.pages[0]?.categories;
+ }), T = Vbe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, k = Hbe(T.length, !!w.hasNextPage), A = `${f}:${m}:${p}`, j = (0, D.useRef)(null), M = w.data?.pages[0]?.categories;
M && !w.isPlaceholderData && (j.current = {
key: A,
counts: M
@@ -64055,7 +64091,7 @@ function uCe(e) {
]), I = (t) => {
o(t), e.savePreference({ layout: t });
}, ne = f === "tags" ? /* @__PURE__ */ (0, O.jsx)(BQ, {
- tabs: iCe,
+ tabs: sCe,
value: m,
label: "词表",
onChange: (e) => {
@@ -64066,7 +64102,7 @@ function uCe(e) {
});
}
}) : oZ(f) ? /* @__PURE__ */ (0, O.jsx)(BQ, {
- tabs: rCe,
+ tabs: oCe,
value: f,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -64095,18 +64131,18 @@ function uCe(e) {
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: w.isPending || w.isError ? "" : k
}) : null,
- aZ(f) ? /* @__PURE__ */ (0, O.jsx)(sCe, {
+ aZ(f) ? /* @__PURE__ */ (0, O.jsx)(uCe, {
kind: f,
layout: a,
onChange: I
}) : null,
- /* @__PURE__ */ (0, O.jsx)($z, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, O.jsx)(Qz, { kind: f === "tags" ? "tag" : f === "studios" ? "studio" : f === "agencies" ? "agency" : f === "creators" ? "creator" : "performer" }),
f === "tags" ? /* @__PURE__ */ (0, O.jsx)(J, {
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,
@@ -64114,7 +64150,7 @@ function uCe(e) {
e.exitSelectMode(), c(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, O.jsx)(lCe, {
+ /* @__PURE__ */ (0, O.jsx)(fCe, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -64124,7 +64160,7 @@ function uCe(e) {
]
}),
f === "performers" || f === "creators" ? /* @__PURE__ */ (0, O.jsx)(BQ, {
- tabs: aCe,
+ tabs: cCe,
value: y ? "online" : f,
label: "人物名册",
onChange: (t) => {
@@ -64136,7 +64172,7 @@ function uCe(e) {
}
}) : null,
ne,
- t && f === "tags" ? /* @__PURE__ */ (0, O.jsx)(nCe, {
+ t && f === "tags" ? /* @__PURE__ */ (0, O.jsx)(aCe, {
scope: m,
search: p,
category: g,
@@ -64184,8 +64220,8 @@ function uCe(e) {
mode: h
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz("alert"),
+ if (w.isError) return /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz("alert"),
title: `没能读取${_}`,
actions: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -64194,7 +64230,7 @@ function uCe(e) {
}),
children: Ut(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, O.jsx)(fCe, {
+ if (!T.length) return /* @__PURE__ */ (0, O.jsx)(hCe, {
kind: f,
filtered: !!p || g !== "all",
online: v || y,
@@ -64203,7 +64239,7 @@ function uCe(e) {
category: "all"
})
});
- if (y) return /* @__PURE__ */ (0, O.jsx)(Wbe, {
+ if (y) return /* @__PURE__ */ (0, O.jsx)(qbe, {
items: T,
layout: a,
props: e
@@ -64243,7 +64279,7 @@ function uCe(e) {
}) : null, "载入更多"]
})
}) : null,
- f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, O.jsx)(QSe, {
+ f === "tags" && !v && e.selectMode ? /* @__PURE__ */ (0, O.jsx)(tCe, {
count: s.size,
match: l,
onMatch: u,
@@ -64257,16 +64293,16 @@ function uCe(e) {
]
});
}
-var dCe = {
+var mCe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function fCe({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz("search"),
+function hCe({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, O.jsx)(J, {
size: "small",
@@ -64275,16 +64311,16 @@ function fCe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : dCe[e], a = /* @__PURE__ */ (0, O.jsx)(JF, {
+ let i = n && e === "performers" ? "创作者" : mCe[e], a = /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: Rz(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: Lz(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(JF, {
+ actions: n ? a : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -64299,8 +64335,8 @@ var r$ = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, pCe = (e) => r$[e.junk_kind || "other"] || r$.other;
-function mCe(e) {
+}, gCe = (e) => r$[e.junk_kind || "other"] || r$.other;
+function _Ce(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -64311,21 +64347,21 @@ function mCe(e) {
glyph: "check"
};
}
-var i$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), hCe = (e, t) => [
+var i$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), vCe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function gCe({ kind: e, view: t }) {
+function yCe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function _Ce(e, t) {
- let n = await V(`/api/ads?${gCe(e)}`, t);
+async function bCe(e, t) {
+ let n = await V(`/api/ads?${yCe(e)}`, t);
return {
...n,
items: n.items || []
@@ -64341,8 +64377,8 @@ function a$({ name: e }) {
});
}
var o$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function vCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, D.useRef)(null), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = e.junk_kind || "other", [f, p] = pCe(e), m = String(e.name || ""), h = mCe(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function xCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, D.useRef)(null), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = e.junk_kind || "other", [f, p] = gCe(e), m = String(e.name || ""), h = _Ce(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]") || o$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
t.stopPropagation(), o$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
@@ -64376,7 +64412,7 @@ function vCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: PW,
+ onMouseDown: FW,
children: [
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-media-pic": "",
@@ -64472,7 +64508,7 @@ function vCe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var yCe = (0, D.memo)(vCe), s$ = [
+var SCe = (0, D.memo)(xCe), s$ = [
[
"",
"全部",
@@ -64508,11 +64544,11 @@ var yCe = (0, D.memo)(vCe), s$ = [
"其它",
"hard-drive"
]
-], bCe = (e) => s$.find(([t]) => t === e)?.[0] ?? "";
+], CCe = (e) => s$.find(([t]) => t === e)?.[0] ?? "";
function c$(e) {
let t = new URLSearchParams(e);
return {
- kind: bCe(t.get("type")),
+ kind: CCe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
@@ -64536,7 +64572,7 @@ function u$(e) {
};
}
var d$ = (e) => e === "dismissed" ? "已排除" : "待判断", f$ = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function xCe({ kind: e, view: t }) {
+function wCe({ kind: e, view: t }) {
let n = s$.map(([n, r, i]) => `<a href="${l$(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${f$(i)}${B(r)}</a>`).join(""), r = u$(t);
return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Qo(d$(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\"" : ""}>${f$(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
@@ -64582,8 +64618,8 @@ function h$({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function SCe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = iV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = KF(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? s$.map(([e]) => i$(t, e)).join(",") : ""}`), l = u$(s), u = (e) => {
+function TCe({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = rV(), a = (0, D.useRef)(null), { kind: o, view: s } = e, c = GF(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? s$.map(([e]) => i$(t, e)).join(",") : ""}`), l = u$(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") || l$()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -64652,33 +64688,33 @@ function SCe({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var CCe = Rz("check"), wCe = (e, t) => e[1] === t.view && e[2] === t.kind;
-function TCe(e) {
+var ECe = Lz("check"), DCe = (e, t) => e[1] === t.view && e[2] === t.kind;
+function OCe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = St({
- queryKey: hCe(t, e.revision),
- queryFn: ({ signal: e }) => _Ce(t, e),
- placeholderData: (e, n) => n && wCe(n.queryKey, t) ? e : void 0
+ queryKey: vCe(t, e.revision),
+ queryFn: ({ signal: e }) => bCe(t, e),
+ placeholderData: (e, n) => n && DCe(n.queryKey, t) ? e : void 0
});
(0, D.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = ECe(e.countRow), i = n.isPending;
+ let r = kCe(e.countRow), i = n.isPending;
(0, D.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, D.useLayoutEffect)(() => {
r && n.data && ms(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(SCe, {
+ let { navigate: a } = e.actions, o = r ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(TCe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [o, /* @__PURE__ */ (0, O.jsx)(DCe, {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [o, /* @__PURE__ */ (0, O.jsx)(ACe, {
props: e,
data: n.data,
pending: i,
@@ -64686,7 +64722,7 @@ function TCe(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function ECe(e) {
+function kCe(e) {
let [t, n] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
if (!e) return;
@@ -64696,8 +64732,8 @@ function ECe(e) {
};
}, [e]), t;
}
-function DCe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = lW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
+function ACe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = uW(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, D.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, D.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -64705,16 +64741,16 @@ function DCe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, O.jsx)(uW, {
+ if (!t) return /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, O.jsx)(Iz, {
- icon: CCe,
+ return /* @__PURE__ */ (0, O.jsx)(Fz, {
+ icon: ECe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, O.jsx)(JF, {
+ actions: t ? /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -64727,7 +64763,7 @@ function DCe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, O.jsx)(yCe, {
+ children: u.map((t) => /* @__PURE__ */ (0, O.jsx)(SCe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -64736,7 +64772,7 @@ function DCe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, O.jsx)(OCe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, O.jsx)(jCe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -64746,14 +64782,14 @@ function DCe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function OCe({ onMore: e }) {
+function jCe({ onMore: e }) {
let t = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: cW });
+ }, { rootMargin: lW });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
@@ -64764,17 +64800,17 @@ function OCe({ onMore: e }) {
}
//#endregion
//#region src/react/wants/wants.ts
-var g$ = "/api/wants", _$ = ["wants"], kCe = (e) => [
+var g$ = "/api/wants", _$ = ["wants"], MCe = (e) => [
"wants",
"follow",
e
-], ACe = [
+], NCe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
], v$ = (e) => V(g$, e);
-function jCe(e, t) {
+function PCe(e, t) {
U.setQueryData(_$, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
@@ -64783,17 +64819,17 @@ function jCe(e, t) {
} : n)
} : n);
}
-var MCe = (e, t) => V(`${g$}?follow=${encodeURIComponent(e)}`, t), y$ = (e, t) => H(g$, {
+var FCe = (e, t) => V(`${g$}?follow=${encodeURIComponent(e)}`, t), y$ = (e, t) => H(g$, {
action: "add",
...e
}, "POST", t), b$ = (e, t) => H(g$, {
action: "remove",
ids: e
-}, "POST", t), NCe = (e, t) => H(g$, {
+}, "POST", t), ICe = (e, t) => H(g$, {
action: "reset",
ids: e
-}, "POST", t), x$ = () => U.invalidateQueries({ queryKey: _$ }), PCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function FCe(e) {
+}, "POST", t), x$ = () => U.invalidateQueries({ queryKey: _$ }), LCe = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function RCe(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
@@ -64802,8 +64838,8 @@ var S$ = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
-], C$ = (e) => S$.some(([t]) => t === e) ? e : "library", ICe = (e) => C$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function LCe(e) {
+], C$ = (e) => S$.some(([t]) => t === e) ? e : "library", zCe = (e) => C$(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function BCe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
@@ -64824,7 +64860,7 @@ function T$(e, t, n = {}) {
});
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);
}
-function RCe(e, t, n) {
+function VCe(e, t, n) {
let r = Wa({
...e,
is_jav: !0
@@ -64833,7 +64869,7 @@ function RCe(e, t, n) {
let i = B(Ma(e));
return Ha(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 zCe(e, t) {
+async function HCe(e, t) {
e === "wants" ? await U.ensureQueryData({
queryKey: _$,
queryFn: () => v$(t),
@@ -64848,7 +64884,7 @@ async function zCe(e, t) {
}
//#endregion
//#region src/react/components/fieldset-layout.ts
-var E$ = MH({
+var E$ = jH({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -64864,10 +64900,10 @@ function k$(e) {
}
//#endregion
//#region src/management.ts
-var A$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", j$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", M$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", N$ = "disabled data-skeleton-action", BCe = "aria-disabled=\"true\"", P$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, F$ = (e, t, n) => `<div class="${D$[n]}"><div class="flex flex-col gap-2">
+var A$ = "扫描文件并更新馆藏,读取本地资料、补齐缺失资料和封面,按设置生成视频预览。", j$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", M$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", N$ = "disabled data-skeleton-action", UCe = "aria-disabled=\"true\"", P$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, F$ = (e, t, n) => `<div class="${D$[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 VCe() {
+function WCe() {
return P$(`<section aria-label="扫描与采集" class="${k$("stack")}" data-cleanup-task data-cleanup-processing>
${F$("扫描与采集", A$, "stack")}
<footer class="${O$.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>${Vo("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Wo({
@@ -64879,12 +64915,12 @@ function VCe() {
})}</span></footer>
</section>`);
}
-function HCe() {
+function GCe() {
return P$(`<section aria-label="媒体修复" class="${k$("split")}" data-cleanup-task data-cleanup-processing>
${F$("媒体修复", j$, "split")}
<footer class="${O$.split}">${Ko(M$, {
className: "w-48",
- attrs: BCe
+ attrs: UCe
})}${Wo({
label: "开始修复",
attrs: N$
@@ -64905,7 +64941,7 @@ function I$() {
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">${Vo(t, "size-4")}</i>${e}</span><strong class="text-title-1-medium">${M$}</strong><span class="text-caption-1-regular">${M$}</span></div>`).join("")}</div>
<div class="flex flex-col gap-4 max-cleanup-tight:gap-3">
- <div id="libraryProcessing">${VCe()}</div><div id="mediaRepair">${HCe()}</div>
+ <div id="libraryProcessing">${WCe()}</div><div id="mediaRepair">${GCe()}</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">${Ko(M$)}<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 }, () => Wo({
variant: "secondary",
@@ -64923,12 +64959,12 @@ function I$() {
}
//#endregion
//#region src/react/components/fieldset.tsx
-var UCe = MH({
+var KCe = jH({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), WCe = "border-t border-border-button-default p-4 first:border-t-0";
+}), qCe = "border-t border-border-button-default p-4 first:border-t-0";
function L$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, O.jsx)("h3", {
id: e,
@@ -64954,7 +64990,7 @@ function R$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a,
}
//#endregion
//#region src/react/components/status-label.tsx
-var GCe = {
+var JCe = {
success: "lime",
progress: "blue",
warning: "yellow",
@@ -64965,13 +65001,13 @@ function z$({ tone: e = "neutral", ...t }) {
return /* @__PURE__ */ (0, O.jsx)(hZ, {
"data-status-tone": e,
variant: "caption",
- color: GCe[e],
+ color: JCe[e],
...t
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function KCe({ className: e }) {
+function YCe({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -64984,7 +65020,7 @@ function KCe({ className: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-folder-open" })
});
}
-var qCe = "打开文件管理器失败,请重试";
+var XCe = "打开文件管理器失败,请重试";
function B$({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(""), c = (0, D.useRef)(!0);
(0, D.useEffect)(() => () => {
@@ -64996,7 +65032,7 @@ function B$({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await H("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof On ? e.message : qCe);
+ c.current && s(e instanceof On ? e.message : XCe);
} finally {
c.current && a(!1);
}
@@ -65007,15 +65043,15 @@ function B$({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, O.jsxs)("p", {
- className: eF("min-w-0 break-all", n),
+ className: $P("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, O.jsx)(MF, {
- icon: KCe,
+ }), /* @__PURE__ */ (0, O.jsx)(jF, {
+ icon: YCe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...Bz(i)
+ ...zz(i)
})]
}), o ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -65025,24 +65061,24 @@ function B$({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var JCe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", YCe = (e) => {
+var ZCe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", QCe = (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(",")}。`;
-}, XCe = (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} 部视频预览。` : "") + YCe(e);
-function ZCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = qme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Wme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = iV();
+}, $Ce = (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} 部视频预览。` : "") + QCe(e);
+function ewe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Jme(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Gme(e.notes || {}), c = !!t || e.status === "failed", l = c && !!a?.log, u = rV();
return /* @__PURE__ */ (0, O.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "warning",
title: "处理较慢",
- children: JCe
+ children: ZCe
}) : null,
- c ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ c ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
className: "gap-0 p-3",
action: o ? /* @__PURE__ */ (0, O.jsx)(J, {
@@ -65054,7 +65090,7 @@ function ZCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "mt-3 border-t border-current/20 pt-3",
- children: /* @__PURE__ */ (0, O.jsxs)(KH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(GH, {
summary: a.label,
contentClassName: "gap-0",
children: [/* @__PURE__ */ (0, O.jsx)("div", {
@@ -65097,12 +65133,12 @@ function ZCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "success",
title: "处理完成",
- children: XCe(n)
+ children: $Ce(n)
}) : null,
- !dH(e) && s ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ !uH(e) && s ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
className: "gap-0 p-3",
extra: e.issues_log && !l ? /* @__PURE__ */ (0, O.jsx)("div", {
@@ -65120,16 +65156,16 @@ function ZCe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function V$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = jH(e), o = Ct({
- mutationFn: (e) => H(lH, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = AH(e), o = Ct({
+ mutationFn: (e) => H(cH, e),
onSuccess: (e) => {
- a(), U.setQueryData(uH, e), U.invalidateQueries({ queryKey: uH });
+ a(), U.setQueryData(lH, e), U.invalidateQueries({ queryKey: lH });
}
});
(0, D.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? An(o.error) : r.isError ? r.data ? hH : An(r.error) : "", l = o.isPending || dH(s), u = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? An(o.error) : r.isError ? r.data ? mH : An(r.error) : "", l = o.isPending || uH(s), u = async (e) => {
l || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -65138,19 +65174,19 @@ function V$(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(xH, {
+ /* @__PURE__ */ (0, O.jsx)(bH, {
href: "/sources",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, O.jsx)(xH, {
+ s.candidates ? /* @__PURE__ */ (0, O.jsx)(bH, {
href: "/review",
size: "small",
- trailingIcon: uz,
+ trailingIcon: lz,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, O.jsx)(oK, {
+ /* @__PURE__ */ (0, O.jsx)(sK, {
scan: !0,
busy: l,
metadataOnly: s?.metadata_only,
@@ -65169,16 +65205,16 @@ function V$(e) {
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, O.jsx)("span", {
className: "self-start",
children: /* @__PURE__ */ (0, O.jsx)(z$, { children: "已暂停" })
- }) : dH(s) ? /* @__PURE__ */ (0, O.jsx)(uhe, { state: s }) : null,
- dH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
+ }) : uH(s) ? /* @__PURE__ */ (0, O.jsx)(dhe, { state: s }) : null,
+ uH(s) ? /* @__PURE__ */ (0, O.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: fH(s)
+ children: dH(s)
}) : null,
- dH(s) ? /* @__PURE__ */ (0, O.jsx)(eU, { traffic: s.traffic }) : null
+ uH(s) ? /* @__PURE__ */ (0, O.jsx)($H, { traffic: s.traffic }) : null
]
})
- }), /* @__PURE__ */ (0, O.jsx)(ZCe, {
+ }), /* @__PURE__ */ (0, O.jsx)(ewe, {
state: s,
problem: c,
settled: i,
@@ -65194,30 +65230,30 @@ function V$(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var QCe = "/api/playlists", H$ = "/api/playlist", U$ = ["playlists"], W$ = (e) => V(QCe, e);
-async function $Ce(e) {
+var twe = "/api/playlists", H$ = "/api/playlist", U$ = ["playlists"], W$ = (e) => V(twe, e);
+async function nwe(e) {
await U.fetchQuery({
queryKey: U$,
queryFn: () => W$(e),
staleTime: 0
});
}
-var ewe = () => U.invalidateQueries({
+var rwe = () => U.invalidateQueries({
queryKey: U$,
exact: !0
-}), twe = (e) => e.current_asset_id || e.preview_asset_id || null, nwe = (e) => `/poster?id=${e}&c=4`, rwe = (e) => H(H$, {
+}), iwe = (e) => e.current_asset_id || e.preview_asset_id || null, awe = (e) => `/poster?id=${e}&c=4`, owe = (e) => H(H$, {
action: "create",
name: e,
asset_ids: []
-}), iwe = (e, t) => H(H$, {
+}), swe = (e, t) => H(H$, {
action: "rename",
id: e,
name: t
-}), awe = (e) => H(H$, {
+}), cwe = (e) => H(H$, {
action: "delete",
id: e
-}), owe = (e) => V(`${H$}?id=${e}`).catch(() => null);
-function swe(e) {
+}), lwe = (e) => V(`${H$}?id=${e}`).catch(() => null);
+function uwe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return H(H$, {
action: "create",
@@ -65229,8 +65265,8 @@ function swe(e) {
}
//#endregion
//#region src/react/scraping/custom-source-data.ts
-var G$ = "/api/custom-metadata", K$ = ["custom-metadata"], q$ = (e) => V(G$, e), cwe = "/api/scraping", lwe = "/api/scraping/settings", uwe = "/api/scraping/check", J$ = "/api/scraping/cover", dwe = "/api/scraping/amane-bridge", fwe = "/api/scraping/amane-bridge/check", pwe = "/api/scraping/amane-bridge/rebuild", Y$ = ["scraping"], X$ = ["scraping", "cover"], Z$ = ["scraping", "amane-bridge"], mwe = 262144, Q$ = (e) => V(cwe, e), $$ = (e) => V(J$, e), e1 = (e) => V(dwe, e);
-async function hwe(e) {
+var G$ = "/api/custom-metadata", K$ = ["custom-metadata"], q$ = (e) => V(G$, e), dwe = "/api/scraping", fwe = "/api/scraping/settings", pwe = "/api/scraping/check", J$ = "/api/scraping/cover", mwe = "/api/scraping/amane-bridge", hwe = "/api/scraping/amane-bridge/check", gwe = "/api/scraping/amane-bridge/rebuild", Y$ = ["scraping"], X$ = ["scraping", "cover"], Z$ = ["scraping", "amane-bridge"], _we = 262144, Q$ = (e) => V(dwe, e), $$ = (e) => V(J$, e), e1 = (e) => V(mwe, e);
+async function vwe(e) {
await Promise.all([
U.fetchQuery({
queryKey: Y$,
@@ -65250,7 +65286,7 @@ async function hwe(e) {
})
]);
}
-function gwe(e, t) {
+function ywe(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
@@ -65268,7 +65304,7 @@ var t1 = /* @__PURE__ */ new Set([
"photo",
"release"
]), r1 = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function _we({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function bwe({ 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,
@@ -65357,7 +65393,7 @@ function _we({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function vwe(e, t, n = Math.random) {
+function xwe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -65367,7 +65403,7 @@ function vwe(e, t, n = Math.random) {
}
//#endregion
//#region src/react/search/search-page.tsx
-var ywe = () => ({
+var Swe = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -65385,7 +65421,7 @@ var ywe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), i1 = (e) => _we({
+}), i1 = (e) => bwe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -65394,18 +65430,18 @@ var ywe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), bwe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), a1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
+}), Cwe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), a1 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
});
-function xwe(e) {
+function wwe(e) {
let t = (0, D.useRef)(e);
t.current = e;
let n = (0, D.useRef)(null);
- n.current ??= ywe();
+ n.current ??= Swe();
let r = n.current, i = (0, D.useRef)(null), [, a] = (0, D.useReducer)((e) => e + 1, 0), o = (0, D.useRef)(null);
- o.current ??= Swe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= Twe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, D.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -65418,7 +65454,7 @@ function xwe(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = i1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(wwe, {
+ let c = i1(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, O.jsx)(Dwe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -65450,7 +65486,7 @@ function xwe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, O.jsx)(Cwe, {
+ c.tabs ? /* @__PURE__ */ (0, O.jsx)(Ewe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -65477,7 +65513,7 @@ function xwe(e) {
]
});
}
-function Swe(e, t, n, r) {
+function Twe(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 () => {
@@ -65534,9 +65570,9 @@ function Swe(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : vwe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : xwe(t.pool, o()), t.active = -1;
let a = n();
- a && (bwe(i1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (Cwe(i1(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -65609,7 +65645,7 @@ function Swe(e, t, n, r) {
openPath: C
};
}
-function Cwe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Ewe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
r(i.current);
@@ -65625,7 +65661,7 @@ function Cwe({ tabs: e, kind: t, onPick: n, wire: r }) {
onClick: () => n(e),
children: [r, i ? /* @__PURE__ */ (0, O.jsx)(zQ, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, O.jsxs)(rF, {
+ return /* @__PURE__ */ (0, O.jsxs)(nF, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -65635,7 +65671,7 @@ function Cwe({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var o1 = (e) => e.preventDefault();
-function wwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+function Dwe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -65796,7 +65832,7 @@ function c1({ item: e, kind: t }) {
//#endregion
//#region src/react/settings/configuration.ts
var l1 = ["configuration"], u1 = (e) => V(tX, e);
-async function Twe(e) {
+async function Owe(e) {
await U.fetchQuery({
queryKey: l1,
queryFn: () => u1(e)
@@ -65850,7 +65886,7 @@ function p1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function Ewe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function kwe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)({
onStep: a,
onSettle: o
@@ -65885,7 +65921,7 @@ function Ewe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var Dwe = [
+var Awe = [
[
"strength",
"强度",
@@ -65912,8 +65948,8 @@ var Dwe = [
100
]
];
-function Owe({ host: e, spot: t, index: n, glow: r }) {
- let i = poe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = iV(), [l, u] = (0, D.useState)("all");
+function jwe({ host: e, spot: t, index: n, glow: r }) {
+ let i = moe[n], a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = rV(), [l, u] = (0, D.useState)("all");
(0, D.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -65926,7 +65962,7 @@ function Owe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Xk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), So(), o.current?.focus();
+ r[t].color = Yk(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), So(), o.current?.focus();
};
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-glow-stop": t,
@@ -65951,7 +65987,7 @@ function Owe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "popmenu",
@@ -65963,7 +65999,7 @@ function Owe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: Jk.map(([e, t]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: qk.map(([e, t]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -65977,7 +66013,7 @@ function Owe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: goe.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
+ children: _oe.map(([e, t, n]) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -65994,8 +66030,8 @@ function Owe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function kwe({ host: e }) {
- let t = e.store.value.homeGlow, n = Hk(t.preset);
+function Mwe({ host: e }) {
+ let t = e.store.value.homeGlow, n = Vk(t.preset);
return /* @__PURE__ */ (0, O.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -66014,10 +66050,10 @@ function kwe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, O.jsx)("b", {
"data-glow-preset-name": "",
- children: moe(t.preset)
+ children: hoe(t.preset)
})]
}),
- /* @__PURE__ */ (0, O.jsx)(HA, {
+ /* @__PURE__ */ (0, O.jsx)(VA, {
store: e.store,
label: "光晕配色"
}),
@@ -66028,7 +66064,7 @@ function kwe({ host: e }) {
}),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-fields": "",
- children: Dwe.map(([r, i, a]) => /* @__PURE__ */ (0, O.jsx)(Ewe, {
+ children: Awe.map(([r, i, a]) => /* @__PURE__ */ (0, O.jsx)(kwe, {
field: r,
label: i,
max: a,
@@ -66049,7 +66085,7 @@ function kwe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Qk(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Zk(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -66068,7 +66104,7 @@ function kwe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
"data-glow-stops": "",
- children: zk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(Owe, {
+ children: Rk.map((n, r) => /* @__PURE__ */ (0, O.jsx)(jwe, {
host: e,
spot: n,
index: r,
@@ -66081,7 +66117,7 @@ function kwe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var Awe = {
+var Nwe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -66135,8 +66171,8 @@ function h1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function g1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = Awe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, D.useRef)(0);
- d.current ||= Ok(Number(localStorage.getItem(m1(e))), o, s, n && n > 0 ? n : l);
+ let a = Nwe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, D.useRef)(0);
+ d.current ||= Dk(Number(localStorage.getItem(m1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, D.useState)(n ?? 0), [m, h] = (0, D.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, D.useState)(""), v = (0, D.useRef)(null), y = (0, D.useRef)(i);
y.current = i, (0, D.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -66220,8 +66256,8 @@ function v1(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var jwe = "__home__", y1 = (e) => e === "" ? jwe : e;
-function Mwe({ host: e }) {
+var Pwe = "__home__", y1 = (e) => e === "" ? Pwe : e;
+function Fwe({ host: e }) {
let t = _1(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, D.useState)(null), [c, l] = (0, D.useState)(!1), [u, d] = (0, D.useState)(null), [f, p] = (0, D.useState)(null), m = (0, D.useRef)(null), h = (0, D.useRef)(null), g = (e, r, i) => {
let a = v1(n, e, r, i);
a && t(a);
@@ -66283,9 +66319,9 @@ function Mwe({ host: e }) {
/* @__PURE__ */ (0, O.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, O.jsx)(cP, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, O.jsx)(lP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: a ?? "" }),
/* @__PURE__ */ (0, O.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, O.jsxs)("span", {
@@ -66299,7 +66335,7 @@ function Mwe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66309,7 +66345,7 @@ function Mwe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -66321,7 +66357,7 @@ function Mwe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, O.jsx)(cP, { name: "eye-off" })
})
]
})]
@@ -66341,13 +66377,13 @@ function Mwe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(lP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(cP, { name: "check" }), /* @__PURE__ */ (0, O.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, O.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -66365,7 +66401,7 @@ function Mwe({ host: e }) {
onClick: () => {
s(y1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, O.jsx)(cP, { name: n ?? "" }), /* @__PURE__ */ (0, O.jsx)("span", { children: t })]
}, y1(e)))
}) : null]
}), /* @__PURE__ */ (0, O.jsx)("button", {
@@ -66389,7 +66425,7 @@ var b1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Nwe = [
+], Iwe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -66398,7 +66434,7 @@ var b1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Pwe = [["desc", "降序"], ["asc", "升序"]], Fwe = [[
+], Lwe = [["desc", "降序"], ["asc", "升序"]], Rwe = [[
"cover",
"官方封面",
""
@@ -66406,7 +66442,7 @@ var b1 = [
"thumbnail",
"预览图",
""
-]], Iwe = [
+]], zwe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -66425,32 +66461,32 @@ var b1 = [
"切片",
"隐藏切片"
]
-], Lwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", x1 = null, S1 = {
+], Bwe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", x1 = null, S1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, C1 = 0, w1 = null, T1 = /* @__PURE__ */ new Set();
-function Rwe(e) {
+function Vwe(e) {
return T1.add(e), () => {
T1.delete(e);
};
}
-function zwe() {
+function Hwe() {
for (let e of [...T1]) e();
}
function E1(e) {
S1 = {
...S1,
...e
- }, (0, Tt.flushSync)(zwe);
+ }, (0, Tt.flushSync)(Hwe);
}
-async function Bwe(e) {
+async function Uwe(e) {
let t = S1.epoch, n = await e.configurable();
S1.open && S1.epoch === t && E1({ configurable: n });
}
-function Vwe(e = "") {
+function Wwe(e = "") {
let t = x1;
if (!t) return;
let n = b1.findIndex(([t]) => t === e);
@@ -66459,7 +66495,7 @@ function Vwe(e = "") {
return;
}
So(), C1 += 1, w1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = wye();
+ let r = Dye();
E1({
open: !0,
closing: !1,
@@ -66468,7 +66504,7 @@ function Vwe(e = "") {
tab: n >= 0 ? n : S1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Bwe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Uwe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function D1(e = !0) {
if (!S1.open || S1.closing) return;
@@ -66482,31 +66518,31 @@ function D1(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 Hwe = {
- open: Vwe,
+var Gwe = {
+ open: Wwe,
close: D1,
isOpen: () => S1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Uwe(e) {
- return x1 = e, Hwe;
+function Kwe(e) {
+ return x1 = e, Gwe;
}
-function Wwe() {
- let e = (0, D.useSyncExternalStore)(Rwe, () => S1);
- return x1 ? /* @__PURE__ */ (0, O.jsx)(qwe, {
+function qwe() {
+ let e = (0, D.useSyncExternalStore)(Vwe, () => S1);
+ return x1 ? /* @__PURE__ */ (0, O.jsx)(Xwe, {
host: x1,
view: e
}) : null;
}
-function Gwe(e) {
+function Jwe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Lwe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Bwe)].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 O1 = (e) => `settings-tab-${e}`, k1 = (e) => `settings-group-${e}`;
-function Kwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function Ywe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(e), l = (0, D.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -66578,7 +66614,7 @@ function Kwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(lP, { name: n }) : /* @__PURE__ */ (0, O.jsx)(Cce, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, O.jsx)(cP, { name: n }) : /* @__PURE__ */ (0, O.jsx)(wce, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, O.jsx)("div", {
"data-settings-service": "",
@@ -66589,9 +66625,9 @@ function Kwe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, O.jsx)(lP, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" })
+ /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-right" })
]
})
})
@@ -66634,7 +66670,7 @@ function M1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, O.jsxs)("span", { children: [/* @__PURE__ */ (0, O.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, O.jsx)("small", { children: t }) : t] }), r]
});
}
-function qwe({ host: e, view: t }) {
+function Xwe({ host: e, view: t }) {
(0, D.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -66666,7 +66702,7 @@ function qwe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Gwe,
+ onKeyDown: Jwe,
onClick: (e) => {
e.target === e.currentTarget && D1();
},
@@ -66680,13 +66716,13 @@ function qwe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, O.jsx)("h2", {
id: "settingsTitle",
children: b1[t.tab][0]
- }), /* @__PURE__ */ (0, O.jsx)(zz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Rz, {
id: "settingsClose",
label: "关闭设置",
onPress: () => D1()
})]
}),
- /* @__PURE__ */ (0, O.jsx)(Kwe, {
+ /* @__PURE__ */ (0, O.jsx)(Ywe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -66755,7 +66791,7 @@ function qwe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(kwe, { host: e }),
+ /* @__PURE__ */ (0, O.jsx)(Mwe, { host: e }),
/* @__PURE__ */ (0, O.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -66767,18 +66803,18 @@ function qwe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, O.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, O.jsx)(Mwe, { host: e })
+ children: /* @__PURE__ */ (0, O.jsx)(Fwe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(Ywe, {
+ /* @__PURE__ */ (0, O.jsx)(Qwe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, O.jsx)(Xwe, {
+ /* @__PURE__ */ (0, O.jsx)($we, {
host: e,
tab: t.tab,
epoch: d
@@ -66787,7 +66823,7 @@ function qwe({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, O.jsx)($we, {
+ /* @__PURE__ */ (0, O.jsx)(nTe, {
host: e,
epoch: d
}),
@@ -66809,7 +66845,7 @@ function qwe({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(JF, {
+ children: /* @__PURE__ */ (0, O.jsx)(qF, {
variant: "secondary",
href: "/taste",
onClick: () => D1(!1),
@@ -66837,7 +66873,7 @@ function qwe({ host: e, view: t }) {
})
});
}
-function Jwe(e, t) {
+function Zwe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = cs("arrow-up", "arrow-down", "a", {
@@ -66847,7 +66883,7 @@ function Jwe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Ywe({ host: e, tab: t, epoch: n }) {
+function Qwe({ 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, O.jsxs)(A1, {
index: 1,
@@ -66879,7 +66915,7 @@ function Ywe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, O.jsx)(p1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Nwe,
+ options: Iwe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -66888,7 +66924,7 @@ function Ywe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, O.jsx)(p1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Pwe,
+ options: Lwe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -66896,7 +66932,7 @@ function Ywe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Jwe(e, o)
+ decorate: (e) => Zwe(e, o)
})]
})
}),
@@ -66937,7 +66973,7 @@ function Ywe({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Ok(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Dk(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -66946,14 +66982,14 @@ function Ywe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, O.jsx)(Qwe, {
+ /* @__PURE__ */ (0, O.jsx)(tTe, {
host: e,
epoch: n
})
]
});
}
-function Xwe({ host: e, tab: t, epoch: n }) {
+function $we({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, O.jsxs)(A1, {
index: 2,
@@ -66969,7 +67005,7 @@ function Xwe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Fwe,
+ options: Rwe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -66993,7 +67029,7 @@ function Xwe({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Ok(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Dk(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -67006,7 +67042,7 @@ function Xwe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Iwe.map(([t, n, r, i]) => /* @__PURE__ */ (0, O.jsx)(Zwe, {
+ zwe.map(([t, n, r, i]) => /* @__PURE__ */ (0, O.jsx)(eTe, {
host: e,
id: t,
settingKey: n,
@@ -67016,7 +67052,7 @@ function Xwe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Zwe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function eTe({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = pX(), [o, s] = (0, D.useState)(null), c = (0, D.useRef)(null), l = e.store.value, u = (t) => {
s(t), cc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -67041,7 +67077,7 @@ function Zwe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Qwe({ host: e, epoch: t }) {
+function tTe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)(j1, {
@@ -67076,7 +67112,7 @@ function Qwe({ host: e, epoch: t }) {
})
] });
}
-function $we({ host: e, epoch: t }) {
+function nTe({ host: e, epoch: t }) {
let n = e.store.value, r = pX();
return /* @__PURE__ */ (0, O.jsx)(M1, {
title: "搜索记录数量",
@@ -67087,7 +67123,7 @@ function $we({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Ok(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Dk(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@ -67095,7 +67131,7 @@ function $we({ host: e, epoch: t }) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var N1 = "__home__", eTe = {
+var N1 = "__home__", rTe = {
creator: 26,
tag: 30,
tech: 16
@@ -67107,7 +67143,7 @@ var N1 = "__home__", eTe = {
},
epoch: 0
}, L1 = /* @__PURE__ */ new Set();
-function tTe(e) {
+function iTe(e) {
return L1.add(e), () => {
L1.delete(e);
};
@@ -67115,7 +67151,7 @@ function tTe(e) {
function R1() {
for (let e of [...L1]) e();
}
-var nTe = {
+var aTe = {
render(e) {
I1 = {
...I1,
@@ -67129,7 +67165,7 @@ var nTe = {
}, (0, Tt.flushSync)(R1);
}
};
-function rTe(e) {
+function oTe(e) {
return F1 = e, I1 = {
...I1,
props: {
@@ -67137,26 +67173,26 @@ function rTe(e) {
filters: {},
latest: null
}
- }, nTe;
+ }, aTe;
}
-function iTe() {
- let e = (0, D.useSyncExternalStore)(tTe, () => I1);
- return F1 ? /* @__PURE__ */ (0, O.jsx)(aTe, {
+function sTe() {
+ let e = (0, D.useSyncExternalStore)(iTe, () => I1);
+ return F1 ? /* @__PURE__ */ (0, O.jsx)(cTe, {
host: F1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function aTe({ host: e, props: t, epoch: n }) {
+function cTe({ host: e, props: t, epoch: n }) {
let r = (0, D.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, O.jsx)(oTe, {
+ /* @__PURE__ */ (0, O.jsx)(lTe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, O.jsx)(cTe, {
+ t.content ? /* @__PURE__ */ (0, O.jsx)(dTe, {
host: e,
content: t.content,
filters: t.filters,
@@ -67164,8 +67200,8 @@ function aTe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function oTe({ host: e, epoch: t, version: n }) {
- let r = _1(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, D.useRef)(null), l = (0, D.useRef)(null), u = KF(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || N1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function lTe({ host: e, epoch: t, version: n }) {
+ let r = _1(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, D.useRef)(null), l = (0, D.useRef)(null), u = GF(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || N1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, D.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -67232,7 +67268,7 @@ function oTe({ host: e, epoch: t, version: n }) {
height: 24,
alt: "",
decoding: "async"
- }) : /* @__PURE__ */ (0, O.jsx)(lP, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, O.jsx)(cP, { name: r }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}, t || N1))
}), v ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-glide": "",
@@ -67241,7 +67277,7 @@ function oTe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var z1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function sTe(e) {
+function uTe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -67254,7 +67290,7 @@ function sTe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function cTe({ host: e, content: t, filters: n, latest: r }) {
+function dTe({ 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, D.useLayoutEffect)(() => {
t.kind === "catalog" && ms(e.scroll, "drawer");
@@ -67263,8 +67299,8 @@ function cTe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? lTe(e, t.facets, n, r, i) : uTe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, O.jsx)(dTe, {
+ let a = t.kind === "catalog" ? fTe(e, t.facets, n, r, i) : pTe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, O.jsx)(mTe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -67273,8 +67309,8 @@ function cTe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function lTe(e, t, n, r, i) {
- let a = sTe(r), o = (t, r, i) => {
+function fTe(e, t, n, r, i) {
+ let a = uTe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = z1(n, r);
return /* @__PURE__ */ (0, O.jsx)(H1, {
@@ -67299,12 +67335,12 @@ function lTe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, O.jsx)(pTe, {
+ body: /* @__PURE__ */ (0, O.jsx)(gTe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: eTe[d],
+ limit: rTe[d],
filterKey: l,
selected: f,
counts: a,
@@ -67342,7 +67378,7 @@ function lTe(e, t, n, r, i) {
} : null
];
}
-function uTe(e, t, n) {
+function pTe(e, t, n) {
let r = t.providers || [], i = z1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -67389,7 +67425,7 @@ function B1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function dTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function mTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, D.useRef)(null), s = (0, D.useRef)(null), [c, l] = (0, D.useState)(() => B1(e, n)), u = (0, D.useRef)(!1);
(0, D.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -67415,7 +67451,7 @@ function dTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-right" }), /* @__PURE__ */ (0, O.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, O.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -67436,8 +67472,8 @@ function dTe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var V1 = (0, D.createContext)(() => {});
-function fTe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(lP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
+function hTe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, O.jsx)(cP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, O.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -67460,7 +67496,7 @@ function H1({ 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, O.jsx)(fTe, { dot: e.dot }),
+ /* @__PURE__ */ (0, O.jsx)(hTe, { dot: e.dot }),
/* @__PURE__ */ (0, O.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -67475,7 +67511,7 @@ function H1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function pTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function gTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, D.useContext)(V1), [d, f] = (0, D.useState)(null), [p, m] = (0, D.useState)(e);
p !== e && (m(e), f(null));
let h = (0, D.useRef)(null), g = (0, D.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -67516,7 +67552,7 @@ function pTe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, O.jsx)(lP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, O.jsx)(cP, { name: "chevron-down" })
}) : null] });
}
function U1({ rows: e, host: t, selected: n, badges: r }) {
@@ -67627,11 +67663,11 @@ function K1() {
}
//#endregion
//#region src/react/settings/library-policy-copy.ts
-var q1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", mTe = [
+var q1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", _Te = [
"自动补全",
"仅使用本地资料",
"自定义"
-], hTe = [
+], vTe = [
[
"读本地 NFO 和图片",
"✓",
@@ -67662,7 +67698,7 @@ var q1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], gTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", J1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", Y1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", X1 = "只填域名,留空用默认地址", _Te = [
+], yTe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", J1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", Y1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", X1 = "只填域名,留空用默认地址", bTe = [
{
provider: "coomer",
label: "Coomer",
@@ -67743,7 +67779,7 @@ var q1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], Z1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", vTe = "peach.configuration.shape.v1";
+], Z1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", xTe = "peach.configuration.shape.v1";
function Q1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -67752,11 +67788,11 @@ function Q1() {
return {};
}
}
-function yTe(e, t) {
+function STe(e, t) {
try {
let n = Q1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(vTe, JSON.stringify({
+ localStorage.setItem(xTe, JSON.stringify({
...n,
[e]: t
}));
@@ -67767,13 +67803,13 @@ var $1 = (e) => Q1()[e], e0 = (e) => e === !0, t0 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: r0
-}), u0 = (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>`, d0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, bTe = (e, t, n) => {
+}), u0 = (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>`, d0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, CTe = (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">${c0()}${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;
-}, f0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${bTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? u0(n, i) : ""}</div></section>`, p0 = (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>`, m0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => p0(e, t, `<span class="skeleton ${n}"></span>`), h0 = (e, t = "4em") => p0(e, "", i0(t)), g0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, _0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, v0 = (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>${a0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, y0 = (e) => `<div class="flex flex-col gap-1">${_0(e)}${Ko(i0("8em"))}</div>`, b0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${o0("16px", "16px")}${e}</span>`, x0 = (e) => `<span class="inline-flex items-center gap-1">${c0()}${e}</span>`, S0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Vo("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, xTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), C0 = (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">${xTe.has(e) ? i0("100%") + i0("80%") + i0("6em") : i0("6em")}</dd></div>`).join("")}</dl>`, STe = _Te;
-function CTe(e = $1("credentials")) {
+}, f0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${CTe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? u0(n, i) : ""}</div></section>`, p0 = (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>`, m0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => p0(e, t, `<span class="skeleton ${n}"></span>`), h0 = (e, t = "4em") => p0(e, "", i0(t)), g0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, _0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, v0 = (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>${a0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, y0 = (e) => `<div class="flex flex-col gap-1">${_0(e)}${Ko(i0("8em"))}</div>`, b0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${o0("16px", "16px")}${e}</span>`, x0 = (e) => `<span class="inline-flex items-center gap-1">${c0()}${e}</span>`, S0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Vo("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, wTe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), C0 = (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">${wTe.has(e) ? i0("100%") + i0("80%") + i0("6em") : i0("6em")}</dd></div>`).join("")}</dl>`, TTe = bTe;
+function ETe(e = $1("credentials")) {
let t = new Set(n0(e?.done, 64, String));
- return STe.map((e) => {
+ return TTe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -67782,19 +67818,19 @@ function CTe(e = $1("credentials")) {
};
});
}
-function wTe(e) {
+function DTe(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = s0() + (n && !e.done ? t.map(() => s0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${o0("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 ? g0(B(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + g0(`${B(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? g0(B(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => v0(B(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${l0("保存配置")}</div>${S0("凭据文件")}</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>${S0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function w0() {
- let e = CTe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = ETe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return f0("来源凭据", d0(`<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(wTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? i0("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(DTe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? i0("5em") : "" });
}
function T0() {
let e = n0($1("indexers")?.open, 20, e0).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">${Vo("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${i0("6em")}${i0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${v0("名称")}${v0("Torznab 地址")}${v0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${b0("启用")}${l0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -67809,25 +67845,25 @@ function O0() {
let e = $1("cloudProxy"), t = n0(e?.accounts, 12, (e) => Array.isArray(e) ? [e0(e[0]), e0(e[1])] : [!1, !1]), n = t0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${_0(x0(i0("6em")))}${g0(i0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${_0(x0(i0("8em")))}${g0(i0("50%"))}${D0("数据代理", e)}${D0("API 代理", t)}<div class="flex justify-end">${l0("保存配置")}</div></div>`).join("") : g0(i0("60%"));
return f0("CloudDrive 代理", d0(`${g0(Z1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), l0("重新读取", "secondary"));
}
-var k0 = (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>`, TTe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var k0 = (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>`, OTe = (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">${a0()}</span>${Wo({
glyph: "folder-search",
variant: "secondary",
attrs: r0
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${k0("来源", Ko(i0("6em")), "w-full @lg:w-60")}${k0("读取策略", Ko(i0("4em")), "w-full @lg:w-32")}${e > 1 ? k0("移到媒体库", Ko(i0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, ETe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, kTe = (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>${Wo({
label: "自动识别",
variant: "secondary",
attrs: r0
})}${a0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${Ko(i0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${TTe(t).repeat(e)}<div class="flex">${Wo({
+ <div data-library-folders>${OTe(t).repeat(e)}<div class="flex">${Wo({
label: "添加文件夹",
variant: "secondary",
attrs: r0
-})}</div></div></div>`, DTe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${q1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, OTe = "<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 kTe(e = $1("media")) {
+})}</div></div></div>`, ATe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${q1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, jTe = "<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 MTe(e = $1("media")) {
let t = n0(e?.folders, 12, (e) => t0(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -67837,7 +67873,7 @@ function kTe(e = $1("media")) {
cloud: !1
};
}
-function ATe() {
+function NTe() {
let e = $1("discovery"), t = e0(e?.enabled), n = t && e0(e?.cloud), r = n && e0(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${a0()}</span>${Ko(i0("4em"), { prefix: "对应目录" })}${Wo({
glyph: "trash",
variant: "secondary",
@@ -67845,13 +67881,13 @@ function ATe() {
})}</div>`;
return f0("自动发现新文件", d0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${s0()}</div>`) + m0("发现新文件后自动入库", t ? i0("10em") : "") + m0("监视本机文件夹", t && e0(e?.watchLocal) ? i0("12em") : "") + m0("接收 CloudDrive2 通知") + (n ? p0("Webhook 配置", i0("20em"), "") : "") + (r ? d0(S0("查看配置"), !0) : "") + (n ? d0(`<div class="flex flex-col gap-3">${_0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(t0(e?.prefixes, 20))}</div><div>${l0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? l0("更换密钥", "secondary") : "") + l0("保存配置"));
}
-var jTe = () => {
- let e = kTe();
- return f0("媒体库与目录", d0(`${DTe}<div class="flex flex-col gap-4">${e.folders.map((t) => ETe(t, e.folders.length)).join("")}</div>
+var PTe = () => {
+ let e = MTe();
+ return f0("媒体库与目录", d0(`${ATe}<div class="flex flex-col gap-4">${e.folders.map((t) => kTe(t, e.folders.length)).join("")}</div>
<div class="self-start">${l0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${J1}</p>
- ${e.cloud ? OTe : ""}<span class="text-body-medium text-text-primary">${i0("15em")}</span>`), l0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? O0() : "") + ATe() + f0("番号识别规则", d0(`${i0("90%")}${i0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), l0("保存配置")) + f0("视频预览", m0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + m0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + m0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, MTe = () => `<div>${l0("采集来源与登录状态", "secondary")}</div>` + w0() + f0("关注采集", p0("自动检查更新", "", "<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>") + h0("订阅源拉取") + m0("首次采集范围", "", "ui-configuration-skeleton-select") + h0("头像刷新") + h0("favicon 刷新")) + T0() + f0("作品资料站点", d0(`<p class="text-body-2-regular text-text-secondary">${Y1}</p>${v0(x0("JavDB 地址"), X1)}${v0(x0("MISSAV 地址"), X1)}`), l0("保存配置")), NTe = () => {
+ ${e.cloud ? jTe : ""}<span class="text-body-medium text-text-primary">${i0("15em")}</span>`), l0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? O0() : "") + NTe() + f0("番号识别规则", d0(`${i0("90%")}${i0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), l0("保存配置")) + f0("视频预览", m0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + m0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + m0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, FTe = () => `<div>${l0("采集来源与登录状态", "secondary")}</div>` + w0() + f0("关注采集", p0("自动检查更新", "", "<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>") + h0("订阅源拉取") + m0("首次采集范围", "", "ui-configuration-skeleton-select") + h0("头像刷新") + h0("favicon 刷新")) + T0() + f0("作品资料站点", d0(`<p class="text-body-2-regular text-text-secondary">${Y1}</p>${v0(x0("JavDB 地址"), X1)}${v0(x0("MISSAV 地址"), X1)}`), l0("保存配置")), ITe = () => {
let e = $1("downloads"), t = e0(e?.pikpak), n = e0(e?.pikpakRoots) ? y0(x0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${_0(x0("PikPak 根目录对应的媒体目录"))}${g0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = e0(e?.cloud) ? f0("云下载", d0(v0("CloudDrive2 地址") + v0("CloudDrive2 API 令牌", "需要离线任务权限。") + (e0(e?.has115) ? v0(x0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? v0(x0("PikPak 目标目录"), "目录要已经存在。") + n : "") + v0("等待上限(小时)", i0("14em"))), l0("检查连接", "secondary") + l0("保存配置")) : "", i = e0(e?.pikpakLoggedIn);
return r + (t ? f0("PikPak 账号", i ? C0(["账号", i0("4em")]) : d0(v0("账号") + v0("密码") + b0("保存密码,登录过期时自动重新登录")), i ? l0("登出", "secondary") : (e0(e?.browserLogin) ? l0("用浏览器登录", "secondary") : "") + l0("登录"), {
aside: s0(),
@@ -67865,20 +67901,20 @@ var jTe = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function PTe(e) {
+function LTe(e) {
let t = e === "locked" ? "" : v0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + v0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (A0[e] ? g0(A0[e]) : "") + (e === "open" ? o0("100%", "64px") : "") + (e === "password" || e === "legacy" ? b0("关闭访问密码") : "") + (e === "password" ? v0("当前访问密码 *") : "") + t;
}
-var FTe = () => {
+var RTe = () => {
let e = $1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = e0(e?.tunnelNamed), r = (n && e0(e?.tunnelNamedMode) ? g0(j0.named) + v0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + v0("隧道令牌", i0("16em")) : g0(j0.quick)) + (e0(e?.tunnelNote) ? o0("100%", "64px") : "");
- return (e0(e?.port) ? f0("本机访问端口", d0(a0("128px")), l0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + f0("Peach 代理", m0("连接方式", "", "ui-configuration-skeleton-select") + (e0(e?.proxyAddress) ? d0(v0("代理地址"), !0) : ""), l0("保存配置")) + f0("访问密码", d0(PTe(t)), t === "locked" ? "" : l0("保存配置")) + f0("Cloudflare 公网入口", d0((n ? o0("10.5em", "36px") : "") + r), l0("启动公网入口", n ? "secondary" : "primary") + (n ? l0("保存配置") : ""), { aside: s0() });
-}, ITe = [
+ return (e0(e?.port) ? f0("本机访问端口", d0(a0("128px")), l0("保存配置"), { status: "保存后 Peach 会重启,并跳转到新地址。" }) : "") + f0("Peach 代理", m0("连接方式", "", "ui-configuration-skeleton-select") + (e0(e?.proxyAddress) ? d0(v0("代理地址"), !0) : ""), l0("保存配置")) + f0("访问密码", d0(LTe(t)), t === "locked" ? "" : l0("保存配置")) + f0("Cloudflare 公网入口", d0((n ? o0("10.5em", "36px") : "") + r), l0("启动公网入口", n ? "secondary" : "primary") + (n ? l0("保存配置") : ""), { aside: s0() });
+}, zTe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], LTe = () => {
+], BTe = () => {
let e = $1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -67889,20 +67925,20 @@ var FTe = () => {
return f0("检查更新", C0(t) + (n ? d0(g0(i0("50%")).repeat(n), !0) : ""), l0("检查更新"), {
aside: s0("4em"),
status: i0("5em")
- }) + f0("自动更新", m0("自动检查新版本") + m0("自动下载更新") + m0("检查频率", e0(e?.autoUpdateHelp) ? i0("12em") : "", "ui-configuration-skeleton-select"), l0("保存配置")) + f0("开机自启", m0("开机后启动 Peach") + m0("只启动托盘,不打开网页") + m0("在桌面创建快捷方式", e0(e?.desktopNote) ? i0("12em") : "") + (e0(e?.startupNote) ? d0(g0(i0("60%")), !0) : ""), l0("保存配置")) + f0("视频播放", m0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + f0("存储空间", C0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => p0(i0("6em"), "", i0("4em"))).join("") : d0(g0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? d0(g0(i0("80%")).repeat(i), !0) : ""), l0("更改位置", "secondary") + l0(r ? "重新统计" : "统计占用")) + (c || l ? f0("数据上传", c + l) : "") + f0("运行信息", C0(a.length ? a : ITe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${p0("安装教程", "", l0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? f0("卸载 Peach", (e0(e?.uninstallHelp) ? d0(g0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + m0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + d0(S0("数据目录"), !0), l0("卸载 Peach"), { status: i0("16em") }) : "");
+ }) + f0("自动更新", m0("自动检查新版本") + m0("自动下载更新") + m0("检查频率", e0(e?.autoUpdateHelp) ? i0("12em") : "", "ui-configuration-skeleton-select"), l0("保存配置")) + f0("开机自启", m0("开机后启动 Peach") + m0("只启动托盘,不打开网页") + m0("在桌面创建快捷方式", e0(e?.desktopNote) ? i0("12em") : "") + (e0(e?.startupNote) ? d0(g0(i0("60%")), !0) : ""), l0("保存配置")) + f0("视频播放", m0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + f0("存储空间", C0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => p0(i0("6em"), "", i0("4em"))).join("") : d0(g0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? d0(g0(i0("80%")).repeat(i), !0) : ""), l0("更改位置", "secondary") + l0(r ? "重新统计" : "统计占用")) + (c || l ? f0("数据上传", c + l) : "") + f0("运行信息", C0(a.length ? a : zTe)) + `<section aria-label="安装教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${p0("安装教程", "", l0("重新打开教程", "secondary"))}</div></section>` + (s(e?.uninstall) ? f0("卸载 Peach", (e0(e?.uninstallHelp) ? d0(g0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + m0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + d0(S0("数据目录"), !0), l0("卸载 Peach"), { status: i0("16em") }) : "");
};
-function RTe(e) {
+function VTe(e) {
switch (e) {
case "系统诊断": return K1();
- case "来源与订阅": return MTe();
- case "下载渠道": return NTe();
- case "网络与访问": return FTe();
- case "应用与维护": return LTe();
- default: return jTe();
+ case "来源与订阅": return FTe();
+ case "下载渠道": return ITe();
+ case "网络与访问": return RTe();
+ case "应用与维护": return BTe();
+ default: return PTe();
}
}
-function zTe(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">${RTe(e)}</div></div></div>`;
+function HTe(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">${VTe(e)}</div></div></div>`;
}
//#endregion
//#region src/react/jav/discovery-sorts.ts
@@ -67914,7 +67950,7 @@ var M0 = [
],
[
"release_date",
- Ak[1],
+ kk[1],
"按发行日期排序"
],
[
@@ -67933,10 +67969,10 @@ var M0 = [
"按番号排序"
]
];
-function BTe(e) {
+function UTe(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function VTe(e) {
+function WTe(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -67962,7 +67998,7 @@ function VTe(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>`, HTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, P0 = "w-full min-w-0";
+var N0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, GTe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, P0 = "w-full min-w-0";
function F0() {
return [
"w-20",
@@ -67973,10 +68009,10 @@ 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 = gA()) {
- 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">${HTe("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>`;
- let n = wA({
- ...CA({
+function I0(e, t = hA()) {
+ 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">${GTe("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>`;
+ let n = CA({
+ ...SA({
active: !0,
home: !1,
portrait: !1
@@ -67992,7 +68028,7 @@ function I0(e, t = gA()) {
<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 UTe(e) {
+function KTe(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>${Wo({
@@ -68002,10 +68038,10 @@ function UTe(e) {
})}</div>
<div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${S$.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}">${Uo("筛选番号、女优或标题", "", 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">${WTe()}${I0(e)}</section>`}</div></div>`;
+ ${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">${qTe()}${I0(e)}</section>`}</div></div>`;
}
-function WTe() {
- 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="" ${gA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Vo(t, "size-4")}</span>`;
+function qTe() {
+ 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="" ${hA() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Vo(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>
@@ -68022,7 +68058,7 @@ function WTe() {
//#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 GTe() {
+function JTe() {
let e = [
"馆藏视频",
"看过",
@@ -68063,7 +68099,7 @@ function GTe() {
</section>
</div></div>`;
}
-function KTe() {
+function YTe() {
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 = [
"浏览记录",
"口味维度",
@@ -68119,7 +68155,7 @@ function KTe() {
</div>
</div></div>`;
}
-function qTe() {
+function XTe() {
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>
@@ -68147,7 +68183,7 @@ function qTe() {
${t.repeat(2)}
</div></div>`;
}
-function JTe() {
+function ZTe() {
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>
@@ -68166,18 +68202,18 @@ function JTe() {
}
//#endregion
//#region src/board-skeleton.ts
-var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, YTe = () => `${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>`, XTe = "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 V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, QTe = () => `${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>`, $Te = "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">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${XTe}"><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>`, q0 = [
+].map((e) => `<div class="${$Te}"><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>`, q0 = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
-], ZTe = (e = "") => q0.some(([t]) => t === e) ? e : "list", J0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${q0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, Y0 = (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>`, QTe = ({ table: e, sort: t, dir: n }) => {
+], eEe = (e = "") => q0.some(([t]) => t === e) ? e : "list", J0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${q0.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, Y0 = (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>`, tEe = ({ table: e, sort: t, dir: n }) => {
let r = jn.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>${Wo({
glyph: "refresh-cw",
@@ -68212,7 +68248,7 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, YTe
size: "small",
glyph: "trash",
attrs: U0
-})}</span>`, $Te = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${Y0()}<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>${X0()}</span></div>`, Z0 = (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">${Wo({
+})}</span>`, nEe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${Y0()}<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>${X0()}</span></div>`, Z0 = (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">${Wo({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -68229,13 +68265,13 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, YTe
glyph: "chevron-up",
label: "收起",
attrs: U0
-})}</span></span></div><div data-source-divider>${H0($Te(), e)}</div></section>`, eEe = () => {
+})}</span></span></div><div data-source-divider>${H0(nEe(), e)}</div></section>`, rEe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, tEe = [
+}, iEe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -68243,13 +68279,13 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, YTe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], nEe = {
+], aEe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, rEe = "<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>", iEe = (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>${tEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${nEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${rEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${H0(`<tr>${[
+}, oEe = "<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>", sEe = (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>${iEe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${aEe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${oEe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${H0(`<tr>${[
Y0(),
`<span class="flex min-w-0 items-center gap-2">${G0(32, 32, !0)}${W0("5em")}</span>`,
W0("10em"),
@@ -68257,37 +68293,37 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, YTe
G0(48, 24),
W0("113px"),
X0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, aEe = (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>${Ko(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${G0(204, 32)}</div></div>`, oEe = () => `<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>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, cEe = (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>${Ko(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${G0(204, 32)}</div></div>`, lEe = () => `<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>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${W0(e)}</span>`).join("")}</div>`, sEe = (e) => {
- let t = ZTe(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">${J0(t)}<div class="flex flex-col gap-4">${oEe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = Fn(e.followSort, e.followDir), i = e.followPageSize || eEe(), a = n ? iEe(i, r) : `${Y0("全选本页")}<div class="flex flex-col gap-3">${Z0(3)}${Z0(4)}${Z0(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">${J0(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"}">${QTe({
+].map((e) => `<span class="text-body-medium">${W0(e)}</span>`).join("")}</div>`, uEe = (e) => {
+ let t = eEe(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">${J0(t)}<div class="flex flex-col gap-4">${lEe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = Fn(e.followSort, e.followDir), i = e.followPageSize || rEe(), a = n ? sEe(i, r) : `${Y0("全选本页")}<div class="flex flex-col gap-3">${Z0(3)}${Z0(4)}${Z0(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">${J0(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"}">${tEe({
table: n,
...r
- })}${a}${aEe(n, i)}</div></div></div></div></div>`;
+ })}${a}${cEe(n, i)}</div></div></div></div></div>`;
};
-function cEe() {
- 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(YTe(), 4)}</div></aside></div>`;
+function dEe() {
+ 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(QTe(), 4)}</div></aside></div>`;
}
-function lEe(e, t = {}) {
+function fEe(e, t = {}) {
let n = "";
- if (e === "/stats") n = GTe();
- else if (e === "/jav") n = UTe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = KTe();
- else if (e === "/subscriptions") n = sEe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in oV) n = zTe(oV[e.split("/")[2]]);
+ if (e === "/stats") n = JTe();
+ else if (e === "/jav") n = KTe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = YTe();
+ else if (e === "/subscriptions") n = uEe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in aV) n = HTe(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 = qTe();
- else if (e === "/quality-goals") n = JTe();
+ else if (e === "/duplicates") n = XTe();
+ else if (e === "/quality-goals") n = ZTe();
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>${Wo({
label: "新建",
attrs: U0
@@ -68297,7 +68333,7 @@ function lEe(e, t = {}) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function uEe(e) {
+function pEe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -68305,7 +68341,7 @@ function uEe(e) {
}
function Q0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return uEe(n ?? t.body);
+ return pEe(n ?? t.body);
}
function $0(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
@@ -68313,13 +68349,13 @@ function $0(e) {
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var e2 = (e) => ["follow-item", e], dEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, fEe = "/api/follow/save", pEe = "/api/follow/media/hide", t2 = class extends Error {
+var e2 = (e) => ["follow-item", e], mEe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, hEe = "/api/follow/save", gEe = "/api/follow/media/hide", t2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function n2(e, t) {
- let n = await V(dEe(e), t);
+ let n = await V(mEe(e), t);
for (let t of n.groups || []) {
let r = Ai(t).find((t) => t.id === e);
if (r) return {
@@ -68331,7 +68367,7 @@ async function n2(e, t) {
}
throw new t2();
}
-function mEe(e) {
+function _Ee(e) {
for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = Ai(t.group).find((t) => t.id === e);
@@ -68349,13 +68385,13 @@ async function r2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : U.getQueryData(n) ?? mEe(e.id);
+ } : U.getQueryData(n) ?? _Ee(e.id);
a ? U.setQueryData(n, a) : await U.fetchQuery({
queryKey: n,
queryFn: () => n2(e.id, t)
}), await i;
}
-function hEe(e, t, n, r) {
+function vEe(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);
return {
embedded: i,
@@ -68370,32 +68406,32 @@ function hEe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var gEe = (e) => Ai(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), _Ee = {
+var yEe = (e) => Ai(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), bEe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, vEe = {
+}, xEe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function yEe(e) {
+function SEe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return _Ee[t] || t;
+ return bEe[t] || t;
} catch {
return "外部文件页";
}
}
function i2(e, t) {
- return vEe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return xEe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function bEe(e, t, n = "") {
+function CEe(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;
@@ -68404,16 +68440,16 @@ function bEe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var xEe = (e) => String(e.name || "").trim(), a2 = (e, t) => e.tag_types?.[t] || "unknown", SEe = /* @__PURE__ */ new Set([
+var wEe = (e) => String(e.name || "").trim(), a2 = (e, t) => e.tag_types?.[t] || "unknown", TEe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function CEe(e, t) {
+function EEe(e, t) {
let n = a2(e, t);
- return `r34-${SEe.has(n) ? n : "general"}`;
+ return `r34-${TEe.has(n) ? n : "general"}`;
}
var o2 = [
"copyright",
@@ -68422,7 +68458,7 @@ var o2 = [
"general",
"metadata"
];
-function wEe(e, t) {
+function DEe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = o2.indexOf(a2(e, t));
return n < 0 ? o2.length : n;
@@ -68433,12 +68469,12 @@ function s2(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 TEe = (e, t) => ({
+var OEe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), c2 = (e) => e?.size ? { size: e.size } : {};
-function EEe(e, t) {
+function kEe(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}`,
@@ -68459,7 +68495,7 @@ function EEe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var DEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => _s(e, {
+var AEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => _s(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -68467,7 +68503,7 @@ var DEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), OEe = [
+}), jEe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -68477,14 +68513,14 @@ var DEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], kEe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
+], MEe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${OEe.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>${jEe.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="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>`, AEe = {
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, NEe = {
"/data-cleanup": () => I$(),
"/resource-sync": () => I$(),
- "/review": () => kEe(),
+ "/review": () => MEe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${l2("正在读取采集来源", {
cards: !0,
@@ -68494,13 +68530,13 @@ var DEe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", l2
})}</div>`
};
function u2(e, { followLayout: t, followSort: n, followDir: r }) {
- return lEe(e, {
+ return fEe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (AEe[e] ?? (() => l2("正在读取页面")))();
+ }) || (NEe[e] ?? (() => l2("正在读取页面")))();
}
var d2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function f2(e, t) {
@@ -68522,17 +68558,17 @@ function p2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(uW, {
+ children: /* @__PURE__ */ (0, O.jsx)(dW, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, O.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, O.jsx)(Iz, {
+ children: /* @__PURE__ */ (0, O.jsx)(Fz, {
size: "compact",
- icon: Tz,
+ icon: wz,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, O.jsx)(JF, {
+ actions: /* @__PURE__ */ (0, O.jsx)(qF, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -68638,7 +68674,7 @@ function h2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, O.jsx)(jEe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, O.jsx)(PEe, {
item: e,
selected: r === t,
onSelect: n,
@@ -68657,7 +68693,7 @@ function h2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function jEe({ item: e, selected: t, onSelect: n, render: r }) {
+function PEe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, D.useRef)(null), [a, o] = (0, D.useState)(typeof IntersectionObserver > "u");
return (0, D.useEffect)(() => {
if (!i.current || a) return;
@@ -68684,7 +68720,7 @@ function jEe({ item: e, selected: t, onSelect: n, render: r }) {
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
-var MEe = (e, t, n) => [
+var FEe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -68706,7 +68742,7 @@ function g2(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 NEe(e, t, n, r) {
+async function IEe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...Ri(i),
status: "new",
@@ -68727,11 +68763,11 @@ async function NEe(e, t, n, r) {
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
-var _2 = (e) => Number(e) > 0, PEe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
+var _2 = (e) => Number(e) > 0, LEe = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), v2 = R("external-link", "ui-externalmark");
-function FEe(e) {
+function REe(e) {
let { id: t, actions: n } = e, r = St({
queryKey: e2(t),
queryFn: ({ signal: e }) => n2(t, e)
@@ -68739,10 +68775,10 @@ function FEe(e) {
queryKey: Ti,
queryFn: ({ signal: e }) => Ei(e)
}), a = (0, D.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, D.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, O.jsx)(REe, {
+ return r.data ? /* @__PURE__ */ (0, O.jsx)(VEe, {
...e,
data: r.data,
- context: TEe(r.data, a),
+ context: OEe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, O.jsx)("div", {
@@ -68753,7 +68789,7 @@ function FEe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, O.jsx)(y2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? IEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(LEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(uW, {
+ children: r.isError ? zEe(r.error) ? /* @__PURE__ */ (0, O.jsx)(BEe, { onBack: n.close }) : /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -68761,8 +68797,8 @@ function FEe(e) {
})
});
}
-var IEe = (e) => e instanceof t2 || e instanceof On && e.status === 404;
-function LEe({ onBack: e }) {
+var zEe = (e) => e instanceof t2 || e instanceof On && e.status === 404;
+function BEe({ onBack: e }) {
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -68780,8 +68816,8 @@ var y2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = hEe(c, l, n, i), d = WEe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, D.useState)({
+function VEe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = vEe(c, l, n, i), d = qEe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, D.useState)({
key: "",
kind: ""
}), h = {
@@ -68801,7 +68837,7 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? gEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(C2, {
+ let g = !u.embedded.length && u.collection ? yEe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, O.jsx)(C2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -68814,7 +68850,7 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, O.jsx)(VEe, {
+ }) : /* @__PURE__ */ (0, O.jsx)(WEe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -68824,14 +68860,14 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, O.jsx)(BEe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(UEe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, O.jsx)(HEe, {
+ }, f), /* @__PURE__ */ (0, O.jsx)(GEe, {
item: c,
data: e,
context: t,
@@ -68843,7 +68879,7 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, O.jsx)(m2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, O.jsx)(zEe, {
+ children: a > 0 ? /* @__PURE__ */ (0, O.jsx)(HEe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -68853,10 +68889,10 @@ function REe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function zEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function HEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = St({
- queryKey: MEe(e.item.id, t, n),
- queryFn: ({ signal: r }) => NEe(e, t, n, r)
+ queryKey: FEe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => IEe(e, t, n, r)
}), [s] = (0, D.useState)(() => l2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -68896,8 +68932,8 @@ function zEe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function BEe({ 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, D.useRef)(null), p = EEe(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, D.useState)(g), b = (0, D.useRef)({
+function UEe({ 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, D.useRef)(null), p = kEe(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, D.useState)(g), b = (0, D.useRef)({
item: e,
selected: o
}), x = (0, D.useRef)(i.failed);
@@ -68926,7 +68962,7 @@ function BEe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: OU(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: DU(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, O.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, O.jsx)(h2, {
@@ -68965,18 +69001,18 @@ function S2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function VEe({ group: e, itemId: t, helpers: n, actions: r }) {
+function WEe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = zi(e), a = S2(n);
- return /* @__PURE__ */ (0, O.jsx)(WG, {
+ return /* @__PURE__ */ (0, O.jsx)(GG, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${AU(e.primary)} · ${i.length} 个视频`,
+ summary: `${kU(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = bEe(e, n, i ? n.provider_label : ""), o = i ? OU(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, O.jsxs)(GG, {
+ let i = e.duplicates.includes(n), a = CEe(e, n, i ? n.provider_label : ""), o = i ? DU(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, O.jsxs)(KG, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
@@ -68998,7 +69034,7 @@ function VEe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, O.jsx)("time", {
dateTime: n.published_at || "",
- children: zU(n)
+ children: RU(n)
})]
})]
}, n.id);
@@ -69016,17 +69052,17 @@ function C2({ 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, O.jsx)(WG, {
+ return /* @__PURE__ */ (0, O.jsx)(GG, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${AU(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(KG, {
+ summary: `${kU(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, O.jsx)(qG, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)(GG, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, O.jsxs)(KG, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
@@ -69035,7 +69071,7 @@ function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, O.jsx)(x2, { src: n.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(b2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, O.jsx)("b", {
"data-middle-truncate": "",
- children: xEe(n)
+ children: wEe(n)
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -69043,13 +69079,13 @@ function C2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function GEe({ 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 = IU(d, e), p = PU(e, s2(e, t.sources), n), m = p.credited ? "" : e.author && un(e.author) !== un(p.author) ? e.author : "", h = LU(e, n), g = wEe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = FU(d, e), p = NU(e, s2(e, t.sources), n), m = p.credited ? "" : e.author && un(e.author) !== un(p.author) ? e.author : "", h = IU(e, n), g = DEe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -69065,7 +69101,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: FU(d, e) + B(AU(e)) }
+ dangerouslySetInnerHTML: { __html: PU(d, e) + B(kU(e)) }
}), e.url ? /* @__PURE__ */ (0, O.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -69081,7 +69117,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, O.jsx)("span", { children: zU(e) }),
+ /* @__PURE__ */ (0, O.jsx)("span", { children: RU(e) }),
_2(e.duration) ? /* @__PURE__ */ (0, O.jsx)("span", { children: hn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-follow-badges": "",
@@ -69131,7 +69167,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, O.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, O.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, O.jsx)(UEe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, O.jsx)(KEe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, O.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -69154,7 +69190,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [yEe(e), /* @__PURE__ */ (0, O.jsx)("span", {
+ children: [SEe(e), /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: v2 }
})]
@@ -69256,7 +69292,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(x2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(PEe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, O.jsx)(x2, { src: e.thumb_url }) : /* @__PURE__ */ (0, O.jsx)(LEe, { name: "image-off" }), /* @__PURE__ */ (0, O.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -69270,7 +69306,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
- "data-tag-cat": CEe(e, t),
+ "data-tag-cat": EEe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -69280,7 +69316,7 @@ function HEe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function UEe({ text: e }) {
+function KEe({ text: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(!1);
return (0, D.useLayoutEffect)(() => {
let e = t.current;
@@ -69303,7 +69339,7 @@ function UEe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function WEe(e, t, n) {
+function qEe(e, t, n) {
let r = e.id, i = e2(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -69323,7 +69359,7 @@ function WEe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && x$(), t.toast(DEe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && x$(), t.toast(AEe(n), { undo: i === "saved" ? void 0 : async () => {
await H($n, {
item: r,
to: i
@@ -69333,7 +69369,7 @@ function WEe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Ct({
- mutationFn: () => H(fEe, { item: r }),
+ mutationFn: () => H(hEe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -69341,7 +69377,7 @@ function WEe(e, t, n) {
onSettled: () => l("save", !1)
}), m = Ct({
mutationFn: async ({ index: e, hidden: t }) => {
- await H(pEe, {
+ await H(gEe, {
item: r,
media: e,
hidden: t
@@ -69357,8 +69393,8 @@ function WEe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = St({
- queryKey: kCe(r),
- queryFn: ({ signal: e }) => MCe(r, e)
+ queryKey: MCe(r),
+ queryFn: ({ signal: e }) => FCe(r, e)
}).data?.want ?? null, g = Ct({
mutationFn: async (e) => (e ? await b$([e.id]) : await y$({ follow: r }), !e),
onSuccess: (e) => {
@@ -69516,7 +69552,7 @@ function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(!0)
- }) : i ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }) : i ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -69535,13 +69571,13 @@ function D2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
-var O2 = (e) => ["jav-detail", e], k2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), GEe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), A2 = (e, t) => U.ensureQueryData({
+var O2 = (e) => ["jav-detail", e], k2 = (e, t, n = !1) => V(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), JEe = (e, t, n, r = !1) => V(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), A2 = (e, t) => U.ensureQueryData({
queryKey: O2(e.code),
queryFn: () => k2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function KEe(e, t) {
+function YEe(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;
@@ -69553,7 +69589,7 @@ var j2 = "peach.external-player.v1", M2 = [
["vlc-ios", "VLC(iPhone / iPad)"],
["iina", "IINA(Mac)"]
];
-function qEe(e, t, n) {
+function XEe(e, t, n) {
return e === "vlc-ios" ? `vlc-x-callback://x-callback-url/stream?url=${encodeURIComponent(t)}` : e === "iina" ? `iina://weblink?url=${encodeURIComponent(t)}` : n;
}
function N2({ id: e }) {
@@ -69563,10 +69599,10 @@ function N2({ id: e }) {
} catch {
return "m3u";
}
- }), [r, i] = (0, D.useState)(null), a = AH();
- return /* @__PURE__ */ (0, O.jsx)(KH, {
+ }), [r, i] = (0, D.useState)(null), a = kH();
+ return /* @__PURE__ */ (0, O.jsx)(GH, {
summary: "外部播放器 / VR",
- children: /* @__PURE__ */ (0, O.jsxs)(HH, { children: [
+ children: /* @__PURE__ */ (0, O.jsxs)(VH, { children: [
/* @__PURE__ */ (0, O.jsx)(p1, {
id: `external-player-${e}`,
label: "此设备的外部播放器",
@@ -69583,33 +69619,33 @@ function N2({ id: e }) {
}),
/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(a.busy === "prepare"),
+ ...zz(a.busy === "prepare"),
onClick: () => void a.run("prepare", (t) => H(`/api/external-playback?id=${e}`, {}, "POST", t), (e) => i({
url: new URL(e.url, location.origin).href,
playlist: new URL(e.playlist, location.origin).href
})),
children: "生成播放链接"
}),
- a.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: a.error }) : null,
+ a.error ? /* @__PURE__ */ (0, O.jsx)(UH, { children: a.error }) : null,
r ? /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
/* @__PURE__ */ (0, O.jsx)("a", {
- href: qEe(t, r.url, r.playlist),
+ href: XEe(t, r.url, r.playlist),
rel: "noreferrer",
children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${M2.find(([e]) => e === t)?.[1]}`
}),
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
label: "网络播放地址",
value: r.url,
isReadOnly: !0
}),
- /* @__PURE__ */ (0, O.jsx)(UH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
+ /* @__PURE__ */ (0, O.jsx)(HH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
] }) : null
] })
}, e);
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var JEe = tF({
+var ZEe = eF({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -69671,23 +69707,23 @@ var JEe = tF({
}
}
});
-function YEe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = JEe[t];
+function QEe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = ZEe[t];
return /* @__PURE__ */ (0, O.jsx)("span", {
"aria-hidden": !0,
- className: eF("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? eF("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: $P("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? $P("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, O.jsx)("span", {
- className: eF("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, O.jsx)("span", { className: eF("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: $P("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, O.jsx)("span", { className: $P("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 P2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, O.jsx)(Uue, {
+ return /* @__PURE__ */ (0, O.jsx)(Wue, {
ref: i,
...a,
- className: (t) => eF("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(YEe, {
+ className: (t) => $P("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, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(QEe, {
state: e,
size: n,
shape: r
@@ -69699,7 +69735,7 @@ function P2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var XEe = "/api/cover-crop", ZEe = (e, t) => H(XEe, {
+var $Ee = "/api/cover-crop", eDe = (e, t) => H($Ee, {
code: e,
box: t
});
@@ -69718,7 +69754,7 @@ function F2({ className: e }) {
children: /* @__PURE__ */ (0, O.jsx)("use", { href: "#i-crop" })
});
}
-function QEe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function tDe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
@@ -69729,12 +69765,12 @@ function QEe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, O.jsx)(F2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, O.jsx)(Nz, {
+ }), /* @__PURE__ */ (0, O.jsx)(Mz, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, O.jsx)($Ee, {
+ children: /* @__PURE__ */ (0, O.jsx)(nDe, {
code: e,
coverUrl: t,
box: n,
@@ -69743,9 +69779,9 @@ function QEe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = iV(), f = Ct({
- mutationFn: (t) => ZEe(e, t),
+function nDe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, D.useState)(null), [s, c] = (0, D.useState)(null), [l, u] = (0, D.useState)(!0), d = rV(), f = Ct({
+ mutationFn: (t) => eDe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -69757,7 +69793,7 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Bxe(e, Ca);
+ } : Uxe(e, Ca);
c(nQ(t, e, null));
}
let m = f.isPending;
@@ -69765,11 +69801,11 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, O.jsx)(Pz, { children: /* @__PURE__ */ (0, O.jsx)(F2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, O.jsx)(Nz, { children: /* @__PURE__ */ (0, O.jsx)(F2, { className: "size-6" }) }),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(xI, {
+ /* @__PURE__ */ (0, O.jsx)(bI, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -69778,14 +69814,14 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(MF, {
- icon: fz,
+ /* @__PURE__ */ (0, O.jsx)(jF, {
+ icon: dz,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -69822,14 +69858,14 @@ function $Ee({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(m),
+ ...zz(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, O.jsx)(J, {
disabled: !s || !a,
- ...Bz(m),
+ ...zz(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -69848,14 +69884,14 @@ var I2 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), R2 = (e) => Number(e) > 0 ? _n(Number(e)) : "大小未知";
-function eDe(e) {
+function rDe(e) {
let { queue: t, actions: n } = e, r = St({
- queryKey: t ? BM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => YM(t, e.helpers, n),
+ queryKey: t ? zM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => JM(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? QM(i, e.id) : t ? null : e.id, o = St({
- queryKey: zM(a ?? 0),
- queryFn: ({ signal: e }) => JM(a, e),
+ }), i = t && r.data || null, a = i ? ZM(i, e.id) : t ? null : e.id, o = St({
+ queryKey: RM(a ?? 0),
+ queryFn: ({ signal: e }) => qM(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -69868,7 +69904,7 @@ function eDe(e) {
"data-item-media": "none",
children: [/* @__PURE__ */ (0, O.jsx)(z2, { onClose: n.close }), /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ children: e ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: Ut(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -69878,9 +69914,9 @@ function eDe(e) {
})
});
}
- return /* @__PURE__ */ (0, O.jsx)(tDe, {
+ return /* @__PURE__ */ (0, O.jsx)(iDe, {
...e,
- item: Tse(o.data, i),
+ item: Ese(o.data, i),
queue: i
}, o.data.id);
}
@@ -69893,23 +69929,23 @@ var z2 = ({ onClose: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function tDe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = _De(t, r, i.tagLabel), o = (0, D.useRef)(t);
+function iDe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = bDe(t, r, i.tagLabel), o = (0, D.useRef)(t);
(0, D.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, D.useEffect)(() => {
- n?.kind === "playlist" && H(VM, {
+ n?.kind === "playlist" && H(BM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Ise(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = $M(n, t.id);
+ let s = Lse(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = QM(n, t.id);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, O.jsx)(nDe, {
+ children: [/* @__PURE__ */ (0, O.jsx)(aDe, {
item: t,
gate: s,
helpers: i,
@@ -69922,7 +69958,7 @@ function tDe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, O.jsx)(sDe, {
+ }), /* @__PURE__ */ (0, O.jsx)(uDe, {
item: t,
queue: n,
write: a,
@@ -69931,13 +69967,13 @@ function tDe(e) {
})]
}), /* @__PURE__ */ (0, O.jsx)(m2, {
editionCards: n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, O.jsx)(iDe, {
+ queue: n ? /* @__PURE__ */ (0, O.jsx)(sDe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, O.jsx)(gDe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, O.jsx)(yDe, {
...e,
item: n ? {
...t,
@@ -69946,7 +69982,7 @@ function tDe(e) {
}) : null
})] });
}
-function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function aDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, D.useState)(t ? "" : "auto"), c = (0, D.useRef)(null), [l, u] = (0, D.useState)(-2), d = (0, D.useRef)(!1), f = St({
queryKey: O2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -70032,7 +70068,7 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(f.isFetching),
+ ...zz(f.isFetching),
title: f.data?.message || Ut(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -70041,7 +70077,7 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, O.jsx)(rDe, {
+ t === "offline" ? /* @__PURE__ */ (0, O.jsx)(oDe, {
item: e,
badge: y,
helpers: n,
@@ -70079,7 +70115,7 @@ function nDe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function rDe({ item: e, badge: t, helpers: n, actions: r }) {
+function oDe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -70104,8 +70140,8 @@ function rDe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Mse(e), a = (0, D.useRef)(null), o = oDe(e, t, r), s = (0, D.useRef)(o);
+function sDe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Nse(e), a = (0, D.useRef)(null), o = lDe(e, t, r), s = (0, D.useRef)(o);
s.current = o;
let c = (0, D.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -70113,7 +70149,7 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = aDe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)("button", {
+ }, [n, e.kind]), l = cDe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, O.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -70132,7 +70168,7 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, O.jsx)(WG, {
+ return /* @__PURE__ */ (0, O.jsx)(GG, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -70141,11 +70177,11 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, O.jsx)("i", {
- className: `javedition ${Ase[i.edition_label] || "censored"}`,
+ className: `javedition ${jse[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && ZM(i);
- return /* @__PURE__ */ (0, O.jsxs)(GG, {
+ }) : null, s = e.kind === "playlist" && XM(i);
+ return /* @__PURE__ */ (0, O.jsxs)(KG, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -70184,14 +70220,14 @@ function iDe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? oN(i.part_label) : Qa(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? aN(i.part_label) : Qa(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function aDe(e, t) {
- let n = Ct({ mutationFn: (t) => H(VM, {
+function cDe(e, t) {
+ let n = Ct({ mutationFn: (t) => H(BM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -70204,11 +70240,11 @@ function aDe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function oDe(e, t, n) {
- let r = BM({
+function lDe(e, t, n) {
+ let r = zM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (U.setQueryData(r, XM(e)), e), a = (t) => H(VM, {
+ }), i = (e) => (U.setQueryData(r, YM(e)), e), a = (t) => H(BM, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ct({
@@ -70224,8 +70260,8 @@ function oDe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Pse(s, t, r, c);
- if (Fse(l, s)) return;
+ let l = Fse(s, t, r, c);
+ if (Ise(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -70267,7 +70303,7 @@ function oDe(e, t, n) {
}
};
}
-function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function uDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-stage-side": "",
@@ -70275,7 +70311,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(cDe, {
+ /* @__PURE__ */ (0, O.jsx)(dDe, {
item: e,
queue: t,
helpers: r,
@@ -70287,7 +70323,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, O.jsx)(uDe, {
+ /* @__PURE__ */ (0, O.jsx)(pDe, {
item: e,
write: n
}),
@@ -70322,24 +70358,24 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, O.jsx)(dDe, {
+ /* @__PURE__ */ (0, O.jsx)(mDe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, O.jsx)(fDe, {
+ /* @__PURE__ */ (0, O.jsx)(hDe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, O.jsx)(cK, {
- assetIds: sK([e], r.javImage()),
+ /* @__PURE__ */ (0, O.jsx)(lK, {
+ assetIds: cK([e], r.javImage()),
onComplete: () => {
- U.invalidateQueries({ queryKey: zM(e.id) });
+ U.invalidateQueries({ queryKey: RM(e.id) });
}
}),
- /* @__PURE__ */ (0, O.jsx)(mDe, { item: e }),
+ /* @__PURE__ */ (0, O.jsx)(_De, { item: e }),
e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, O.jsx)(N2, { id: e.id }, e.id) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-actions": "",
@@ -70434,7 +70470,7 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, O.jsx)(hDe, {
+ /* @__PURE__ */ (0, O.jsx)(vDe, {
item: e,
open: s,
write: n
@@ -70458,8 +70494,8 @@ function sDe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function cDe({ 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) + Nse(e, t);
+function dDe({ 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) + Pse(e, t);
return /* @__PURE__ */ (0, O.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, O.jsxs)("div", {
@@ -70486,23 +70522,23 @@ function cDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, O.jsx)(zH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(RH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, O.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, O.jsx)(QEe, {
+ children: /* @__PURE__ */ (0, O.jsx)(tDe, {
code: e.cover_key || e.code || "",
coverUrl: Aa(e),
box: e.poster_box || null,
onSaved: (t) => {
U.invalidateQueries({
- queryKey: zM(e.id),
+ queryKey: RM(e.id),
exact: !0
- }), PM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), NM((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, O.jsx)(lDe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, O.jsx)(fDe, {
id: e.id,
actions: r,
onStatus: i
@@ -70512,7 +70548,7 @@ function cDe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function lDe({ id: e, actions: t, onStatus: n }) {
+function fDe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, D.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -70545,14 +70581,14 @@ function lDe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, O.jsx)(I2, { name: "folder-sync" })
})] });
}
-function uDe({ item: e, write: t }) {
- let n = IM(e.rating);
+function pDe({ item: e, write: t }) {
+ let n = FM(e.rating);
return /* @__PURE__ */ (0, O.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": FM(e.rating),
+ "data-value": PM(e.rating),
children: [/* @__PURE__ */ (0, O.jsx)(pY, {
value: n,
onRate: (e) => t.rate(e),
@@ -70567,12 +70603,12 @@ function uDe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, O.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: LM(e.rating)
+ children: IM(e.rating)
})]
});
}
-function dDe({ item: e, actions: t }) {
- let n = (0, D.useMemo)(() => Ese(e), [e]), [r, i] = (0, D.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function mDe({ item: e, actions: t }) {
+ let n = (0, D.useMemo)(() => Dse(e), [e]), [r, i] = (0, D.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, O.jsx)(w2, {
kind: e,
@@ -70618,7 +70654,7 @@ function dDe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: lz,
+ trailingIcon: cz,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -70643,8 +70679,8 @@ function dDe({ item: e, actions: t }) {
})]
});
}
-function fDe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Dse(e, n);
+function hDe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Ose(e, n);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -70666,14 +70702,14 @@ function fDe({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, O.jsx)(I2, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, O.jsx)(pDe, {
+ }, e.k)), /* @__PURE__ */ (0, O.jsx)(gDe, {
item: e,
write: t,
helpers: n
})]
});
}
-function pDe({ item: e, write: t, helpers: n }) {
+function gDe({ item: e, write: t, helpers: n }) {
let r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(!1), [s, c] = (0, D.useState)(!1), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(-1), h = (0, D.useCallback)(() => {
i.current && To(i.current), c(!1);
}, []);
@@ -70687,7 +70723,7 @@ function pDe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? kse(d, n.tagCandidates(), aN()) : {
+ let g = s ? Ase(d, n.tagCandidates(), iN()) : {
recent: [],
results: [],
create: ""
@@ -70710,12 +70746,12 @@ function pDe({ item: e, write: t, helpers: n }) {
} else if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && tN(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && eN(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = tN(e, t.k);
+ let r = b, i = eN(e, t.k);
return /* @__PURE__ */ (0, O.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -70812,8 +70848,8 @@ function pDe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function mDe({ item: e }) {
- let t = Lse(e);
+function _De({ item: e }) {
+ let t = Rse(e);
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -70847,7 +70883,7 @@ function mDe({ item: e }) {
})]
});
}
-function hDe({ item: e, open: t, write: n }) {
+function vDe({ item: e, open: t, write: n }) {
let [r, i] = (0, D.useState)(e.like_reason || ""), a = (0, D.useRef)(null);
(0, D.useEffect)(() => {
t && a.current?.focus();
@@ -70886,10 +70922,10 @@ function hDe({ item: e, open: t, write: n }) {
})]
});
}
-function gDe(e) {
+function yDe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = St({
- queryKey: Sse(t.id, n),
- queryFn: async ({ signal: e }) => (await V(wse(t.id, n), e)).items || []
+ queryKey: Cse(t.id, n),
+ queryFn: async ({ signal: e }) => (await V(Tse(t.id, n), e)).items || []
}), [o] = (0, D.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, O.jsx)(p2, {
wireDrag: r.wireDrag,
@@ -70915,8 +70951,8 @@ function gDe(e) {
}) : /* @__PURE__ */ (0, O.jsx)(L2, { html: o })
});
}
-function _De(e, t, n) {
- let r = e.id, i = zM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.useState)(""), d = (e, t) => o((n) => {
+function bDe(e, t, n) {
+ let r = e.id, i = RM(r), [a, o] = (0, D.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, D.useState)(""), [l, u] = (0, D.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) => {
@@ -70932,7 +70968,7 @@ function _De(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return NM(r, n), t;
+ return MM(r, n), t;
}, m = (e, t) => H(e, {
id: r,
...t
@@ -70947,7 +70983,7 @@ function _De(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(HM, t === void 0 ? { kind: e } : {
+ let n = await m(VM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -70967,21 +71003,21 @@ function _De(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = RM(n, e);
- await _("rate", r), t.toast(r ? `已评 ${IM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = LM(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${FM(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(sN(e, r), { undo: async () => {
+ t.toast(oN(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(WM, {});
+ let e = await m(UM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(WM, {})).watch_later });
+ p({ watch_later: (await m(UM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -70991,9 +71027,9 @@ function _De(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(GM, { wanted: !e.wanted });
+ }), r = await m(WM, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(GM, e));
+ n(await m(WM, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -71007,7 +71043,7 @@ function _De(e, t, n) {
});
u("保存中…");
try {
- o(await m(KM, {
+ o(await m(GM, {
liked: a,
reason: i
}));
@@ -71017,7 +71053,7 @@ function _De(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(KM, r));
+ o(await m(GM, r));
} });
});
},
@@ -71026,30 +71062,30 @@ function _De(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => nN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(UM, {
+ p((t) => tN(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(HM, {
operation: "add",
tag: e.k
- }), p((t) => rN(t, e));
+ }), p((t) => nN(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(UM, {
+ let e = await m(HM, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- tN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => rN(e, {
+ eN(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => nN(e, {
k: i,
cat: "general"
- })), Ose(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(UM, {
+ })), kse(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(HM, {
operation: "remove",
tag: i
- }), p((e) => nN(e, i));
+ }), p((e) => tN(e, i));
} }));
});
}
@@ -71057,7 +71093,7 @@ function _De(e, t, n) {
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var B2 = "/api/downloads", V2 = ["downloads"], vDe = "/api/downloads/cancel", yDe = "/api/downloads/postprocess", H2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, bDe = {
+var B2 = "/api/downloads", V2 = ["downloads"], xDe = "/api/downloads/cancel", SDe = "/api/downloads/postprocess", H2 = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, CDe = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -71067,14 +71103,14 @@ var B2 = "/api/downloads", V2 = ["downloads"], vDe = "/api/downloads/cancel", yD
landed: "lime",
submitted: "neutral"
}, U2 = (e) => {
- let t = e.display_code || e.code || "", { title: n } = sF({
+ let t = e.display_code || e.code || "", { title: n } = oF({
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}`;
-}, W2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", xDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function SDe() {
+}, W2 = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", wDe = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function TDe() {
let e = (0, D.useId)(), t = wt({
queryKey: [...V2, "pages"],
initialPageParam: null,
@@ -71092,14 +71128,14 @@ function SDe() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ t.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, O.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, O.jsx)(CDe, {
+ children: r.map((e) => /* @__PURE__ */ (0, O.jsx)(EDe, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -71107,9 +71143,9 @@ function SDe() {
t.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: lz,
+ leadingIcon: cz,
className: "self-start",
- ...Bz(t.isFetchingNextPage),
+ ...zz(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -71118,15 +71154,15 @@ function SDe() {
]
});
}
-function CDe({ task: e, writable: t }) {
- let n = A(), r = AH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.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 = [
+function EDe({ task: e, writable: t }) {
+ let n = A(), r = kH(), [i, a] = (0, D.useState)(!1), [o, s] = (0, D.useState)(!1), c = (0, D.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,
- EF(e.submitted_at)
+ TF(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
n.invalidateQueries({ queryKey: V2 });
}, g = () => {
- r.run("cancel", (t) => H(vDe, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => H(xDe, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -71140,12 +71176,12 @@ function CDe({ task: e, writable: t }) {
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => H(yDe, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => H(SDe, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, O.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: MH({
+ className: jH({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -71156,14 +71192,14 @@ function CDe({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(mA) },
+ style: { "--card-ratio": String(pA) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, O.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(dW, {
+ u?.has_cover ? /* @__PURE__ */ (0, O.jsx)(fW, {
artwork: {
kind: "cover",
html: Ha(u, "big")
@@ -71194,7 +71230,7 @@ function CDe({ task: e, writable: t }) {
}), /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
children: [/* @__PURE__ */ (0, O.jsx)(hZ, {
- color: bDe[e.state] ?? "neutral",
+ color: CDe[e.state] ?? "neutral",
children: e.state_label
}), e.state === "ingested" ? /* @__PURE__ */ (0, O.jsx)(hZ, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
@@ -71206,7 +71242,7 @@ function CDe({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, O.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, O.jsx)(XH, {
+ children: /* @__PURE__ */ (0, O.jsx)(YH, {
source: e.provider,
label: e.provider_label
})
@@ -71233,7 +71269,7 @@ function CDe({ task: e, writable: t }) {
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, O.jsx)(FH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, O.jsx)(PH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -71243,7 +71279,7 @@ function CDe({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, O.jsx)(UH, { children: r.error }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -71268,21 +71304,21 @@ function CDe({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "cancel"),
+ ...zz(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "resubmit"),
+ ...zz(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- ...Bz(r.busy === "postprocess"),
+ ...zz(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -71303,7 +71339,7 @@ function CDe({ task: e, writable: t }) {
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, O.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || xDe(e)
+ children: l || wDe(e)
})
}) : null
]
@@ -71314,18 +71350,18 @@ function CDe({ task: e, writable: 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 wDe({ className: e }) {
+function DDe({ className: e }) {
return /* @__PURE__ */ (0, O.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: ns("") }
});
}
-function TDe(e) {
+function ODe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => TDe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = AH(), b = (0, D.useRef)(null);
+function kDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, D.useState)(e), [s, c] = (0, D.useState)(() => ODe(t)), [l, u] = (0, D.useState)(""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(null), [h, g] = (0, D.useState)(""), [_, v] = (0, D.useState)(""), y = kH(), b = (0, D.useRef)(null);
(0, D.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -71362,18 +71398,18 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, O.jsxs)(UH, { children: [
+ t ? /* @__PURE__ */ (0, O.jsxs)(HH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? wDe : Cz,
+ leadingIcon: y.busy ? DDe : Sz,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@ -71383,7 +71419,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, O.jsx)(GH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(dU, {
+ children: [/* @__PURE__ */ (0, O.jsx)(WH, { children: "优先寻找" }), /* @__PURE__ */ (0, O.jsxs)(uU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -71391,15 +71427,15 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, O.jsx)(fU, {
+ /* @__PURE__ */ (0, O.jsx)(dU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, O.jsx)(fU, {
+ /* @__PURE__ */ (0, O.jsx)(dU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, O.jsx)(fU, {
+ /* @__PURE__ */ (0, O.jsx)(dU, {
id: "uncensored",
children: "无码"
})
@@ -71408,32 +71444,32 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, O.jsx)(Mz, {
+ children: [/* @__PURE__ */ (0, O.jsx)(jz, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, O.jsx)(Mz, {
+ }), /* @__PURE__ */ (0, O.jsx)(jz, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, O.jsx)(UH, {
+ y.busy ? /* @__PURE__ */ (0, O.jsx)(HH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, O.jsx)(UH, {
+ y.error ? /* @__PURE__ */ (0, O.jsx)(UH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, O.jsx)(HH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(UH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, O.jsx)(HH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(UH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, O.jsx)(HH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, O.jsxs)("li", {
@@ -71443,7 +71479,7 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, O.jsx)(UH, { children: [
+ /* @__PURE__ */ (0, O.jsx)(HH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -71468,19 +71504,19 @@ function EDe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var DDe = {
+var ADe = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
function q2({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, O.jsx)(Nz, {
+ return /* @__PURE__ */ (0, O.jsx)(Mz, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, O.jsx)(ODe, {
+ children: e ? /* @__PURE__ */ (0, O.jsx)(jDe, {
prefill: e,
close: t,
receipt: n,
@@ -71488,26 +71524,26 @@ function q2({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
+function jDe({ prefill: e, close: t, receipt: n, provider: r }) {
let i = St({
queryKey: V2,
queryFn: ({ signal: e }) => V(`${B2}?limit=50`, e),
refetchInterval: (e) => H2(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, O.jsx)(xI, {
+ children: [/* @__PURE__ */ (0, O.jsx)(bI, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: fz,
+ leadingIcon: dz,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, O.jsx)(kDe, {
+ return a ? /* @__PURE__ */ (0, O.jsx)(MDe, {
header: o,
snapshot: a,
prefill: e,
@@ -71520,7 +71556,7 @@ function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, O.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: i.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: An(i.error)
}) : null
@@ -71536,8 +71572,8 @@ function ODe({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = AH(), C = (0, D.useRef)(null), w = (e) => {
+function MDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = A(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, D.useState)(c?.key || ""), [d, f] = (0, D.useState)(""), [p, m] = (0, D.useState)(n.code ?? ""), [h, g] = (0, D.useState)(c?.target || ""), [_, v] = (0, D.useState)(n.code ? n : null), [y, b] = (0, D.useState)(""), x = t.available && s.some((e) => e.key === l), S = kH(), C = (0, D.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, O.jsxs)("form", {
@@ -71555,7 +71591,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
};
b(""), S.run("submit", (e) => H(B2, t, "POST", e), (e) => {
o.invalidateQueries({ queryKey: V2 });
- let t = DDe[e.outcome];
+ let t = ADe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
@@ -71584,7 +71620,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, O.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, O.jsx)(UH, { children: [
+ }), _ ? /* @__PURE__ */ (0, O.jsx)(HH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -71592,7 +71628,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, O.jsx)(EDe, {
+ /* @__PURE__ */ (0, O.jsx)(kDe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
@@ -71607,7 +71643,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -71619,38 +71655,38 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, O.jsx)(GH, { children: "下载到" }),
- /* @__PURE__ */ (0, O.jsx)(dU, {
+ /* @__PURE__ */ (0, O.jsx)(WH, { children: "下载到" }),
+ /* @__PURE__ */ (0, O.jsx)(uU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(fU, {
+ children: s.map((e) => /* @__PURE__ */ (0, O.jsx)(dU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, O.jsx)(XH, {
+ children: /* @__PURE__ */ (0, O.jsx)(YH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, O.jsx)(UH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, O.jsx)(HH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, O.jsx)(Fz, {
+ t.available ? null : /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, O.jsxs)(Fz, {
+ s.length ? null : /* @__PURE__ */ (0, O.jsxs)(Pz, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, O.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, O.jsx)(Mz, {
+ /* @__PURE__ */ (0, O.jsx)(jz, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -71658,7 +71694,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, O.jsx)(Mz, {
+ n.code ? null : /* @__PURE__ */ (0, O.jsx)(jz, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -71668,7 +71704,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
m(e), K2(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, O.jsx)(WH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, O.jsx)(UH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, O.jsxs)("div", {
@@ -71680,7 +71716,7 @@ function kDe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, O.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...Bz(S.busy === "submit"),
+ ...zz(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -71701,12 +71737,12 @@ function X2(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function ADe(e, t = Date.now()) {
+function NDe(e, t = Date.now()) {
let n = X2(e);
return n !== void 0 && Y2(t) > n ? Infinity : J2;
}
function Z2(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : ADe(t, n) === Infinity ? Y2(e) > X2(t) : n - e < J2;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : NDe(t, n) === Infinity ? Y2(e) > X2(t) : n - e < J2;
}
//#endregion
//#region src/react/wants/resource-cache.ts
@@ -71729,11 +71765,11 @@ function t4() {
return [];
}
}
-function jDe(e, t) {
+function PDe(e, t) {
let n = t4().find((t) => t.code === e);
return n && Z2(n.saved, t) ? n : void 0;
}
-function MDe(e) {
+function FDe(e) {
let t = new Map(t4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -71742,7 +71778,7 @@ function MDe(e) {
}
return n;
}
-function NDe(e, t) {
+function IDe(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([{
@@ -71754,11 +71790,11 @@ function NDe(e, t) {
}
//#endregion
//#region src/react/wants/resource-display.ts
-function PDe(e) {
+function LDe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? _n(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
-function FDe(e) {
+function RDe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
//#endregion
@@ -71774,7 +71810,7 @@ function n4({ icon: e, children: t, title: n }) {
});
}
function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = AH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => jDe(h, e.release_date), [h, e.release_date]);
+ let s = (0, D.useRef)(null), [c, l] = (0, D.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, D.useState)([]), f = kH(), p = A(), m = (0, D.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, D.useMemo)(() => PDe(h, e.release_date), [h, e.release_date]);
(0, D.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -71794,7 +71830,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
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", NDe(h, i), i;
+ return m.current = n && i.state === "busy", IDe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -71809,7 +71845,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, D.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, D.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && jCe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && PCe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -71846,39 +71882,39 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Sz,
- ...Bz(x),
+ leadingIcon: xz,
+ ...zz(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, O.jsx)(NH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ x ? /* @__PURE__ */ (0, O.jsx)(MH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(Fz, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
- children: FDe(e)
+ children: RDe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(JF, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, O.jsx)(qF, {
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, O.jsx)(Fz, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ f.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -71908,25 +71944,25 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, O.jsx)(n4, {
- icon: wfe,
+ icon: Tfe,
children: e.source
}),
/* @__PURE__ */ (0, O.jsx)(n4, {
- icon: _z,
+ icon: gz,
title: `来源大小:${e.size}`,
- children: PDe(e.size)
+ children: LDe(e.size)
}),
e.files ? /* @__PURE__ */ (0, O.jsx)(n4, {
- icon: hfe,
+ icon: gfe,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, O.jsx)(n4, {
- icon: tfe,
+ icon: nfe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, O.jsx)(n4, {
- icon: xz,
+ icon: bz,
children: e
}, e))
]
@@ -71935,11 +71971,11 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, O.jsx)(JF, {
+ /* @__PURE__ */ (0, O.jsx)(qF, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: pz,
+ trailingIcon: fz,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -71948,18 +71984,18 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: pfe,
- ...Bz(f.busy === `copy:${e.id}`),
+ leadingIcon: mfe,
+ ...zz(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? YH(v.key) : sfe,
+ leadingIcon: v ? JH(v.key) : cfe,
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
@@ -71970,7 +72006,7 @@ function r4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(KH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, O.jsx)(GH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, O.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -71994,7 +72030,7 @@ function a4() {
return [];
}
}
-function IDe(e, t) {
+function zDe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -72004,7 +72040,7 @@ function IDe(e, t) {
i.length <= 2e6 && localStorage.setItem(i4, i);
} catch {}
}
-function LDe(e, t) {
+function BDe(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);
@@ -72016,12 +72052,12 @@ function LDe(e, t) {
saved: i
} : void 0;
}
-function RDe(e, t, n) {
+function VDe(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 zDe(e) {
+function HDe(e) {
let t = (0, D.useRef)(!1), n = St({
queryKey: O2(e.code),
queryFn: ({ signal: n }) => {
@@ -72036,14 +72072,14 @@ function zDe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, O.jsx)(BDe, {
+ children: n.data ? /* @__PURE__ */ (0, O.jsx)(UDe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, O.jsx)(o4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(uW, {
+ children: [/* @__PURE__ */ (0, O.jsx)(o4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, O.jsx)(dW, {
message: An(n.error),
onRetry: r
}) : null]
@@ -72059,7 +72095,7 @@ var o4 = ({ close: e }) => /* @__PURE__ */ (0, O.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function UDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, D.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, D.useEffect)(() => {
@@ -72079,7 +72115,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = AH(), m = () => {
+ ], [l, u] = (0, D.useState)(null), [d, f] = (0, D.useState)(t.want_id), p = kH(), m = () => {
p.run("want", async (e) => d ? (await b$([d], e), null) : (await y$({ code: t.code }, e)).want.id, (t) => {
f(t), U.setQueryData(O2(e), (e) => e && {
...e,
@@ -72102,7 +72138,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, O.jsx)(s4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(UDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(yQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, O.jsx)(KDe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, O.jsx)(yQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, o),
@@ -72125,7 +72161,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, O.jsx)(VDe, { item: t }),
+ /* @__PURE__ */ (0, O.jsx)(WDe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, O.jsx)(l4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, O.jsxs)("div", {
className: "mono",
@@ -72141,7 +72177,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, O.jsx)(HDe, {
+ /* @__PURE__ */ (0, O.jsx)(GDe, {
item: t,
navigate: n.navigate
}),
@@ -72180,11 +72216,11 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-summary": "",
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ t.message ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(a),
+ ...zz(a),
onClick: i,
children: "立即重试"
}),
@@ -72193,10 +72229,10 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, O.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, O.jsx)(JF, {
+ t.source_url ? /* @__PURE__ */ (0, O.jsx)(qF, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: pz,
+ trailingIcon: fz,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -72206,7 +72242,7 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...Bz(!!p.busy),
+ ...zz(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -72224,16 +72260,16 @@ function BDe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ p.error ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, O.jsx)(WDe, {
+ /* @__PURE__ */ (0, O.jsx)(qDe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, O.jsx)(GDe, {
+ /* @__PURE__ */ (0, O.jsx)(JDe, {
item: t,
actions: n,
readOnly: r
@@ -72257,7 +72293,7 @@ var s4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, O.jsx)(s4, { name: e }), /* @__PURE__ */ (0, O.jsx)("span", { children: n })]
}) : null;
-function VDe({ item: e }) {
+function WDe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = E2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, O.jsxs)("div", {
"data-item-title": "",
@@ -72285,7 +72321,7 @@ function VDe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, O.jsx)(zH, {})
+ children: /* @__PURE__ */ (0, O.jsx)(RH, {})
})
})]
});
@@ -72303,7 +72339,7 @@ function l4({ score: e, review: t = !1 }) {
})]
});
}
-function HDe({ item: e, navigate: t }) {
+function GDe({ item: e, navigate: t }) {
let n = (e, n) => t(en(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, O.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -72345,18 +72381,18 @@ function HDe({ item: e, navigate: t }) {
})]
});
}
-function UDe({ src: e }) {
+function KDe({ src: e }) {
let t = (0, D.useRef)(null), [n, r] = (0, D.useState)(!1), [i, a] = (0, D.useState)(0);
return (0, D.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), cM(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), sM(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, O.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ children: n ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
@@ -72369,8 +72405,8 @@ function UDe({ src: e }) {
}) : null
});
}
-function WDe({ code: e, count: t, released: n }) {
- let r = A(), [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => LDe(e, n), [e, n]), s = (0, D.useRef)(!1), c = wt({
+function qDe({ code: e, count: t, released: n }) {
+ let r = A(), [i, a] = (0, D.useState)(!1), o = (0, D.useMemo)(() => BDe(e, n), [e, n]), s = (0, D.useRef)(!1), c = wt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -72379,12 +72415,12 @@ function WDe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => RDe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => VDe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await GEe(e, n, t, s.current);
- if (IDe(e, i), !i.ok || i.cache_stale) {
+ let i = await JEe(e, n, t, s.current);
+ if (zDe(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,
@@ -72394,7 +72430,7 @@ function WDe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: KEe
+ getNextPageParam: YEe
});
(0, D.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -72402,10 +72438,10 @@ function WDe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? An(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, O.jsxs)(KH, {
+ children: /* @__PURE__ */ (0, O.jsxs)(GH, {
trailing: !0,
summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(nfe, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, O.jsx)(rfe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -72454,24 +72490,24 @@ function WDe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, O.jsx)("p", { children: e.content })]
}, e.id)),
- d ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ d ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
action: /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(c.isFetching),
+ ...zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(Fz, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, O.jsx)(Pz, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, O.jsx)(J, {
variant: "secondary",
- ...Bz(c.isFetching),
+ ...zz(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -72479,13 +72515,13 @@ function WDe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, O.jsx)(J, {
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, O.jsxs)(Fz, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, O.jsxs)(Pz, {
tone: "neutral",
children: [
"已显示 ",
@@ -72497,7 +72533,7 @@ function WDe({ code: e, count: t, released: n }) {
})
});
}
-function GDe({ item: e, actions: t, readOnly: n }) {
+function JDe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, D.useState)(!1), a = St({
queryKey: V2,
enabled: r,
@@ -72505,7 +72541,7 @@ function GDe({ item: e, actions: t, readOnly: n }) {
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, D.useState)(!1);
return /* @__PURE__ */ (0, O.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, O.jsx)(KH, {
+ children: /* @__PURE__ */ (0, O.jsx)(GH, {
trailing: !0,
summary: /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(s4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
@@ -72530,16 +72566,16 @@ function GDe({ item: e, actions: t, readOnly: n }) {
//#endregion
//#region src/react/stage/stage-player.ts
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 KDe(e, t) {
- u4 = e, v4 = () => t.isOpen(), _4 = () => t.requestClose(), KA({
+function YDe(e, t) {
+ u4 = e, v4 = () => t.isOpen(), _4 = () => t.requestClose(), GA({
...e.player,
stage: () => document.getElementById("stage")
- }), YA({
+ }), JA({
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", () => Jj()));
+ }), b4 || (b4 = !0, addEventListener("pagehide", () => qj()));
}
var b4 = !1;
function x4() {
@@ -72549,10 +72585,10 @@ function x4() {
function S4(e) {
p4 = e;
}
-var qDe = () => p4;
+var XDe = () => 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 YDe(e, d4);
+ if (d4 && d4.key === a) return QDe(e, d4);
d4 && R4();
let o = {
player: null,
@@ -72564,7 +72600,7 @@ function C4(e, t) {
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 = aM(s, {
+ let c = iM(s, {
kind: n,
item: r,
media: i,
@@ -72577,10 +72613,10 @@ function C4(e, t) {
});
return () => {
let e = !!o.player && d4?.player === o.player;
- f4 === o && (f4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), Jj());
+ f4 === o && (f4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), qj());
};
}
-async function JDe(e, t, n) {
+async function ZDe(e, t, n) {
let r = await z(`/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("这条作品没有可播放的视频");
@@ -72604,9 +72640,9 @@ async function JDe(e, t, n) {
s || (s = !0, e && p4 === a && T4(!0), o(), p4 === a && S4(null));
};
}
-function YDe(e, t) {
+function QDe(e, t) {
let { player: n } = t;
- I4(t), d4 = null, L4(), n.el().classList.remove("vjs-peach-mini"), rM(e), e.append(n.el()), nj(n);
+ I4(t), d4 = null, L4(), n.el().classList.remove("vjs-peach-mini"), nM(e), e.append(n.el()), tj(n);
let r = {
player: n,
kind: t.kind,
@@ -72615,9 +72651,9 @@ function YDe(e, t) {
key: t.key
};
f4 = r;
- let i = iM(n, e);
- return rj(n), () => {
- f4 === r && (f4 = null), i(), d4?.player !== n && (tj() === n && nj(null), zj(n), Jj());
+ let i = rM(n, e);
+ return nj(n), () => {
+ f4 === r && (f4 = null), i(), d4?.player !== n && (ej() === n && tj(null), Rj(n), qj());
};
}
var w4 = () => {
@@ -72630,7 +72666,7 @@ function T4(e) {
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()) && $De({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && nOe({
player: r,
kind: n.kind,
item: n.item,
@@ -72645,11 +72681,11 @@ function D4(e) {
m4 = e, m4 && P4();
}
var O4 = () => !!d4 && !d4.pending && !d4.player.isDisposed();
-function XDe() {
+function $De() {
return O4() ? m4?.frame.querySelector("video") ?? null : null;
}
-function ZDe() {
- return v4() ? document.getElementById("stage")?.querySelector("video") ?? null : w4()?.el().querySelector("video") ?? XDe();
+function eOe() {
+ return v4() ? document.getElementById("stage")?.querySelector("video") ?? null : w4()?.el().querySelector("video") ?? $De();
}
function k4(e) {
m4 && (m4.title.textContent = e.title || "", m4.sub.textContent = e.sub || "", m4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -72698,7 +72734,7 @@ function F4(e) {
function I4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function QDe() {
+function tOe() {
let e = m4?.root;
if (!e) return;
let t = e.hidden;
@@ -72719,7 +72755,7 @@ function L4() {
e.style.transform = "";
}
}
-function $De(e, t) {
+function nOe(e, t) {
if (!m4) return;
let n = {
...e,
@@ -72727,13 +72763,13 @@ function $De(e, t) {
off: [],
pending: !1
};
- d4 = n, g4++, e.player.el().classList.add("vjs-peach-mini"), m4.frame.prepend(e.player.el()), k4(t), F4(n), QDe(), rj(e.player);
+ d4 = n, g4++, e.player.el().classList.add("vjs-peach-mini"), m4.frame.prepend(e.player.el()), k4(t), F4(n), tOe(), nj(e.player);
}
function R4() {
let e = d4;
e && I4(e), d4 = null, g4++;
let t = e?.player ?? null;
- t && tj() === t && nj(null), zj(t), t && Jj(), m4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), $A(), L4();
+ t && ej() === t && tj(null), Rj(t), t && qj(), m4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), QA(), L4();
}
function z4() {
if (!O4() || !d4) return;
@@ -72743,7 +72779,7 @@ function z4() {
function B4() {
O4() && !v4() ? z4() : v4() && w4() && _4 && (h4 = !0, _4());
}
-function eOe() {
+function rOe() {
let e = d4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -72756,7 +72792,7 @@ function V4(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 tOe(e) {
+async function iOe(e) {
if (!O4() || !d4 || !m4) return;
let t = ++g4, n = await z(`/api/item?id=${e}`).catch(() => null);
if (t !== g4 || !O4() || !d4 || !m4 || !n || n.error) return;
@@ -72765,7 +72801,7 @@ async function tOe(e) {
return;
}
let r = d4;
- I4(r), tj() === r.player && nj(null), zj(r.player), Jj(), m4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ I4(r), ej() === r.player && tj(null), Rj(r.player), qj(), 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", m4.frame.prepend(i);
let a = {
@@ -72774,14 +72810,14 @@ async function tOe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- k4(a), aM(i, {
+ k4(a), iM(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== g4) {
- r && tj() === r && nj(null), zj(r);
+ r && ej() === r && tj(null), Rj(r);
return;
}
if (!r) {
@@ -72809,9 +72845,9 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, O.jsx)("use", { href: `#i-${e}` })
-}), nOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, W4 = (e) => (t) => {
+}), aOe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, W4 = (e) => (t) => {
t.stopPropagation(), e();
-}, rOe = (0, D.memo)(function() {
+}, oOe = (0, D.memo)(function() {
let e = (0, D.useRef)(null), t = (0, D.useRef)(null), n = (0, D.useRef)(null), r = (0, D.useRef)(null), i = (0, D.useRef)(null), a = (0, D.useRef)(null), o = (0, D.useRef)(null), s = (0, D.useRef)(null), c = (0, D.useRef)(null), l = (0, D.useRef)(null);
return (0, D.useLayoutEffect)(() => (D4({
root: e.current,
@@ -72823,7 +72859,7 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => D4(null)), []), (0, D.useEffect)(() => aOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
+ }), () => D4(null)), []), (0, D.useEffect)(() => cOe(e.current, t.current), []), /* @__PURE__ */ (0, O.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -72873,8 +72909,8 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: W4(eOe),
- dangerouslySetInnerHTML: nOe
+ onClick: W4(rOe),
+ dangerouslySetInnerHTML: aOe
}),
/* @__PURE__ */ (0, O.jsx)("button", {
ref: o,
@@ -72913,7 +72949,7 @@ var U4 = ({ name: e }) => /* @__PURE__ */ (0, O.jsx)("svg", {
})
});
});
-function iOe(e, t, n) {
+function sOe(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
@@ -72935,7 +72971,7 @@ function iOe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function aOe(e, t) {
+function cOe(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 = {
@@ -72961,7 +72997,7 @@ function aOe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), iOe(e, i.dx, i.dy));
+ }, 0), sOe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -72981,25 +73017,25 @@ function $4() {
if (!G4) throw Error("舞台还没有接上宿主(configureStage)");
return G4;
}
-function oOe(e) {
+function lOe(e) {
return q4.add(e), () => {
q4.delete(e);
};
}
-function sOe() {
+function uOe() {
for (let e of [...q4]) e();
}
function e3() {
- (0, Tt.flushSync)(sOe);
+ (0, Tt.flushSync)(uOe);
}
-function cOe({ view: e }) {
- return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)(lOe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, O.jsx)(rOe, {})] });
+function dOe({ view: e }) {
+ return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [e ? /* @__PURE__ */ (0, O.jsx)(fOe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, O.jsx)(oOe, {})] });
}
var t3 = () => /* @__PURE__ */ (0, O.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: cEe() }
+ dangerouslySetInnerHTML: { __html: dEe() }
});
function n3(e) {
let t = e.currentTarget;
@@ -73007,7 +73043,7 @@ function n3(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function lOe({ view: e }) {
+function fOe({ view: e }) {
let t = (0, D.useRef)(null);
(0, D.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -73015,7 +73051,7 @@ function lOe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, O.jsx)(eDe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, O.jsx)(zDe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, O.jsx)(FEe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, O.jsx)(rDe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, O.jsx)(HDe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, O.jsx)(REe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, O.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -73042,7 +73078,7 @@ function lOe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, O.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, O.jsx)(CT, {
+ children: /* @__PURE__ */ (0, O.jsx)(ST, {
getContainer: () => Q0(t.current),
children: i
})
@@ -73135,7 +73171,7 @@ function a3(e) {
}
};
}
-function uOe(e, t) {
+function pOe(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 = () => {
@@ -73152,10 +73188,10 @@ function o3(e) {
let t = Q4();
return !K4 || K4.content.kind !== e || X4 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function dOe(e) {
+async function mOe(e) {
let t = o3(e.kind);
if (t) {
- await pOe(e, t);
+ await gOe(e, t);
return;
}
K4 && s3({ miniplayer: !1 });
@@ -73168,12 +73204,12 @@ async function dOe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? eN(i.props, r.signal) : i.kind === "jav" ? A2(i.props, r.signal) : r2(i.props, r.signal);
+ let a = i.kind === "item" ? $M(i.props, r.signal) : i.kind === "jav" ? A2(i.props, r.signal) : r2(i.props, r.signal);
if (n !== J4 || K4?.request !== e) {
await a.catch(() => {});
return;
}
- let o = fOe(i);
+ let o = hOe(i);
K4 = {
...K4,
phase: o ? "content" : "skeleton"
@@ -73194,31 +73230,31 @@ async function dOe(e) {
K4 = {
...K4,
phase: c ? "content" : "reveal"
- }, e3(), c || uOe(s, n), hs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, e3(), c || pOe(s, n), hs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
(l === s || !s.contains(l)) && s.querySelector("#closeStage")?.focus();
}
-function fOe(e) {
+function hOe(e) {
if (e.kind === "jav") return !!U.getQueryData(O2(e.props.code));
if (e.kind === "follow") return !!U.getQueryData(e2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(BM(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? U.getQueryData(zM(t)) : null;
if (t && !r) return !1;
- let i = r ? QM(r, n) : n;
- return i != null && !!U.getQueryData(zM(i));
+ let i = r ? ZM(r, n) : n;
+ return i != null && !!U.getQueryData(RM(i));
}
-async function pOe(e, t) {
+async function gOe(e, t) {
let n = ++J4;
Y4?.abort();
let r = new AbortController();
Y4 = r, Z4 = !1;
let i = a3(e);
try {
- i.kind === "item" ? await eN(i.props, r.signal) : i.kind === "jav" ? await A2(i.props, r.signal) : await r2(i.props, r.signal);
+ i.kind === "item" ? await $M(i.props, r.signal) : i.kind === "jav" ? await A2(i.props, r.signal) : await r2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== J4 || !K4 || o3(e.kind) !== t) return;
- e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN), cl(t), $A(), K4 = {
+ e.kind === "jav" ? R4() : E4(e.kind, e.id ?? NaN), cl(t), QA(), K4 = {
...K4,
request: e,
content: i,
@@ -73227,7 +73263,7 @@ async function pOe(e, t) {
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function mOe() {
+function _Oe() {
$0(null);
let e = Q4();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -73242,9 +73278,9 @@ function mOe() {
function s3({ miniplayer: e = !0 } = {}) {
if (J4++, Y4?.abort(), Y4 = null, T4(e), !K4) return;
let t = Q4();
- t && cl(t), $A(), $0(null), t?.open && t.close(), K4 = null, X4 = !1, Z4 = !1, e3(), S4(null), document.body.removeAttribute("data-detail-open");
+ t && cl(t), QA(), $0(null), t?.open && t.close(), K4 = null, X4 = !1, Z4 = !1, e3(), S4(null), document.body.removeAttribute("data-detail-open");
}
-function hOe(e) {
+function vOe(e) {
K4 && (K4 = {
...K4,
content: K4.content.kind === "item" ? {
@@ -73262,62 +73298,62 @@ function hOe(e) {
}
}, e3());
}
-function gOe() {
- let e = qDe(), t = e?.kind === "item" ? e.item : null, n = t ? Ya(t, $4().player.settings().javImage) : "";
+function yOe() {
+ let e = XDe(), t = e?.kind === "item" ? e.item : null, n = t ? Ya(t, $4().player.settings().javImage) : "";
if (!n) return;
let r = w4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var _Oe = {
- open: dOe,
- update: hOe,
- exit: mOe,
+var bOe = {
+ open: mOe,
+ update: vOe,
+ exit: _Oe,
dispose: s3,
requestClose: r3,
- repaintPoster: gOe,
+ repaintPoster: yOe,
isOpen: () => !!K4,
showing: () => K4 && o3(K4.content.kind) ? K4.content.kind : null,
- activeVideo: () => ZDe(),
- mountWallPlayer: JDe,
+ activeVideo: () => eOe(),
+ mountWallPlayer: ZDe,
toggleTheater: () => {
- K4 && Ej(!$4().player.settings().theaterMode);
+ K4 && Tj(!$4().player.settings().theaterMode);
},
toggleMiniplayer: () => B4(),
closeMiniplayer: () => R4(),
miniplayerActive: () => O4(),
miniplayerTakesCard: (e) => H4(e),
miniplayerPlay: (e) => {
- tOe(e);
+ iOe(e);
}
};
-function vOe(e) {
- return G4 = e, KDe(e, {
+function xOe(e) {
+ return G4 = e, YDe(e, {
isOpen: () => !!K4,
requestClose: r3
- }), _Oe;
+ }), bOe;
}
-function yOe() {
- let e = (0, D.useSyncExternalStore)(oOe, () => K4);
- return G4 ? /* @__PURE__ */ (0, O.jsx)(cOe, { view: e }) : null;
+function SOe() {
+ let e = (0, D.useSyncExternalStore)(lOe, () => K4);
+ return G4 ? /* @__PURE__ */ (0, O.jsx)(dOe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var bOe = "/api/stats", c3 = ["stats"], l3 = (e) => V(bOe, e);
-async function xOe(e) {
+var COe = "/api/stats", c3 = ["stats"], l3 = (e) => V(COe, e);
+async function wOe(e) {
await U.fetchQuery({
queryKey: c3,
queryFn: () => l3(e)
});
}
-var u3 = (e) => e != null && Number.isFinite(e), SOe = (e) => u3(e) ? e.toLocaleString() : "未取得", COe = (e, t) => u3(e) && u3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, wOe = (e, t) => {
- let n = COe(e, t);
+var u3 = (e) => e != null && Number.isFinite(e), TOe = (e) => u3(e) ? e.toLocaleString() : "未取得", EOe = (e, t) => u3(e) && u3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, DOe = (e, t) => {
+ let n = EOe(e, t);
return !n && u3(e) && e > 0 && u3(t) && t > 0 ? "<1%" : `${n}%`;
}, d3 = (e) => {
if (!u3(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)} 分钟`;
-}, f3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, p3 = (e) => (e.max_reached || 0) * 100, TOe = (e) => e.kind === "online" ? "在线直接观看" : f3(e) < p3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", EOe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function DOe(e, t = 6) {
+}, f3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, p3 = (e) => (e.max_reached || 0) * 100, OOe = (e) => e.kind === "online" ? "在线直接观看" : f3(e) < p3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", kOe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function AOe(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);
@@ -73327,7 +73363,7 @@ function DOe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, AOe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), jOe = {
+var jOe = (e) => Math.max(1, ...e) * 1.1, MOe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, NOe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), POe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -73335,10 +73371,10 @@ var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, MOe = (e) => e.map((e) => ({
- name: jOe[e.k] ?? e.k,
+}, FOe = (e) => e.map((e) => ({
+ name: POe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), NOe = {
+})).sort((e, t) => t.value - e.value), IOe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -73346,7 +73382,7 @@ var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t
}, m3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), POe = (e) => m3(e, NOe), FOe = [
+})), LOe = (e) => m3(e, IOe), ROe = [
[
1,
1,
@@ -73382,7 +73418,7 @@ var OOe = (e) => Math.max(1, ...e) * 1.1, kOe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], IOe = (e) => FOe.map(([t, n, r]) => ({
+], zOe = (e) => ROe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -73421,7 +73457,7 @@ function _3(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function LOe(e, t) {
+function BOe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -73445,13 +73481,13 @@ function x3(e, t) {
function S3(e) {
return e.value;
}
-function ROe(e) {
+function VOe(e) {
return e.index;
}
-function zOe(e) {
+function HOe(e) {
return e.nodes;
}
-function BOe(e) {
+function UOe(e) {
return e.links;
}
function C3(e, t) {
@@ -73466,8 +73502,8 @@ function w3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function VOe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ROe, c = LOe, l, u, d = zOe, f = BOe, p = 6;
+function WOe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = VOe, c = BOe, l, u, d = HOe, f = UOe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -73653,7 +73689,7 @@ function VOe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var T3 = Math.PI, E3 = 2 * T3, D3 = 1e-6, HOe = E3 - D3;
+var T3 = Math.PI, E3 = 2 * T3, D3 = 1e-6, GOe = E3 - D3;
function O3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -73694,7 +73730,7 @@ O3.prototype = k3.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) > D3 || Math.abs(this._y1 - l) > D3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % E3 + E3), d > HOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > D3 && (this._ += "A" + n + "," + n + ",0," + +(d >= T3) + "," + 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) > D3 || Math.abs(this._y1 - l) > D3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % E3 + E3), d > GOe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > D3 && (this._ += "A" + n + "," + n + ",0," + +(d >= T3) + "," + 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";
@@ -73712,27 +73748,27 @@ function A3(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function UOe(e) {
+function KOe(e) {
return e[0];
}
-function WOe(e) {
+function qOe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var GOe = Array.prototype.slice;
+var JOe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function KOe(e) {
+function YOe(e) {
return e.source;
}
-function qOe(e) {
+function XOe(e) {
return e.target;
}
-function JOe(e) {
- var t = KOe, n = qOe, r = UOe, i = WOe, a = null;
+function ZOe(e) {
+ var t = YOe, n = XOe, r = KOe, i = qOe, a = null;
function o() {
- var o, s = GOe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = JOe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = k3(), 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) {
@@ -73747,56 +73783,56 @@ function JOe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function YOe(e, t, n, r, i) {
+function QOe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function XOe() {
- return JOe(YOe);
+function $Oe() {
+ return ZOe(QOe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function ZOe(e) {
+function eke(e) {
return [e.source.x1, e.y0];
}
-function QOe(e) {
+function tke(e) {
return [e.target.x0, e.y1];
}
-function $Oe() {
- return XOe().source(ZOe).target(QOe);
+function nke() {
+ return $Oe().source(eke).target(tke);
}
//#endregion
//#region src/react/taste/taste.ts
-var eke = "/api/taste", j3 = "/api/taste/refresh", tke = "/api/taste/import", M3 = "/api/taste/source", N3 = (e) => ["taste", e], nke = ["taste", "refresh"], rke = [
+var rke = "/api/taste", j3 = "/api/taste/refresh", ike = "/api/taste/import", M3 = "/api/taste/source", N3 = (e) => ["taste", e], ake = ["taste", "refresh"], oke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], ike = 2e3, ake = (e) => e?.stale && !e.error ? ike : !1, oke = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], ske = 2e3, cke = (e) => e?.stale && !e.error ? ske : !1, lke = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", ske = (e, t) => H(M3, {
+}) : "—", uke = (e, t) => H(M3, {
...e,
window: t
-}), P3 = (e, t, n = !1) => V(`${eke}?window=${e}${n ? "&retry=1" : ""}`, t), cke = (e) => V(j3, e);
-async function lke(e, t) {
+}), P3 = (e, t, n = !1) => V(`${rke}?window=${e}${n ? "&retry=1" : ""}`, t), dke = (e) => V(j3, e);
+async function fke(e, t) {
await U.fetchQuery({
queryKey: N3(e),
queryFn: () => P3(e, t)
});
}
-var uke = (e) => H(j3, {
+var pke = (e) => H(j3, {
window: e,
background: !0
-}), dke = (e, t) => H(M3, {
+}), mke = (e, t) => H(M3, {
operation: "remove",
source_key: e,
window: t
});
-async function fke(e) {
- let t = await fetch(tke, {
+async function hke(e) {
+ let t = await fetch(ike, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -73814,8 +73850,8 @@ async function fke(e) {
}
return n;
}
-var pke = 1e4, F3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function mke(e) {
+var gke = 1e4, F3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function _ke(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", {
@@ -73824,31 +73860,31 @@ function mke(e) {
}) : F3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var hke = d3, gke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), _ke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function vke(e) {
+var vke = d3, yke = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), bke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function xke(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 yke(e) {
- let t = e.map(_ke), n = Math.max(1, ...t);
+function Ske(e) {
+ let t = e.map(bke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var I3 = (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 bke(e) {
+function Cke(e) {
let t = I3(e, 6);
return t.length < 3 ? [] : t;
}
var L3 = {
width: 720,
height: 435
-}, xke = {
+}, wke = {
source: 145,
target: 545
-}, R3 = 30, Ske = 240;
+}, R3 = 30, Tke = 240;
function z3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -73856,7 +73892,7 @@ function z3(e, t, n) {
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 Cke(e = []) {
+function Eke(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = z3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = z3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -73868,7 +73904,7 @@ function Cke(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) * R3 + Ske), u = VOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(R3).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) * R3 + Tke), u = WOe().nodeId((e) => e.id).nodeWidth(10).nodePadding(R3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -73883,7 +73919,7 @@ function Cke(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = $Oe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = nke();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -73914,13 +73950,13 @@ function Cke(e = []) {
height: l + L3.height - 404
};
}
-var wke = (e) => Sn(e, 17), B3 = {
+var Dke = (e) => Sn(e, 17), B3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Tke = [[
+}, Oke = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -73928,7 +73964,7 @@ var wke = (e) => Sn(e, 17), B3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], Eke = [[
+]], kke = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -73936,7 +73972,7 @@ var wke = (e) => Sn(e, 17), B3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], Dke = [[
+]], Ake = [[
"studios",
"厂牌",
"clapperboard"
@@ -73944,7 +73980,7 @@ var wke = (e) => Sn(e, 17), B3 = {
"agencies",
"事务所",
"briefcase"
-]], Oke = [[
+]], jke = [[
"local",
"本地",
"hard-drive"
@@ -73952,7 +73988,7 @@ var wke = (e) => Sn(e, 17), B3 = {
"online",
"在线",
"rss"
-]], kke = [
+]], Mke = [
[
"performers",
"艺人",
@@ -73968,7 +74004,7 @@ var wke = (e) => Sn(e, 17), B3 = {
"在线",
"rss"
]
-], Ake = [[
+], Nke = [[
"cloud",
"标签云",
"tags"
@@ -73995,12 +74031,12 @@ var U3 = (e, t, n) => as(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), jke = (e) => `<div class="board-filter-frame" data-filter-frame>
+}), Pke = (e) => `<div class="board-filter-frame" data-filter-frame>
<div class="tagbar" data-filter-row="top" data-skeleton-tier="pill" aria-label="标签类型"></div>
<div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
- ${dc("tag-view", "标签视图", Ake, e)}</div></div>`;
-function Mke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = B3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? dc("people-layout", o + "索引版式", c ? Eke : Tke, a) : "";
+ ${dc("tag-view", "标签视图", Nke, e)}</div></div>`;
+function Fke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = B3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? dc("people-layout", o + "索引版式", c ? kke : Oke, 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}
@@ -74012,27 +74048,27 @@ function Mke({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Uo("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? U3(Oke, n, "词表") : e === "performers" || e === "creators" ? U3(kke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? U3(Dke, e, "公司类型") : ""}
- ${e === "tags" ? jke(r) : ""}
- ${e === "performers" && n !== "online" ? Ebe(i) : ""}
+ ${e === "tags" ? U3(jke, n, "词表") : e === "performers" || e === "creators" ? U3(Mke, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? U3(Ake, e, "公司类型") : ""}
+ ${e === "tags" ? Pke(r) : ""}
+ ${e === "performers" && n !== "online" ? kbe(i) : ""}
${vs({
kind: e,
layout: a,
mode: r
})}`;
}
-var Nke = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var Ike = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function W3(e, t, n) {
- let r = Mke(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== Nke(r) && (e.innerHTML = r, Ts(e));
+ let r = Fke(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== Ike(r) && (e.innerHTML = r, Ts(e));
}
//#endregion
//#region src/react/router/pages/index-entity.tsx
-var Pke = () => Hl, Fke = () => Dl, G3 = () => document.getElementById("index");
+var Lke = () => Hl, Rke = () => Dl, G3 = () => document.getElementById("index");
function K3(e, t, n = {}) {
- let r = (0, D.useSyncExternalStore)($l, Pke);
- LB();
- let i = gV(YV.navigation.location.pathname), a = (0, D.useRef)({
+ let r = (0, D.useSyncExternalStore)($l, Lke);
+ IB();
+ let i = hV(JV.navigation.location.pathname), a = (0, D.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -74057,7 +74093,7 @@ function K3(e, t, n = {}) {
let t = a.current;
if (!t.mounted) return;
let n = t.epoch !== e || t.opens !== Hl, r = t.opens !== Hl;
- if (t.epoch = e, t.opens = Hl, gV(YV.navigation.location.pathname)) {
+ if (t.epoch = e, t.opens = Hl, hV(JV.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -74078,13 +74114,13 @@ function K3(e, t, n = {}) {
i
]);
}
-async function Ike(e, t, n, r) {
+async function zke(e, t, n, r) {
let i = G3();
if (!i) return;
let a = `/${t}`;
e.surfaceChanged("index", a);
- let o = H3(t, n), s = V3(iA().value.peopleLayout);
- W3(i, o, s), await RV(a, {
+ let o = H3(t, n), s = V3(rA().value.peopleLayout);
+ W3(i, o, s), await LV(a, {
...o,
layout: s,
selectMode: Dl,
@@ -74094,21 +74130,21 @@ async function Ike(e, t, n, r) {
isCurrent: r
}) && r() && e.surfaceShown?.("index", a);
}
-function Lke(e) {
- let t = G3(), n = t ? PV(t) : null;
+function Bke(e) {
+ let t = G3(), n = t ? NV(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function Rke({ epoch: e }) {
- let t = (0, D.useContext)(lU), n = LB(), r = n.pathname.split("/").filter(Boolean)[0];
+function Vke({ epoch: e }) {
+ let t = (0, D.useContext)(cU), n = IB(), r = n.pathname.split("/").filter(Boolean)[0];
return K3(e, (e, i) => {
- t && Ike(t, r, n.search, i);
- }, { shown: () => Lke(`/${r}`) }), null;
+ t && zke(t, r, n.search, i);
+ }, { shown: () => Bke(`/${r}`) }), null;
}
-function zke() {
- let e = cU(), t = (0, D.useSyncExternalStore)($l, Fke), n = (0, D.useRef)(t);
+function Hke() {
+ let e = sU(), t = (0, D.useSyncExternalStore)($l, Rke), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && zV(G3(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, O.jsx)(Rke, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && RV(G3(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, O.jsx)(Vke, { epoch: e }, e);
}
function q3(e) {
let t;
@@ -74125,7 +74161,7 @@ function q3(e) {
} : null;
}
var J3 = /* @__PURE__ */ new WeakMap();
-function Bke(e) {
+function Uke(e) {
let t = J3.get(e);
return t || (t = {
helpers: {
@@ -74139,10 +74175,10 @@ function Bke(e) {
}, J3.set(e, t)), t;
}
function Y3() {
- let e = G3(), t = e ? PV(e) : null;
+ let e = G3(), t = e ? NV(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function Vke(e, t, n, r, i, a, o) {
+async function Wke(e, t, n, r, i, a, o) {
let s = G3();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -74157,7 +74193,7 @@ async function Vke(e, t, n, r, i, a, o) {
}, h = t.props(l, u, i), g = {
...h,
hosts: m,
- card: Bke(e),
+ card: Uke(e),
resolvedEntity: o,
actions: {
...h.actions,
@@ -74166,7 +74202,7 @@ async function Vke(e, t, n, r, i, a, o) {
}
}
};
- await RV(`/${c}/*`, g, {
+ await LV(`/${c}/*`, g, {
container: s,
isCurrent: a,
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
@@ -74175,8 +74211,8 @@ async function Vke(e, t, n, r, i, a, o) {
behavior: "smooth"
}));
}
-function Hke({ target: e }) {
- let t = (0, D.useContext)(lU), n = cU(), r = LB();
+function Gke({ target: e }) {
+ let t = (0, D.useContext)(cU), n = sU(), r = IB();
return K3(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
@@ -74193,9 +74229,9 @@ function Hke({ target: e }) {
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- XV(en(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ YV(en(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;
}
@@ -74204,19 +74240,19 @@ function Hke({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = en(e.kind, c, Number(s.id));
- l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Vke(t, a, {
+ l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Wke(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: () => Y3() && !G3()?.hidden }), null;
}
-function Uke() {
- let e = q3(LB().pathname);
- return e ? /* @__PURE__ */ (0, O.jsx)(Hke, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function Kke() {
+ let e = q3(IB().pathname);
+ return e ? /* @__PURE__ */ (0, O.jsx)(Gke, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
//#endregion
//#region src/react/jav/jav-header.tsx
@@ -74242,11 +74278,11 @@ function X3({ tab: e, navigate: t, find: n }) {
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(ICe(e))
+ onChange: (e) => t(zCe(e))
})]
});
}
-function Wke({ navigate: e, receipt: t }) {
+function qke({ navigate: e, receipt: t }) {
let [n, r] = (0, D.useState)(null);
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsx)(X3, {
tab: "library",
@@ -74260,12 +74296,12 @@ function Wke({ navigate: e, receipt: t }) {
}
//#endregion
//#region src/react/router/pages/catalog.tsx
-var Gke = () => Hl, Z3 = YV.navigation.seq, Q3 = YV.navigation.openEpoch, $3 = YV.navigation.location.pathname, e6 = {
+var Jke = () => Hl, Z3 = JV.navigation.seq, Q3 = JV.navigation.openEpoch, $3 = JV.navigation.location.pathname, e6 = {
seq: Z3,
claimed: !0,
from: $3
};
-YV.listen((e) => {
+JV.listen((e) => {
e6 = {
seq: e.seq,
claimed: e.openEpoch === Q3,
@@ -74274,7 +74310,7 @@ YV.listen((e) => {
});
var t6 = !1;
function n6(e) {
- let { seq: t, openEpoch: n, location: r } = YV.navigation, i = gV(r.pathname), a = QV() ?? r, o = W ?? {};
+ let { seq: t, openEpoch: n, location: r } = JV.navigation, i = hV(r.pathname), a = ZV() ?? r, o = W ?? {};
return {
seq: t,
epoch: n,
@@ -74285,7 +74321,7 @@ function n6(e) {
opened: e
};
}
-function Kke(e, t, n, r) {
+function Yke(e, t, n, r) {
let i = { ...W };
if (e === "/trash") return {
...i,
@@ -74296,7 +74332,7 @@ function Kke(e, t, n, r) {
state: "trash",
q: ""
};
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = iA().value;
+ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = rA().value;
return {
...i,
loc: a.get("loc") ?? r.defaultLoc(),
@@ -74310,7 +74346,7 @@ function Kke(e, t, n, r) {
dur_max: a.get("dur_max") || "",
orient: a.get("orient") || "",
state: Yt[e] || a.get("state") || "",
- ...Rk(a.get("sort"), a.get("dir"), o, s),
+ ...Lk(a.get("sort"), a.get("dir"), o, s),
seed: a.get("seed") || (n ? Tn() : i.seed || Tn()),
q: a.get("q") || "",
jav: a.get("jav") || "",
@@ -74321,13 +74357,13 @@ function Kke(e, t, n, r) {
folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
};
}
-function qke(e, t) {
+function Xke(e, t) {
let n = { ...e }, r = n6(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;
@@ -74337,41 +74373,41 @@ function qke(e, t) {
i.load();
return;
}
- r.epoch !== n.epoch && (a = YV.navigation.action === "POP" && e6.from !== "/");
+ r.epoch !== n.epoch && (a = JV.navigation.action === "POP" && e6.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 } = c$(s);
- t6 = !0, XV(l$(e, t), { replace: !0 });
+ t6 = !0, YV(l$(e, t), { replace: !0 });
return;
}
let c = t6;
- t6 = !1, a &&= o === "/", e.opened = !0, Zl({ state: Kke(o, s, a, i) }), i.open(o, {
+ t6 = !1, a &&= o === "/", e.opened = !0, Zl({ state: Yke(o, s, a, i) }), i.open(o, {
entering: a,
retitle: c
});
}
-function Jke(e) {
- return Zt(e) || e === "/trash" || gV(e) || e === "/immerse" || !!q3(e);
+function Zke(e) {
+ return Zt(e) || e === "/trash" || hV(e) || e === "/immerse" || !!q3(e);
}
-function Yke() {
- let e = (0, D.useContext)(lU), t = cU(), n = (0, D.useSyncExternalStore)($l, Gke), r = LB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
+function Qke() {
+ let e = (0, D.useContext)(cU), t = sU(), n = (0, D.useSyncExternalStore)($l, Jke), r = IB(), i = (0, D.useRef)(null), a = (0, D.useRef)({
mounted: !0,
queued: !1
});
return (0, D.useEffect)(() => {
let t = a.current;
t.mounted = !0;
- let n = n6(!gV(YV.navigation.location.pathname));
+ let n = n6(!hV(JV.navigation.location.pathname));
return !n.covered && n.opens > 0 && (t6 || e6.seq === Z3 ? n.opens = -1 : e6.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !Jke(YV.navigation.location.pathname) && e.catalog.release();
+ e?.catalog && !Zke(JV.navigation.location.pathname) && e.catalog.release();
});
};
}, []), (0, D.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && qke(i.current, e);
+ t.queued = !1, t.mounted && i.current && Xke(i.current, e);
}));
}, [
t,
@@ -74381,7 +74417,7 @@ function Yke() {
]), null;
}
function r6() {
- let { pathname: e, search: t } = LB();
+ let { pathname: e, search: t } = IB();
(0, D.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -74394,15 +74430,15 @@ function r6() {
});
};
}, [e]);
- let n = (0, D.useContext)(lU), r = document.getElementById("javLibraryHeader"), i = Zt(e) && new URLSearchParams(t).get("jav") === "1";
+ let n = (0, D.useContext)(cU), r = document.getElementById("javLibraryHeader"), i = Zt(e) && new URLSearchParams(t).get("jav") === "1";
return (0, D.useLayoutEffect)(() => {
if (r) return r.hidden = !i, () => {
r.hidden = !0;
};
- }, [r, i]), gV(e) && !hV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
- /* @__PURE__ */ (0, O.jsx)(Yke, {}, e === "/junk-files" ? "/junk-files" : "/"),
- Zt(e) ? /* @__PURE__ */ (0, O.jsx)(_U, {}) : null,
- i && r && n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(Wke, {
+ }, [r, i]), hV(e) && !mV(e) ? null : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
+ /* @__PURE__ */ (0, O.jsx)(Qke, {}, e === "/junk-files" ? "/junk-files" : "/"),
+ Zt(e) ? /* @__PURE__ */ (0, O.jsx)(gU, {}) : null,
+ i && r && n ? (0, Tt.createPortal)(/* @__PURE__ */ (0, O.jsx)(qke, {
navigate: n.navigate,
receipt: (e) => n.receipt(e)
}), r) : null
@@ -74410,21 +74446,21 @@ function r6() {
}
//#endregion
//#region src/react/router/pages/follow.tsx
-var i6 = () => document.getElementById("stats"), Xke = () => Jl;
-function Zke(e) {
+var i6 = () => document.getElementById("stats"), $ke = () => Jl;
+function eAe(e) {
let t = document.createElement("div");
return t.className = "peach-react", gs(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-async function Qke(e, t) {
+async function tAe(e, t) {
let n = i6(), r = e.follow;
if (!n || !r || r.refresh()) return;
let i = ql;
- e.surfaceChanged("follow", "/follow"), f2(n, r.skeleton()), await RV("/follow", r.props(), {
+ e.surfaceChanged("follow", "/follow"), f2(n, r.skeleton()), await LV("/follow", r.props(), {
container: n,
isCurrent: t,
- place: Zke
+ place: eAe
}), t() && window.scrollTo(i ? {
top: i,
behavior: "instant"
@@ -74433,32 +74469,32 @@ async function Qke(e, t) {
behavior: "smooth"
});
}
-function $ke() {
- let e = i6(), t = e ? PV(e) : null;
+function nAe() {
+ let e = i6(), t = e ? NV(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function eAe() {
- let e = (0, D.useContext)(lU);
- return K3(cU(), (t, n) => {
- e && Qke(e, n);
+function rAe() {
+ let e = (0, D.useContext)(cU);
+ return K3(sU(), (t, n) => {
+ e && tAe(e, n);
}, {
- shown: $ke,
+ shown: nAe,
onCovered: () => {
- YV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ JV.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
function a6(e) {
- let t = e ? PV(e) : null;
+ let t = e ? NV(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function tAe(e, t) {
+async function iAe(e, t) {
let n = i6();
n && (e.surfaceChanged("playlists", "/playlists"), f2(n, u2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), await RV("/playlists", { revision: Jl }, {
+ })), await LV("/playlists", { revision: Jl }, {
container: n,
isCurrent: t
}), t() && window.scrollTo({
@@ -74466,15 +74502,15 @@ async function tAe(e, t) {
behavior: "smooth"
}));
}
-function nAe() {
- let e = (0, D.useContext)(lU), t = (0, D.useSyncExternalStore)($l, Xke), n = (0, D.useRef)(t);
+function aAe() {
+ let e = (0, D.useContext)(cU), t = (0, D.useSyncExternalStore)($l, $ke), n = (0, D.useRef)(t);
return (0, D.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = i6();
- a6(e) && zV(e, { revision: t });
- }, [t]), K3(cU(), (t, n) => {
- e && tAe(e, n);
+ a6(e) && RV(e, { revision: t });
+ }, [t]), K3(sU(), (t, n) => {
+ e && iAe(e, n);
}, { shown: () => {
let e = i6();
return a6(e) && !e.hidden;
@@ -74482,18 +74518,18 @@ function nAe() {
}
//#endregion
//#region src/react/router/pages/immerse.tsx
-function rAe() {
- let e = new URLSearchParams(YV.navigation.location.search).get("id");
+function oAe() {
+ let e = new URLSearchParams(JV.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function iAe() {
- let e = (0, D.useContext)(lU);
- return oU(() => {
- e?.openImmerse(rAe());
+function sAe() {
+ let e = (0, D.useContext)(cU);
+ return aU(() => {
+ e?.openImmerse(oAe());
}, !0), null;
}
-function aAe() {
- return /* @__PURE__ */ (0, O.jsx)(iAe, {}, cU());
+function cAe() {
+ return /* @__PURE__ */ (0, O.jsx)(sAe, {}, sU());
}
//#endregion
//#region src/ui-kit/anchor-scroll.ts
@@ -74518,12 +74554,12 @@ async function s6(e, t) {
}
//#endregion
//#region src/react/router/pages/managed.tsx
-var oAe = [
+var lAe = [
"list",
"add",
"feeds"
-], sAe = () => Hl > 0, c6 = () => (0, D.useSyncExternalStore)($l, sAe), l6 = () => iA().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
-function cAe(e) {
+], uAe = () => Hl > 0, c6 = () => (0, D.useSyncExternalStore)($l, uAe), l6 = () => rA().value.followLayout === "table" ? "table" : "default", u6 = () => new URLSearchParams(window.location.search);
+function dAe(e) {
let t = u6();
return u2(e, {
followLayout: l6(),
@@ -74544,7 +74580,7 @@ function f6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function lAe(e, t) {
+async function fAe(e, t) {
if (e === "/jav") {
let e = await d6(t);
return t.live ? {
@@ -74559,7 +74595,7 @@ async function lAe(e, t) {
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && Zl({ configurationRequestedSection: "网络与访问" });
- let t = u6().get("section") || zl || sV(e);
+ let t = u6().get("section") || zl || oV(e);
return t ? { section: t } : {};
}
if (e === "/review") {
@@ -74571,13 +74607,13 @@ async function lAe(e, t) {
}
if (e === "/subscriptions") {
let e = u6(), n = e.get("tab") || "", r = {
- tab: oAe.includes(n) ? n : "list",
+ tab: lAe.includes(n) ? n : "list",
page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
sort: e.get("sort") || "",
dir: e.get("dir") || ""
}, i = await d6(t);
if (!t.live) return null;
- let a = iA().value;
+ let a = rA().value;
return {
...r,
pageSize: Number(a.followPageSize) || 20,
@@ -74587,12 +74623,12 @@ async function lAe(e, t) {
}
return {};
}
-var uAe = () => {
+var pAe = () => {
window.scrollTo({
top: 0,
behavior: o6()
});
-}, dAe = /* @__PURE__ */ new Set([
+}, mAe = /* @__PURE__ */ new Set([
"/stats",
"/taste",
"/review",
@@ -74600,18 +74636,18 @@ var uAe = () => {
"/tasks",
"/subscriptions"
]);
-async function fAe(e, t, n) {
- let r = YV.navigation.seq, i = () => n.live && YV.navigation.seq === r;
+async function hAe(e, t, n) {
+ let r = JV.navigation.seq, i = () => n.live && JV.navigation.seq === r;
if (e === "/jav" && C$(u6().get("tab")) === "library") {
- YV.replace(LCe(window.location.search));
+ JV.replace(BCe(window.location.search));
return;
}
if (e === "/subscriptions" && u6().get("tab") === "wants") {
- XV("/jav?tab=wants", { replace: !0 });
+ YV("/jav?tab=wants", { replace: !0 });
return;
}
if (e === "/subscriptions" && u6().get("tab") === "source") {
- XV("/settings/subscriptions", { replace: !0 });
+ YV("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -74633,38 +74669,38 @@ async function fAe(e, t, n) {
state: "",
q: "",
jav: ""
- } }), t.clearSearch()), f2(a, cAe(e));
- let o = await lAe(e, n);
+ } }), t.clearSearch()), f2(a, dAe(e));
+ let o = await fAe(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 && Zl({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = NV(a)?.revision ?? 0), e.startsWith("/settings/") && s && Zl({ 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 ? s6(t, i) : (dAe.has(e) || e === "/settings/library") && uAe();
+ }) : t ? s6(t, i) : (mAe.has(e) || e === "/settings/library") && pAe();
}
}
function p6({ path: e }) {
- let t = cU();
- LB();
- let n = gV(YV.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.useRef)(n);
+ let t = sU();
+ IB();
+ let n = hV(JV.navigation.location.pathname), r = (0, D.useRef)(n ? null : t), i = (0, D.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, O.jsx)(pAe, {
+ return /* @__PURE__ */ (0, O.jsx)(gAe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function pAe({ path: e, covered: t }) {
- let n = (0, D.useContext)(lU), r = c6(), i = (0, D.useRef)(null);
+function gAe({ path: e, covered: t }) {
+ let n = (0, D.useContext)(cU), r = c6(), i = (0, D.useRef)(null);
return (0, D.useEffect)(() => {
- e.startsWith("/settings/") && zV(document.getElementById("stats"), { section: sV(e) });
+ e.startsWith("/settings/") && RV(document.getElementById("stats"), { section: oV(e) });
}, [e]), (0, D.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -74673,7 +74709,7 @@ function pAe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && fAe(e, n, a);
+ a.live && hAe(e, n, a);
});
}, [r]), (0, D.useEffect)(() => () => {
let e = i.current;
@@ -74681,18 +74717,18 @@ function pAe({ path: e, covered: t }) {
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 mAe() {
+function _Ae() {
let e = c6(), t = (0, D.useRef)(!1);
return (0, D.useEffect)(() => {
- if (!e || t.current || gV(YV.navigation.location.pathname)) return;
+ 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;
};
@@ -74700,11 +74736,11 @@ function mAe() {
}
//#endregion
//#region src/react/router/route-chunk.ts
-var m6 = [], h6 = "peach.chunkReloadAt", hAe = 3e4;
-async function gAe() {
+var m6 = [], h6 = "peach.chunkReloadAt", vAe = 3e4;
+async function yAe() {
try {
let e = Number(sessionStorage.getItem(h6) || 0);
- if (Date.now() - e < hAe || !(await fetch("/healthz", {
+ if (Date.now() - e < vAe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -74717,7 +74753,7 @@ function g6(e) {
});
return m6.push(r), {
preload: () => r().catch(async (e) => {
- throw await gAe(), e;
+ throw await yAe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -74725,7 +74761,7 @@ function g6(e) {
}
};
}
-function _Ae() {
+function bAe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...m6], n = () => {
@@ -74750,7 +74786,7 @@ var v6 = g6(() => import("./peach-app.jav-page-BylXQgrV.js")), y6 = g6(() => imp
DiagnosticsPage: t
};
}), D6 = g6(() => import("./peach-app.activity-page-ClyZLUeQ.js")), O6 = g6(() => import("./peach-app.follow-manage-page-K8kzYRBb.js")), k6 = g6(() => import("./peach-app.playlists-page-DKMNf-v5.js"));
-function vAe(e, t, n) {
+function xAe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -74760,7 +74796,7 @@ function vAe(e, t, n) {
}
var A6 = (e) => ({
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: e }),
- prefetch: (t, n) => _6(E6, Promise.all([Twe(n), ...e === "/settings/diagnostics" ? [KSe(n)] : []]).then(() => {})),
+ prefetch: (t, n) => _6(E6, Promise.all([Owe(n), ...e === "/settings/diagnostics" ? [YSe(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = E6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
@@ -74776,7 +74812,7 @@ var A6 = (e) => ({
}), j6 = {
"/jav": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/jav" }),
- prefetch: (e, t) => _6(v6, zCe(e.tab, t)),
+ prefetch: (e, t) => _6(v6, HCe(e.tab, t)),
page: (e, t) => {
let { JavPage: n } = v6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
@@ -74788,7 +74824,7 @@ var A6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/stats" }),
- prefetch: (e, t) => _6(y6, xOe(t)),
+ prefetch: (e, t) => _6(y6, wOe(t)),
page: (e, t) => {
let { StatsPage: n } = y6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
@@ -74799,7 +74835,7 @@ var A6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/taste" }),
- prefetch: (e, t) => _6(b6, lke("all", t)),
+ prefetch: (e, t) => _6(b6, fke("all", t)),
page: (e, t, n) => {
let { TastePage: r } = b6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
@@ -74812,7 +74848,7 @@ var A6 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/review" }),
- prefetch: (e, t) => _6(x6, lye(t)),
+ prefetch: (e, t) => _6(x6, fye(t)),
page: (e, t) => {
let { ReviewPage: n } = x6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
@@ -74827,19 +74863,19 @@ var A6 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/data-cleanup" }),
- prefetch: (e, t) => _6(S6, gbe(t)),
+ prefetch: (e, t) => _6(S6, ybe(t)),
page: (e, t, n) => {
let { DataCleanupPage: r } = S6.get();
return /* @__PURE__ */ (0, O.jsx)(r, {
failure: t.failure,
- open: (e) => vAe(e, t, n),
+ open: (e) => xAe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/duplicates" }),
- prefetch: (e, t) => _6(C6, Dve(t)),
+ prefetch: (e, t) => _6(C6, Ave(t)),
page: (e, t) => {
let { DuplicatesPage: n } = C6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
@@ -74851,13 +74887,13 @@ var A6 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/quality-goals" }),
- prefetch: (e, t) => _6(w6, zve(t)),
+ prefetch: (e, t) => _6(w6, Hve(t)),
page: (e, t) => {
let { QualityGoalsPage: n } = w6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: lF,
- javDisplayName: cF,
+ javTitleHtml: cF,
+ javDisplayName: sF,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -74865,7 +74901,7 @@ var A6 = (e) => ({
},
"/sources": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/sources" }),
- prefetch: (e, t) => _6(T6, hwe(t)),
+ prefetch: (e, t) => _6(T6, vwe(t)),
page: (e, t) => {
let { ScrapingPage: n } = T6.get();
return /* @__PURE__ */ (0, O.jsx)(n, { toast: (e) => t.toast(e) });
@@ -74879,7 +74915,7 @@ var A6 = (e) => ({
"/settings/diagnostics": A6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, O.jsx)(p6, { path: "/tasks" }),
- prefetch: (e, t) => _6(D6, Fle(t)),
+ prefetch: (e, t) => _6(D6, Ile(t)),
page: () => {
let { ActivityPage: e } = D6.get();
return /* @__PURE__ */ (0, O.jsx)(e, {});
@@ -74899,10 +74935,10 @@ var A6 = (e) => ({
});
}
}
-}, M6 = (e) => Object.hasOwn(j6, e), yAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(mAe, {}) } }, bAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(aAe, {}) } }, N6 = {
+}, M6 = (e) => Object.hasOwn(j6, e), SAe = { "/resource-sync": { element: /* @__PURE__ */ (0, O.jsx)(_Ae, {}) } }, CAe = { "/immerse": { element: /* @__PURE__ */ (0, O.jsx)(cAe, {}) } }, N6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, O.jsx)(nAe, {}),
- prefetch: (e, t) => _6(k6, $Ce(t)),
+ element: /* @__PURE__ */ (0, O.jsx)(aAe, {}),
+ prefetch: (e, t) => _6(k6, nwe(t)),
page: (e, t) => {
let { PlaylistsPage: n } = k6.get();
return /* @__PURE__ */ (0, O.jsx)(n, {
@@ -74915,14 +74951,14 @@ var A6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, O.jsx)(eAe, {}),
+ element: /* @__PURE__ */ (0, O.jsx)(rAe, {}),
prefetch: (e, t) => Di(e, t),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(Txe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(Oxe, { ...e })
}
}, P6 = (e) => Object.hasOwn(N6, e), F6 = {
- element: /* @__PURE__ */ (0, O.jsx)(zke, {}),
- prefetch: (e, t) => Lbe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, O.jsx)(uCe, {
+ element: /* @__PURE__ */ (0, O.jsx)(Hke, {}),
+ prefetch: (e, t) => Bbe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, O.jsx)(pCe, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -74942,9 +74978,9 @@ var A6 = (e) => ({
"/agencies": F6,
"/tags": F6
}, L6 = {
- element: /* @__PURE__ */ (0, O.jsx)(Uke, {}),
- prefetch: (e) => Tbe(e),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(VSe, { ...e })
+ element: /* @__PURE__ */ (0, O.jsx)(Kke, {}),
+ prefetch: (e) => Obe(e),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(WSe, { ...e })
}, R6 = {
"/performers/*": L6,
"/studios/*": L6,
@@ -74955,59 +74991,59 @@ var A6 = (e) => ({
}, z6 = {
"/": {
element: /* @__PURE__ */ (0, O.jsx)(r6, {}),
- prefetch: (e, t) => wM(e, t),
+ prefetch: (e, t) => CM(e, t),
page: (e) => /* @__PURE__ */ (0, O.jsx)(bY, { ...e })
},
"/junk-files": {
element: /* @__PURE__ */ (0, O.jsx)(r6, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(TCe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(OCe, { ...e })
}
-}, B6 = (e) => Object.hasOwn(z6, e), xAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(The, { ...e }) : /* @__PURE__ */ (0, O.jsx)(V$, { ...e }), V6 = {
+}, B6 = (e) => Object.hasOwn(z6, e), wAe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, O.jsx)(Ehe, { ...e }) : /* @__PURE__ */ (0, O.jsx)(V$, { ...e }), V6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(QU, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)($U, { ...e })
},
"feed-new": {
- prefetch: (e) => xbe(e),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(qSe, { ...e })
+ prefetch: (e) => wbe(e),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(XSe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => mH(t),
- page: (e) => /* @__PURE__ */ (0, O.jsx)(xAe, { ...e })
+ prefetch: (e, t) => pH(t),
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(wAe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, O.jsx)(xwe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, O.jsx)(wwe, { ...e })
}
}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(uoe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(doe, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(Uoe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(Woe, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(xle, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(Sle, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(_ce, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(vce, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(Wwe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(qwe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(iTe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(sTe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, O.jsx)(yOe, {})
+ page: () => /* @__PURE__ */ (0, O.jsx)(SOe, {})
}
}, W6 = (e) => Object.hasOwn(U6, e), G6 = [
"/",
@@ -75029,33 +75065,33 @@ var K6 = (e) => M6(e) || P6(e) || Object.hasOwn(I6, e) || Object.hasOwn(R6, e) |
function q6(e) {
return M6(e) ? j6[e] : P6(e) ? N6[e] : B6(e) ? z6[e] : H6(e) ? V6[e] : W6(e) ? U6[e] : Object.hasOwn(I6, e) ? I6[e] : R6[e];
}
-function SAe(e, t, n) {
+function TAe(e, t, n) {
return K6(e) ? q6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function CAe(e, t, n, r) {
+function EAe(e, t, n, r) {
return q6(e).page(t, n, r);
}
//#endregion
//#region src/react/application-residents.ts
var J6 = null, Y6 = null, X6 = 0, Z6 = /* @__PURE__ */ new Set();
-function wAe(e) {
+function DAe(e) {
return J6 = e, Y6 && e(Y6), () => {
J6 === e && (J6 = null);
};
}
-function TAe(e) {
- return J6 && (Y6 = e, J6(e), ume(Promise.resolve(SAe)), _Ae()), Promise.resolve();
+function OAe(e) {
+ return J6 && (Y6 = e, J6(e), dme(Promise.resolve(TAe)), bAe()), Promise.resolve();
}
async function Q6(e, t, n = (e) => e) {
let r = X6;
- if (t.isConnected || Z6.add(t), !await RV(e, {}, {
+ if (t.isConnected || Z6.add(t), !await LV(e, {}, {
container: t,
resident: !0,
isCurrent: () => !!J6 && r === X6,
place: () => n(t)
}) || r !== X6 || !J6) throw new DOMException("应用已卸载", "AbortError");
}
-function EAe() {
+function kAe() {
X6 += 1, J6 = null, Y6 = null, $6 = null, e8 = null, r8 = null, i8 = null, o8 = null, s8 = null, l8 = null, u8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null;
for (let e of Z6) e.remove();
Z6.clear(), XQ();
@@ -75063,49 +75099,49 @@ function EAe() {
var $6 = null, e8 = null;
function t8(e) {
return $6 ??= (async () => {
- let t = vOe(e), n = document.createElement("div");
+ let t = xOe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await Q6("stage", n, (e) => (document.body.append(e), e)), e8 = t, t;
})(), $6;
}
var n8 = () => e8, r8 = null, i8 = null;
-function DAe(e) {
+function AAe(e) {
return r8 ??= (async () => {
- let t = gce(e), n = document.createElement("div");
+ let t = _ce(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await Q6("immerse", n, (e) => (document.body.append(e), e)), i8 = t, t;
})(), r8;
}
var a8 = () => i8, o8 = null, s8 = null;
-function OAe(e) {
+function jAe(e) {
return o8 ??= (async () => {
- let t = Uwe(e), n = document.createElement("div");
+ let t = Kwe(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await Q6("settings-panel", n, (e) => (document.body.append(e), e)), s8 = t, t;
})(), o8;
}
var c8 = () => s8, l8 = null, u8 = null;
-function kAe(e) {
+function MAe(e) {
return l8 ??= (async () => {
- let t = rTe(e);
+ let t = oTe(e);
return await Q6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), u8 = t, t;
})(), l8;
}
var d8 = () => u8, f8 = null, p8 = null;
-function AAe(e) {
+function NAe(e) {
return f8 ??= (async () => {
- let t = ble(e);
+ let t = xle(e);
return await Q6("manage-header", e.root, (e) => (e.replaceChildren(), e)), p8 = t, t;
})(), f8;
}
var m8 = () => p8, h8 = null, g8 = null;
-function jAe(e) {
+function PAe(e) {
return h8 ??= (async () => {
- let t = loe(e);
+ let t = uoe(e);
return await Q6("batch-dock", e.root), g8 = t, t;
})(), h8;
}
var _8 = () => g8, v8 = null;
-function MAe(e) {
+function FAe(e) {
return v8 ??= (async () => {
- Hoe(e), await Q6("glow-picker", e.root);
+ Uoe(e), await Q6("glow-picker", e.root);
})(), v8;
}
function y8(e, t, n, r) {
@@ -75195,7 +75231,7 @@ var b8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, Y = new b8();
-function NAe() {
+function IAe() {
return Y.dispose(), Y = new b8(), Y;
}
//#endregion
@@ -75210,7 +75246,7 @@ var x8 = {
rollSeed: void 0,
seededSample: void 0
};
-function PAe() {
+function LAe() {
ZQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
@@ -75258,7 +75294,7 @@ function PAe() {
}
//#endregion
//#region src/react/catalog-grid/catalog-state.ts
-var FAe = [
+var RAe = [
"loc",
"creator",
"studio",
@@ -75279,9 +75315,9 @@ var FAe = [
"folder_recursive"
];
function S8(e, t, n, r = n.defaultSort) {
- return Rk(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return Lk(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function IAe(e, t, n) {
+function zAe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = Zt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -75306,18 +75342,18 @@ function IAe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function LAe(e, t) {
+function BAe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function RAe(e) {
+function VAe(e) {
let t = Jt[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of FAe) {
+ for (let t of RAe) {
let r = e[t];
- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Fk(e.sort ?? "")) && n.set(t, r);
+ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== Pk(e.sort ?? "")) && n.set(t, r);
}
return !Jt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function zAe(e, t, n) {
+function HAe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -75332,7 +75368,7 @@ function zAe(e, t, n) {
region: "",
state: "",
sort: t.defaultSort,
- dir: Lk(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Ik(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -75354,7 +75390,7 @@ function C8(e) {
}
//#endregion
//#region src/react/catalog-grid/catalog-controller.ts
-var BAe = class {
+var UAe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -75399,16 +75435,16 @@ var BAe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, w8 = 3e4, T8 = 0, VAe = (e, t = T8) => [
+}, w8 = 3e4, T8 = 0, WAe = (e, t = T8) => [
"facets",
e,
t
-], HAe = (e, t, n = T8) => [
+], GAe = (e, t, n = T8) => [
"tops",
e,
t,
n
-], UAe = (e, t = T8) => [
+], KAe = (e, t = T8) => [
"tops",
e,
t
@@ -75417,20 +75453,20 @@ async function E8(e) {
let t = String(e), n = await z(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await z(`/api/tops?${r}`));
}
-function WAe(e, t) {
+function qAe(e, t) {
return Promise.all([U.fetchQuery({
- queryKey: VAe(e),
+ queryKey: WAe(e),
queryFn: () => z(`/api/facets${e ? `?${e}` : ""}`),
staleTime: w8
}), U.fetchQuery({
- queryKey: HAe(t, e),
+ queryKey: GAe(t, e),
queryFn: () => E8(t),
staleTime: w8
})]);
}
-function GAe(e) {
+function JAe(e) {
return U.fetchQuery({
- queryKey: UAe(e),
+ queryKey: KAe(e),
queryFn: () => E8(e),
staleTime: w8
});
@@ -75552,11 +75588,11 @@ var O8 = [
"follow",
"activity",
"configuration"
-], KAe = (e) => k8.filter(([t]) => A8.includes(t) && (t !== "configuration" || e)), j8 = k8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], YAe = (e) => k8.filter(([t]) => A8.includes(t) && (t !== "configuration" || e)), j8 = k8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), qAe = [...O8, ...j8], JAe = {
+]]), XAe = [...O8, ...j8], ZAe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -75593,7 +75629,7 @@ function F8(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" ${ca({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${B(n)}</span>${r}`;
}
-function YAe(e) {
+function QAe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Xi(t));
};
@@ -75613,7 +75649,7 @@ function YAe(e) {
}
//#endregion
//#region src/application/source-action.ts
-function XAe(e) {
+function $Ae(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -75635,12 +75671,12 @@ function L8(e, t) {
for (let e of HX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Rk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Lk(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function R8(e) {
let t = new URLSearchParams();
- for (let n of HX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Fk(e.sort || "")) && t.set(n, e[n]);
+ for (let n of HX) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== Pk(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
function z8(e) {
@@ -75654,11 +75690,11 @@ function B8(e, t) {
let n = new URLSearchParams(R8(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 ZAe(e, t, n, r) {
+function eje(e, t, n, r) {
let i = B8(n, r);
return en(e, t) + (i ? `?${i}` : "");
}
-function QAe() {
+function tje() {
let e = "";
return {
fresh(t, n) {
@@ -75680,10 +75716,10 @@ function QAe() {
}
//#endregion
//#region src/react/entity-page/photo-surface.ts
-function $Ae(e, t) {
+function nje(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function eje(e) {
+function rje(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);
@@ -75706,12 +75742,12 @@ function eje(e) {
}
//#endregion
//#region src/react/entity-page/entity-controller.ts
-function tje(e, t, n) {
+function ije(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(ZAe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(eje(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -75738,7 +75774,7 @@ function tje(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Ik(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Fk(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -75790,7 +75826,7 @@ function tje(e, t, n) {
}
//#endregion
//#region src/react/entity-page/entity-loading.ts
-function nje(e) {
+function aje(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);
@@ -75799,7 +75835,7 @@ function nje(e) {
}
//#endregion
//#region src/react/entity-page/entity-portrait.ts
-function rje(e, t) {
+function oje(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? Ia({
kind: e,
id: t.id,
@@ -75822,11 +75858,11 @@ function rje(e, t) {
}
//#endregion
//#region src/react/entity-page/entity-application.ts
-function ije(e) {
- let t = QAe(), n = {
+function sje(e) {
+ let t = tje(), n = {
...e.helpers,
- portraitImg: rje
- }, r = tje(e.controller, n, e.actions);
+ portraitImg: oje
+ }, r = ije(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -75835,13 +75871,13 @@ function ije(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: nje(e.loading),
- photos: eje(e.photos)
+ loading: aje(e.loading),
+ photos: rje(e.photos)
};
}
//#endregion
//#region src/card-art/feed-identity.ts
-function aje(e) {
+function cje(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 ? "" : La(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${B(en("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;
@@ -75869,23 +75905,23 @@ var V8 = {
function H8(e) {
return e.has_cover ? Ha(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${is("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Ha(e, "big").replace(/ src="[^"]*"/, ` src="${B(Ma(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function oje(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 = H8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? lF({
+function lje(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 = H8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? cF({
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>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${mA}">${n}
+ ${a}<div class="pic" style="--card-ratio:${pA}">${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)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${B(r)}">${R("check")}</button></div></div>
- <div class="meta">${aje(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${cje(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function sje() {
+function uje() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -75904,7 +75940,7 @@ function G8(e) {
localStorage.setItem(W8, e ? "1" : "0");
} catch {}
}
-function cje() {
+function dje() {
try {
let e = localStorage.getItem(W8);
return e === "1" || e !== "0" && null;
@@ -75913,9 +75949,9 @@ function cje() {
}
}
function K8(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 = V8.feedNewSkeletonHtml())));
+ !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 = V8.feedNewSkeletonHtml())));
}
-function lje(e, t) {
+function fje(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : ts(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -75925,17 +75961,17 @@ function lje(e, t) {
}
function q8(e) {
let t = e && !e.error && e.items || [];
- return lje(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(oje).join("")}</div>`;
+ return fje(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(lje).join("")}</div>`;
}
function J8(e) {
- e && ($7(e), Z.appSettings.feedAutoScroll && Qs(e));
+ e && (e9(e), Z.appSettings.feedAutoScroll && Qs(e));
}
function Y8(e) {
return Zt(e) && e !== "/junk-files";
}
-function uje() {
+function pje() {
let e = L("#feedNew");
- FV(e) ? zV(e, { revision: ++V8.feedRevision }) : (K8(e), RV("feed-new", {
+ PV(e) ? RV(e, { revision: ++V8.feedRevision }) : (K8(e), LV("feed-new", {
host: e,
revision: V8.feedRevision,
helpers: V8.feedNewHelpers,
@@ -75947,32 +75983,32 @@ function uje() {
}
function X8() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach($s), BV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
+ e.querySelectorAll(".feednewrow").forEach($s), zV(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
function Z8() {
- V8.feedRevision += 1, zV(L("#feedNew"), { revision: V8.feedRevision }), a5({ feedRevision: V8.feedRevision });
+ V8.feedRevision += 1, RV(L("#feedNew"), { revision: V8.feedRevision }), a5({ feedRevision: V8.feedRevision });
}
-function dje() {
+function mje() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Qs(e) : $s(e));
}
var Q8 = 0;
-function fje([e]) {
+function hje([e]) {
let t = e.contentRect.width >= V8.HERO_WIDE_PX;
cancelAnimationFrame(Q8), Q8 = requestAnimationFrame(() => {
Q8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function pje() {
- V8.FEED_SKELETON_CARDS = 8, V8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${mA}"></div>
+function gje() {
+ V8.FEED_SKELETON_CARDS = 8, V8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${pA}"></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(V8.FEED_SKELETON_CARDS)}</div>`, V8.entityShapes = null, V8.entityShapesComplete = !1, V8.hasEntityShape = (e, t) => V8.entityShapesComplete || !!V8.entityShapes?.has(`${e}/${un(t)}`), V8.hasEntityPart = (e, t, n) => !!t && !!V8.entityShapes?.get(`${e}/${un(t)}`)?.includes(n), V8.feedNewSkeletonSection = () => `<section class="feednew">${V8.feedNewSkeletonHtml()}</section>`, V8.COSTAR_SKELETON_PEOPLE = 12, V8.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(V8.COSTAR_SKELETON_PEOPLE)}</div></div>`, V8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, V8.feedRevision = 0, V8.feedNewHelpers = {
feedRowHtml: q8,
wireFeedRow: (e) => J8(e)
- }, V8.feedNewActions = { settled: (e) => G8(e) }, V8.HERO_WIDE_PX = 900, Y.resize(fje).observe(L("#index"));
+ }, V8.feedNewActions = { settled: (e) => G8(e) }, V8.HERO_WIDE_PX = 900, Y.resize(hje).observe(L("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
-function mje(e, t, n, r = "") {
+function _je(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">
@@ -75987,9 +76023,9 @@ function mje(e, t, n, r = "") {
}
//#endregion
//#region src/filter-controls-skeleton.ts
-var $8 = (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>` : Vo(e, "size-4 shrink-0"), e5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", t5 = (e, t, n) => `<span data-entity-layout="" class="${xU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${SU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${e5}>${$8(r)}</span>`).join("")}</span>`;
+var $8 = (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>` : Vo(e, "size-4 shrink-0"), e5 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", t5 = (e, t, n) => `<span data-entity-layout="" class="${bU}" role="radiogroup" aria-label="${B(e)}">${n.map(([e, n, r]) => `<span class="${xU}" role="radio" aria-label="${B(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${e5}>${$8(r)}</span>`).join("")}</span>`;
function n5(e, t) {
- let n = fM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? t5(t.label, t.value, t.options) : "";
+ let n = dM(), r = new URLSearchParams(location.search), i = t && n === "cards" ? t5(t.label, t.value, t.options) : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${e5}>${$8("shuffle")}</button>${i}${t5("馆藏显示方式", n, [[
"cards",
"卡片",
@@ -76028,11 +76064,11 @@ var r5 = {
application: void 0
};
function i5() {
- let e = PV(L("#index"));
+ let e = NV(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
function a5(e) {
- r5.entityPageCurrent() && zV(L("#index"), e);
+ r5.entityPageCurrent() && RV(L("#index"), e);
}
function o5() {
if (Cl.type === "item") return Cl;
@@ -76049,14 +76085,14 @@ function o5() {
return Cl;
}
function s5(e, t, n = e7()) {
- return cMe(n).map(([n, r]) => {
- let i = e === n, a = Ik(n, e, t);
+ return t7(n).map(([n, r]) => {
+ let i = e === n, a = Fk(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Pk(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Pk(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Nk(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Nk(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -76064,7 +76100,7 @@ function c5(e, t, n, r = r5.EMPTY_ENTITY_MEDIA, i = {}) {
return r5.application.route(e, t, n, r, i);
}
function l5() {
- return $Ae({
+ return nje({
entityWall: r5.entityPageWall,
entityCurrent: r5.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -76077,12 +76113,12 @@ function u5() {
r5.photos.sync();
}
function d5() {
- l5() ? Ioe(bA()) : NA();
+ l5() ? Loe(yA()) : MA();
}
-function hje(e) {
+function vje(e) {
r5.photos.setSize(e);
}
-var f5 = XAe({
+var f5 = $Ae({
request: (e) => z("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -76094,7 +76130,7 @@ async function p5(e) {
let t = { textContent: "" };
return await f5(e, t), t.textContent;
}
-async function gje(e) {
+async function yje(e) {
let t = { textContent: "" }, n = [];
return await m5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -76133,17 +76169,17 @@ async function m5(e, t, n) {
t.textContent = r5.sourceHint(e.message), x8.actionFailure("核对目录", e);
}
}
-function _je(e) {
+function bje(e) {
return `<div class="srctools">${r5.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function vje(e, t) {
+function xje(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && Y.handler(r, "onclick", () => f5(Number(r.dataset.reveal), n, { button: r })), i && Y.handler(i, "onclick", () => m5(Number(i.dataset.sync), n, t));
}
-async function yje(e, t) {
+async function Sje(e, t) {
let n = yc({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -76185,12 +76221,12 @@ function h5(e, t) {
let n = ["performer", "studio"].includes(e) && V8.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>${Ho()}${e === "agency" ? "" : n5(s5(W.sort, W.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: gA(),
- options: dA
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${e5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${e5}>${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="${B(e.k)}" aria-pressed="${W.state === e.k}" ${e5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = mje(e, r, e === "agency" ? vs({
+ value: hA(),
+ options: uA
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${e5}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${e5}>${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="${B(e.k)}" aria-pressed="${W.state === e.k}" ${e5}>${B(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = _je(e, r, e === "agency" ? vs({
kind: "performers",
layout: j5.peopleIndexLayout()
- }) : rY("正在读取作品", wA(CA({
+ }) : rY("正在读取作品", CA(SA({
active: n,
home: !1,
portrait: !1
@@ -76210,9 +76246,9 @@ function _5(e) {
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
function v5(e, t) {
- y9(r5.application.fresh(e, t));
+ b9(r5.application.fresh(e, t));
}
-function bje() {
+function Cje() {
r5.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -76234,16 +76270,16 @@ function bje() {
return e.type === "home" ? W : e.filters;
}, L("#q").value = W.q, X.rememberSearchValue();
}
-function xje() {
+function wje() {
r5.entityPageView = "", r5.entityPageWall = !1, r5.entityPageRevision = 0, r5.entityPageCurrent = () => !!i5(), r5.entityPageLive = (e, t) => {
let n = i5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
}, r5.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, r5.parseMediaView = z8, r5.entityViewSearch = B8, r5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, r5.entityBodySkeleton = () => G7(), r5.entityPageHelpers = {
+ }, r5.parseMediaView = z8, r5.entityViewSearch = B8, r5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, r5.entityBodySkeleton = () => K7(), r5.entityPageHelpers = {
wireDrag: (e) => {
- e && $7(e);
+ e && e9(e);
},
wireScroller: (e) => {
e && Hs(e);
@@ -76252,10 +76288,10 @@ function xje() {
feedRowHtml: q8,
receipt: (e, t) => x8.actionReceipt(e, t),
failure: (e, t) => x8.actionFailure(e, t),
- aliasForm: (e, t) => yje(e, t),
- sourceToolsHtml: (e) => _je(e),
- wireSourceTools: (e, t) => vje(e, t),
- comboItems: (e) => P7(e),
+ aliasForm: (e, t) => Sje(e, t),
+ sourceToolsHtml: (e) => bje(e),
+ wireSourceTools: (e, t) => xje(e, t),
+ comboItems: (e) => F7(e),
sortKeys: (e, t, n) => s5(e, t, n)
}, r5.entityFollowActions = {
...$.followFeedActions,
@@ -76279,8 +76315,8 @@ function xje() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function Sje() {
- r5.application = ije({
+function Tje() {
+ r5.application = sje({
controller: {
context: () => {
let e = o5();
@@ -76303,20 +76339,20 @@ function Sje() {
preferences: () => ({
revision: r5.entityPageRevision,
feedRevision: V8.feedRevision,
- photoSize: bA(),
- photoLayout: xA(),
- photoLayouts: pA,
+ photoSize: yA(),
+ photoLayout: bA(),
+ photoLayouts: fA,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: gA(),
- javLayouts: dA,
+ javLayout: hA(),
+ javLayouts: uA,
states: X.VIEW_PILLS,
peopleLayout: j5.peopleIndexLayout(),
- layout: W7(),
+ layout: G7(),
selectMode: Dl,
selected: new Set(Tl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: $7,
+ wireDrag: e9,
skeletonHtml: r5.entityBodySkeleton,
canLoadMore: r5.entityBodyCanLoadMore,
follow: {
@@ -76324,14 +76360,14 @@ function Sje() {
actions: r5.entityFollowActions
}
}),
- changeFilter: S7,
+ changeFilter: C7,
rollSeed: () => x8.rollSeed(),
writeSeed: (e) => {
W.seed = e, Ql();
},
- setJavLayout: r7,
- javLayout: gA,
- setPhotoLayout: EA,
+ setJavLayout: i7,
+ javLayout: hA,
+ setPhotoLayout: TA,
syncPhotoWalls: u5,
openEntity: v5,
photoViewActive: l5,
@@ -76339,8 +76375,8 @@ function Sje() {
r5.entityPageView = e, r5.entityPageWall = t;
},
syncDensity: d5,
- scheduleSticky: u7,
- releasePage: () => BV(L("#index")),
+ scheduleSticky: d7,
+ releasePage: () => zV(L("#index")),
showMissing: _5,
dropBars: D8
},
@@ -76356,19 +76392,19 @@ function Sje() {
},
photos: {
preferences: () => ({
- size: bA(),
- layout: xA(),
+ size: yA(),
+ layout: bA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: a5,
- pushFollow: w9,
+ pushFollow: T9,
syncDensity: d5,
- storeSize: Poe
+ storeSize: Foe
},
helpers: r5.entityPageHelpers,
actions: {
- toggleTag: N7,
+ toggleTag: P7,
openFollowAuthor: P5,
javContext: (e) => Zl({ entityJavLayout: !!e })
},
@@ -76381,7 +76417,7 @@ function Sje() {
//#endregion
//#region src/application/playlists.js
var y5 = { playlistWrite: void 0 };
-function Cje(e, t) {
+function Eje(e, t) {
e === "tag" ? (Zl({ state: {
...W,
tag: t,
@@ -76391,13 +76427,13 @@ function Cje(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(h7()), U5(), j7()) : v5(e, t);
+ } }), X.clearSearchField(), Q.route(g7()), U5(), M7()) : v5(e, t);
}
function b5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${B(e)}"></label>`;
}
-async function wje({ title: e, count: t, save: n }) {
+async function Dje({ title: e, count: t, save: n }) {
let r = yc({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -76411,14 +76447,14 @@ async function wje({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await a9(a.id, a.current_asset_id, !0), x8.actionReceipt("已保存为播放列表", { undo: async () => {
+ i && (await o9(a.id, a.current_asset_id, !0), x8.actionReceipt("已保存为播放列表", { undo: async () => {
await y5.playlistWrite({
action: "delete",
id: a.id
- }), y9("/playlists");
+ }), b9("/playlists");
} }));
}
-async function Tje(e) {
+async function Oje(e) {
let t = ((await z("/api/playlists")).items || []).map((e) => `<label class="pickrow">${ss(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${B(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = yc({
title: "加入播放列表",
@@ -76463,17 +76499,17 @@ async function Tje(e) {
} });
}
function x5() {
- cl(), r9(!1), H5();
- let e = PV(L("#stats"));
+ cl(), i9(!1), H5();
+ let e = NV(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? Zl({ pageOpens: Hl + 1 }) : (V5({ manage: !1 }), Zl({ playlistsRevision: Jl + 1 }));
}
-function Eje(e) {
+function kje(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
function S5(e) {
- Zl({ configurationRequestedSection: e }), Q.navigatePath(dV(e));
+ Zl({ configurationRequestedSection: e }), Q.navigatePath(uV(e));
}
-function Dje() {
+function Aje() {
y5.playlistWrite = (e) => z("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -76499,7 +76535,7 @@ function T5(e, t, n, r, i, a = !1) {
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function Oje(e, t, n, r) {
+function jje(e, t, n, r) {
let i = C5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
@@ -76518,16 +76554,16 @@ var E5 = {
coverRecheck: void 0
};
function D5() {
- H7({
+ U7({
selected: new Set(Tl),
selectMode: Dl
}), a5({
selected: new Set(Tl),
selectMode: Dl
- }), w9({
+ }), T9({
selected: new Set(El),
selectMode: Dl
- }), E5.batchDockProps = Rje(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
+ }), E5.batchDockProps = Vje(), _8() && (_8().render(E5.batchDockProps), Z.syncGlassOptics());
}
function O5(e, t = !1) {
Zl(w5({
@@ -76535,25 +76571,25 @@ function O5(e, t = !1) {
followSelected: El
}, A5(), C5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Dl), Dl && cl(), L("#selectMode").setAttribute("aria-pressed", String(Dl)), D5();
}
-function kje() {
+function Mje() {
return [...F5.gridCards()].map((e) => +e.dataset.id);
}
function k5(e, t = !1) {
Zl(T5({
selected: Tl,
followSelected: El
- }, A5(), C5(location.pathname), kje(), e, t)), O5(!0);
+ }, A5(), C5(location.pathname), Mje(), e, t)), O5(!0);
}
-function Aje() {
+function Nje() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function jje(e, t = !1) {
+function Pje(e, t = !1) {
Zl(T5({
selected: Tl,
followSelected: El
- }, A5(), "follow", Aje(), e, t)), O5(!0);
+ }, A5(), "follow", Nje(), e, t)), O5(!0);
}
-async function Mje(e, t) {
+async function Fje(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -76585,7 +76621,7 @@ async function Mje(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"));
- O5(!1, !0), await a7();
+ O5(!1, !0), await o7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
x8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
@@ -76612,7 +76648,7 @@ async function Mje(e, t) {
operation: r
})
});
- await a7();
+ await o7();
} : null });
} catch (e) {
throw cc(t, !1), e;
@@ -76622,7 +76658,7 @@ async function Mje(e, t) {
}
});
}
-async function Nje() {
+async function Ije() {
let e = [...Tl];
if (!e.length) return;
let t = yc({
@@ -76652,9 +76688,9 @@ async function Nje() {
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 && (O5(!1, !0), await a7(), x8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (O5(!1, !0), await o7(), x8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function Pje(e, t) {
+async function Lje(e, t) {
let n = [...El];
if (!n.length) return;
let r = {
@@ -76689,7 +76725,7 @@ async function Pje(e, t) {
}
});
}
-async function Fje(e, t) {
+async function Rje(e, t) {
let n = [...Tl];
if (!n.length) return;
let r = {
@@ -76716,7 +76752,7 @@ async function Fje(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), O5(!1, !0), await I7();
+ }), O5(!1, !0), await L7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
x8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await z("/api/batch", {
@@ -76725,7 +76761,7 @@ async function Fje(e, t) {
ids: n,
operation: t
})
- }), await I7();
+ }), await L7();
} : null });
} catch (e) {
throw cc(t, !1), e;
@@ -76735,8 +76771,8 @@ async function Fje(e, t) {
}
});
}
-function Ije() {
- jAe({
+function zje() {
+ PAe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
E5.BATCH_RUNNERS[e]?.(t, n);
@@ -76745,7 +76781,7 @@ function Ije() {
e.render(E5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function Lje() {
+function Bje() {
E5.batchDockProps = {
count: 0,
context: "catalog",
@@ -76758,16 +76794,16 @@ function Lje() {
["other", "其他"],
["none", "撤回判定"]
], E5.BATCH_RUNNERS = {
- batch: Mje,
- region: Nje,
- follow: Pje,
- junk: Fje,
+ batch: Fje,
+ region: Ije,
+ follow: Lje,
+ junk: Rje,
clear: () => O5(!1, !0)
}, Y.handler(L("#density"), "onclick", () => {
- l5() ? hje(bA() === "big" ? "small" : "big") : Foe();
- }), NA(), ol({
+ l5() ? vje(yA() === "big" ? "small" : "big") : Ioe();
+ }), MA(), ol({
selecting: () => Dl,
- censored: () => Z7(),
+ censored: () => Q7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
}), Y.listen(window, "pagehide", () => cl()), Y.listen(document, "visibilitychange", () => {
document.hidden && cl();
@@ -76785,8 +76821,8 @@ function A5() {
followLastSelectedId: kl
};
}
-function Rje() {
- return Oje({
+function Vje() {
+ return jje({
selected: Tl,
followSelected: El
}, location.pathname, location.search, W.state);
@@ -76797,45 +76833,45 @@ var j5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function zje() {
+function Hje() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function Bje() {
+function Uje() {
return UZ(location.search);
}
-function Vje(e) {
+function Wje(e) {
return WZ(e);
}
-function Hje(e) {
- Q.route(Vje(e));
+function Gje(e) {
+ Q.route(Wje(e));
}
-function Uje(e = "") {
+function Kje(e = "") {
return GZ(location.search, e);
}
-function Wje(e) {
+function qje(e) {
return F8(e);
}
function M5(e) {
return N8(e);
}
function N5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, R7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+ L("#stats").hidden = !0, L("#index").hidden = !1, z7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function Gje(e, t) {
+function Jje(e, t) {
Zl({ state: {
...W,
state: "",
tag: e.join(","),
tag_match: t
- } }), O5(!1, !1), Q.route(h7()), U5(), h9(), j7();
+ } }), O5(!1, !1), Q.route(g7()), U5(), g9(), M7();
}
function P5(e) {
j5.controller.openFollowAuthor(e);
}
-function Kje(e) {
+function Yje(e) {
j5.controller.openFollowTag(e);
}
-function qje() {
+function Xje() {
$.FOLLOW_MANAGE_TABS = [
"list",
"add",
@@ -76844,15 +76880,15 @@ function qje() {
e.target.closest?.("[data-empty-settings]") && S5("媒体库与入库");
}), j5.peopleIndexLayout = () => V3(Z.appSettings.peopleLayout), j5.personAvatar = P8;
}
-function Jje() {
- j5.controller = YAe({
+function Zje() {
+ j5.controller = QAe({
route: Q.route,
- followView: x9,
- adoptFollowView: S9,
+ followView: S9,
+ adoptFollowView: C9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: y9
+ openPage: b9
});
}
//#endregion
@@ -76872,15 +76908,15 @@ function I5(e = "正在读取作品") {
return;
}
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 = xCe(c$(location.search)), Ts(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && w7({
+ 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 = wCe(c$(location.search)), Ts(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && T7({
count: null,
- ...D7()
- })), L("#loadSentinel").hidden = !0, V7()) return;
- let r = L("#grid"), i = G7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== d2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== K7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), Ts(L("#grid")));
+ ...O7()
+ })), L("#loadSentinel").hidden = !0, H7()) return;
+ let r = L("#grid"), i = K7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== d2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== q7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : F5.setGridCards(i), Ts(L("#grid")));
}
function L5() {
- L("#catalogFilter").style.display = "none", C7();
+ L("#catalogFilter").style.display = "none", w7();
}
function R5() {
let e = new Promise((e) => {
@@ -76892,7 +76928,7 @@ function R5() {
});
return Promise.race([F5.entityShapesReady ||= U8(), e]);
}
-function Yje() {
+function Qje() {
let e = decodeURIComponent(location.pathname);
if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), L5();
else if (/^\/assets\/\d+$/.test(e)) L5();
@@ -76902,22 +76938,22 @@ function Yje() {
else if (Q.managedPagePath(e)) {
L5();
let t = L("#stats");
- t.hidden = !1, R7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), Ts(t);
+ t.hidden = !1, z7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : F5.managementPlaceholder(e), Ts(t);
} else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) L5(), N5(), W3(L("#index"), H3(e.slice(1), location.search), j5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- L5(), L("#index").hidden = !1, R7();
+ L5(), L("#index").hidden = !1, z7();
let t = $t[e.split("/")[1]], n = e.split("/").slice(2).join("/");
(V8.hasEntityShape(t, n) ? Promise.resolve() : R5()).then(() => {
L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (h5(t, n), Ts(L("#index")));
});
- } else Q.routeMeta(e) ? I5() : (R7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? I5() : (z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function Xje() {
+function $je() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => l2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: bA()
+ gridSize: yA()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -76928,15 +76964,15 @@ function Xje() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = is(rs), F5.setGridCards = (e) => gs(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) => u2(e, {
- followLayout: zje(),
+ followLayout: Hje(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(Bje())
+ }))(Uje())
}), 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 = EV(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, p9();
+ 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
@@ -76948,7 +76984,7 @@ var z5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Zje(e, t, n) {
+function eMe(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-${z5(r)}"/></svg>`;
@@ -76957,7 +76993,7 @@ function Zje(e, t, n) {
}
//#endregion
//#region src/application/filter-scroll.js
-function Qje(e, t, n, r = !1) {
+function tMe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -76999,19 +77035,19 @@ var B5 = {
mobileFilterPath: void 0
};
function V5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, R7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? X5() : (Z5(""), h9()), t && f2(L("#stats"), t);
+ L("#stats").hidden = !1, L("#index").hidden = !0, z7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? X5() : (Z5(""), g9()), t && f2(L("#stats"), t);
}
function H5() {
X.hideCatalogCombo(), L5(), document.body.classList.remove("entity-open", "index-open");
}
function U5() {
- document.body.classList.remove("entity-open", "index-open"), BV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Y8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", C7(), X5(), Q5();
+ document.body.classList.remove("entity-open", "index-open"), zV(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Y8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", w7(), X5(), Q5();
}
-function $je() {
+function nMe() {
Q.route("/"), U5();
}
function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- m9({
+ h9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@ -77035,10 +77071,10 @@ function W5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function G5(e) {
- aNe({
- ...x9(),
+ sNe({
+ ...S9(),
...e
- }), m9({ filters: $.followSidebarFilters() });
+ }), h9({ filters: $.followSidebarFilters() });
}
function K5() {
return matchMedia("(max-width:760px)").matches;
@@ -77047,53 +77083,53 @@ 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 eMe() {
+function rMe() {
K5() && q5(!1);
}
-function tMe() {
+function iMe() {
Bl === null && (Zl({ runtimeConfigurable: !1 }), z("/healthz").then((e) => {
Zl({ runtimeConfigurable: !!e.configurable }), Bl && Y5() && X5();
}).catch(() => {}));
}
function J5(e = "", t = !1) {
- if (!t && !lV(location.pathname)) {
- let t = YV.navigation;
- YV.push(dV(e), { settingsBackground: {
+ 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), OAe(B5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= lV(location.pathname), jAe(B5.settingsHost()).then((t) => (t.open(e), t));
}
-function nMe() {
- lV(location.pathname) && (fV(YV.navigation.location.state) ? YV.go(-1) : Q.navigatePath("/", !0));
+function aMe() {
+ cV(location.pathname) && (dV(JV.navigation.location.state) ? JV.go(-1) : Q.navigatePath("/", !0));
}
-function rMe() {
+function oMe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
navCatalog: B5.NAV_CATALOG,
- navOn: s7,
- navTo: c7,
- toggleChip: (e, t, n) => S7((r) => {
+ navOn: c7,
+ navTo: l7,
+ toggleChip: (e, t, n) => C7((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) => S7((n) => {
+ setDuration: (e, t) => C7((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]), q5(!1), y9(b9());
+ $.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]), q5(!1), y9(b9());
+ $.followTags = /* @__PURE__ */ new Set([e]), q5(!1), b9(x9());
},
selectFollowProvider: (e) => G5({ provider: $.followProviders.has(e) ? "" : e }),
setFollowDuration: (e, t) => G5({
@@ -77105,31 +77141,31 @@ function rMe() {
}
};
}
-function iMe() {
+function sMe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = Zje(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, s7), e.querySelector("[data-sidebar-head]").append(...t), Y.listen(e, "click", (e) => {
+ e.innerHTML = eMe(Z.appSettings.sidebarOrder, B5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), Y.listen(e, "click", (e) => {
if (d8()) return;
let t = e.target.closest?.("[data-nav]");
- t && c7(t.dataset.nav);
- }), kAe(rMe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
+ t && l7(t.dataset.nav);
+ }), MAe(oMe()).then((e) => e.render(B5.sidebarProps)).catch(() => {});
}
-async function aMe() {
+async function cMe() {
let e = Y, t = null;
try {
t = await z("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && aA(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && iA(t, (e) => Z.settingsEffects[e]?.());
}
function Y5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");
}
function X5() {
let e = Y5();
- tMe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), h9(), e !== "trash" && (E5.trashCount = null), Z5(e);
+ iMe(), e && L5(), L("#count").classList.toggle("no-tagbar", !!e), g9(), e !== "trash" && (E5.trashCount = null), Z5(e);
}
-function oMe(e) {
+function lMe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -77140,16 +77176,16 @@ function oMe(e) {
}
function Z5(e = Y5()) {
Q5();
- let t = oMe(e), n = m8();
+ let t = lMe(e), n = m8();
if (n) n.render(t);
else {
- let e = xce(t);
+ let e = Sce(t);
e !== B5.manageHeaderSkeleton && (B5.manageHeaderSkeleton = e, B5.manageHeaderRoot().innerHTML = e);
}
- let r = aP(t)?.title || "";
+ let r = iP(t)?.title || "";
r !== B5.lastManagePageLabel && (B5.lastManagePageLabel = r, r && hs(B5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function sMe() {
+function uMe() {
let e = B5.manageHeaderRoot();
Y.listen(e, "click", (e) => {
if (m8()) return;
@@ -77158,12 +77194,12 @@ function sMe() {
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]") && M7();
- }), AAe({
+ } else e.target.closest?.("[data-empty-trash]") && N7();
+ }), NAe({
root: e,
openManage: $5,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: M7
+ emptyTrash: N7
}).then(() => Z5()).catch(() => {});
}
function Q5() {
@@ -77174,53 +77210,53 @@ function Q5() {
}
function $5(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Ql(), Q.route(l$()), U5(), h9(), j7());
+ t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", Ql(), Q.route(l$()), U5(), g9(), M7());
}
function e7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || Wl : !1;
}
-function cMe(e = e7()) {
- let t = kk.filter(([e]) => e !== "seed");
- return e ? [Ak, ...t] : t;
+function t7(e = e7()) {
+ let t = Ok.filter(([e]) => e !== "seed");
+ return e ? [kk, ...t] : t;
}
-function t7() {
+function n7() {
return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";
}
-function n7() {
- return _A(t7());
+function r7() {
+ return gA(n7());
}
-function lMe(e) {
- Moe(e), i7(), L("#grid").hidden || q7();
+function dMe(e) {
+ Noe(e), a7(), L("#grid").hidden || J7();
}
-function r7(e) {
- TA(e), i7(), q7();
+function i7(e) {
+ wA(e), a7(), J7();
}
-function i7() {
+function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === n7();
- }), X.catalogFilterProps && w7({ layout: E7() });
+ e.checked = e.value === r7();
+ }), X.catalogFilterProps && T7({ layout: D7() });
}
-function uMe(e) {
- Noe(e), i7(), q7();
-}
-async function a7() {
- D8(), X.mixRelatedCache.clear(), await Promise.all([o7(), j7()]);
+function fMe(e) {
+ Poe(e), a7(), J7();
}
async function o7() {
+ D8(), X.mixRelatedCache.clear(), await Promise.all([s7(), M7()]);
+}
+async function s7() {
if (r5.entityPageCurrent() && !L("#index").hidden) {
a5({ revision: ++r5.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (EV(e)?.reload === "reopen" || e === "/follow") {
+ if (TV(e)?.reload === "reopen" || e === "/follow") {
Zl({ pageOpens: Hl + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await I7();
+ t?.route.reload ? await t.route.reload() : await L7();
}
-function s7(e) {
+function c7(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") {
@@ -77229,8 +77265,8 @@ function s7(e) {
}
return e === "jav" ? t === "/jav" || e7() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !Y5() && !W.state && !e7() && W.orient !== "竖屏" : Jt[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";
}
-function c7(e) {
- if (eMe(), B5.DIRECT_MANAGE_NAV[e]) {
+function l7(e) {
+ if (rMe(), B5.DIRECT_MANAGE_NAV[e]) {
$5(B5.DIRECT_MANAGE_NAV[e]);
return;
}
@@ -77243,23 +77279,23 @@ function c7(e) {
return;
}
if (e === "") {
- g7();
+ _7();
return;
}
let t = Jt[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), Ql(), Q.route(h7()), U5(), h9(), j7());
+ t ? Q.openRoutePath(t) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), Ql(), Q.route(g7()), U5(), g9(), M7());
}
-function l7() {
+function u7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
Dl && Al !== E5.currentSelectSurface() && O5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call($t, t[0]), r = Zt(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 && Dl && O5(!1, !0);
}
-function dMe() {
+function pMe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(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\"]");
- B5.mobileFilterScroll = Qje(B5.mobileFilterScroll, n, innerWidth <= 760, r);
+ B5.mobileFilterScroll = tMe(B5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
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;
@@ -77273,64 +77309,64 @@ function dMe() {
});
}
}
-function fMe() {
- dMe(), [".board-filter-frame", "#count"].forEach((e) => {
+function mMe() {
+ pMe(), [".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 u7() {
+function d7() {
B5.stickyFrame ||= Y.frame(() => {
- B5.stickyFrame = 0, fMe();
+ B5.stickyFrame = 0, mMe();
});
}
-function pMe() {
+function hMe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), Y.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = O8, B5.MANAGE_SECTIONS = k8, B5.MANAGE_MENU_SECTIONS = A8, B5.manageMenuSections = () => KAe(Bl === !0), B5.OPTIONAL_SIDEBAR_ITEMS = j8, B5.NAV_CATALOG = qAe, B5.DIRECT_MANAGE_NAV = JAe, B5.settingsHost = () => ({
- selectSection: (e) => XV(dV(e), {
+ }), Y.handler(L("#filterBtn"), "onclick", () => q5(!L("#drawer").classList.contains("open"))), B5.SIDEBAR_ITEMS = O8, B5.MANAGE_SECTIONS = k8, B5.MANAGE_MENU_SECTIONS = A8, B5.manageMenuSections = () => YAe(Bl === !0), B5.OPTIONAL_SIDEBAR_ITEMS = j8, B5.NAV_CATALOG = XAe, B5.DIRECT_MANAGE_NAV = ZAe, B5.settingsHost = () => ({
+ selectSection: (e) => YV(uV(e), {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
}),
- closed: nMe,
+ closed: aMe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => mo(e),
navCatalog: B5.NAV_CATALOG,
- themeOptions: Ooe,
- videoLayouts: dA,
+ themeOptions: koe,
+ videoLayouts: uA,
followInitialRanges: M8,
- videoLayout: () => n7(),
- setVideoLayout: uMe,
- censored: Z7,
- setCensored: IMe,
+ videoLayout: () => r7(),
+ setVideoLayout: fMe,
+ censored: Q7,
+ setCensored: RMe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: LMe,
+ setHighContrast: zMe,
receipt: (e) => x8.actionReceipt(e),
failure: x8.actionFailure,
- syncRemote: (e) => aA(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => iA(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => z("/healthz").then((e) => (Zl({ runtimeConfigurable: !!e.configurable }), Bl)).catch(() => null)
- }), Y.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 = "", Y.listen(document, "focusin", u7), Y.listen(document, "focusout", u7), Y.listen(window, "scroll", () => {
- u7(), location.pathname === "/follow" && C9() && Zl({ followScrollY: scrollY }), window.__scrolling = !0, cl(), clearTimeout(B5.scrollT), B5.scrollT = Y.delay(() => {
+ }), Y.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 = "", Y.listen(document, "focusin", d7), Y.listen(document, "focusout", d7), Y.listen(window, "scroll", () => {
+ d7(), location.pathname === "/follow" && w9() && Zl({ followScrollY: scrollY }), window.__scrolling = !0, cl(), clearTimeout(B5.scrollT), B5.scrollT = Y.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), Y.listen(window, "resize", u7, { passive: !0 }), Y.handler(L("#scrim"), "onclick", () => q5(!1));
+ }, { passive: !0 }), Y.listen(window, "resize", d7, { passive: !0 }), Y.handler(L("#scrim"), "onclick", () => q5(!1));
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var d7 = 64, f7 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var f7 = 64, p7 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), p7 = (e) => e.repeat(d7);
-function mMe(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("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + p7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><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>${Ho()}</span>` + (n ? n5(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), m7 = (e) => e.repeat(f7);
+function gMe(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 = XU();
+ 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>${Ho()}</span>` + (n ? n5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
//#endregion
//#region src/application/catalog.js
@@ -77369,40 +77405,40 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function hMe() {
- X.initialParams.has("loc") || (W.loc = m7(W.loc), Ql());
+function _Me() {
+ X.initialParams.has("loc") || (W.loc = h7(W.loc), Ql());
}
-function m7(e) {
- return LAe(e, Z.sourceOnline);
+function h7(e) {
+ return BAe(e, Z.sourceOnline);
}
-function h7(e = W) {
- return RAe(e);
+function g7(e = W) {
+ return VAe(e);
}
-function gMe() {
- Zl(C8(zAe(W, Z.appSettings, x8.rollSeed))), D8();
+function vMe() {
+ Zl(C8(HAe(W, Z.appSettings, x8.rollSeed))), D8();
}
-function g7(e = null, t = !1) {
- gMe(), e && (Object.assign(W, e), Ql()), Q.route(e ? h7() : "/"), X.clearSearchField(), r9(!1), U5(), h9(), j7(), t && window.scrollTo({
+function _7(e = null, t = !1) {
+ vMe(), e && (Object.assign(W, e), Ql()), Q.route(e ? g7() : "/"), X.clearSearchField(), i9(!1), U5(), g9(), M7(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
-function _Me(e, t = null) {
+function yMe(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? s9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : k5(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 _7(e) {
+function v7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, z("/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 vMe(e, t) {
- n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : v7(e, t);
+function bMe(e, t) {
+ n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : y7(e, t);
}
-function v7(e, t) {
- e.edition_group ? WMe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? GMe(e.part_group.seed_id, e.id, !0, t) : s9(e.id, !0, null, t);
+function y7(e, t) {
+ e.edition_group ? KMe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? qMe(e.part_group.seed_id, e.id, !0, t) : c9(e.id, !0, null, t);
}
-async function yMe(e, t) {
+async function xMe(e, t) {
try {
let n = await z("/api/watch-later", {
method: "POST",
@@ -77419,7 +77455,7 @@ async function yMe(e, t) {
x8.actionFailure("更新稍后看", e);
}
}
-async function bMe(e, t) {
+async function SMe(e, t) {
try {
await z("/api/batch", {
method: "POST",
@@ -77427,7 +77463,7 @@ async function bMe(e, t) {
ids: [e.id],
operation: t
})
- }), await I7();
+ }), await L7();
let n = t === "restore" ? "dispose" : "restore";
x8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await z("/api/batch", {
@@ -77437,14 +77473,14 @@ async function bMe(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await I7();
+ }), await L7();
} });
} catch (e) {
throw x8.actionFailure("操作", e), e;
}
}
-async function xMe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = RM(i, t), o = async (t, r) => {
+async function CMe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = LM(i, t), o = async (t, r) => {
let i = (await z("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -77458,12 +77494,12 @@ async function xMe(e, t, n, r) {
};
try {
let e = await o(a, r);
- x8.actionReceipt(e ? `已评 ${IM(e)} 星` : "已取消评分", { undo: () => o(i) });
+ x8.actionReceipt(e ? `已评 ${FM(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || x8.actionFailure("评分", e), e;
}
}
-async function y7(e) {
+async function b7(e) {
let t = new URLSearchParams();
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" && W.state && t.set("state", W.state), e.type !== "item") {
let e = r5.activeFilterState();
@@ -77486,9 +77522,9 @@ async function y7(e) {
e[n] && t.set(n, e[n]);
});
}
- return WAe(t.toString(), X.topsQueryParams(e).toString());
+ return qAe(t.toString(), X.topsQueryParams(e).toString());
}
-function SMe() {
+function wMe() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
@@ -77500,32 +77536,32 @@ function SMe() {
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
}
-function b7(e) {
- o5().type !== "entity" && w7({ tags: O7(e) }), m9({ filters: { ...e } }), F7();
+function x7(e) {
+ o5().type !== "entity" && T7({ tags: k7(e) }), h9({ filters: { ...e } }), I7();
}
-async function x7(e) {
- let t = ++X.facetCountsSeq, [n] = await y7(e);
- t === X.facetCountsSeq && (e.type === "home" && (e9.facets = n), m9({ latest: X7(n, e) }));
+async function S7(e) {
+ let t = ++X.facetCountsSeq, [n] = await b7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (t9.facets = n), h9({ latest: Z7(n, e) }));
}
-function S7(e) {
- SMe();
+function C7(e) {
+ wMe();
let t = o5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), c5(t.kind, t.name, n), b7(n), x7(o5());
+ e(n), c5(t.kind, t.name, n), x7(n), S7(o5());
} else if (t.type === "item") {
let t = r5.cloneBarsContext(wl);
- if (r9(!1), Zl({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), c5(t.kind, t.name, t.filters) ? j7() : Zl({ pageOpens: Hl + 1 });
+ if (i9(!1), Zl({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), c5(t.kind, t.name, t.filters) ? M7() : Zl({ pageOpens: Hl + 1 });
return;
}
e(W), Zl({ barsContext: {
type: "home",
filters: W
- } }), Q.route(h7()), U5(), j7();
- } else e(W), Ql(), Q.route(h7()), b7(W), x7(Cl);
+ } }), Q.route(g7()), U5(), M7();
+ } else e(W), Ql(), Q.route(g7()), x7(W), S7(Cl);
}
-function CMe() {
+function TMe() {
return {
tiers: null,
empty: !1,
@@ -77542,94 +77578,94 @@ function CMe() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: T7(),
+ actions: E7(),
helpers: {
- wireDrag: $7,
+ wireDrag: e9,
wireScroller: (e) => {
e && Hs(e);
}
}
};
}
-function C7() {
- X.catalogFilterProps && w7({});
+function w7() {
+ X.catalogFilterProps && T7({});
}
-function w7(e) {
+function T7(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 || CMe(),
+ ...X.catalogFilterProps || TMe(),
...e
- }, !X.catalogFilterMounting && (FV(t) ? zV(t, e) : (!t.firstChild && !n && (t.innerHTML = mMe(X.catalogViews(), X.catalogFilterProps.state, D7()), Ts(t)), X.catalogFilterMounting = RV("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (PV(t) ? RV(t, e) : (!t.firstChild && !n && (t.innerHTML = gMe(X.catalogViews(), X.catalogFilterProps.state, O7()), Ts(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 T7() {
+function E7() {
return {
currentHref: () => {
- let e = new URL(h7(), location.origin);
+ 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;
},
openEntity: (e, t) => v5(e, t),
setView: (e) => {
- W.state = e, Ql(), w7({ state: e }), Q.route(h7()), j7();
+ W.state = e, Ql(), T7({ state: e }), Q.route(g7()), M7();
},
- toggleTag: (e) => N7(e),
- clearFilter: (e) => S7((t) => {
+ toggleTag: (e) => P7(e),
+ clearFilter: (e) => C7((t) => {
t[e] = "";
}),
- clearAll: () => S7((e) => {
+ clearAll: () => C7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Ik(e, W.sort, W.dir);
- t && (W.sort = t.sort, W.dir = t.dir, Ql(), Y7());
+ let t = Fk(e, W.sort, W.dir);
+ t && (W.sort = t.sort, W.dir = t.dir, Ql(), X7());
},
- reshuffle: () => FMe(),
+ reshuffle: () => LMe(),
setLayout: (e) => {
- e7() ? r7(e) : lMe(e);
+ e7() ? i7(e) : dMe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await GAe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(k7) : n.map(A7);
+ let n = (await JAe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(A7) : n.map(j7);
}
};
}
-function E7() {
+function D7() {
return e7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: gA(),
- options: dA
- } : t7() ? {
+ value: hA(),
+ options: uA
+ } : n7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: n7(),
- options: dA
+ value: r7(),
+ options: uA
} : null;
}
-function D7() {
+function O7() {
return {
sorts: s5(W.sort, W.dir),
- layout: E7(),
+ layout: D7(),
state: W.state || "",
trash: W.state === "trash"
};
}
-function O7(e) {
+function k7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function k7(e) {
+function A7(e) {
return {
name: e.k,
ringHtml: `<span data-tier-initial>${B(xn(e.k))}</span>${Ia({
@@ -77643,22 +77679,22 @@ function k7(e) {
})}`
};
}
-function A7(e) {
+function j7(e) {
return {
name: e.k,
fallback: bn(e.k, 2),
logo: e.has_logo ? Na(e.k, "icon", e.logo_version) : ""
};
}
-function wMe(e) {
- X.catalogFilterProps?.tiers || (X.barsRendered = "", w7({
+function EMe(e) {
+ X.catalogFilterProps?.tiers || (X.barsRendered = "", T7({
tiers: null,
state: e.state || ""
}));
}
-async function j7() {
+async function M7() {
let e = ++X.barsRequestSeq;
- if (m9(), !bl(location.pathname) || Cl.type === "item") return;
+ if (h9(), !bl(location.pathname) || Cl.type === "item") return;
let t = o5(), n = r5.activeFilterState(), r = JSON.stringify([
t,
n,
@@ -77666,18 +77702,18 @@ async function j7() {
W.seed || "",
e7()
]);
- wMe(n);
- let [i, a] = await y7(t);
+ EMe(n);
+ let [i, a] = await b7(t);
if (e !== X.barsRequestSeq) return;
let o = r + "\n" + JSON.stringify([i, a]);
if (o === X.barsRendered) {
- B5.sidebarCatalog && m9({
+ B5.sidebarCatalog && h9({
content: B5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = o, t.type === "home" && (e9.facets = i);
+ X.barsRendered = o, t.type === "home" && (t9.facets = i);
let s = i.tags || [];
_a(a.performers), _a(a.studios);
let c = t.type === "home" && !e7() && !W.state && !W.q && !i.locations.some((e) => e.n > 0);
@@ -77691,37 +77727,37 @@ async function j7() {
k: e.k,
label: fl(e.k),
n: e.n ?? null
- })), w7({
+ })), T7({
tiers: {
key: String(X.barsRequestSeq),
- performers: a.performers.map(k7),
- studios: a.studios.map(A7)
+ performers: a.performers.map(A7),
+ studios: a.studios.map(j7)
},
empty: c,
- tags: O7(n),
+ tags: k7(n),
tagFirst: d.length + p.length,
views: X.catalogViews(),
state: n.state || ""
- }), F7(), B5.sidebarCatalog = {
+ }), I7(), B5.sidebarCatalog = {
kind: "catalog",
key: String(++B5.sidebarContentSeq),
- facets: X7(i, t)
- }, m9({
+ facets: Z7(i, t)
+ }, h9({
content: B5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function TMe(e, t) {
- e9.total = e, W.state === "trash" && (E5.trashCount = {
- total: e9.total,
+function DMe(e, t) {
+ t9.total = e, W.state === "trash" && (E5.trashCount = {
+ total: t9.total,
shown: t
- }), X5(), w7({ count: {
- total: e9.total,
+ }), X5(), T7({ count: {
+ total: t9.total,
shown: t
} });
}
-function M7() {
+function N7() {
return xc({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@ -77733,17 +77769,17 @@ function M7() {
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"));
x8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await I7();
+ await L7();
}
}
});
}
-function N7(e) {
- S7((t) => {
+function P7(e) {
+ C7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function P7(e) {
+function F7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -77763,13 +77799,13 @@ function P7(e) {
label: fl(e)
})), t;
}
-function F7() {
- w7({
- combo: P7(W),
+function I7() {
+ T7({
+ combo: F7(W),
comboHidden: !X.catalogOnScreen()
});
}
-async function I7() {
+async function L7() {
let e = Q.claimSurface(Q.surfacePath());
if (Zl({
barsContext: {
@@ -77777,88 +77813,88 @@ async function I7() {
filters: W
},
detailReturnBarsContext: null
- }), r9(!1), W.state === "ads") return OMe(e);
- if (X.controller.page === "/junk-files" && R7(), I5(), U5(), Y8(location.pathname) && W.browse !== "folders") {
+ }), i9(!1), W.state === "ads") return AMe(e);
+ if (X.controller.page === "/junk-files" && z7(), I5(), U5(), Y8(location.pathname) && W.browse !== "folders") {
if (await F5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- uje();
+ pje();
} else X8();
- return F7(), L("#count").classList.remove("manage-static", "junkcount"), z7(e);
+ return I7(), L("#count").classList.remove("manage-static", "junkcount"), B7(e);
}
-function L7(e) {
+function R7(e) {
X.controller.settle(e);
}
-function R7() {
+function z7() {
let e = L("#grid");
- cl(e), BV(e), X.controller.clear(), e.innerHTML = "";
+ cl(e), zV(e), X.controller.clear(), e.innerHTML = "";
}
-function z7(e) {
- return U7("/", DMe, e, { place: sNe });
+function B7(e) {
+ return W7("/", kMe, e, { place: lNe });
}
-function EMe(e) {
- return U7("/junk-files", AMe, e);
-}
-function B7() {
- return !!PV(L("#grid"));
+function OMe(e) {
+ return W7("/junk-files", MMe, e);
}
function V7() {
- return X.controller.taken(B7());
+ return !!NV(L("#grid"));
}
-function H7(e) {
- zV(L("#grid"), e);
+function H7() {
+ return X.controller.taken(V7());
}
-function U7(e, t, n, r = {}) {
+function U7(e) {
+ RV(L("#grid"), e);
+}
+function W7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && R7();
- let a = X.controller.begin(e, B7()), o = t();
- if (!a.mount) return H7(o), a.settled;
+ 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;
cl(i);
- let s = () => BV(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), RV(e, o, {
+ 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(B7());
+ a.signal.removeEventListener("abort", s), a.finish(V7());
}), a.settled;
}
-function W7() {
- let e = t7();
- return CA({
+function G7() {
+ let e = n7();
+ return SA({
active: e7() || e,
home: e,
portrait: W.orient === "竖屏"
});
}
-function G7(e = "正在读取作品") {
- return rY(e, K7());
-}
-function K7() {
- return W ? wA(W7()) : 16 / 9;
+function K7(e = "正在读取作品") {
+ return rY(e, q7());
}
function q7() {
- V7() && (cl(L("#grid")), H7({
- layout: W7(),
+ return W ? CA(G7()) : 16 / 9;
+}
+function J7() {
+ H7() && (cl(L("#grid")), U7({
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
})), r5.entityPageCurrent() && (cl(L("#index [data-entity-hero]")), a5({
- layout: W7(),
+ layout: G7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function DMe() {
+function kMe() {
let e = decodeURIComponent(location.pathname), t = Zt(e), n = W.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: W7(),
+ layout: G7(),
wall: e === "/wall",
selectMode: Dl,
selected: new Set(Tl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: $7,
- settled: L7,
- skeletonHtml: () => G7(),
+ wireDrag: e9,
+ settled: R7,
+ skeletonHtml: () => K7(),
filters: { ...W },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
@@ -77866,9 +77902,9 @@ function DMe() {
mix: t && e !== "/wall" && !n && W.browse !== "folders",
shorts: t && e !== "/wall" && !e7() && W.orient !== "竖屏" && !n && W.browse !== "folders",
countRow: L("#count"),
- onCount: TMe,
- onCountFailed: () => w7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : rK({
+ onCount: DMe,
+ onCountFailed: () => T7({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : iK({
jav: e7() && !t,
configurable: Bl,
filtered: !t
@@ -77876,11 +77912,11 @@ function DMe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function OMe(e) {
+function AMe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && B7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (R7(), I5("正在读取垃圾文件")), U5(), F7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), EMe(e);
+ 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"), OMe(e);
}
-async function kMe(e, t) {
+async function jMe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await z("/api/batch", {
@@ -77890,7 +77926,7 @@ async function kMe(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await I7();
+ }), await L7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
x8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await z("/api/batch", {
@@ -77899,13 +77935,13 @@ async function kMe(e, t) {
ids: n,
operation: e
})
- }), await I7();
+ }), await L7();
} });
} catch (e) {
throw x8.actionFailure("操作", e), e;
}
}
-function AMe() {
+function MMe() {
return {
...c$(location.search),
helpers: X.junkQueueHelpers,
@@ -77915,7 +77951,7 @@ function AMe() {
selectMode: Dl,
selected: new Set(Tl),
countRow: L("#count"),
- settled: L7,
+ settled: R7,
skeletonHtml: () => l2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
@@ -77923,8 +77959,8 @@ function AMe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function jMe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => S8(e, t, Z.appSettings, n), Zl(C8(IAe(location, Z.appSettings, x8.rollSeed))), X.searchValueSnapshot = {
+function NMe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => S8(e, t, Z.appSettings, n), Zl(C8(zAe(location, Z.appSettings, x8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -77945,37 +77981,37 @@ function jMe() {
};
};
}
-function MMe() {
+function PMe() {
Y.handler(L("#wallBtn"), "onclick", () => {
O5(!1, !0);
let e = o5(), t = {
...r5.activeFilterState(),
jav: e7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(JG(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(YG(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) => {
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) => lF(e, t),
- displayName: (e, t) => cF(e, t),
+ titleHtml: (e, t) => cF(e, t),
+ displayName: (e, t) => sF(e, t),
tagLabel: (e) => fl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await t8(e9.stageHost);
+ let r = await t8(t9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: v7,
- open: (e, t) => vMe(e, t),
- openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : _Me(e, t),
- openShort: (e) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : u9(e.id),
- openShorts: () => u9(),
- openMix: (e, t) => UMe(e, e, !0, t),
+ wallDetails: y7,
+ open: (e, t) => bMe(e, t),
+ openResource: (e, t) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : yMe(e, t),
+ openShort: (e) => n8()?.miniplayerTakesCard(e) ? n8().miniplayerPlay(e.id) : d9(e.id),
+ openShorts: () => d9(),
+ openMix: (e, t) => GMe(e, e, !0, t),
openEntity: (e, t) => v5(e, t),
- openUnowned: () => g7({ owner: "none" }, !0),
+ openUnowned: () => _7({ owner: "none" }, !0),
toggleTag: (e) => {
- S7((t) => {
+ C7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
}), window.scrollTo({
top: 0,
@@ -77983,11 +78019,11 @@ function MMe() {
});
},
toggleSelection: (e, t) => k5(e, t),
- watchLater: (e, t) => yMe(e, t),
- rate: (e, t, n, r) => xMe(e, t, n, r),
- resourceOperation: (e, t) => bMe(e, t),
- mixRelated: (e) => _7(e),
- canFlip: () => !Dl && !Z7() && !window.__scrolling && !X.reduceMotion()
+ watchLater: (e, t) => xMe(e, t),
+ rate: (e, t, n, r) => CMe(e, t, n, r),
+ resourceOperation: (e, t) => SMe(e, t),
+ mixRelated: (e) => v7(e),
+ canFlip: () => !Dl && !Q7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
@@ -78016,22 +78052,22 @@ function MMe() {
href: e.k ? Jt[e.k] : "/"
})), X.TAGS_FIRST = 26, Y.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), T7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), E7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && w7({ comboHidden: !0 });
+ X.catalogFilterProps && T7({ comboHidden: !0 });
};
}
-function NMe() {
+function FMe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Dl && O5(!1, !0), Q.route(e);
},
toggleSelection: (e, t) => k5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : s9(e.id, !0, null, 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 z("/api/reveal", {
@@ -78042,10 +78078,10 @@ function NMe() {
return r5.sourceHint(e.message);
}
},
- operate: (e, t) => kMe(e, t)
+ operate: (e, t) => jMe(e, t)
};
}
-X.controller = new BAe();
+X.controller = new UAe();
//#endregion
//#region src/application/preferences.js
var Z = {
@@ -78069,7 +78105,7 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function J7() {
+async function Y7() {
let e = Y;
try {
let t = await Un(e.signal);
@@ -78080,18 +78116,18 @@ async function J7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), hMe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), _Me(), Z.sourceOnline;
}
-function Y7() {
+function X7() {
let e = Q.surfacePath();
- if (!Zt(e) || e === "/junk-files") return I7();
+ if (!Zt(e) || e === "/junk-files") return L7();
let t = Z.nextCatalogLoad();
- return XV(h7(), {
+ return YV(g7(), {
replace: !0,
- state: YV.navigation.location.state
+ state: JV.navigation.location.state
}), t;
}
-function PMe(e) {
+function IMe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -78112,7 +78148,7 @@ function PMe(e) {
cost: "free"
};
}
-function X7(e, t) {
+function Z7(e, t) {
let n = (e, t = (e) => e.label || fl(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@ -78123,7 +78159,7 @@ function X7(e, t) {
value: e.k,
label: Cn[e.k] || e.k,
n: e.n ?? null,
- dot: PMe(e.k),
+ dot: IMe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -78135,8 +78171,8 @@ function X7(e, t) {
duration: !!e.stats?.duration
};
}
-async function FMe(e = !1) {
- if (e && (document.hidden || !Zt(decodeURIComponent(location.pathname)) || e9.stageOpen() || e9.immerseOpen() || Dl || Tl.size || document.activeElement === L("#q"))) return !1;
+async function LMe(e = !1) {
+ if (e && (document.hidden || !Zt(decodeURIComponent(location.pathname)) || t9.stageOpen() || t9.immerseOpen() || Dl || Tl.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;
@@ -78145,14 +78181,14 @@ async function FMe(e = !1) {
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);
+ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, JV.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- W.sort = "seed", W.dir = "", W.seed = x8.rollSeed(), Ql(), D8(), w7({ refreshing: !0 });
+ W.sort = "seed", W.dir = "", W.seed = x8.rollSeed(), Ql(), D8(), T7({ refreshing: !0 });
try {
- let e = Y7();
- await null, await Promise.all([e, j7()]);
+ let e = X7();
+ await null, await Promise.all([e, M7()]);
} finally {
- w7({ refreshing: !1 });
+ T7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -78160,68 +78196,68 @@ async function FMe(e = !1) {
}), !0;
}
}
-function Z7() {
+function Q7() {
return document.body.classList.contains("censor");
}
-function Q7(e) {
+function $7(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function IMe(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Q7(e), e && cl();
+function RMe(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), $7(e), e && cl();
}
-function LMe(e) {
+function zMe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function $7(e) {
+function e9(e) {
return Hs(e, { drag: !0 });
}
-function RMe() {
- ["#nrow", "#count"].forEach((e) => $7(L(e))), document.querySelectorAll(".tier,.srow").forEach($7);
+function BMe() {
+ ["#nrow", "#count"].forEach((e) => e9(L(e))), document.querySelectorAll(".tier,.srow").forEach(e9);
}
-function zMe() {
+function VMe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function BMe() {
+function HMe() {
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 = iA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), po(Z.appSettings.uiSounds), yo(), cA(), uA(), PA(), LA(), RA(), 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: () => cA(),
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = rA(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), po(Z.appSettings.uiSounds), yo(), sA(), lA(), NA(), IA(), LA(), 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: () => sA(),
uiSounds: () => {
po(Z.appSettings.uiSounds), Z.appSettings.uiSounds && mo("toggle-on");
},
- glowFrame: () => IA(),
+ glowFrame: () => FA(),
glow: () => {
- IA(), LA();
+ FA(), IA();
},
batchSize: () => {
- location.pathname === "/" && I7();
+ location.pathname === "/" && L7();
},
defaultSort: () => {
- W.sort = Z.appSettings.defaultSort, W.dir = Lk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && Y7();
+ W.sort = Z.appSettings.defaultSort, W.dir = Ik(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
},
sortDirection: () => {
- W.dir = Lk(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && Y7();
+ W.dir = Ik(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Ql(), location.pathname === "/" && X7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
ul(e, "previewing", !1), ul(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => q7(),
- groupCollapse: () => o7(),
- feedAutoScroll: () => dje(),
+ seekSeconds: () => J7(),
+ groupCollapse: () => s7(),
+ feedAutoScroll: () => mje(),
feedLimit: () => Z8(),
feedCompilations: () => Z8(),
miniplayer: () => {
Z.appSettings.miniplayer || n8()?.closeMiniplayer();
},
javImage: () => {
- Ea(document, Z.appSettings.javImage), q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Vc), HMe();
+ Ea(document, Z.appSettings.javImage), J7(), document.querySelectorAll("img[data-jav-image].cover").forEach(Vc), WMe();
},
- searchHistoryLimit: () => zV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => RV(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(No).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
@@ -78230,12 +78266,12 @@ function BMe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${B(r)}" aria-label="${B(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = os;
}
-function VMe() {
- Z.CENSOR_KEY = "peach-censor", Q7(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function UMe() {
+ Z.CENSOR_KEY = "peach-censor", $7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
//#endregion
//#region src/application/media.js
-var e9 = {
+var t9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -78246,18 +78282,18 @@ var e9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function t9() {
+function n9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function n9() {
+function r9() {
return n8()?.exit() || Promise.resolve();
}
-function r9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && g9(), n8()?.dispose({ miniplayer: n }), Zl({
+function i9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && _9(), n8()?.dispose({ miniplayer: n }), Zl({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -78265,15 +78301,15 @@ function r9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), u7(), e && Q.route(jl || "/");
+ }), d7(), e && Q.route(jl || "/");
}
-function HMe() {
+function WMe() {
n8()?.repaintPoster();
}
-function i9(e, t, n, r, i = null, a = {}) {
+function a9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = Fl?.kind === e && (e === "playlist" ? Fl.playlistId : Fl.seedId) === t;
- r && !o && Zl({ detailReturnPath: location.pathname + location.search }), r && bV();
+ r && !o && Zl({ detailReturnPath: location.pathname + location.search }), r && yV();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -78284,38 +78320,38 @@ function i9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- g9();
+ _9();
let e = Q.queueOpenRequest = {
- seq: YV.navigation.seq,
+ seq: JV.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => s9(n == null ? null : +n, !1, s, i, !0, e), Zl({ queueOpens: Ul + 1 });
- } else return s9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => c9(n == null ? null : +n, !1, s, i, !0, e), Zl({ queueOpens: Ul + 1 });
+ } else return c9(n == null ? null : +n, !1, s, i, r);
}
-function UMe(e, t = e, n = !0, r = null) {
- return i9("mix", e, t, n, r);
+function GMe(e, t = e, n = !0, r = null) {
+ return a9("mix", e, t, n, r);
}
-function WMe(e, t = e, n = !0, r = null) {
- return i9("editions", e, t, n, r);
+function KMe(e, t = e, n = !0, r = null) {
+ return a9("editions", e, t, n, r);
}
-function GMe(e, t = e, n = !0, r = null) {
- return i9("parts", e, t, n, r);
+function qMe(e, t = e, n = !0, r = null) {
+ return a9("parts", e, t, n, r);
}
-function a9(e, t = null, n = !0) {
- return i9("playlist", e, t, n);
+function o9(e, t = null, n = !0) {
+ return a9("playlist", e, t, n);
}
-function o9() {
+function s9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function s9(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 || g9(), t && !n) {
- Zl({ detailReturnPath: location.pathname + location.search }), _9("/assets/" + +e, "item", () => s9(e, !1, null, r));
+ if (a || _9(), t && !n) {
+ Zl({ detailReturnPath: location.pathname + location.search }), v9("/assets/" + +e, "item", () => c9(e, !1, null, r));
return;
}
cl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : Ml?.isConnected ? Ml : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Nl, c = o9(), l = Pl || !t && !c, u = Cl.type === "item" ? wl : r5.cloneBarsContext(o5());
- t ? Zl({ detailReturnPath: location.pathname + location.search }) : i || Zl({ detailReturnPath: SV() || jl }), t && bV(), n8()?.showing() !== "item" && r9(!1, !0, {
+ let o = r?.isConnected ? r : Ml?.isConnected ? Ml : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Nl, c = s9(), l = Pl || !t && !c, u = Cl.type === "item" ? wl : r5.cloneBarsContext(o5());
+ t ? Zl({ detailReturnPath: location.pathname + location.search }) : i || Zl({ detailReturnPath: xV() || jl }), t && yV(), n8()?.showing() !== "item" && i9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), Zl({
@@ -78326,70 +78362,70 @@ async function s9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), Zl({ 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 t8(e9.stageHost);
+ } }), Zl({ 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 t8(t9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...e9.itemDetailActions,
+ ...t9.itemDetailActions,
present: (e, t) => {
- a.cancelled || e9.itemDetailActions.present(e, t);
+ a.cancelled || t9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || e9.itemDetailActions.redirect(e);
+ a.cancelled || t9.itemDetailActions.redirect(e);
}
- } : e9.itemDetailActions;
+ } : t9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: e9.itemDetailHelpers,
+ helpers: t9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: W7(),
+ layout: G7(),
selectMode: Dl,
selected: new Set(Tl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : t9()
- }), u7();
+ resume: t || e == null ? null : n9()
+ }), d7();
}
-async function c9() {
+async function l9() {
let e = r5.cloneBarsContext(wl), t = jl || "/", n = Pl;
- await n9(), r9(!1, !1, { miniplayer: !1 }), Zl({ detailReturnBarsContext: null }), xV(), Zl({ barsContext: e || {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), Zl({ detailReturnBarsContext: null }), bV(), Zl({ barsContext: e || {
type: "home",
filters: W
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Zl({ pageOpens: Hl + 1 }) : (j7(), location.pathname === "/playlists" && Zl({ pageOpens: Hl + 1 })));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? Zl({ pageOpens: Hl + 1 }) : (M7(), location.pathname === "/playlists" && Zl({ pageOpens: Hl + 1 })));
}
-async function l9(e, t = !0) {
+async function u9(e, t = !0) {
if (t) {
- Zl({ detailReturnPath: location.pathname + location.search }), _9("/works/" + encodeURIComponent(e), "jav", () => l9(e, !1));
+ Zl({ detailReturnPath: location.pathname + location.search }), v9("/works/" + encodeURIComponent(e), "jav", () => u9(e, !1));
return;
}
- let n = YV.navigation.seq, r = r5.cloneBarsContext(o5()), i = !o9(), a = SV() || (i ? "/jav?tab=discover" : jl) || "/jav?tab=discover";
- n8()?.showing() !== "jav" && r9(!1, !0, { miniplayer: !1 }), Zl({
+ let n = JV.navigation.seq, r = r5.cloneBarsContext(o5()), i = !s9(), a = xV() || (i ? "/jav?tab=discover" : jl) || "/jav?tab=discover";
+ n8()?.showing() !== "jav" && i9(!1, !0, { miniplayer: !1 }), Zl({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), cl();
- let [o, s] = await Promise.all([t8(e9.stageHost), V("/healthz")]);
- YV.navigation.seq === n && (await o.open({
+ let [o, s] = await Promise.all([t8(t9.stageHost), V("/healthz")]);
+ JV.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void c9(),
+ 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) => {
- S7((t) => {
+ C7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
@@ -78398,47 +78434,47 @@ async function l9(e, t = !0) {
},
receipt: (e) => x8.toast({ text: e })
}
- }), u7());
+ }), d7());
}
-async function u9(e = null, t = !0) {
- t ? (e9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await DAe(e9.immerseHost)).open(e));
+async function d9(e = null, t = !0) {
+ t ? (t9.requestedImmerseId = e, Q.route("/immerse")) : (n8()?.closeMiniplayer(), await (await AAe(t9.immerseHost)).open(e));
}
-function KMe() {
- e9.total = 0, e9.facets = null, e9.stageHost = {
+function JMe() {
+ t9.total = 0, t9.facets = null, t9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
toast: (e, t) => x8.toast({ text: e }, t),
- loadSourceStatus: () => J7(),
+ loadSourceStatus: () => Y7(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? E9(t, !0, n) : s9(t, !0);
+ e === "follow" ? D9(t, !0, n) : c9(t, !0);
},
- openItem: (e) => void s9(e)
- }, e9.stageOpen = () => !!n8()?.isOpen();
+ openItem: (e) => void c9(e)
+ }, t9.stageOpen = () => !!n8()?.isOpen();
}
-function qMe() {
- e9.itemDetailHelpers = {
+function YMe() {
+ t9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => lF(e),
- displayName: (e) => cF(e),
+ titleHtml: (e) => cF(e),
+ displayName: (e) => sF(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => fl(e),
isDurationTag: (e) => En.has(e),
- tagCandidates: () => e9.facets && e9.facets.tags || [],
+ tagCandidates: () => t9.facets && t9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
relatedSkeletonHtml: () => l2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => _7(e),
- wireDrag: (e) => $7(e),
+ mixRelated: (e) => v7(e),
+ wireDrag: (e) => e9(e),
wireDragReorder: (e, t) => _c(e, t)
- }, e9.itemDetailActions = {
- close: () => c9(),
+ }, t9.itemDetailActions = {
+ close: () => l9(),
present: (e) => {
Zl({ presentedItem: e });
let t = wl;
@@ -78446,66 +78482,66 @@ function qMe() {
type: "item",
id: e.id,
filters: t?.type === "entity" ? { ...t.filters } : r5.emptyEntityFilters()
- } }), Il && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Il}`, !1, CV("item")), Zl({ pendingQueueRoute: null })), j7();
+ } }), Il && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${Il}`, !1, SV("item")), Zl({ pendingQueueRoute: null })), M7();
},
redirect: (e) => {
let t = !!Il;
e.kind === "follow" ? (Q.queueOpenRequest = null, Zl({
pendingQueueRoute: null,
followDetailReturnPath: jl || "/"
- }), Q.route(`/posts/${e.id}`, !t, CV("follow")), E9(e.id, !1, null, !0)) : e.kind === "item" ? s9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? y9("/playlists") : x5() : r9(!1);
+ }), 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 i9(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 = Ll;
if (!e) return;
let t = Fl;
- t ? i9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : s9(e.id, !1);
+ t ? a9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : c9(e.id, !1);
},
- checkSource: async (e) => (await J7())[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", y9(b9());
+ $.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) => v5(e, t),
- openUnowned: () => g7({ owner: "none" }, !0),
- openRegion: (e) => g7({ region: e || "none" }, !0),
+ openUnowned: () => _7({ owner: "none" }, !0),
+ openRegion: (e) => _7({ region: e || "none" }, !0),
openTag: (e) => {
- S7((t) => {
+ C7((t) => {
t.tag = e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- addToPlaylist: (e) => Tje(e),
- saveMix: (e) => wje(e),
- editPlaylist: () => y9("/playlists"),
- openPlaylists: () => y9("/playlists"),
+ addToPlaylist: (e) => Oje(e),
+ saveMix: (e) => Dje(e),
+ editPlaylist: () => b9("/playlists"),
+ openPlaylists: () => b9("/playlists"),
reveal: (e) => p5(e),
- sync: (e) => gje(e),
+ sync: (e) => yje(e),
trashChanged: async (e, t) => {
- W.state === "ads" && (t || e === "trash") && (t || (xV(), r9(!0, !1, { miniplayer: !1 })), await I7());
+ W.state === "ads" && (t || e === "trash") && (t || (bV(), i9(!0, !1, { miniplayer: !1 })), await L7());
},
toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),
failure: (e, t) => x8.actionFailure(e, t)
- }, e9.immerseHost = {
+ }, t9.immerseHost = {
filters: () => W,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => cF(e),
+ displayName: (e) => sF(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => g7(),
- openItem: (e) => void s9(e),
+ closed: () => _7(),
+ openItem: (e) => void c9(e),
openEntity: (e, t) => v5(e, t),
- openUnowned: () => g7({ owner: "none" }, !0),
+ openUnowned: () => _7({ owner: "none" }, !0),
toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),
warn: (e) => x8.toast({ text: e }, { sound: "warning" }),
failure: (e, t) => x8.actionFailure(e, t)
- }, e9.immerseOpen = () => !!a8()?.isOpen(), Y.handler(L("#immerseBtn"), "onclick", () => u9());
+ }, t9.immerseOpen = () => !!a8()?.isOpen(), Y.handler(L("#immerseBtn"), "onclick", () => d9());
}
//#endregion
//#region src/application/tutorial.js
-var d9 = {
+var f9 = {
postSetupTutorialDone: void 0,
postSetupTutorialNeedsReopen: void 0,
postSetupTutorialTasks: void 0,
@@ -78514,29 +78550,29 @@ var d9 = {
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
-async function JMe() {
- Lc(), await d9.writePostSetupTutorialDone(!1), await f9();
+async function XMe() {
+ Lc(), await f9.writePostSetupTutorialDone(!1), await p9();
}
-async function f9() {
+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 (d9.postSetupTutorialNeedsReopen && (d9.postSetupTutorialNeedsReopen = !1, await d9.writePostSetupTutorialDone(!1).catch(() => {})), Dc() !== "pending" || await d9.readPostSetupTutorialDone()) {
+ if (f9.postSetupTutorialNeedsReopen && (f9.postSetupTutorialNeedsReopen = !1, await f9.writePostSetupTutorialDone(!1).catch(() => {})), Dc() !== "pending" || await f9.readPostSetupTutorialDone()) {
t();
return;
}
let n = Fc();
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 d9.postSetupTutorialTasks();
+ let r = await f9.postSetupTutorialTasks();
if (!Ic(n)) return;
let i = new Set(r.map((e) => e.key)), a = new Set([...jc()].filter((e) => i.has(e)));
Mc(a);
let o = r.filter((e) => !a.has(e.key)), s = o.filter((e) => !e.done);
if (!s.length) {
- Oc("complete"), t(), await d9.writePostSetupTutorialDone(!0).catch(() => {});
+ Oc("complete"), t(), await f9.writePostSetupTutorialDone(!0).catch(() => {});
return;
}
let c = Nc(o);
@@ -78544,7 +78580,7 @@ async function f9() {
e.removeAttribute("aria-busy");
return;
}
- e.innerHTML = d9.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 = kc(), d.classList.toggle("ui-fcollapse-settled", !d.inert), Y.handler(u, "onclick", () => {
let t = e.querySelector(".post-setup-notification"), n = t.dataset.collapsed !== "true";
@@ -78553,38 +78589,38 @@ async function f9() {
let t = jc(), n = e.dataset.tutorialSkip;
t.add(n), Mc(t), x8.actionReceipt(`已跳过「${e.dataset.tutorialLabel}」`, { undo: async () => {
let e = jc();
- e.delete(n), Mc(e), Oc("pending"), await f9();
- } }), f9();
+ e.delete(n), Mc(e), Oc("pending"), await p9();
+ } }), p9();
}));
let f = new Map(o.map((e) => [e.key, e]));
e.querySelectorAll("[data-tutorial-task]").forEach((e) => Y.handler(e, "onclick", (t) => {
let n = f.get(e.dataset.tutorialTask);
- !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), d9.openTutorialTarget(n));
- })), Y.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => d9.openTutorialTarget(l));
+ !n || t.metaKey || t.ctrlKey || t.shiftKey || t.button || (t.preventDefault(), f9.openTutorialTarget(n));
+ })), Y.handler(e.querySelector("[data-tutorial-action]"), "onclick", () => f9.openTutorialTarget(l));
} catch {
if (!Ic(n)) return;
e.innerHTML = Rc(R("alert")), e.removeAttribute("aria-busy"), Y.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
- delete e.dataset.tutorialSignature, e.innerHTML = "", f9();
+ delete e.dataset.tutorialSignature, e.innerHTML = "", p9();
}), Y.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
-function YMe() {
- if (Zl({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), d9.postSetupTutorialDone = null, d9.postSetupTutorialNeedsReopen = !1, Vl) {
- Oc("pending"), d9.postSetupTutorialDone = !1, d9.postSetupTutorialNeedsReopen = !0;
+function ZMe() {
+ if (Zl({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), f9.postSetupTutorialDone = null, f9.postSetupTutorialNeedsReopen = !1, Vl) {
+ Oc("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(() => {});
}
- d9.postSetupTutorialTasks = async () => {
+ f9.postSetupTutorialTasks = async () => {
let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await z("/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 [
{
@@ -78637,7 +78673,7 @@ function YMe() {
icon: "square-check-big"
}
];
- }, d9.postSetupTutorialHtml = (e, t, n) => {
+ }, 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 = kc(), 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 ? R("check") : R(e.icon)}</span>
@@ -78658,19 +78694,19 @@ function YMe() {
<footer><button class="geist-button" type="button" data-tutorial-action="next">继续:${i.label}</button></footer>
</div>
</article>`;
- }, d9.writePostSetupTutorialDone = async (e) => {
- d9.postSetupTutorialDone = e, await z("/api/settings", {
+ }, f9.writePostSetupTutorialDone = async (e) => {
+ f9.postSetupTutorialDone = e, await z("/api/settings", {
method: "POST",
body: JSON.stringify({ postSetupTutorialDone: e })
});
- }, d9.readPostSetupTutorialDone = async () => {
- if (d9.postSetupTutorialDone === null) try {
- d9.postSetupTutorialDone = (await z("/api/settings")).postSetupTutorialDone === !0;
+ }, f9.readPostSetupTutorialDone = async () => {
+ if (f9.postSetupTutorialDone === null) try {
+ f9.postSetupTutorialDone = (await z("/api/settings")).postSetupTutorialDone === !0;
} catch {
- d9.postSetupTutorialDone = !1;
+ f9.postSetupTutorialDone = !1;
}
- return d9.postSetupTutorialDone;
- }, d9.openTutorialTarget = (e) => {
+ return f9.postSetupTutorialDone;
+ }, f9.openTutorialTarget = (e) => {
e.setupEntry && Zl({ cameFromSetup: !0 }), Q.navigatePath(e.href);
};
}
@@ -78695,11 +78731,11 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function p9() {
+function m9() {
let e = d8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(s7(e.dataset.nav))));
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(c7(e.dataset.nav))));
}
-function m9(e = {}) {
+function h9(e = {}) {
let t = Q.surfacePath();
t !== B5.sidebarSurface && (B5.sidebarSurface = t, B5.sidebarProps = {
...B5.sidebarProps,
@@ -78710,33 +78746,33 @@ function m9(e = {}) {
...e
}, d8()?.render(B5.sidebarProps);
}
-function h9() {
- m9(), p9(), l7();
-}
function g9() {
+ h9(), m9(), u7();
+}
+function _9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, Zl({ pendingQueueRoute: null });
}
-function _9(e, t, n) {
- g9(), 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 v9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, F5.syncPageTitle(location.href), m9(), xV(), f9();
+function y9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, F5.syncPageTitle(location.href), h9(), bV(), p9();
}
-function y9(e) {
+function b9(e) {
Q.route(e), Zl({ pageOpens: Hl + 1 });
}
-function XMe() {
+function QMe() {
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) => Zt(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) => Zt(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" ? u9(zMe()) : e === "/follow" ? T9() : e === "/playlists" || Q.catalogPage(e) ? y9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? Uje() : e) : (O5(!1, !0), y9(M5({
+ e === "/immerse" ? d9(VMe()) : e === "/follow" ? E9() : e === "/playlists" || Q.catalogPage(e) ? b9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? Kje() : e) : (O5(!1, !0), b9(M5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -78745,35 +78781,35 @@ function XMe() {
})));
};
}
-function ZMe() {
+function $Me() {
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) => (Y8(e) || X8(), BV(L("#stats"), L("#index")), !Zt(e) && e !== "/trash" && R7(), 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) => (Y8(e) || X8(), zV(L("#stats"), L("#index")), !Zt(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
}), F5.syncPageTitle(e), queueMicrotask(() => {
- l7(), Q5(), m9(), f9();
+ u7(), Q5(), h9(), p9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? YV.replace(e, n) : YV.push(e, n), queueMicrotask(() => {
- l7(), Q5();
+ t ? JV.replace(e, n) : JV.push(e, n), queueMicrotask(() => {
+ u7(), Q5();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
//#endregion
//#region src/jobs.ts
-function QMe(e, t, n) {
+function eNe(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>`;
}
-function $Me(e, t = 0, n = 0) {
- return n > 0 ? QMe(e, t, n) : is(e);
+function tNe(e, t = 0, n = 0) {
+ return n > 0 ? eNe(e, t, n) : is(e);
}
-async function eNe(e) {
+async function nNe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -78788,14 +78824,14 @@ async function eNe(e) {
await t(2e3);
}
}
-function tNe(e) {
+function rNe(e) {
let t = e.note || ((e) => ts(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || is, r = e.progress || ((e, t, n) => $Me(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 || is, r = e.progress || ((e, t, n) => tNe(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;
- eNe({
+ nNe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -78845,7 +78881,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function nNe(e) {
+function iNe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
x8.toast({ text: li(e) }, {
warn: !!t,
@@ -78853,17 +78889,17 @@ function nNe(e) {
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => T9(!0)
+ run: () => E9(!0)
}
});
}
-function b9() {
- return Xi(x9());
+function x9() {
+ return Xi(S9());
}
-function rNe() {
+function aNe() {
return $.controller.read();
}
-function x9() {
+function S9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -78878,33 +78914,33 @@ function x9() {
seed: $.followSeed
};
}
-function S9(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 iNe() {
- let e = PV(L("#stats"));
+function oNe() {
+ let e = NV(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function C9() {
- return !!iNe();
+function w9() {
+ return !!oNe();
}
-function w9(e) {
- C9() && zV(L("#stats"), e);
+function T9(e) {
+ w9() && RV(L("#stats"), e);
}
-function aNe(e, t = {}) {
+function sNe(e, t = {}) {
return $.controller.route(e, t);
}
-function T9(e = !1) {
+function E9(e = !1) {
$.controller.enter(e);
}
-async function E9(e, t = !0, n = null, r = !1) {
+async function D9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), _9(`/posts/${+e}`, "follow", () => E9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), v9(`/posts/${+e}`, "follow", () => D9(e, !1, n, r));
return;
}
cl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Zl({ followDetailReturnPath: SV() || "/follow" }), t && bV(), n8()?.showing() !== "follow" && r9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, CV("follow")), await (await t8(e9.stageHost)).open({
+ t && i && !r && Zl({ followDetailReturnPath: location.pathname + location.search }), !t && !r && Zl({ followDetailReturnPath: xV() || "/follow" }), t && yV(), n8()?.showing() !== "follow" && i9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, SV("follow")), await (await t8(t9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -78912,54 +78948,54 @@ async function E9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : t9()
- }), u7();
+ resume: t ? null : n9()
+ }), d7();
}
-async function oNe() {
- await n9(), r9(!1, !1, { miniplayer: !1 }), xV(), Q.route(Rl || "/follow"), !(r5.entityPageView && r5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && C9() ? (rNe(), w9({ view: x9() })) : Zl({ pageOpens: Hl + 1 }));
+async function cNe() {
+ await r9(), i9(!1, !1, { miniplayer: !1 }), bV(), Q.route(Rl || "/follow"), !(r5.entityPageView && r5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && w9() ? (aNe(), T9({ view: S9() })) : Zl({ pageOpens: Hl + 1 }));
}
-function sNe(e) {
+function lNe(e) {
let t = document.createElement("div");
return t.className = "peach-react", gs(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function cNe() {
+function uNe() {
$.followFeedHelpers = ml({
wireDrag: (e) => {
- e && $7(e);
+ e && e9(e);
},
wireScroller: (e) => {
e && Hs(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: tNe
+ jobProgress: rNe
}), $.followFeedActions = {
loaded: (e) => W5(e),
- openDetail: (e) => E9(e),
+ openDetail: (e) => D9(e),
openAuthor: (e) => Q.navigatePath(en("creator", e)),
- toggleSelection: (e, t) => jje(e, t),
+ toggleSelection: (e, t) => Pje(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), u5();
},
setPhotoLayout: (e) => {
- EA(e), u5();
+ TA(e), u5();
},
- canFlip: () => !Dl && !Z7() && !window.__scrolling && !X.reduceMotion(),
+ canFlip: () => !Dl && !Q7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),
failure: (e, t) => x8.actionFailure(e, t),
- checkReport: (e) => nNe(e)
+ checkReport: (e) => iNe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- n8()?.showing() !== "follow" && (cl(), r9(!1), H5(), !C9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), L("#stats").querySelector(".peach-react") && BV(L("#stats")), L("#stats").replaceChildren()));
+ n8()?.showing() !== "follow" && (cl(), i9(!1), H5(), !w9() && (Q.claimSurface(Q.surfacePath()), V5({ manage: !1 }), L("#stats").querySelector(".peach-react") && zV(L("#stats")), L("#stats").replaceChildren()));
}
}, $.followDetailActions = Sl({
- view: x9,
- adoptView: S9,
+ view: S9,
+ adoptView: C9,
rememberReturn: (e) => Zl({ followDetailReturnPath: e }),
- close: () => void oNe(),
- open: (e, t, n) => void E9(e, !0, t, n),
+ close: () => void cNe(),
+ open: (e, t, n) => void D9(e, !0, t, n),
drawer: W5,
openAuthor: (e) => Q.navigatePath(en("creator", e))
}, {
@@ -78967,11 +79003,11 @@ function cNe() {
failure: x8.actionFailure
});
}
-function lNe() {
+function dNe() {
$.controller = $i({
location: () => location,
- view: x9,
- adoptView: S9,
+ view: S9,
+ adoptView: C9,
session: () => ({
discoverySeed: Gl,
revision: Kl,
@@ -78985,14 +79021,14 @@ function lNe() {
preferences: () => ({
selectMode: Dl,
selected: El,
- photoSize: bA(),
- photoLayout: xA(),
+ photoSize: yA(),
+ photoLayout: bA(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: C9,
- push: w9,
+ live: w9,
+ push: T9,
route: Q.route,
- openPage: y9,
+ openPage: b9,
rollSeed: () => Number(x8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
@@ -79007,16 +79043,16 @@ function lNe() {
}
//#endregion
//#region src/application/lifecycle.js
-var D9 = { overlayScan: void 0 };
-function uNe() {
- Kbe(), uc(document), $a(document.documentElement, { variant: "page" }), $a(L("#drawerScroll")), D9.overlayScan = 0, Y.mutation(() => {
- D9.overlayScan ||= Y.delay(() => {
- D9.overlayScan = 0, sc();
+var O9 = { overlayScan: void 0 };
+function fNe() {
+ Ybe(), uc(document), $a(document.documentElement, { variant: "page" }), $a(L("#drawerScroll")), O9.overlayScan = 0, Y.mutation(() => {
+ O9.overlayScan ||= Y.delay(() => {
+ O9.overlayScan = 0, sc();
});
}).observe(document.body, {
childList: !0,
subtree: !0
- }), sc(), da(document.body), X.homeHasFeed = cje(), X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
+ }), sc(), da(document.body), X.homeHasFeed = dje(), X.barsRequestSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, B5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -79028,7 +79064,7 @@ function uNe() {
}
//#endregion
//#region src/react/search/recommendations.ts
-async function dNe(e) {
+async function pNe(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@ -79052,9 +79088,9 @@ async function dNe(e) {
let t = Ii(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = Li(e, n), i = l.sources.find((e) => e.id === r.source_id), a = PU(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 = Li(e, n), i = l.sources.find((e) => e.id === r.source_id), a = NU(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: AU(r),
+ value: kU(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@ -79070,7 +79106,7 @@ async function dNe(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: NU(l.sources.filter((t) => t.author_key === e.key), e.k),
+ avatarHtml: MU(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, {
@@ -79141,7 +79177,7 @@ async function dNe(e) {
}
//#endregion
//#region src/application/search-morph.js
-function fNe(e, t, n, r, i, a, o) {
+function mNe(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);
@@ -79157,65 +79193,65 @@ function fNe(e, t, n, r, i, a, o) {
}
//#endregion
//#region src/application/search.js
-var O9 = {
+var k9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function k9() {
- O9.searchControl?.close();
+function A9() {
+ k9.searchControl?.close();
}
-function pNe(e) {
+function hNe(e) {
let t = e ? Sa({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
return t === "cover" ? Ha(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 A9() {
- O9.searchMorph?.cancel(), O9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function j9() {
+ k9.searchMorph?.cancel(), k9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function j9(e) {
+function M9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!O9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- A9(), t.classList.remove("open");
+ let r = !!k9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ j9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
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 = tc();
t.classList.add("search-morphing");
- let h = t.animate(fNe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(mNe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- O9.searchMorph = h, Y.handler(h, "onfinish", () => {
- O9.searchMorph === h && A9();
+ k9.searchMorph = h, Y.handler(h, "onfinish", () => {
+ k9.searchMorph === h && j9();
});
}
-function mNe() {
- return e9.immerseOpen() ? a8().activeVideo() : n8()?.activeVideo() || null;
+function gNe() {
+ return t9.immerseOpen() ? a8().activeVideo() : n8()?.activeVideo() || null;
}
-function hNe(e) {
+function _Ne(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function gNe() {
- O9.searchControl = null, O9.searchActions = {
+function vNe() {
+ k9.searchControl = null, k9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), r9(!1), W.q = e, Ql(), Q.route(W.jav === "1" ? h7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
+ X.rememberSearchValue(), i9(!1), W.q = e, Ql(), Q.route(W.jav === "1" ? g7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
},
- openItem: (e) => s9(e),
+ openItem: (e) => c9(e),
openEntity: (e, t) => v5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, E9(e, !0, n);
+ $.followMediaView = t, D9(e, !0, n);
}
- }, O9.searchHelpers = {
- pool: () => nK(W, z),
- recommendations: () => dNe(z),
- 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 ? H8(e) : pNe(e)}</span>`,
+ }, k9.searchHelpers = {
+ pool: () => rK(W, z),
+ recommendations: () => pNe(z),
+ 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 ? H8(e) : hNe(e)}</span>`,
present: (e) => wo(e),
dismiss: (e) => To(e),
wireScroller: (e) => Hs(e),
@@ -79230,13 +79266,13 @@ function gNe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, RV("search", {
+ }, LV("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: O9.searchActions,
- helpers: O9.searchHelpers,
+ actions: k9.searchActions,
+ helpers: k9.searchHelpers,
expose: (e) => {
- O9.searchControl = e;
+ k9.searchControl = e;
}
}, {
container: L("#searchMenu"),
@@ -79249,19 +79285,19 @@ function gNe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function _Ne() {
- O9.searchMorph = null, O9.searchMorphViewport = innerWidth, Y.listen.bind(Y, window)("resize", () => {
- innerWidth !== O9.searchMorphViewport && (O9.searchMorphViewport = innerWidth, A9());
- }, { passive: !0 }), Y.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", A9), Y.handler(L("#searchBtn"), "onclick", () => {
- j9(!0), L("#q").focus({ preventScroll: !0 });
+function yNe() {
+ k9.searchMorph = null, k9.searchMorphViewport = innerWidth, Y.listen.bind(Y, window)("resize", () => {
+ innerWidth !== k9.searchMorphViewport && (k9.searchMorphViewport = innerWidth, j9());
+ }, { passive: !0 }), Y.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", j9), Y.handler(L("#searchBtn"), "onclick", () => {
+ M9(!0), L("#q").focus({ preventScroll: !0 });
}), Y.handler(L("#searchBack"), "onclick", () => {
- j9(!1), k9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+ M9(!1), A9(), 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) && (L("#q").value || j9(!1), k9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || M9(!1), A9());
};
Y.listen(document, "pointerdown", e, !0), Y.listen(document, "focusin", e), Y.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), g7(null, !0);
+ e.preventDefault(), _7(null, !0);
}), Y.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
let t = c8();
@@ -79270,14 +79306,14 @@ function _Ne() {
return;
}
if (!L("#searchMenu").hidden) {
- k9();
+ A9();
return;
}
- if (e9.immerseOpen()) {
+ if (t9.immerseOpen()) {
a8().close();
return;
}
- if (e9.stageOpen()) {
+ if (t9.stageOpen()) {
e.defaultPrevented || (e.preventDefault(), n8().requestClose());
return;
}
@@ -79291,7 +79327,7 @@ function _Ne() {
}
return;
}
- if (hNe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (_Ne(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) {
@@ -79299,26 +79335,26 @@ function _Ne() {
return;
}
}
- let t = mNe();
+ let t = gNe();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), n8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), sM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), oM(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), oM(t);
+ e.preventDefault(), aM(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), Cj(t, ".vjs-mute-control");
+ e.preventDefault(), Sj(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), Cj(t, ".vjs-fullscreen-control");
+ e.preventDefault(), Sj(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -79330,7 +79366,7 @@ function _Ne() {
}
//#endregion
//#region src/history/links.ts
-function vNe(e) {
+function bNe(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;
@@ -79344,54 +79380,54 @@ function vNe(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
-var M9 = {
+var N9 = {
shellActions: void 0,
routing: void 0
};
-function yNe() {
+function xNe() {
let e = Y, t = (e) => {
- e.kind === "item" ? s9(e.id, !1) : e.kind === "jav" ? l9(e.code, !1) : e.kind === "follow" ? E9(e.id, !1) : i9(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 (sje(), F5.entityShapesReady = U8(), Yje(), location.pathname === "/") {
+ if (uje(), F5.entityShapesReady = U8(), Qje(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- Y8(decodeURIComponent(location.pathname)) && K8(L("#feedNew")), iMe(), M9.shellActions = {
+ Y8(decodeURIComponent(location.pathname)) && K8(L("#feedNew")), sMe(), N9.shellActions = {
openSettings: (e) => J5(e, !0),
closeSettings: () => c8()?.close(!1),
- openItem: (e) => void s9(e),
+ openItem: (e) => void c9(e),
openEntity: (e, t) => void v5(e, t),
openTag: (e) => {
- $je(), N7(e);
+ nMe(), P7(e);
},
- openTasteSignal: Cje,
+ openTasteSignal: Eje,
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;
- _9(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;
- s6(n.hash, () => YV.navigation.seq === t);
+ let t = JV.navigation.seq;
+ s6(n.hash, () => JV.navigation.seq === t);
} else Q.navigatePath(e);
},
openManage: $5,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => T9(),
+ openFollow: () => E9(),
receipt: (e, t) => x8.actionReceipt(e, t),
toast: (e, t) => x8.toast(e, t),
failure: x8.actionFailure,
revealSource: p5,
- reopenTutorial: JMe,
- routeReview: Eje,
- routeFollowManage: Hje,
+ reopenTutorial: XMe,
+ routeReview: kje,
+ routeFollowManage: Gje,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -79402,22 +79438,22 @@ function yNe() {
},
exitSelectMode: () => O5(!1, !1),
personAvatar: (e, t, n) => j5.personAvatar(e, t, n),
- authorAvatar: (e) => Wje(e),
- showIndexTags: Gje,
+ authorAvatar: (e) => qje(e),
+ showIndexTags: Jje,
openFollowAuthor: P5,
- openFollowTag: Kje,
- openPlaylist: (e, t) => void a9(e, t, !0),
- canFlip: () => !Dl && !Z7() && !window.__scrolling && !X.reduceMotion(),
+ openFollowTag: Yje,
+ openPlaylist: (e, t) => void o9(e, t, !0),
+ canFlip: () => !Dl && !Q7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (cl(), Zl({ barsContext: {
type: "home",
filters: W
- } }), U5(), document.body.classList.add("entity-open"), C7(), N5()) : e === "index" ? (cl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), U5(), document.body.classList.add("index-open"), C7(), N5()) : (cl(), Q.claimSurface(t), e === "catalog" ? U5() : (H5(), V5({ manage: e === "management" })));
+ } }), U5(), document.body.classList.add("entity-open"), w7(), N5()) : e === "index" ? (cl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), U5(), document.body.classList.add("index-open"), w7(), N5()) : (cl(), Q.claimSurface(t), e === "catalog" ? U5() : (H5(), V5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = e9.requestedImmerseId === void 0 ? e : e9.requestedImmerseId;
- e9.requestedImmerseId = void 0, u9(t, !1);
+ let t = t9.requestedImmerseId === void 0 ? e : t9.requestedImmerseId;
+ t9.requestedImmerseId = void 0, d9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -79425,10 +79461,10 @@ function yNe() {
},
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: () => {
- e9.stageOpen() && r9(!1);
+ t9.stageOpen() && i9(!1);
},
grid: {
helpers: X.gridHelpers,
@@ -79436,11 +79472,11 @@ function yNe() {
},
configurable: () => !!Bl,
surfaceShown: (e) => {
- e === "index" ? (h9(), u7()) : j7();
+ e === "index" ? (g9(), d7()) : M7();
},
entity: {
missing: (e) => {
- M9.shellActions.surfaceChanged("entity", location.pathname), _5(e);
+ N9.shellActions.surfaceChanged("entity", location.pathname), _5(e);
},
loading: (e, t, n) => r5.application.loading(e, t, n),
props: (e, t, n) => r5.application.addressProps(e, t, n),
@@ -79448,53 +79484,53 @@ function yNe() {
let r = r5.parseEntityFilters(n);
e === "creator" && (r.creator = "");
let i = o5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, r5.parseMediaView(n), { push: !1 }) ? !1 : (b7(r), x7(o5()), !0);
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !c5(e, t, r, r5.parseMediaView(n), { push: !1 }) ? !1 : (x7(r), S7(o5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => m7("local,115"),
+ defaultLoc: () => h7("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (v9(), l7(), Q5()), t && D8(), e === "/trash" ? (X.clearSearchField(), U5()) : (L("#q").value = W.q, X.rememberSearchValue()), h9(), j7(), Z.handOff(I7());
+ n && (y9(), u7(), Q5()), t && D8(), e === "/trash" ? (X.clearSearchField(), U5()) : (L("#q").value = W.q, X.rememberSearchValue()), g9(), M7(), Z.handOff(L7());
},
load: () => {
- Z.handOff(I7());
+ Z.handOff(L7());
},
fill: () => {
- if (V7() || !ZV() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (H7() || !XV() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), z7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), B7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- R7(), X8();
+ z7(), X8();
}
}
- }, M9.routing = !1, e.listen(document, "click", (e) => {
- let t = vNe(e);
- t && (e.preventDefault(), M9.shellActions.navigate(t));
- }), Y.own(YV.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !gV(e.location.pathname) && r9(!1), M9.routing && !e.claimed && v9();
- })), TAe(M9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), sMe(), Ije(), X5(), Promise.all([
- J7(),
- aMe(),
+ }, N9.routing = !1, e.listen(document, "click", (e) => {
+ let t = bNe(e);
+ t && (e.preventDefault(), N9.shellActions.navigate(t));
+ }), Y.own(JV.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !hV(e.location.pathname) && i9(!1), N9.routing && !e.claimed && y9();
+ })), OAe(N9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), uMe(), zje(), X5(), Promise.all([
+ Y7(),
+ cMe(),
F5.entityShapesReady
]).then(() => {
- e.isActive && (F5.wantsDiscoveryBars() && j7().catch((e) => console.error("首页横条装载失败", e)), h9(), RMe(), M9.routing = !0, Zl({ pageOpens: 1 }), v9(), u7());
+ e.isActive && (F5.wantsDiscoveryBars() && M7().catch((e) => console.error("首页横条装载失败", e)), g9(), BMe(), N9.routing = !0, Zl({ pageOpens: 1 }), y9(), d7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
//#endregion
//#region src/theme-transition.ts
-var N9 = !1;
-async function bNe(e, t) {
- if (N9) return;
+var P9 = !1;
+async function SNe(e, t) {
+ if (P9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, N9 = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, P9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -79505,12 +79541,12 @@ async function bNe(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), N9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), P9 = !1;
}
}
//#endregion
//#region src/application/chrome.js
-function xNe() {
+function CNe() {
(() => {
let e = Y, t = [
"#brandHome",
@@ -79572,7 +79608,7 @@ function xNe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), z("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- gW(t.libraries);
+ _W(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -79610,14 +79646,14 @@ function xNe() {
(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="浅色主题">${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" && bNe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), cA();
+ t.getAttribute("aria-pressed") !== "true" && SNe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), sA();
});
- })), cA();
+ })), sA();
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 = Oo(g, v, _);
- e.own(y.dispose), e.own(Voe(v)), MAe({
+ e.own(y.dispose), e.own(Hoe(v)), FAe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -79761,13 +79797,13 @@ function xNe() {
}
//#endregion
//#region src/application/initialize.js
-function P9() {
- uNe(), XMe(), Xje(), ZMe(), BMe(), PAe(), jMe(), YMe(), bje(), KMe(), Lje(), MMe(), pje(), Dje(), cNe(), qje(), xje(), lNe(), Jje(), Sje(), pMe(), NMe(), gNe(), qMe(), _Ne(), VMe(), yNe(), xNe(), Y.own(R7), Y.own(g9);
+function wNe() {
+ fNe(), QMe(), $je(), $Me(), HMe(), LAe(), NMe(), ZMe(), Cje(), JMe(), Bje(), PMe(), gje(), Aje(), uNe(), Xje(), wje(), dNe(), Zje(), Tje(), hMe(), FMe(), vNe(), YMe(), yNe(), UMe(), xNe(), CNe(), Y.own(z7), Y.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 SNe(e, t) {
+function TNe(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;
@@ -79785,7 +79821,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 }), CNe = (e) => {
+}, { canvas: null }), ENe = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@ -79795,17 +79831,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);
-}, wNe = (e) => {
+}, DNe = (e) => {
let t = L9.get(e);
if (!t || !e.isConnected) return;
- let n = CNe(e), r = n > 0 ? SNe(t.full, (t) => U9(e, t) <= n) : t.full;
+ let n = ENe(e), r = n > 0 ? TNe(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, wNe(e);
+ t.raf = 0, DNe(e);
}));
}, G9 = (e) => {
e instanceof HTMLElement && (L9.has(e) || L9.set(e, {
@@ -79818,7 +79854,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 TNe(e = document) {
+function ONe(e = document) {
B9?.(), R9 = /* @__PURE__ */ new WeakSet(), V9 = /* @__PURE__ */ new Set();
let t = V9, n = !0;
z9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -79893,7 +79929,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], ENe = {
+], kNe = {
catalog: [
...q9,
...J9,
@@ -79914,10 +79950,10 @@ var q9 = [
"avatar-choices"
]
};
-function DNe() {
+function ANe() {
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 ENe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of kNe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -79930,12 +79966,12 @@ function DNe() {
})), t || Promise.resolve();
};
}
-function ONe() {
+function jNe() {
let e = St({
- queryKey: dF,
- queryFn: ({ signal: e }) => pF(e),
- refetchInterval: (e) => fF(e.state.data)
- }), t = (0, D.useRef)(void 0), [n] = (0, D.useState)(DNe), r = e.data?.result_versions;
+ queryKey: uF,
+ queryFn: ({ signal: e }) => fF(e),
+ refetchInterval: (e) => dF(e.state.data)
+ }), t = (0, D.useRef)(void 0), [n] = (0, D.useState)(ANe), r = e.data?.result_versions;
return (0, D.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -79946,54 +79982,54 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function kNe() {
+function MNe() {
if (!X9) {
- let e = NAe();
+ let e = IAe();
X9 = {
effects: e,
owners: 0
- }, e.own(TNe(document)), e.own(() => {
+ }, e.own(ONe(document)), e.own(() => {
cl(), U.cancelQueries();
- }), e.own(EAe), e.own(pme), e.own(So);
+ }), e.own(kAe), e.own(mme), e.own(So);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function ANe() {
+function NNe() {
let [e, t] = (0, D.useState)(null);
return (0, D.useLayoutEffect)(() => {
- let e = X9 === null, n = kNe(), r = wAe(t);
+ let e = X9 === null, n = MNe(), r = DAe(t);
if (e) try {
- P9();
+ wNe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, O.jsx)(Ghe, {
+ }, []), /* @__PURE__ */ (0, O.jsx)(Khe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, O.jsx)(ONe, {}) : null
+ background: e ? /* @__PURE__ */ (0, O.jsx)(jNe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function jNe(e) {
+function PNe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, Et.createRoot)(e, Khe);
+ let n = (0, Et.createRoot)(e, qhe);
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, Tt.flushSync)(() => n.render(/* @__PURE__ */ (0, O.jsx)(ANe, {}))), n;
+ }, (0, Tt.flushSync)(() => n.render(/* @__PURE__ */ (0, O.jsx)(NNe, {}))), n;
}
//#endregion
//#region src/react/bootstrap.tsx
g();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-jNe($9);
+PNe($9);
//#endregion
-export { xI as $2ec61d1d4f780267$export$a8a3e93435678ff9, PI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, rR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CT 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, Mde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, jde as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ode as $b4f18e3395fe64d7$export$b2539bed5023c21c, iz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Fde as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uw as $ea3928288112382f$export$439d29a4e110a164, gR as $f2ff30fde7b014be$export$3ddf2d174ce01153, CR as $fe21c36db05242bb$export$a98f0dcb43a68a25, wR as $fe21c36db05242bb$export$d7b12c4107be0d61, _fe as $l, BA as ACCENT_CHOICES, fwe as AMANE_BRIDGE_CHECK_URL, Z$ as AMANE_BRIDGE_KEY, pwe as AMANE_BRIDGE_REBUILD_URL, On as ApiError, dW as ArtSlot, J as Button, JF as ButtonLink, Efe as Bx, Bt as CLOUD_LOCATIONS, Z1 as CLOUD_PROXY_HELP, pr as COLUMN_SORT, l1 as CONFIGURATION_KEY, tX as CONFIGURATION_URL, mwe as COOKIE_TEXT_LIMIT, X$ as COVER_JOB_KEY, gi as CREDENTIAL_STATE, K$ as CUSTOM_SOURCES_KEY, G$ as CUSTOM_SOURCES_URL, rV as Checkbox, nV as CheckboxGlyph, qB as ChevronSortDown, hZ as Chip, q2 as CloudDownloadDialog, zH as CollapseChevron, RH as CollapseRegion, p$ as CollectionSummary, Gve as DEFAULT_CATEGORY, Mn as DEFAULT_SORT, LQ as DIAGNOSTICS_KEY, Hye as DIRECTORY_TEMPLATE_ERROR, M0 as DISCOVERY_SORTS, V2 as DOWNLOADS_KEY, B2 as DOWNLOADS_URL, TY as DUPLICATES_KEY, cY as DataTableFooter, iY as DataTableFrame, sY as DataTableSort, KH as Disclosure, SDe as DownloadsPanel, cfe as E3, Kve as ENTITY_REVIEW_KINDS, Y1 as ENTRY_LINKS_HELP, X1 as ENTRY_LINKS_HINT, bfe as Ea, Lfe as EmptyFocusButton, Iz as EmptyState, WH as ErrorText, ghe as ExternalLink, cr as FEEDS_KEY, lX as FEED_SCHEDULE_KEY, xke as FLOW_LABEL_X, L3 as FLOW_VIEWBOX, or as FOLLOW_CHECK_KEY, ar as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, ir as FOLLOW_MANAGE_KEY, sr as FOLLOW_RESOLVE_KEY, cX as FOLLOW_SCHEDULE_KEY, vhe as Fact, _he as FactList, GH as FieldLabel, R$ as Fieldset, L$ as FieldsetTitle, RF as FilterGlass, zF as FilterGlassRows, LF as FilterIconButton, VF as FilterPill, hhe as Footer, bz as Gg, UF as GlassPill, UH as Help, Dz as HintText, pke as IDLE_POLL_MS, Pve as IDLE_REPAIR, MF as IconButton, Mz as Input, jz as InputBase, dA as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, MX as JUNK_KEY, X3 as JavHeader, Ove as KEEP_LABELS, ur as LAYOUTS, J1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, qY as LINKS_KEY, JY as LINK_CHECK_KEY, mye as LINK_KINDS, YY as LINK_PRUNE_KEY, Cn as LOC, Ez as Label, V$ as LibraryProcessingCard, $z as LibraryShortcuts, xH as LinkButton, NH as LoadingDots, ufe as M6, yye as MEDIA_PROCESSING_KEY, dX as MEDIA_PROCESSING_URL, AY as MEDIA_REPAIR_KEY, kY as MEDIA_REPAIR_URL, Bn as MEDIA_SOURCES_KEY, No as MEDIA_SOURCE_ICONS, Rt as MEDIA_SOURCE_OPTIONS, ZB as MENU_ITEM, QB as MENU_ITEM_INTERACTIVE, XB as MENU_POPOVER_SURFACE, CH as MenuDialog, sG as MixCard, Nz as ModalFrame, Ev as MotionConfigContext, Tz as NR, Fz as Note, Nfe as OA, mX as ORGANIZE_KEY, _X as ORPHAN_RECORDS_KEY, yz as OV, fz as P7, ACe as PHASES, nX as PICK_FOLDER_URL, U$ as PLAYLISTS_KEY, mTe as POLICY_COLUMNS, gTe as POLICY_COVER_NOTE, hTe as POLICY_MATRIX, q1 as POLICY_SUMMARY, oY as Pagination, B$ as PathLine, rF as PillTabList, FH as Progress, FY as QUALITY_GOALS_KEY, j$ as REPAIR_CARD_TEXT, jY as REPAIR_LIBRARIES_KEY, SX as RESOURCE_APPLY_KEY, xX as RESOURCE_SCAN_KEY, UCe as RESULT_PANEL, WCe as RESULT_SECTION, Wve as REVIEW_CATEGORIES, jX as REVIEW_COUNTS_KEY, RY as REVIEW_KEY, zY as REVIEW_LABELS, uW as RetryNote, Mfe as Rf, phe as Rows, uwe as SCRAPING_CHECK_URL, J$ as SCRAPING_COVER_URL, Y$ as SCRAPING_KEY, lwe as SCRAPING_SETTINGS_URL, bU as SEGMENT, yU as SEGMENTED_TRACK, sX as SETTINGS_KEY, rX as SETTINGS_URL, Nn as SORT_DEFAULT_DIR, jn as SORT_OPTIONS, Vt as SOURCE_LABELS, c3 as STATS_KEY, fhe as Section, mhe as SectionSkeleton, vU as SegmentedRadioGroup, nge as SegmentedTabList, KU as Segments, aY as Select, dU as Select$1, p1 as SelectField, fU as SelectItem, Ck as SelectionDock, BH as SettingsCard, dhe as SettingsRow, VH as SettingsSectionLabel, She as SiteLabel, TU as SortDirectionIcon, JU as SortKeys, bQ as SourceAvatar, XH as SourceLabel, qH as SourceMark, HH as Stack, z$ as StatusLabel, P2 as Switch, dF as TASKS_KEY, nke as TASTE_REFRESH_KEY, rke as TASTE_WINDOWS, uX as THUMBNAIL_JOBS_KEY, PX as TRASH_KEY, Ile as TRIGGER_LABELS, YJ as Table, hY as TableColumnControls, gY as TableColumnResizer, vY as TableSelectionHeader, IH as TaskProgress, kz as TextField, Oz as TextFieldContext, vz as Un, _$ as WANTS_KEY, r4 as WantMagnets, Jf as WithPromise, pz as Wt, _z as Xc, wz as Xf, ffe as Xt, lfe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jfe as aB, qr as addAlias, Kr as addSource, y$ as addWant, V as apiGet, H as apiSend, iA as appSettingsStore, sbe as applyConfirmText, AX as applyLeftovers, obe as applyPlanText, lbe as applyText, cA as applyTheme, Zg as asNumber, Yye as attachOrphan, kr as authorAvatar, jr as authorGroups, Or as authorInitial, Dr as authorName, wq as autoResetPageIndex, La as avatarInner, m3 as bandRows, Uye as baseName, Nve as batchOperate, Ok as boundedPreference, Ave as bulkCloudPreferences, Bz as busyProps, Afe as cB, MDe as cachedMagnetStates, Rf as calcGeneratorVelocity, Qve as canApprove, lf as cancelFrame, ebe as candidateText, MH as cardClass, wA as cardRatio, gz as cc, fi as checkEvidenceGap, di as checkFailures, ni as checkFeeds, vye as checkLine, li as checkReceipt, ui as checkSummary, gwe as checkText, pi as checkedText, NW as clickedBlank, Sve as cloudLocations, O0 as cloudProxySkeleton, Dx as clsx, Cfe as cn, Wm as collectMotionValues, rJ as columnVisibilityFeature, WJ as column_getCanSort, BJ as column_getSortFn, Xve as commonReviewSources, sV as configurationSection, ske as configureTasteBrowser, xc as confirmModal, qK as copyInstancePropertiesWithoutMemos, Aa as coverUrl, Jq as createColumnHelper, rwe as createPlaylist, _i as credentialDone, w0 as credentialsSkeleton, sye as currentReviewRow, eF as cx, Sz as dZ, iye as decisionPayload, aye as decisionReceipt, rye as defaultChoice, awe as deletePlaylist, K1 as diagnosticsSkeleton, RCe as discoveryArtwork, w$ as discoveryKey, BTe as discoveryScore, Eve as distinctName, uye as dropReviewRows, si as dropSources, kfe as du, jve as duplicateVictims, vF as elapsedText, Ia as entityFaceImg, en as entityPath, Sr as errorHeadline, An as errorMessage, B as esc, Sq as expandRowModel, lz as f1, xr as feedIntervalText, e1 as fetchAmaneBridge, zr as fetchCheckJob, u1 as fetchConfiguration, $$ as fetchCoverJob, Rr as fetchCredentials, q$ as fetchCustomSources, RQ as fetchDiagnostics, T$ as fetchDiscoveries, DY as fetchDuplicates, jle as fetchEarlier, Sye as fetchFeedSchedule, $r as fetchFeeds, Lr as fetchFollow, xye as fetchFollowSchedule, IX as fetchJunkSummary, QY as fetchLinkCheck, $Y as fetchLinkPrune, ZY as fetchLinkStats, bye as fetchMediaProcessing, MY as fetchMediaRepair, Vn as fetchMediaSources, hX as fetchOrganize, Fye as fetchOrganizeExample, vX as fetchOrphanRecords, Qr as fetchPending, W$ as fetchPlaylists, IY as fetchQualityGoals, NY as fetchRepairLibraries, Br as fetchResolveJob, wX as fetchResourceApply, CX as fetchResourceScan, WY as fetchReview, FX as fetchReviewCounts, fX as fetchSettings, Q$ as fetchSources, l3 as fetchStats, Vr as fetchSuggestions, pF as fetchTasks, P3 as fetchTaste, cke as fetchTasteJob, Cye as fetchThumbnailJobs, LX as fetchTrashSummary, v$ as fetchWants, Jve as filterReviewRows, xn as firstGrapheme, pK as flexRender, Cke as flowGraph, wke as flowLabel, SOe as fmtCount, hn as fmtDur, _n as fmtSize, Gle as foldRoutine, ii as followFeedByName, lr as followSuggestKey, qle as followupDetail, cf as frame, $de as g4, oJ as getDefaultPaginationState, CA as gridLayout, Ar as groupByAuthor, Wle as groupFollowups, VY as groupReviewRows, ibe as hasChanges, TX as hasResourceRoots, hF as hasResultProblems, mke as historySpan, uz as i2, fke as importTasteExport, T0 as indexersSkeleton, Af as interpolate, x$ as invalidateWants, _F as isActive, br as isBroken, mr as isLayout, hh as isMotionValue, BY as isReviewCategory, Kle as isRoutine, E0 as javBrowserSkeleton, I0 as javContentSkeleton, gA as javLayout, F0 as javTagSkeleton, mbe as junkBreakdown, owe as keepPlaylist, _e as keepPreviousData, Pr as keepSelected, u3 as known, rfe as l7, Ule as latestOfKind, POe as lengthRows, Wn as localTime, ri as lookupFeedActor, ofe as m7, xz as mM, qt as mapLimit, Zr as markItem, h3 as max, MOe as mediumRows, Mle as mergeFinished, g3 as min, fye as mirrorText, Lve as missingToolText, OY as mixedCloudPreferences, EF as momentText, Ry as motion, Km as motionValue, Gye as organizeOutcome, Q0 as overlayHost, hr as pageSizeOf, Nr as pageWindow, In as paginationRange, oi as patchSource, YV as peachHistory, YV as peachHistory$1, nye as pendingGenres, wOe as percentText, Rye as pickOrganizeFolder, Wye as planSummary, d3 as playedFor, EOe as playedItemUrl, fF as pollInterval, ds as popCount, nwe as posterUrl, kW as previewLibraryColor, Lye as previewOrganize, Bve as previewUrl, Hle as problemDestination, yF as progressText, YH as providerIcon, _ye as pruneText, DX as purgeCount, Xye as purgeOrphan, Cz as pv, Ofe as qE, U as queryClient, dz as r2, bke as radarRows, kOe as radialArc, AOe as radialBarSize, OOe as radialCeiling, DOe as radialSlices, Bj as randomId, vke as rankDetail, yke as rankShares, p3 as reachedShare, xF as readableErrorHeadline, VTe as recommendationScore, cye as recordGenre, Qye as recordsText, swe as recreatePlaylist, ewe as refreshPlaylists, tl as relayoutCovers, ci as reloadFollowManage, dye as reloadReview, yTe as rememberShape, Bye as rememberTemplates, Jr as removeAlias, ti as removeFeed, Gr as removeSource, dke as removeTasteSource, b$ as removeWants, Yr as renameAliasGroup, iwe as renamePlaylist, IOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, IK as require_with_selector, NCe as resetWants, Fn as resolveFollowSort, Wf as resolveStartTime, twe as resumeAssetId, qve as reviewGroupingOptions, pbe as reviewSummary, Yve as reviewWindow, eye as rowEvidence, UY as rowFieldName, pJ as rowPaginationFeature, PJ as rowSelectionFeature, qJ as rowSortingFeature, HY as rowSubject, tye as rowTags, $ve as rowTitle, efe as s5, Xr as saveCredential, abe as scanLine, Oye as schedulePollInterval, FCe as searchNote, Zve as selectReviewRange, Fr as selectionState, ei as setFeedEnabled, Wr as setSourceEnabled, dV as settingsPath, Tve as sharedNamePrefix, XV as shellNavigate, y8 as showToast, sn as siteMarkUrl, oq as skipFirstRun, tF as sortCx, _r as sortLabel, Ht as sourceDefaultCost, hi as sourceIconUrl, cbe as sourceMeta, ns as spinnerHtml, Df as spring, Rz as spriteGlyph, Hr as startCheck, hye as startLinkCheck, gye as startLinkPrune, zye as startOrganize, Ur as startResolve, nbe as startResourceApply, tbe as startResourceScan, uke as startTasteRefresh, Rle as statusLabel, Ive as statusLine, yr as statusText, TA as storeJavLayout, oye as submitDecision, OF as summaryItems, Yq as tableFeatures, sq as tableMemo, Mr as tableRows, Vle as taskIssues, F3 as tasteDate, gke as tasteDimensions, hke as tasteHours, N3 as tasteKey, ake as tasteRefetchInterval, oke as tasteTime, Uu as time, gfe as tl, Ir as toggleGroup, I3 as topScores, yfe as uo, AH as useAction, RZ as useBackgroundJob, tu as useConstant, FF as useHorizontalScroller, nu as useIsomorphicLayoutEffect, jW as useLibraryTints, Ct as useMutation, iV as useOverlayScrollbar, St as useQuery, A as useQueryClient, Ay as useReducedMotion, Dye as useRunSchedule, Tye as useSaveFollowSchedule, pX as useSaveSettings, kye as useSaveThumbnailMode, JJ as useTable, dY as useTablePreferences, Mve as victimBytes, PCe as wantName, TOe as watchNote, f3 as watchedShare, Hs as wireHorizontalScroller, Vye as withOrganizeJob };
+export { bI as $2ec61d1d4f780267$export$a8a3e93435678ff9, NI as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, nR as $542a13ca2fa5b484$export$5b6b19405a83ff9d, ST 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, Nde as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Mde as $b4f18e3395fe64d7$export$3e41faf802a29e71, kde as $b4f18e3395fe64d7$export$b2539bed5023c21c, rz as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Ide as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, lw as $ea3928288112382f$export$439d29a4e110a164, hR as $f2ff30fde7b014be$export$3ddf2d174ce01153, SR as $fe21c36db05242bb$export$a98f0dcb43a68a25, CR as $fe21c36db05242bb$export$d7b12c4107be0d61, vfe as $l, zA as ACCENT_CHOICES, hwe as AMANE_BRIDGE_CHECK_URL, Z$ as AMANE_BRIDGE_KEY, gwe as AMANE_BRIDGE_REBUILD_URL, On as ApiError, fW as ArtSlot, J as Button, qF as ButtonLink, Dfe as Bx, Bt as CLOUD_LOCATIONS, Z1 as CLOUD_PROXY_HELP, pr as COLUMN_SORT, l1 as CONFIGURATION_KEY, tX as CONFIGURATION_URL, _we as COOKIE_TEXT_LIMIT, X$ as COVER_JOB_KEY, gi as CREDENTIAL_STATE, K$ as CUSTOM_SOURCES_KEY, G$ as CUSTOM_SOURCES_URL, nV as Checkbox, tV as CheckboxGlyph, KB as ChevronSortDown, hZ as Chip, q2 as CloudDownloadDialog, RH as CollapseChevron, LH as CollapseRegion, p$ as CollectionSummary, Jve as DEFAULT_CATEGORY, Mn as DEFAULT_SORT, LQ as DIAGNOSTICS_KEY, Gye as DIRECTORY_TEMPLATE_ERROR, M0 as DISCOVERY_SORTS, V2 as DOWNLOADS_KEY, B2 as DOWNLOADS_URL, TY as DUPLICATES_KEY, cY as DataTableFooter, iY as DataTableFrame, sY as DataTableSort, GH as Disclosure, TDe as DownloadsPanel, lfe as E3, Yve as ENTITY_REVIEW_KINDS, Y1 as ENTRY_LINKS_HELP, X1 as ENTRY_LINKS_HINT, xfe as Ea, Rfe as EmptyFocusButton, Fz as EmptyState, UH as ErrorText, _he as ExternalLink, cr as FEEDS_KEY, lX as FEED_SCHEDULE_KEY, wke as FLOW_LABEL_X, L3 as FLOW_VIEWBOX, or as FOLLOW_CHECK_KEY, ar as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, ir as FOLLOW_MANAGE_KEY, sr as FOLLOW_RESOLVE_KEY, cX as FOLLOW_SCHEDULE_KEY, yhe as Fact, vhe as FactList, WH as FieldLabel, R$ as Fieldset, L$ as FieldsetTitle, LF as FilterGlass, RF as FilterGlassRows, IF as FilterIconButton, BF as FilterPill, ghe as Footer, yz as Gg, HF as GlassPill, HH as Help, Ez as HintText, gke as IDLE_POLL_MS, Lve as IDLE_REPAIR, jF as IconButton, jz as Input, Az as InputBase, uA as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, MX as JUNK_KEY, X3 as JavHeader, jve as KEEP_LABELS, ur as LAYOUTS, J1 as LIBRARY_FOLDER_HELP, lH as LIBRARY_PROCESSING_KEY, qY as LINKS_KEY, JY as LINK_CHECK_KEY, _ye as LINK_KINDS, YY as LINK_PRUNE_KEY, Cn as LOC, Tz as Label, V$ as LibraryProcessingCard, Qz as LibraryShortcuts, bH as LinkButton, MH as LoadingDots, dfe as M6, Sye as MEDIA_PROCESSING_KEY, dX as MEDIA_PROCESSING_URL, AY as MEDIA_REPAIR_KEY, kY as MEDIA_REPAIR_URL, Bn as MEDIA_SOURCES_KEY, No as MEDIA_SOURCE_ICONS, Rt as MEDIA_SOURCE_OPTIONS, XB as MENU_ITEM, ZB as MENU_ITEM_INTERACTIVE, YB as MENU_POPOVER_SURFACE, SH as MenuDialog, cG as MixCard, Mz as ModalFrame, Ev as MotionConfigContext, wz as NR, Pz as Note, Pfe as OA, mX as ORGANIZE_KEY, _X as ORPHAN_RECORDS_KEY, vz as OV, dz as P7, NCe as PHASES, nX as PICK_FOLDER_URL, U$ as PLAYLISTS_KEY, _Te as POLICY_COLUMNS, yTe as POLICY_COVER_NOTE, vTe as POLICY_MATRIX, q1 as POLICY_SUMMARY, oY as Pagination, B$ as PathLine, nF as PillTabList, PH as Progress, FY as QUALITY_GOALS_KEY, j$ as REPAIR_CARD_TEXT, jY as REPAIR_LIBRARIES_KEY, SX as RESOURCE_APPLY_KEY, xX as RESOURCE_SCAN_KEY, KCe as RESULT_PANEL, qCe as RESULT_SECTION, qve as REVIEW_CATEGORIES, jX as REVIEW_COUNTS_KEY, RY as REVIEW_KEY, zY as REVIEW_LABELS, dW as RetryNote, Nfe as Rf, mhe as Rows, pwe as SCRAPING_CHECK_URL, J$ as SCRAPING_COVER_URL, Y$ as SCRAPING_KEY, fwe as SCRAPING_SETTINGS_URL, yU as SEGMENT, vU as SEGMENTED_TRACK, sX as SETTINGS_KEY, rX as SETTINGS_URL, Nn as SORT_DEFAULT_DIR, jn as SORT_OPTIONS, Vt as SOURCE_LABELS, c3 as STATS_KEY, phe as Section, hhe as SectionSkeleton, _U as SegmentedRadioGroup, rge as SegmentedTabList, GU as Segments, aY as Select, uU as Select$1, p1 as SelectField, dU as SelectItem, Sk as SelectionDock, zH as SettingsCard, fhe as SettingsRow, BH as SettingsSectionLabel, Che as SiteLabel, wU as SortDirectionIcon, qU as SortKeys, bQ as SourceAvatar, YH as SourceLabel, KH as SourceMark, VH as Stack, z$ as StatusLabel, P2 as Switch, uF as TASKS_KEY, ake as TASTE_REFRESH_KEY, oke as TASTE_WINDOWS, uX as THUMBNAIL_JOBS_KEY, PX as TRASH_KEY, Lle as TRIGGER_LABELS, YJ as Table, hY as TableColumnControls, gY as TableColumnResizer, vY as TableSelectionHeader, FH as TaskProgress, Oz as TextField, Dz as TextFieldContext, _z as Un, _$ as WANTS_KEY, r4 as WantMagnets, Jf as WithPromise, fz as Wt, gz as Xc, Cz as Xf, pfe as Xt, ufe as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Mfe as aB, qr as addAlias, Kr as addSource, y$ as addWant, V as apiGet, H as apiSend, rA as appSettingsStore, ube as applyConfirmText, AX as applyLeftovers, lbe as applyPlanText, fbe as applyText, sA as applyTheme, Zg as asNumber, Qye as attachOrphan, kr as authorAvatar, jr as authorGroups, Or as authorInitial, Dr as authorName, Tq as autoResetPageIndex, La as avatarInner, m3 as bandRows, Kye as baseName, Ive as batchOperate, Dk as boundedPreference, Nve as bulkCloudPreferences, zz as busyProps, jfe as cB, FDe as cachedMagnetStates, Rf as calcGeneratorVelocity, tye as canApprove, lf as cancelFrame, rbe as candidateText, jH as cardClass, CA as cardRatio, hz as cc, fi as checkEvidenceGap, di as checkFailures, ni as checkFeeds, xye as checkLine, li as checkReceipt, ui as checkSummary, ywe as checkText, pi as checkedText, PW as clickedBlank, Tve as cloudLocations, O0 as cloudProxySkeleton, Ex as clsx, wfe as cn, Wm as collectMotionValues, rJ as columnVisibilityFeature, WJ as column_getCanSort, BJ as column_getSortFn, $ve as commonReviewSources, oV as configurationSection, uke as configureTasteBrowser, xc as confirmModal, JK as copyInstancePropertiesWithoutMemos, Aa as coverUrl, Jq as createColumnHelper, owe as createPlaylist, _i as credentialDone, w0 as credentialsSkeleton, uye as currentReviewRow, $P as cx, xz as dZ, sye as decisionPayload, cye as decisionReceipt, oye as defaultChoice, cwe as deletePlaylist, K1 as diagnosticsSkeleton, VCe as discoveryArtwork, w$ as discoveryKey, UTe as discoveryScore, kve as distinctName, pye as dropReviewRows, si as dropSources, Afe as du, Pve as duplicateVictims, _F as elapsedText, Ia as entityFaceImg, en as entityPath, Sr as errorHeadline, An as errorMessage, B as esc, Cq as expandRowModel, cz as f1, xr as feedIntervalText, e1 as fetchAmaneBridge, zr as fetchCheckJob, u1 as fetchConfiguration, $$ as fetchCoverJob, Rr as fetchCredentials, q$ as fetchCustomSources, RQ as fetchDiagnostics, T$ as fetchDiscoveries, DY as fetchDuplicates, Mle as fetchEarlier, Tye as fetchFeedSchedule, $r as fetchFeeds, Lr as fetchFollow, wye as fetchFollowSchedule, IX as fetchJunkSummary, QY as fetchLinkCheck, $Y as fetchLinkPrune, ZY as fetchLinkStats, Cye as fetchMediaProcessing, MY as fetchMediaRepair, Vn as fetchMediaSources, hX as fetchOrganize, Rye as fetchOrganizeExample, vX as fetchOrphanRecords, Qr as fetchPending, W$ as fetchPlaylists, IY as fetchQualityGoals, NY as fetchRepairLibraries, Br as fetchResolveJob, wX as fetchResourceApply, CX as fetchResourceScan, WY as fetchReview, FX as fetchReviewCounts, fX as fetchSettings, Q$ as fetchSources, l3 as fetchStats, Vr as fetchSuggestions, fF as fetchTasks, P3 as fetchTaste, dke as fetchTasteJob, Eye as fetchThumbnailJobs, LX as fetchTrashSummary, v$ as fetchWants, Zve as filterReviewRows, xn as firstGrapheme, mK as flexRender, Eke as flowGraph, Dke as flowLabel, TOe as fmtCount, hn as fmtDur, _n as fmtSize, Kle as foldRoutine, ii as followFeedByName, lr as followSuggestKey, Jle as followupDetail, cf as frame, efe as g4, oJ as getDefaultPaginationState, SA as gridLayout, Ar as groupByAuthor, Gle as groupFollowups, VY as groupReviewRows, sbe as hasChanges, TX as hasResourceRoots, mF as hasResultProblems, _ke as historySpan, lz as i2, hke as importTasteExport, T0 as indexersSkeleton, Af as interpolate, x$ as invalidateWants, gF as isActive, br as isBroken, mr as isLayout, hh as isMotionValue, BY as isReviewCategory, qle as isRoutine, E0 as javBrowserSkeleton, I0 as javContentSkeleton, hA as javLayout, F0 as javTagSkeleton, _be as junkBreakdown, lwe as keepPlaylist, _e as keepPreviousData, Pr as keepSelected, u3 as known, ife as l7, Wle as latestOfKind, LOe as lengthRows, Wn as localTime, ri as lookupFeedActor, sfe as m7, bz as mM, qt as mapLimit, Zr as markItem, h3 as max, FOe as mediumRows, Nle as mergeFinished, g3 as min, hye as mirrorText, Bve as missingToolText, OY as mixedCloudPreferences, TF as momentText, Ly as motion, Km as motionValue, Jye as organizeOutcome, Q0 as overlayHost, hr as pageSizeOf, Nr as pageWindow, In as paginationRange, oi as patchSource, JV as peachHistory, JV as peachHistory$1, aye as pendingGenres, DOe as percentText, Vye as pickOrganizeFolder, qye as planSummary, d3 as playedFor, kOe as playedItemUrl, dF as pollInterval, ds as popCount, awe as posterUrl, AW as previewLibraryColor, Bye as previewOrganize, Uve as previewUrl, Ule as problemDestination, vF as progressText, JH as providerIcon, bye as pruneText, DX as purgeCount, $ye as purgeOrphan, Sz as pv, kfe as qE, U as queryClient, uz as r2, Cke as radarRows, MOe as radialArc, NOe as radialBarSize, jOe as radialCeiling, AOe as radialSlices, zj as randomId, xke as rankDetail, Ske as rankShares, p3 as reachedShare, bF as readableErrorHeadline, WTe as recommendationScore, dye as recordGenre, tbe as recordsText, uwe as recreatePlaylist, rwe as refreshPlaylists, tl as relayoutCovers, ci as reloadFollowManage, mye as reloadReview, STe as rememberShape, Uye as rememberTemplates, Jr as removeAlias, ti as removeFeed, Gr as removeSource, mke as removeTasteSource, b$ as removeWants, Yr as renameAliasGroup, swe as renamePlaylist, zOe as replayRows, E as require_jsx_runtime, v as require_react, S as require_react_dom, LK as require_with_selector, ICe as resetWants, Fn as resolveFollowSort, Wf as resolveStartTime, iwe as resumeAssetId, Xve as reviewGroupingOptions, gbe as reviewSummary, Qve as reviewWindow, rye as rowEvidence, UY as rowFieldName, pJ as rowPaginationFeature, PJ as rowSelectionFeature, qJ as rowSortingFeature, HY as rowSubject, iye as rowTags, nye as rowTitle, tfe as s5, Xr as saveCredential, cbe as scanLine, jye as schedulePollInterval, RCe as searchNote, eye as selectReviewRange, Fr as selectionState, ei as setFeedEnabled, Wr as setSourceEnabled, uV as settingsPath, Ove as sharedNamePrefix, YV as shellNavigate, y8 as showToast, sn as siteMarkUrl, sq as skipFirstRun, eF as sortCx, _r as sortLabel, Ht as sourceDefaultCost, hi as sourceIconUrl, dbe as sourceMeta, ns as spinnerHtml, Df as spring, Lz as spriteGlyph, Hr as startCheck, vye as startLinkCheck, yye as startLinkPrune, Hye as startOrganize, Ur as startResolve, abe as startResourceApply, ibe as startResourceScan, pke as startTasteRefresh, zle as statusLabel, zve as statusLine, yr as statusText, wA as storeJavLayout, lye as submitDecision, DF as summaryItems, Yq as tableFeatures, cq as tableMemo, Mr as tableRows, Hle as taskIssues, F3 as tasteDate, yke as tasteDimensions, vke as tasteHours, N3 as tasteKey, cke as tasteRefetchInterval, lke as tasteTime, Uu as time, _fe as tl, Ir as toggleGroup, I3 as topScores, bfe as uo, kH as useAction, RZ as useBackgroundJob, tu as useConstant, PF as useHorizontalScroller, nu as useIsomorphicLayoutEffect, MW as useLibraryTints, Ct as useMutation, rV as useOverlayScrollbar, St as useQuery, A as useQueryClient, ky as useReducedMotion, Aye as useRunSchedule, Oye as useSaveFollowSchedule, pX as useSaveSettings, Mye as useSaveThumbnailMode, JJ as useTable, dY as useTablePreferences, Fve as victimBytes, LCe as wantName, OOe as watchNote, f3 as watchedShare, Hs as wireHorizontalScroller, Wye as withOrganizeJob };
-//# debugId=99032ff4-87c0-4448-9107-37f6c03224b8
\ No newline at end of file
+//# debugId=3b7bc508-23d2-4dd0-8777-73eb0846b340
\ No newline at end of file